:root {
  --background: #f5f0e8;
  --background-deep: #ede6d9;
  --card: #fbf7f0;
  --text: #2c2825;
  --text-soft: #4a4440;
  --accent: #c4937a;
  --accent-deep: #a87761;
  --sage: #8a9e8c;
  --dark: #1c1916;
  --border: rgba(44, 40, 37, 0.12);
  --border-strong: rgba(44, 40, 37, 0.22);
  --shadow: 0 18px 60px rgba(44, 40, 37, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(237,230,217,0.52)),
    var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(245, 240, 232, 0.78);
  border-bottom: 1px solid rgba(44, 40, 37, 0.06);
  backdrop-filter: blur(18px);
}

.brand-mark span {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 28px;
  color: rgba(74, 68, 64, 0.72);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav a,
.nav-cta {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.nav-cta:hover {
  color: var(--accent-deep);
}

.nav-cta {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 11px 18px;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 92vh;
  padding: 104px clamp(22px, 7vw, 92px) 54px;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(22px, 7vw, 92px);
  right: clamp(22px, 7vw, 92px);
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.corner-ornament {
  position: absolute;
  top: 96px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(44, 40, 37, 0.28);
  border-radius: 50%;
}

.corner-ornament::before,
.corner-ornament::after {
  content: "";
  position: absolute;
  background: rgba(44, 40, 37, 0.28);
}

.corner-ornament::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
}

.corner-ornament::after {
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 1px;
}

.corner-left {
  left: clamp(22px, 7vw, 92px);
}

.corner-right {
  right: clamp(22px, 7vw, 92px);
}

.hero-copy {
  max-width: 720px;
  padding-top: 16px;
}

.eyebrow,
.subword {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(84px, 14vw, 172px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 0.82;
}

.subword {
  margin-top: 24px;
  color: var(--accent);
}

.rule {
  display: flex;
  align-items: center;
  width: min(360px, 82vw);
  height: 28px;
  margin: 30px 0 22px;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rule span {
  width: 7px;
  height: 7px;
  margin: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.hero-line {
  max-width: 600px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.7vw, 58px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  padding: 17px 28px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: var(--background);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.privacy-note {
  margin: 16px 0 0;
  color: rgba(74, 68, 64, 0.62);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
}

.scan-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(380px, 76vw);
  aspect-ratio: 1;
  border: 1px solid rgba(196, 147, 122, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(196,147,122,0.18), rgba(196,147,122,0) 55%),
    radial-gradient(circle at center, rgba(251,247,240,0.72), rgba(251,247,240,0) 67%);
  box-shadow: var(--shadow);
}

.scan-orbit::before,
.scan-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.scan-orbit::before {
  inset: 22px;
  border: 1px dashed rgba(44, 40, 37, 0.18);
  animation: rotateSlow 60s linear infinite;
}

.scan-orbit::after {
  inset: -18px;
  border: 1px solid rgba(44, 40, 37, 0.08);
}

.palm-drawing {
  width: 58%;
  overflow: visible;
}

.palm-drawing path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.palm-outline,
.palm-fold {
  stroke: var(--text);
  stroke-width: 0.75;
}

.palm-fold {
  opacity: 0.58;
}

.palm-line {
  stroke: var(--accent-deep);
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  animation: dashMove 3.6s linear infinite;
}

.line-head,
.line-fate {
  opacity: 0.78;
}

.line-life,
.line-sun {
  opacity: 0.62;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--background);
}

.dot-top { top: -4px; }
.dot-right { right: -4px; }
.dot-bottom { bottom: -4px; }
.dot-left { left: -4px; }

.section {
  padding: 78px clamp(22px, 7vw, 92px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
}

p {
  color: var(--text-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.feature-grid article,
.privacy-card,
.phone-card {
  border: 1px solid var(--border);
  background: rgba(251, 247, 240, 0.66);
  box-shadow: 0 10px 32px rgba(44, 40, 37, 0.04);
}

.step-card {
  min-height: 224px;
  padding: 28px;
}

.roman {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border: 1px solid rgba(196, 147, 122, 0.4);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 18px;
}

.step-card p,
.feature-grid p,
.preview-copy p,
.privacy-card p,
.phone-card p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(180deg, rgba(237,230,217,0), rgba(237,230,217,0.62), rgba(237,230,217,0));
}

.preview-copy {
  max-width: 520px;
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.phone-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 34px;
  padding: 24px 20px;
}

.phone-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(44, 40, 37, 0.16);
  transform: translateX(-50%);
}

.phone-top {
  margin-top: 18px;
  color: rgba(74, 68, 64, 0.72);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.scanner-preview {
  background: linear-gradient(180deg, #27221d, #16120f);
  color: var(--background);
}

.scanner-preview .phone-top,
.scanner-preview p {
  color: rgba(245, 240, 232, 0.75);
}

.mini-ring {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin: 74px auto 36px;
  border: 1px solid rgba(196, 147, 122, 0.65);
  border-radius: 50%;
}

.mini-ring svg {
  width: 68px;
  fill: none;
  stroke: rgba(245, 240, 232, 0.52);
  stroke-width: 1;
}

.reading-preview {
  min-height: 460px;
  transform: translateY(-24px);
}

.line-pill {
  width: 78%;
  margin: 54px auto 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgba(74, 68, 64, 0.72);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 12px 14px;
  text-align: center;
  text-transform: uppercase;
}

.line-pill + .line-pill {
  margin-top: 14px;
}

.line-pill.active {
  border-color: rgba(196, 147, 122, 0.45);
  color: var(--accent-deep);
}

.reading-preview p,
.results-preview p,
.scanner-preview p {
  text-align: center;
}

.results-preview h3 {
  margin-top: 76px;
  text-align: center;
}

.result-bars {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.result-bars span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(196, 147, 122, 0.26);
}

.result-bars span:nth-child(2) {
  width: 74%;
}

.result-bars span:nth-child(3) {
  width: 52%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 218px;
  padding: 24px;
}

.feature-grid h3 {
  font-size: 24px;
}

.feature-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.feature-grid article.coming-soon {
  background: rgba(237, 230, 217, 0.48);
}

.feature-grid article.coming-soon h3,
.feature-grid article.coming-soon p {
  color: rgba(74, 68, 64, 0.76);
}

.privacy {
  padding-top: 22px;
}

.privacy-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}

.privacy-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.75;
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 48vh;
  padding: 64px 24px;
  text-align: center;
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 34px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
  color: rgba(74, 68, 64, 0.58);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
}

.footer-nav a {
  color: rgba(74, 68, 64, 0.72);
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--accent-deep);
}

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px clamp(22px, 7vw, 64px) 88px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 56px;
  color: rgba(74, 68, 64, 0.72);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.legal-page .back-link:hover {
  color: var(--accent-deep);
}

.legal-page > .eyebrow {
  margin-bottom: 14px;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 88px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.legal-page .last-updated {
  margin: 0 0 56px;
  color: rgba(74, 68, 64, 0.6);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 56px 0 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text);
}

.legal-page p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-soft);
}

.legal-page strong {
  font-weight: 400;
  color: var(--text);
}

.legal-page ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.legal-page ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-soft);
}

.legal-page ul li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 6px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.legal-page a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.legal-page a:hover {
  color: var(--accent);
}

@media (max-width: 680px) {
  .legal-page {
    padding: 110px 22px 64px;
  }

  .legal-page .back-link {
    margin-bottom: 40px;
  }

  .legal-page h2 {
    margin-top: 44px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -56;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-row {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand-mark span {
    font-size: 24px;
  }

  .nav-cta {
    padding: 10px 14px;
  }

  .hero {
    padding: 92px 20px 44px;
  }

  .hero h1 {
    font-size: clamp(72px, 24vw, 112px);
  }

  .subword,
  .eyebrow {
    letter-spacing: 0.32em;
  }

  .button {
    width: 100%;
  }

  .steps,
  .feature-grid,
  .phone-row {
    grid-template-columns: 1fr;
  }

  .phone-card,
  .reading-preview {
    min-height: 360px;
    transform: none;
  }

  .section {
    padding: 62px 20px;
  }

  .step-card,
  .feature-grid article {
    min-height: auto;
  }

  .corner-ornament {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
