/* Earthbound Tarot — website
 * Tokens mirror the app's design system (Tarot/DESIGN.md):
 * 80% neutral paper, 15% forest green, 5% gold. Flat surfaces, hairline
 * borders, no drop shadows. Motion is a fade, except the card flip. */

:root {
  color-scheme: light;

  --deep-forest: #263522;
  --forest: #3F5132;
  --sage: #7D8968;
  --olive: #596342;
  --umber: #5A4432;
  --terracotta: #A9684F;
  --cream: #E8D7B7;
  --parchment: #DCC7A1;
  --gold: #B08A52;
  --gold-soft: #D2B57F;
  --charcoal: #30291F;
  --soft-white: #F5EBDD;

  --paper: #E9DCC4;         /* page */
  --paper-hero: #E4D4BA;    /* matches the hero artwork's sky */
  --panel: #F3EADA;
  --panel-2: #EEE2CC;
  --ink: #2B2317;
  --ink-soft: #5A4432;
  --ink-mute: #7A6650;
  --rule: rgba(90, 68, 50, 0.20);
  --rule-strong: rgba(90, 68, 50, 0.34);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-card: 5px;
  --r-btn: 11px;
  --r-input: 12px;
  --r-panel: 14px;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--deep-forest);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--deep-forest); color: var(--soft-white);
  padding: 10px 16px; border-radius: var(--r-btn);
}
.skip:focus { left: 8px; }

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

/* ------------------------------------------------------------ type --- */

.eyebrow {
  font: 500 11.5px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow svg { width: 13px; height: 13px; color: var(--gold); flex: none; }

.h-xl { font-size: clamp(44px, 7.4vw, 92px); font-weight: 500; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(34px, 4.6vw, 56px); }
.h-md { font-size: clamp(26px, 2.8vw, 34px); }
.h-sm { font-size: 23px; }
.serif-i { font-family: var(--serif); font-style: italic; }

.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }

/* ----------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(228, 212, 186, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .26s ease, background-color .26s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); background: rgba(233, 220, 196, 0.92); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep-forest); }
.brand:hover { color: var(--deep-forest); }
.brand img { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--rule); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 500 21px/1 var(--serif); letter-spacing: 0.14em; }
.brand-word small { font: 500 9.5px/1 var(--sans); letter-spacing: 0.62em; color: var(--ink-soft); margin-top: 5px; padding-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink-soft);
  font: 500 14px/1 var(--sans);
  padding: 10px 12px; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep-forest); background: rgba(176, 138, 82, 0.12); }
.nav .btn { margin-left: 8px; }

.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--deep-forest);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 18px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a:hover { background: transparent; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-bottom: 0; border-radius: var(--r-btn); }
}

/* ---------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 14.5px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  border-radius: var(--r-btn); border: 1px solid transparent;
  padding: 12px 18px;
  transition: background-color .2s, color .2s, border-color .2s, opacity .09s;
}
.btn:active { opacity: .82; }
.btn-primary { background: var(--forest); color: var(--soft-white); }
.btn-primary:hover { background: var(--deep-forest); color: var(--soft-white); }
.btn-ghost { background: transparent; color: var(--umber); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--deep-forest); }
.btn-gold { background: transparent; color: var(--gold-soft); border-color: rgba(210, 181, 127, .55); }
.btn-gold:hover { border-color: var(--gold-soft); color: var(--soft-white); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 9px 20px 9px 16px;
  border-radius: 12px; text-decoration: none;
  background: var(--deep-forest); color: var(--soft-white);
  border: 1px solid var(--deep-forest);
  transition: background-color .2s, border-color .2s;
}
.store:hover { background: #1B2718; color: var(--soft-white); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font: 500 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.store b { font: 600 18px/1.15 var(--sans); letter-spacing: -0.005em; }
.store.soon {
  background: transparent; color: var(--ink-soft);
  border: 1px dashed var(--rule-strong); cursor: default;
}
.store.soon:hover { background: transparent; color: var(--ink-soft); }
.on-dark .store { background: var(--soft-white); color: var(--deep-forest); border-color: var(--soft-white); }
.on-dark .store:hover { background: #fff; color: var(--deep-forest); }
.on-dark .store.soon { background: transparent; color: var(--parchment); border-color: rgba(220, 199, 161, .4); }

/* ------------------------------------------------------------ hero --- */

.hero { background: var(--paper-hero); position: relative; isolation: isolate; }
.hero-copy { text-align: center; padding: clamp(40px, 7vw, 84px) 0 0; position: relative; z-index: 2; }
.hero-copy .sigil { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--gold); }
.hero-copy h1 { margin: 14px auto 0; max-width: 11ch; }
.hero-copy .lede { max-width: 560px; margin: 20px auto 0; }
.hero-copy .stores { justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); }

.hero-art {
  position: relative; margin-top: clamp(-40px, -3vw, -10px);
  height: clamp(300px, 40vw, 600px);
  overflow: hidden;
}
.hero-art > img.land {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%);
}
.hero-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to bottom, rgba(38, 53, 34, 0), var(--deep-forest));
  pointer-events: none;
}
.fan {
  position: absolute; left: 50%; bottom: 9%; z-index: 2;
  display: flex; transform: translateX(-50%);
}
.fan img {
  width: clamp(76px, 9.5vw, 136px); aspect-ratio: 297 / 519; object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid rgba(176, 138, 82, .7);
  background: var(--cream);
}
.fan img:nth-child(1) { transform: rotate(-11deg) translate(18%, 7%); }
.fan img:nth-child(2) { transform: translateY(-4%); position: relative; z-index: 1; }
.fan img:nth-child(3) { transform: rotate(11deg) translate(-18%, 7%); }

/* Hero sparkles */
.spark { position: absolute; color: var(--gold); opacity: .75; z-index: 1; pointer-events: none; }
.spark svg { width: 100%; height: 100%; }

/* --------------------------------------------------------- trust bar --- */

.trust { background: var(--deep-forest); color: var(--parchment); }
.trust ul {
  list-style: none; margin: 0; padding: 22px 0 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px;
}
.trust li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.35; }
.trust svg { width: 22px; height: 22px; color: var(--gold-soft); flex: none; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- sections --- */

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 700px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.alt { background: var(--panel-2); }
.dark { background: var(--deep-forest); color: var(--parchment); }
.dark h2, .dark h3 { color: var(--soft-white); }
.dark .eyebrow { color: var(--gold-soft); }
.dark .lede { color: #CDBB98; }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 22px auto 0; }
.divider::before, .divider::after { content: ""; width: 64px; height: 1px; background: currentColor; opacity: .7; }
.divider i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* Split layout: copy + visual */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.points svg { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.points b { display: block; font: 500 21px/1.2 var(--serif); color: var(--deep-forest); margin-bottom: 3px; }
.points p { color: var(--ink-soft); font-size: 15.5px; }

.quote {
  margin: 32px 0 0; padding: 18px 0 0 22px;
  border-left: 1px solid var(--gold);
  font: italic 400 23px/1.4 var(--serif); color: var(--umber);
}

/* Phone mockup */
.phone {
  width: min(310px, 78vw); margin: 0 auto;
  border-radius: 40px; padding: 10px;
  background: var(--deep-forest);
  border: 1px solid #1A2517;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 12px; background: #141c12; z-index: 2;
}
.phone img { width: 100%; aspect-ratio: 1080 / 1920; object-fit: cover; object-position: top; border-radius: 31px; background: var(--cream); }

.visual { position: relative; }
.visual .illus {
  position: absolute; width: clamp(120px, 15vw, 180px);
  pointer-events: none;
}

/* Illustration panel */
.illus-panel {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.illus-panel img.big { width: min(300px, 70%); }

/* Journal mock entry */
.entry {
  width: 100%; max-width: 420px; margin-top: 8px;
  background: var(--soft-white); border: 1px solid var(--rule); border-radius: var(--r-panel);
  padding: 20px 22px;
}
.entry-head { display: flex; align-items: center; gap: 14px; }
.entry-head img { width: 46px; border-radius: 3px; border: 1px solid var(--rule); }
.entry-head b { font: 500 21px/1.1 var(--serif); color: var(--deep-forest); display: block; }
.entry-head small { font-size: 12px; color: var(--ink-mute); letter-spacing: .04em; }
.entry p { margin-top: 12px; font: italic 400 18px/1.5 var(--serif); color: var(--umber); }
.entry .reflect {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-strong);
  font: 400 14px/1.55 var(--sans); color: var(--ink-soft); font-style: normal;
}
.entry .reflect em { font-style: normal; font-weight: 500; color: var(--olive); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* --------------------------------------------- colourise card row --- */

.deck-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.4vw, 18px);
  margin-top: 56px;
}
.ccard { position: relative; aspect-ratio: 297 / 519; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--rule-strong); background: var(--cream); }
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccard .gray { filter: grayscale(1) sepia(.28) contrast(.86) brightness(1.06); opacity: .78; }
.ccard .color { clip-path: inset(0 100% 0 0); transition: clip-path .85s cubic-bezier(.45, .05, .3, 1); }
.ccard.lit { border-color: var(--gold); }
.ccard.lit .color { clip-path: inset(0 0 0 0); }
.ccard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font: 500 13px/1.2 var(--serif); color: var(--soft-white); text-align: center; background: linear-gradient(to top, rgba(38, 53, 34, .82), rgba(38, 53, 34, 0)); opacity: 0; transition: opacity .3s; }
.ccard:hover figcaption { opacity: 1; }
@media (max-width: 720px) {
  .deck-row { grid-template-columns: repeat(4, 1fr); }
  .deck-row .ccard:nth-child(n+5) { display: none; }
}

.progress {
  max-width: 460px; margin: 34px auto 0; text-align: center;
  font-size: 13.5px; color: var(--ink-soft);
}
.bar { height: 4px; border-radius: 2px; background: var(--rule); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .9s ease; }

/* ------------------------------------------------------- spread mock --- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode {
  border-radius: var(--r-panel); padding: 24px;
  background: var(--panel); border: 1px solid var(--rule);
}
.mode.adv { background: var(--deep-forest); border-color: var(--deep-forest); color: var(--parchment); }
.mode.adv h3 { color: var(--soft-white); }
.mode h3 { font-size: 26px; }
.mode .count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-top: 6px; }
.mode.adv .count { color: var(--gold-soft); }
.mode p { font-size: 15px; margin-top: 12px; color: var(--ink-soft); }
.mode.adv p { color: #CDBB98; }

.cross {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto);
  gap: 10px; justify-items: center; align-items: center;
  width: min(360px, 100%); margin: 0 auto;
}
.slot { width: 100%; max-width: 92px; text-align: center; }
.slot .back { aspect-ratio: 297 / 519; border-radius: var(--r-card); }
.slot span { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.25; color: var(--ink-soft); }
.slot.s1 { grid-area: 2 / 1; } .slot.s2 { grid-area: 2 / 2; } .slot.s3 { grid-area: 2 / 3; }
.slot.s4 { grid-area: 3 / 2; } .slot.s5 { grid-area: 1 / 2; }

/* Card back, drawn rather than photographed */
.back {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 30%, #2C3C33 0%, #1C2620 70%);
  border: 1px solid #B08A52;
}
.back::before {
  content: ""; position: absolute; inset: 5%;
  border: 1px solid rgba(210, 181, 127, .55); border-radius: 3px;
}
.back svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-soft); }

/* ----------------------------------------------------- feature tiles --- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.tile {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 18px;
  padding: 28px 28px 30px; display: flex; flex-direction: column;
}
.tile img { width: 150px; height: 150px; object-fit: contain; margin: -6px auto 14px; }
.tile .eyebrow { justify-content: center; }
.tile h3 { font-size: 28px; margin-top: 8px; text-align: center; }
.tile p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; text-align: center; }

/* ------------------------------------------------------- draw a card --- */

.draw { display: grid; grid-template-columns: 340px 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin-top: 56px; }
@media (max-width: 820px) { .draw { grid-template-columns: 1fr; justify-items: center; } }

.flip-wrap { perspective: 1400px; width: min(280px, 72vw); }
.flip {
  position: relative; width: 100%; aspect-ratio: 297 / 519;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .1, .25, 1);
  cursor: pointer; border: 0; padding: 0; background: none; display: block;
  border-radius: var(--r-card);
}
.flip.flipped { transform: rotateY(180deg); }
.flip .face, .flip .back {
  position: absolute; inset: 0; border-radius: var(--r-card);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip .face { transform: rotateY(180deg); background: var(--cream); border: 1px solid var(--gold); overflow: hidden; }
.flip .face img { width: 100%; height: 100%; object-fit: cover; transition: transform .01s; }
.flip .face.rev img { transform: rotate(180deg); }
.flip-hint { text-align: center; margin-top: 16px; font: italic 400 18px/1.3 var(--serif); color: var(--gold-soft); }

.reading { min-height: 300px; }
.reading .placeholder { font: italic 400 clamp(24px, 2.6vw, 30px)/1.35 var(--serif); color: #CDBB98; max-width: 520px; }
.reading h3 { font-size: clamp(36px, 4vw, 48px); }
.reading .meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.reading .kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.reading .kw li { font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(210, 181, 127, .4); color: var(--parchment); }
.reading .text { margin-top: 20px; color: #E4D6BC; font-size: 16px; line-height: 1.7; max-width: 600px; }
.reading .text p + p { margin-top: 14px; }
.reading .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.reading .fine { margin-top: 18px; font-size: 13.5px; color: #A9997B; max-width: 560px; }
.fade-in { animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------- gallery --- */

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 22px; margin-top: 48px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; aspect-ratio: 1242 / 2688; object-fit: cover; border-radius: 18px; border: 1px solid var(--rule); background: var(--cream); }
.gallery-wrap { position: relative; max-width: 1400px; margin: 0 auto; }
.g-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.g-nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--deep-forest);
  display: grid; place-items: center; transition: border-color .2s, background-color .2s;
}
.g-nav button:hover { border-color: var(--gold); background: rgba(176, 138, 82, .1); }
.g-nav svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------- privacy --- */

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }
.pcol { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 26px 26px 28px; }
.pcol h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.pcol h3 svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.pcol ul { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.pcol li { margin-top: 8px; }
.pcol li::marker { color: var(--gold); }

/* ----------------------------------------------------------- pricing --- */

.price {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border: 1px solid var(--rule-strong); border-radius: 18px; overflow: hidden;
  margin-top: 48px; background: var(--panel);
}
.price > div { padding: 28px 28px 30px; }
.price > div + div { border-left: 1px solid var(--rule); }
.price .big { font: 500 46px/1 var(--serif); color: var(--deep-forest); }
.price h3 { font-size: 23px; margin-top: 10px; }
.price p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 820px) {
  .price { grid-template-columns: 1fr; }
  .price > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* --------------------------------------------------------------- faq --- */

.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px;
  font: 500 clamp(21px, 2vw, 24px)/1.25 var(--serif); color: var(--deep-forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--gold); flex: none; transition: transform .26s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 2px 24px; color: var(--ink-soft); max-width: 700px; }
.faq .a p + p { margin-top: 10px; }
.faq details[open] .a { animation: fade .32s ease both; }

/* ------------------------------------------------------------- final --- */

.final { text-align: center; overflow: hidden; }
.final .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; border: 1px solid rgba(210, 181, 127, .5); }
.final .stores { justify-content: center; margin-top: 34px; }
.final .lede { max-width: 540px; margin: 18px auto 0; }

/* ------------------------------------------------------------ footer --- */

.site-footer { background: #1D2819; color: #B9A784; padding: 56px 0 36px; font-size: 14.5px; }
.site-footer a { color: #D9C8A5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--soft-white); }
.site-footer .brand-word small { color: #B9A784; }
.site-footer h4 { font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-about { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.foot-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(210, 181, 127, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 13px; color: #9C8B6C;
}
.foot-base p { max-width: 640px; }

/* ------------------------------------------------------------ reveal --- */

.reveal { opacity: 0; transition: opacity .7s ease; }
.reveal.in { opacity: 1; }
.no-js .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  .flip { transition-duration: .01s; }
  .ccard .color { transition: none; }
  .fade-in, .faq details[open] .a { animation: none; }
}

/* ---------------------------------------------------- simple pages --- */

.page-hero { background: var(--paper-hero); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(42px, 6vw, 68px); margin-top: 12px; }
.page-hero .lede { max-width: 580px; margin: 16px auto 0; }

.form { display: grid; gap: 16px; }
.form label { font: 500 13px/1.3 var(--sans); color: var(--umber); display: grid; gap: 7px; }
.form .opt { font-weight: 400; color: var(--ink-mute); }
.form textarea, .form input {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--soft-white); border: 1px solid var(--rule-strong); border-radius: var(--r-input);
  padding: 12px 14px; transition: border-color .2s;
}
.form textarea { min-height: 160px; resize: vertical; }
.form textarea:focus, .form input:focus { outline: none; border-color: var(--gold); }
.form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.form .count { font-size: 12.5px; color: var(--ink-mute); }
.status { font-size: 14.5px; padding: 12px 14px; border-radius: 10px; display: none; }
.status.ok { display: block; background: rgba(63, 81, 50, .1); color: var(--forest); border: 1px solid rgba(63, 81, 50, .25); }
.status.err { display: block; background: rgba(169, 104, 79, .1); color: #8A4E39; border: 1px solid rgba(169, 104, 79, .3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.help-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .help-grid { grid-template-columns: 1fr; } }
.card-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.card-panel h2 { font-size: 32px; }
.card-panel > p { margin-top: 10px; color: var(--ink-soft); }
.card-panel .form { margin-top: 22px; }
.contact-line { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }

.topics { display: grid; gap: 14px; }
.topic { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--soft-white); }
.topic h3 { font-size: 21px; }
.topic p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
