/**
 * Domain and Hosting in Kenya page styles.
 * Built on the existing Wayvarn tokens (primary, border, card, muted).
 */

.wv-dh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(520px, 68svh);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1024px) {
  .wv-dh-hero { min-height: 78vh; }
}

/* Subtle technology grid + glow, consistent with the homepage hero */
.wv-dh-hero__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 78%);
  animation: wv-dh-grid-drift 28s linear infinite;
  pointer-events: none;
}
@keyframes wv-dh-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-64px, -64px, 0); }
}
.wv-dh-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(34rem 22rem at 82% 18%, rgba(56, 189, 248, 0.15), transparent 70%),
    radial-gradient(40rem 26rem at 6% 90%, rgba(10, 102, 194, 0.22), transparent 72%);
}

/* Hero stat chips */
.wv-dh-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.wv-dh-hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.wv-dh-hero__stat strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.wv-dh-hero__stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.wv-dh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 10, 22, 0.92) 0%, rgba(6, 10, 22, 0.78) 45%, rgba(6, 10, 22, 0.62) 100%);
  z-index: -1;
}
.wv-dh-hero * { color: #fff; }
.wv-dh-hero .wv-dh-hero__sub { color: rgba(255, 255, 255, 0.82); }
.wv-dh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---- overview image ---- */
.wv-dh-overview__image {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 18px 44px -30px color-mix(in oklab, var(--foreground) 35%, transparent);
}
.wv-dh-overview__image img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---- domain pricing table ---- */
.wv-dh-pricing {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 48px -32px color-mix(in oklab, var(--primary) 55%, transparent);
}
.wv-dh-pricing__scroll { overflow-x: auto; }
.wv-dh-pricing table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  text-align: left;
}
.wv-dh-pricing thead { background: var(--accent); }
.wv-dh-pricing th,
.wv-dh-pricing td {
  padding: 1rem 1.35rem;
  white-space: nowrap;
}
.wv-dh-pricing thead th {
  color: var(--accent-foreground);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wv-dh-pricing tbody th {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}
.wv-dh-pricing tbody td {
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
}
.wv-dh-pricing tbody tr + tr { border-top: 1px solid var(--border); }
.wv-dh-pricing tbody tr { transition: background-color 0.2s ease; }
.wv-dh-pricing tbody tr:hover { background: color-mix(in oklab, var(--muted) 55%, transparent); }

/* ---- cards ---- */
.wv-dh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.wv-dh-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  box-shadow: 0 18px 40px -24px color-mix(in oklab, var(--primary) 70%, transparent);
}
.wv-dh-card--featured {
  border-color: color-mix(in oklab, var(--primary) 65%, transparent);
  box-shadow: 0 22px 50px -28px color-mix(in oklab, var(--primary) 80%, transparent);
}
.wv-dh-tag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wv-dh-price { font-size: 1.85rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.wv-dh-tld { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }

.wv-dh-feature {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.5;
}
.wv-dh-check {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  color: var(--primary);
}

/* ---- domain search ---- */
.wv-dh-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem;
}
.wv-dh-search input {
  flex: 1 1 14rem;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: inherit;
  outline: none;
}
.wv-dh-result { font-size: 0.9rem; }

/* ---- steps + FAQ ---- */
.wv-dh-step {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
}
.wv-dh-faq {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.1rem 1.35rem;
  transition: border-color 0.25s ease;
}
.wv-dh-faq:hover,
.wv-dh-faq[open] { border-color: color-mix(in oklab, var(--primary) 45%, transparent); }
.wv-dh-faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wv-dh-faq summary::-webkit-details-marker { display: none; }
.wv-dh-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.wv-dh-faq[open] summary::after { transform: rotate(45deg); }
.wv-dh-faq p {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---- reveal (light, no heavy motion) ---- */
.wv-dh-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wv-dh-anim.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wv-dh-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wv-dh-card:hover { transform: none; }
}
