/* =============================================================
   Daivikank — Vedic Astrology & Numerology
   styles.css  ·  single stylesheet, mobile-first, no frameworks
   -------------------------------------------------------------
   Palette, type and motifs are defined as CSS custom properties
   below so the whole brand can be retuned from one place.
   ============================================================= */

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Brand palette */
  --bg:           #0B0E1F; /* deep near-black */
  --bg-black:     #000000; /* pure black sections */
  --bg-card:      #11142A; /* lifted panel on the near-black bg */
  --gold:         #C9A24B; /* metallic antique gold */
  --gold-soft:    #E5C877; /* lighter gold for hovers / highlights */
  --gold-deep:    #A07E32; /* deeper gold for gradient anchor */
  --ivory:        #F4EFE6; /* warm ivory — primary text */
  --lavender:     #BDB8CB; /* muted lavender-grey — secondary text */

  /* Derived lines & tints */
  --line:         rgba(201, 162, 75, 0.22); /* gold hairline */
  --line-strong:  rgba(201, 162, 75, 0.45);
  --veil:         rgba(244, 239, 230, 0.06); /* faint ivory wash */

  /* Metallic gold gradient (text, borders, buttons) */
  --grad-gold: linear-gradient(135deg,
      var(--gold-deep) 0%, var(--gold-soft) 30%,
      var(--gold) 55%, #E9D7A0 100%);

  /* Type */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 70px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* offset anchored scrolling so headings clear the sticky header */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;     /* 17px base */
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(201, 162, 75, 0.35); color: var(--ivory); }

/* -------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ivory);
}

h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 3.4vw, 1.7rem); }

p { color: var(--lavender); }

strong { color: var(--ivory); font-weight: 500; }

/* Metallic gold text */
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------
   4. Layout helpers
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }

.section { padding-block: clamp(4rem, 10vw, 7.5rem); }

/* Pure-black sections for rhythm/contrast */
.section--black { background: var(--bg-black); }

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__head p { margin-top: 1rem; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}
.section__head .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.lede { font-size: 1.12rem; }

/* -------------------------------------------------------------
   5. Ornamental hairline divider (line · star · line)
   ------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin-inline: auto;
  max-width: 320px;
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to var(--dir, right),
      transparent, var(--line-strong));
}
.ornament::after { --dir: left; }
.ornament svg { width: 16px; height: 16px; opacity: 0.9; }

/* -------------------------------------------------------------
   6. Icons
   ------------------------------------------------------------- */
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.icon--star { fill: var(--gold); }

/* hidden SVG sprite host */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* -------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              filter 0.25s var(--ease);
}

.btn--gold {
  background: var(--grad-gold);
  color: #0B0E1F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
              0 10px 26px -12px rgba(201, 162, 75, 0.7);
}
.btn--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 16px 34px -12px rgba(201, 162, 75, 0.75);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--gold-soft);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.08);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }
.btn .icon { width: 1.2em; height: 1.2em; }

/* -------------------------------------------------------------
   8. Site header & navigation
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 14, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 10, 23, 0.88);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ivory);
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Nav cluster */
.nav__list { display: flex; gap: 2rem; }
.nav__list a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--lavender);
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__list a:hover { color: var(--ivory); }
.nav__list a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after  { position: absolute; top:  7px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  text-align: center;
}
/* soft gold glow */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120%);
  aspect-ratio: 1;
  background: radial-gradient(circle at center,
      rgba(201, 162, 75, 0.18), rgba(201, 162, 75, 0.05) 38%, transparent 62%);
  pointer-events: none;
}
/* faint starfield */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(244, 239, 230, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 82% 18%, rgba(244, 239, 230, 0.45), transparent),
    radial-gradient(1.1px 1.1px at 68% 36%, rgba(201, 162, 75, 0.55), transparent),
    radial-gradient(1.3px 1.3px at 26% 64%, rgba(244, 239, 230, 0.40), transparent),
    radial-gradient(1px 1px   at 90% 58%, rgba(244, 239, 230, 0.40), transparent),
    radial-gradient(1.2px 1.2px at 48% 12%, rgba(244, 239, 230, 0.35), transparent),
    radial-gradient(1px 1px   at 56% 78%, rgba(201, 162, 75, 0.45), transparent),
    radial-gradient(1.1px 1.1px at 16% 44%, rgba(244, 239, 230, 0.35), transparent);
}

/* Animated starfield — hero only. Tiny twinkling gold/ivory dots.
   Cheap to animate (opacity + transform); turned fully static under
   prefers-reduced-motion (see the reduced-motion block below). */
.hero__stars { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--ivory);
  opacity: 0.3;
  box-shadow: 0 0 6px 1px rgba(244, 239, 230, 0.35);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.hero__stars span:nth-child(3n) { background: var(--gold-soft); box-shadow: 0 0 6px 1px rgba(201, 162, 75, 0.4); }
.hero__stars span:nth-child(4n) { width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(5n) { width: 2.5px; height: 2.5px; }
.hero__stars span:nth-child(1)  { top: 14%; left: 9%;  animation-duration: 5.5s; animation-delay: 0s;   }
.hero__stars span:nth-child(2)  { top: 8%;  left: 78%; animation-duration: 7s;   animation-delay: 1.2s; }
.hero__stars span:nth-child(3)  { top: 26%; left: 32%; animation-duration: 6s;   animation-delay: 0.6s; }
.hero__stars span:nth-child(4)  { top: 20%; left: 88%; animation-duration: 8s;   animation-delay: 2s;   }
.hero__stars span:nth-child(5)  { top: 38%; left: 16%; animation-duration: 6.5s; animation-delay: 1.6s; }
.hero__stars span:nth-child(6)  { top: 44%; left: 70%; animation-duration: 7.5s; animation-delay: 0.3s; }
.hero__stars span:nth-child(7)  { top: 56%; left: 24%; animation-duration: 5s;   animation-delay: 2.4s; }
.hero__stars span:nth-child(8)  { top: 62%; left: 84%; animation-duration: 6.8s; animation-delay: 1s;   }
.hero__stars span:nth-child(9)  { top: 70%; left: 12%; animation-duration: 7.2s; animation-delay: 0.9s; }
.hero__stars span:nth-child(10) { top: 76%; left: 60%; animation-duration: 5.8s; animation-delay: 2.2s; }
.hero__stars span:nth-child(11) { top: 12%; left: 50%; animation-duration: 6.4s; animation-delay: 1.4s; }
.hero__stars span:nth-child(12) { top: 33%; left: 92%; animation-duration: 7.6s; animation-delay: 0.2s; }
.hero__stars span:nth-child(13) { top: 50%; left: 44%; animation-duration: 6.2s; animation-delay: 1.8s; }
.hero__stars span:nth-child(14) { top: 66%; left: 38%; animation-duration: 8.2s; animation-delay: 0.7s; }
.hero__stars span:nth-child(15) { top: 82%; left: 80%; animation-duration: 5.4s; animation-delay: 2.6s; }
.hero__stars span:nth-child(16) { top: 86%; left: 28%; animation-duration: 7.8s; animation-delay: 1.1s; }
.hero__stars span:nth-child(17) { top: 18%; left: 64%; animation-duration: 6.6s; animation-delay: 0.5s; }
.hero__stars span:nth-child(18) { top: 58%; left: 54%; animation-duration: 7.4s; animation-delay: 2.8s; }

@keyframes twinkle {
  0%   { opacity: 0.10; transform: scale(0.6); }
  50%  { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.18; transform: scale(0.8); }
}

.hero__inner { position: relative; max-width: 760px; margin-inline: auto; }

/* large, very faint celestial spark behind the wordmark */
.hero__spark {
  position: absolute;
  z-index: -1;
  top: 50%; left: 50%;
  width: clamp(320px, 70vw, 560px);
  transform: translate(-50%, -60%);
  color: var(--gold);
  opacity: 0.10;
  pointer-events: none;
}

/* Logo shown as a circular medallion (the source art is a wide emblem;
   the circle crop is the central zodiac mark). */
.hero__logo {
  width: clamp(150px, 36vw, 210px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 70px -16px rgba(201, 162, 75, 0.45);
  margin: 0 auto 1.75rem;
}

.hero h1 {
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--lavender);
  max-width: 30em;
  margin: 0 auto 2.4rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero__scroll {
  margin-top: 3rem;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lavender);
  opacity: 0.7;
}

/* -------------------------------------------------------------
   10. Differentiator strip
   ------------------------------------------------------------- */
.strip {
  background: var(--bg-black);
  border-block: 1px solid var(--line);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.strip p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.3;
  color: var(--ivory);
  max-width: 18em;
  margin-inline: auto;
}
.strip .gold-text { font-style: italic; }

/* -------------------------------------------------------------
   11. Packages
   ------------------------------------------------------------- */
.pkg-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem;
}
.pkg--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.35),
              0 24px 60px -30px rgba(201, 162, 75, 0.5);
}

.pkg__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad-gold);
  color: #0B0E1F;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  white-space: nowrap;
}

.pkg__name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.pkg__price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.pkg__meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.pkg__divider { height: 1px; background: var(--line); margin-bottom: 1.5rem; }

.pkg__list { display: grid; gap: 0.9rem; margin-bottom: 2rem; flex: 1; }
.pkg__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  color: var(--lavender);
  line-height: 1.5;
}
.pkg__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg); /* gold diamond marker */
}

.pkg .btn { margin-top: auto; }

/* -------------------------------------------------------------
   12. How it works — steps
   ------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step { position: relative; padding-top: 0.5rem; }
.step .step__num {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step h3 + p { font-size: 0.98rem; }

/* -------------------------------------------------------------
   13. About
   ------------------------------------------------------------- */
.about { text-align: center; }
.about__body {
  max-width: 740px;
  margin: 1.4rem auto 0;
  font-size: clamp(1.06rem, 2.2vw, 1.22rem);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ivory);
}
.about__body em { color: var(--gold-soft); font-style: italic; }

/* -------------------------------------------------------------
   14. Vedic Astrology & Numerology primer
   ------------------------------------------------------------- */
.primer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.primer-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
}

.primer-card h3 {
  margin-bottom: 1rem;
  color: var(--ivory);
}

.primer-card h3 span {
  color: var(--gold-soft);
  font-style: italic;
}

.primer-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.primer-closing {
  max-width: 760px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.5;
  color: var(--ivory);
}

/* -------------------------------------------------------------
   15. Reviews
   ------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.review {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.review__stars { display: inline-flex; gap: 0.2rem; }
.review__stars .icon { width: 1.05rem; height: 1.05rem; }
.review blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ivory);
  flex: 1;
}
.review figcaption {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.review figcaption span { color: var(--lavender); letter-spacing: 0.02em; }

/* -------------------------------------------------------------
   16. Contact / final CTA
   ------------------------------------------------------------- */
.contact { text-align: center; }
.contact__cta { margin: 2.4rem 0 2rem; display: flex; justify-content: center; }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--lavender);
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease);
}
.contact__link .icon { color: var(--gold); }
.contact__link:hover { color: var(--ivory); }

/* -------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-black);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  text-align: center;
}
.footer__brand { display: grid; gap: 1rem; justify-items: center; }
.footer__brand .brand { font-size: 1.6rem; }
.footer__tagline { color: var(--lavender); font-style: italic; font-family: var(--font-head); font-size: 1.15rem; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; justify-content: center; }
.footer__nav a { color: var(--lavender); font-size: 0.95rem; letter-spacing: 0.03em; transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--gold); }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer__bottom small { color: var(--lavender); font-size: 0.85rem; letter-spacing: 0.03em; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: var(--lavender); font-size: 0.85rem; transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--gold); }

/* -------------------------------------------------------------
   18. Legal pages (terms / privacy)
   ------------------------------------------------------------- */
.legal { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)); padding-bottom: clamp(4rem, 9vw, 6rem); }
.legal__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.legal__head h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal__updated { margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.legal__note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  color: var(--lavender);
}

.legal__body > * + * { margin-top: 1.1rem; }
.legal__body h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.legal__body h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--gold-soft); }
.legal__body p, .legal__body li { color: var(--lavender); }
.legal__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal__body ul { display: grid; gap: 0.6rem; margin-left: 0; }
.legal__body ul li { position: relative; padding-left: 1.5rem; }
.legal__body ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: var(--gold);
  transform: rotate(45deg);
}
.legal__back { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 3rem; color: var(--gold); letter-spacing: 0.04em; }
.legal__back:hover { color: var(--gold-soft); }

/* -------------------------------------------------------------
   19. Scroll-reveal (progressive enhancement)
   Only hides content when JS is active (html.js), so the site is
   fully visible without JavaScript and for crawlers.
   ------------------------------------------------------------- */
.reveal { } /* no-JS / no-op default → always visible */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* stagger helpers */
html.js .reveal.d1 { transition-delay: 0.08s; }
html.js .reveal.d2 { transition-delay: 0.16s; }
html.js .reveal.d3 { transition-delay: 0.24s; }

/* -------------------------------------------------------------
   20. Utilities
   ------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 50%; top: 0.5rem;
  transform: translate(-50%, -150%);
  z-index: 200;
  background: var(--gold);
  color: #0B0E1F;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* lock scroll when mobile menu open */
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------
   21. Responsive — mobile-first breakpoints
   ------------------------------------------------------------- */

/* Mobile navigation panel (collapsed by default) */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(8, 10, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
    display: grid;
    gap: 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0.4rem; }
  .nav__list a { display: block; padding: 0.65rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__cta { width: 100%; }
}

/* Tablet+ : reveal inline nav, hide hamburger */
@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
  .nav-toggle { display: none; }
}

/* Two-column package / review grids on small tablets */
@media (min-width: 620px) {
  .primer-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Three-up layouts on larger screens */
@media (min-width: 880px) {
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
  .pkg--featured { transform: scale(1.035); } /* lift the "Most chosen" plan */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    text-align: left;
    align-items: start;
  }
  .footer__brand { justify-items: start; }
  .footer__nav, .footer__legal-col { justify-content: flex-start; }
  .footer__bottom { justify-content: space-between; text-align: left; }
}

/* -------------------------------------------------------------
   22. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .pkg--featured { transform: none; }
  /* Starfield: fully static, gently visible, no twinkle */
  .hero__stars span { animation: none !important; transform: none; opacity: 0.32; }
}
