/* ============================================================
   fairywren — public marketing site (shared styles)
   Identity: near-black canvas, single superb-fairywren cobalt
   accent (#4f6bff), Space Grotesk + JetBrains Mono, ONE easing.
   Premium SaaS, Aussie-professional, restrained motion.
   Shares the portal palette so the whole product feels one brand.
   ============================================================ */

:root {
  --bg:        #0a0b12;
  --bg-raise:  #10111b;
  --bg-card:   #14162200;
  --card:      #141626;
  --card-2:    #191c2e;
  --line:      #262a3d;
  --line-soft: #1d2030;
  --text:      #eef0f7;
  --text-dim:  #a6aac2;
  --text-mute: #767a95;

  --accent:      #4f6bff;
  --accent-hi:   #7d92ff;
  --accent-deep: #3a4fd6;
  --accent-glow: rgba(79, 107, 255, 0.22);

  --ok:      #3fcf8e;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1080px;
  --maxw-text: 760px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 620px at 82% -8%, rgba(79,107,255,0.12), transparent 62%),
    radial-gradient(900px 500px at 8% 4%, rgba(79,107,255,0.05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.wordmark .dot { color: var(--accent); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(10,11,18,0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(10,11,18,0.82); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 20px;
}
.nav .wordmark { font-size: 1.32rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: .95rem;
  font-weight: 500; transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .btn-sm { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links .nav-hide { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .92rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .28s var(--ease), border-color .28s var(--ease),
              transform .28s var(--ease), box-shadow .28s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: rgba(79,107,255,0.42);
}
.btn-ghost:hover { background: rgba(79,107,255,0.12); border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- sections ---------- */
section { position: relative; }
.section {
  padding: clamp(64px, 9vw, 116px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head { max-width: var(--maxw-text); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 0 0 .6em; }
h3 { font-size: 1.24rem; letter-spacing: -0.02em; margin: 0 0 .4em; }
.lead { color: var(--text-dim); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: var(--maxw-text); }

.mono-label {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  color: var(--accent-hi); margin: 0 0 1rem; font-weight: 500;
}

/* ---------- hero ---------- */
.hero { padding: clamp(76px, 12vw, 150px) 0 clamp(60px, 8vw, 104px); }
.hero .home-wordmark {
  font-size: clamp(3.2rem, 12vw, 6.6rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: .95;
  margin: 0;
}
.hero-tag {
  margin-top: 1.2rem;
  font-family: var(--font-mono); font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: .01em; color: var(--text);
}
.hero-sub {
  margin-top: 1.6rem; max-width: 620px;
  color: var(--text-dim); font-size: clamp(1.06rem, 2.3vw, 1.24rem);
}
.hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 1.5rem; font-family: var(--font-mono); font-size: .82rem;
  color: var(--text-mute); letter-spacing: .02em;
}

/* ---------- angle cards ---------- */
.angles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.angle {
  background: linear-gradient(180deg, var(--card), var(--bg-raise));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.angle:hover { border-color: var(--line); transform: translateY(-3px); }
.angle .num {
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent-hi);
  display: block; margin-bottom: .9rem;
}
.angle h3 { font-size: 1.28rem; }
.angle p { margin: .3rem 0 0; color: var(--text-dim); font-size: .98rem; }
.angle.span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .angles { grid-template-columns: 1fr; } }

/* ---------- steps (how it works) — a connected flow, no ordinal numbering ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.step {
  position: relative;
  border-left: 2px solid var(--accent-hi);
  padding: 4px 0 4px 22px;
}
/* arrow connector between cards signals sequence without any numbers */
.step:not(:last-child)::after {
  content: "\2192"; /* → */
  position: absolute; top: 2px; right: -14px;
  color: var(--accent-hi); font-family: var(--font-mono); font-size: 1rem; line-height: 1;
}
.step h3 { font-size: 1.12rem; margin-top: 0; }
.step p { margin: .3rem 0 0; color: var(--text-dim); font-size: .96rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  /* on stacked mobile, point the arrow downward at the card gap */
  .step:not(:last-child)::after { top: auto; right: auto; bottom: -18px; left: -1px; content: "\2193"; }
}

/* ---------- couple experience ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--text-dim); }
.feature-list li strong { color: var(--text); font-weight: 600; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,107,255,0.16);
}

/* mock gallery preview (pure CSS, no assets) */
.gallery-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0e17;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.gallery-mock .gm-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft); background: #101120;
}
.gallery-mock .gm-dot { width: 10px; height: 10px; border-radius: 999px; background: #2a2e44; }
.gallery-mock .gm-url {
  margin-left: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--text-mute);
}
.gallery-mock .gm-hero {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(79,107,255,0.18), transparent 60%),
    linear-gradient(160deg, #1a1c2e, #0c0d16);
  gap: .3rem;
}
.gallery-mock .gm-hero .gm-names { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.gallery-mock .gm-hero .gm-date { font-family: var(--font-mono); font-size: .72rem; color: var(--text-mute); }
.gallery-mock .gm-play {
  width: 46px; height: 46px; border-radius: 999px; margin-bottom: .4rem;
  background: rgba(255,255,255,0.9); display: grid; place-items: center;
}
.gallery-mock .gm-play::after { content: ""; border-left: 12px solid #0a0b12; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.gallery-mock .gm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.gallery-mock .gm-grid span { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(150deg, #20233a, #14162400 140%); background-color: #191c2e; }
.gallery-mock .gm-grid span:nth-child(3n) { background-color: #21243b; }
.gallery-mock .gm-credit { padding: 12px 16px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-mute); border-top: 1px solid var(--line-soft); }

/* ---------- callout / price teaser ---------- */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(79,107,255,0.14), transparent 55%),
    linear-gradient(180deg, var(--card), var(--bg-raise));
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}
.callout .price-hook {
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em;
  max-width: 680px; margin: 0 auto;
}
.callout .price-hook .amt { color: var(--accent-hi); }
.callout .btn { margin-top: 1.8rem; }

/* ---------- pricing page ---------- */
.ladder { margin-top: 10px; }
.ladder + .ladder { margin-top: clamp(48px, 7vw, 84px); }
.ladder-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 1.4rem; }
.ladder-head h2 { margin: 0; }
.ladder-head .meta { font-family: var(--font-mono); font-size: .82rem; color: var(--text-mute); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--bg-raise));
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tier:hover { border-color: var(--accent-deep); transform: translateY(-3px); }
.tier.featured { border-color: var(--accent-deep); box-shadow: 0 20px 60px -30px var(--accent-glow); }
.tier .tier-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.tier .tier-price { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; margin: .5rem 0 .1rem; }
.tier .tier-price .per { font-size: .95rem; color: var(--text-mute); font-weight: 400; font-family: var(--font-mono); letter-spacing: 0; }
.tier .tier-spec { font-family: var(--font-mono); font-size: .82rem; color: var(--accent-hi); margin-bottom: 1rem; }
.tier .tier-note { color: var(--text-dim); font-size: .93rem; margin-top: auto; padding-top: .8rem; }
.tier .tag {
  align-self: flex-start; margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--ok); border: 1px solid rgba(63,207,142,0.4); border-radius: 999px;
  padding: 3px 10px;
}

/* generic info cards row */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--bg-raise));
  padding: 28px 28px 30px;
}
.info-card h3 { font-size: 1.14rem; }
.info-card p { color: var(--text-dim); font-size: .96rem; margin: .3rem 0 0; }
.info-card .price-inline { color: var(--accent-hi); font-weight: 600; }

/* small data table (renewals / bonus ladder) */
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.data-table th { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; color: var(--text-mute); font-weight: 500; }
.data-table td.num { font-family: var(--font-mono); color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }

/* ---------- preset page ---------- */
.prose { max-width: var(--maxw-text); }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose ol, .prose ul { color: var(--text-dim); padding-left: 1.3em; }
.prose li { margin: .5em 0; }
.prose li strong { color: var(--text); }
.code-block {
  background: #0d0e18; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px 20px; overflow-x: auto; margin: 1.2em 0;
  font-family: var(--font-mono); font-size: .86rem; color: #cfd3ea; line-height: 1.7;
}
.callout-box {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(79,107,255,0.06);
  padding: 22px 24px; margin: 1.6em 0;
}
.callout-box h3 { margin-top: 0; }
.callout-box p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 56px;
  margin-top: 40px;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .wordmark { font-size: 1.05rem; }
.site-footer .foot-by { color: var(--text-mute); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--text-dim); font-size: .92rem; transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--text); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .angle, .tier { transition: none; }
}

/* footnote */
.footnote { color: var(--text-mute); font-size: .86rem; margin-top: 2rem; max-width: var(--maxw-text); }
.footnote strong { color: var(--text-dim); }
