/* Owl Aby marketing site — shared styles.
   Warm Dusk palette, Newsreader serif headlines + DM Sans body. */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:          #F2E8D5;
  --bg-soft:     #F6ECD7;
  --surface:     #FBF6EC;
  --surface-2:   #EFE3CB;
  --ink:         #2A1F33;
  --ink-2:       #48394F;
  --muted:       #7A6E70;
  --line:        rgba(42, 31, 51, 0.10);
  --line-2:      rgba(42, 31, 51, 0.18);
  --primary:     #2E7A75;
  --primary-ink: #FBF6EC;
  --accent:      #C66A4A;
  --gold:        #D9A05B;
  --sky:         #A9C7C4;
  --plum:        #6B3F75;

  --radius-sm:   14px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  --maxw:        1180px;
  --gutter:      24px;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ── Page chrome ─────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 10% -10%, var(--surface) 0%, transparent 55%),
    radial-gradient(900px 700px at 110% 0%, #f1e1c2 0%, transparent 55%),
    linear-gradient(180deg, #f3ecdc 0%, #ebe2cf 100%);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ── Layout helpers ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  padding: 14px 0;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(243, 236, 220, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nav-links {
  display: flex; gap: 4px;
  margin-left: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(42,31,51,0.06); color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(42,31,51,0.08); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-cta .btn { white-space: nowrap; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 0 18px; height: 46px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .12s ease, opacity .15s, background .15s, color .15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent  { background: var(--primary); color: var(--primary-ink); }
.btn-accent:hover { background: #25655F; }
.btn-soft    { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--surface-2); }
.btn-ghost   { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(42,31,51,0.06); }
.btn-lg { height: 56px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ── Typography ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}

.h-display, .h-display-lg {
  font-family: var(--serif); font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.h-display    { font-size: clamp(40px, 6.5vw, 72px); }
.h-display-lg { font-size: clamp(48px, 7.5vw, 88px); }

.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0; color: var(--ink);
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
}
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.lead {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  font-weight: 400; max-width: 56ch;
}
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* ── Tags / pills ────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-premium { background: rgba(217, 160, 91, 0.20); color: #8A5A1A; }
.tag-free    { background: rgba(46, 122, 117, 0.15); color: var(--primary); }
.tag-new     { background: rgba(198, 106, 74, 0.15); color: var(--accent); }
.tag-soon    { background: rgba(122, 110, 112, 0.15); color: var(--ink-2); }

/* ── Card ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 14px 28px -24px rgba(0,0,0,0.18);
}
.card-soft {
  background: rgba(251, 246, 236, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.card-ink {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-lg); padding: 28px;
}

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 84px 0; }
section.tight   { padding: 48px 0; }
section.loose   { padding: 120px 0; }
section.hero    { padding: 72px 0 96px; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
  section.loose { padding: 72px 0; }
  section.hero { padding: 40px 0 64px; }
}

.section-head {
  max-width: 720px; margin: 0 0 48px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; }
.section-head.center {
  margin-left: auto; margin-right: auto; text-align: center;
}
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── Grid helpers ────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Hero (home) ─────────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat { min-width: 140px; }
.hero-stat .num {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.hero-stat .lab {
  font-size: 12.5px; color: var(--muted); margin-top: 2px;
}

/* ── Phone visual (decorative mock) ──────────────────────────────── */
.phone-mock {
  width: 100%; max-width: 380px;
  aspect-ratio: 402 / 874;
  margin-left: auto;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, #2A1F33 0%, #3a2d44 45%, #2E7A75 130%);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 40px 80px -36px rgba(42, 31, 51, 0.35),
    0 0 0 1px var(--line);
  overflow: hidden;
}
.phone-mock::before {
  /* simulated starfield */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(251, 241, 210, 0.85) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(251, 241, 210, 0.6) 1px, transparent 1.5px);
  background-position: 22% 18%, 70% 30%;
  background-size: 240px 240px, 180px 180px;
}
.phone-mock-bezel {
  position: absolute; inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  padding: 28px 22px;
  color: #F4ECDF;
}
.phone-mock-eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.phone-mock-title {
  font-family: var(--serif); font-size: 26px;
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 8px;
}
.phone-mock-text {
  margin-top: 12px;
  font-family: var(--serif); font-size: 15px;
  line-height: 1.5; color: rgba(244, 236, 223, 0.85);
}
.phone-mock-cta {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--gold);
}
.phone-mock-cta .play {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Feature card ────────────────────────────────────────────────── */
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 26px -24px rgba(0,0,0,0.16);
  height: 100%;
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-ink);
  background: var(--primary);
  margin-bottom: 18px;
}
.feat-icon.gold   { background: var(--gold); color: var(--ink); }
.feat-icon.accent { background: var(--accent); color: var(--primary-ink); }
.feat-icon.plum   { background: var(--plum); color: var(--primary-ink); }
.feat h3 { margin: 0; font-size: 19px; }
.feat p  { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ── Feature row (alternating image / text) ──────────────────────── */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feat-row:first-of-type { border-top: 0; padding-top: 16px; }
.feat-row.flip { direction: rtl; }
.feat-row.flip > * { direction: ltr; }
.feat-row .text .eyebrow { color: var(--primary); }
.feat-row .text h2 { margin-top: 14px; }
.feat-row .text p  { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 46ch; }
.feat-row .text ul {
  margin-top: 18px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.feat-row .text li {
  display: flex; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.feat-row .text li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 122, 117, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232E7A75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

@media (max-width: 880px) {
  .feat-row, .feat-row.flip { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
}

/* ── Scene visuals (illustrative panels) ─────────────────────────── */
.scene {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 22px 40px -26px rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}
.scene .moon {
  position: absolute; top: 12%; right: 14%;
  width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBF1D2 0%, #E8C284 100%);
  box-shadow: 0 0 60px rgba(251, 241, 210, 0.4);
}
.scene .hills {
  position: absolute; left: 0; right: 0; top: 52%; height: 26%;
  clip-path: polygon(0 100%, 0 60%, 18% 30%, 32% 55%, 50% 25%, 70% 60%, 90% 30%, 100% 65%, 100% 100%);
}
.scene .ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
}
.scene-dusk {
  background: linear-gradient(180deg, #F2A57A 0%, #F4D9B8 62%, #D89368 62%, #D89368 100%);
}
.scene-dusk .hills { background: rgba(167, 85, 63, 0.45); }
.scene-night {
  background: linear-gradient(180deg, #2C2A52 0%, #4F4878 62%, #221E37 62%, #221E37 100%);
}
.scene-night .hills { background: rgba(127, 209, 196, 0.30); }
.scene-school {
  background: linear-gradient(180deg, #FAE3C2 0%, #F5D49A 62%, #A7C29B 62%, #A7C29B 100%);
}
.scene-school .hills { background: rgba(91, 140, 112, 0.45); }
.scene-meadow {
  background: linear-gradient(180deg, #C9E2E6 0%, #E8F0D6 62%, #9DC382 62%, #9DC382 100%);
}
.scene-meadow .hills { background: rgba(63, 108, 86, 0.35); }
.scene-stars { position: absolute; inset: 0; }
.scene-stars span {
  position: absolute; width: 3px; height: 3px;
  background: #FBF1D2; border-radius: 50%;
  box-shadow: 0 0 10px #FBF1D2;
}

.scene .schoolhouse {
  position: absolute; right: 18%; bottom: 30%; width: 18%;
}
.scene .schoolhouse .roof,
.scene .schoolhouse .wall,
.scene .schoolhouse .door,
.scene .schoolhouse .win,
.scene .schoolhouse .chim {
  position: absolute;
}
.scene .schoolhouse .wall { left: 0; right: 0; bottom: 0; height: 70%; background: #C97048; border-radius: 4px; }
.scene .schoolhouse .roof { left: -8%; right: -8%; bottom: 70%; height: 35%;
  background: #A7553F; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.scene .schoolhouse .door { left: 38%; right: 38%; bottom: 16%; height: 32%; background: #FBE5B5; border-radius: 4px 4px 0 0; }
.scene .schoolhouse .win  { left: 12%; bottom: 30%; width: 18%; height: 18%; background: #FBE5B5; border-radius: 2px; }
.scene .schoolhouse .win.r{ left: 70%; }
.scene .schoolhouse .chim { left: 42%; bottom: 95%; width: 9%; height: 18%; background: #5B8C70; }

.scene .fox-anchor {
  position: absolute; bottom: 4%; left: 0; right: 0;
  display: flex; justify-content: center;
}
.scene .fox-anchor svg { width: 30%; height: auto; max-width: 160px; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 22px 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.timeline-step { text-align: center; position: relative; }
.timeline-step .dot {
  width: 14px; height: 14px; border-radius: 50%; margin: 0 auto;
}
.timeline-step.active .dot { box-shadow: 0 0 0 5px rgba(46, 122, 117, 0.18); }
.timeline-step + .timeline-step::before {
  content: ''; position: absolute; left: -50%; right: 50%; top: 6px;
  height: 2px; background: var(--line-2);
}
.timeline-step .when { font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.timeline-step .what { font-size: 13.5px; color: var(--ink); margin-top: 2px; }

.plan-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.plan.featured {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(42, 31, 51, 0.06);
}
.plan .badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--gold); color: var(--ink);
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan .price {
  display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px;
}
.plan .price .amt {
  font-family: var(--serif); font-size: 44px; font-weight: 500;
  letter-spacing: -0.025em; color: var(--ink); line-height: 1;
}
.plan .price .per { font-size: 14px; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: 13.5px; }
.plan ul { margin: 22px 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li {
  display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
}
.plan li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 122, 117, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232E7A75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.plan li.off { color: var(--muted); }
.plan li.off::before {
  background: transparent; border: 1.5px solid var(--line-2); background-image: none;
}
.plan .btn { width: 100%; }

/* ── Compare matrix (free vs premium) ────────────────────────────── */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
}
.compare-col { padding: 24px; }
.compare-col.dark { background: var(--ink); color: var(--bg); }
.compare-col h4 {
  margin: 0; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.compare-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.compare-col li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.compare-col.dark li { color: rgba(251, 246, 236, 0.85); }
.compare-col li.off { opacity: 0.5; }
.check-dot {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 122, 117, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232E7A75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.compare-col.dark .check-dot {
  background: rgba(232, 181, 116, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23E8B574' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}
.check-dot.off {
  background: transparent; border: 1.5px solid var(--line-2); background-image: none;
}
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* ── Testimonials ────────────────────────────────────────────────── */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}
.quote .text {
  font-family: var(--serif); font-size: 18.5px; line-height: 1.5;
  color: var(--ink); letter-spacing: -0.005em;
  flex: 1;
}
.quote .who {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.quote .who .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--primary-ink);
}
.quote .who .name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.quote .who .role { font-size: 12px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: background .15s;
}
.faq details[open] { background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232A1F33' stroke-width='1.8' stroke-linecap='round' d='M8 4v8M4 8h8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--ink); }
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FBF6EC' stroke-width='1.8' stroke-linecap='round' d='M8 4v8M4 8h8'/%3E%3C/svg%3E");
}
.faq .answer {
  margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.6;
}

/* ── CTA band ────────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(46, 122, 117, 0.5) 0%, transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(198, 106, 74, 0.35) 0%, transparent 45%);
  opacity: 0.65;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--bg); }
.cta-band .lead { color: rgba(251, 246, 236, 0.78); margin: 14px auto 0; }
.cta-band .actions {
  margin-top: 28px; display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.cta-band .btn-primary { background: var(--gold); color: var(--ink); border-color: transparent; }
.cta-band .btn-primary:hover { background: #c98e4a; }
.cta-band .btn-ghost { color: var(--bg); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 640px) {
  .cta-band { padding: 44px 24px; }
}

/* ── Long-form (legal pages) ─────────────────────────────────────── */
.longform {
  max-width: 760px; margin: 0 auto;
}
.longform h1 { margin-bottom: 8px; }
.longform .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 36px; }
.longform h2 {
  margin: 44px 0 12px;
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em;
}
.longform h3 {
  margin: 24px 0 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--ink);
}
.longform p {
  margin: 0 0 14px;
  color: var(--ink-2); font-size: 16px; line-height: 1.7;
}
.longform ul, .longform ol {
  margin: 0 0 16px 0; padding-left: 22px;
}
.longform li {
  color: var(--ink-2); font-size: 16px; line-height: 1.7;
  margin-bottom: 6px;
}
.longform strong { color: var(--ink); font-weight: 600; }
.longform a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
}
.longform a:hover { color: var(--ink); }
.longform .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 36px;
}
.longform .toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.longform .toc ol {
  margin: 0; padding-left: 18px; columns: 2; column-gap: 24px;
}
.longform .toc li { margin: 0 0 6px; font-size: 14px; }
.longform .toc a { color: var(--ink-2); text-decoration: none; }
.longform .toc a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 640px) { .longform .toc ol { columns: 1; } }

/* ── Trust strip ─────────────────────────────────────────────────── */
.trust {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px; color: var(--muted);
}
.trust .sep { color: var(--line-2); }
.trust strong { color: var(--ink); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  margin-top: 24px;
  padding: 64px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .nav-brand { font-size: 24px; }
.footer-brand p {
  margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 36ch; line-height: 1.55;
}
.footer-col h4 {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Mark icon helper ────────────────────────────────────────────── */
.owlmark {
  display: inline-block; width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1F33'%3E%3Cpath d='M19 14.5A7.5 7.5 0 1 1 9.5 5a6 6 0 0 0 9.5 9.5z'/%3E%3Ccircle cx='5.5' cy='5.5' r='0.9'/%3E%3Ccircle cx='20' cy='8' r='0.6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ── Misc utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.muted-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.muted-link:hover { color: var(--ink); }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Focus rings */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── App Store badge ─────────────────────────────────────────────── */
.app-badges {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.app-badge {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .14s ease, opacity .15s, box-shadow .15s;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,0.35);
  line-height: 0;
}
.app-badge:hover { transform: translateY(-1px); opacity: .94; box-shadow: 0 10px 20px -10px rgba(0,0,0,0.4); }
.app-badge:active { transform: translateY(0); }
.app-badge svg {
  display: block;
  height: 56px;
  width: auto;
}
@media (max-width: 480px) {
  .app-badge svg { height: 50px; }
  .app-badges { gap: 10px; }
}
/* Used after a badge row to hint at the alternative web demo */
.app-badges-foot {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.app-badges-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.app-badges-foot a:hover { color: var(--primary); }

/* "Available on" inline label used in plan cards */
.plan-stores {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plan-stores .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

/* ── Auth pages (sign-in / forgot password / reset) ──────────────── */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 80px;
}
.auth-container {
  width: 100%;
  max-width: 440px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 24px 50px -28px rgba(0,0,0,0.22);
}
.auth-card .h1 { margin-top: 14px; font-size: clamp(28px, 4vw, 36px); }
.auth-card .lead { margin-top: 14px; font-size: 15.5px; line-height: 1.55; max-width: none; }

.auth-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.form-field label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.form-field .helper {
  font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45;
}

input[type=email],
input[type=password],
input[type=text] {
  width: 100%; height: 52px; padding: 0 16px;
  border: 0.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
input[type=email]:focus,
input[type=password]:focus,
input[type=text]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(42,31,51,0.08);
  background: var(--surface);
}
input::placeholder { color: var(--muted); opacity: 0.55; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 34px; padding: 0 14px;
  border: none; background: transparent;
  color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background .12s, color .12s;
}
.password-toggle:hover { background: rgba(42,31,51,0.06); color: var(--ink); }

.btn.full { width: 100%; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.auth-divider span { text-transform: uppercase; font-weight: 600; }

.auth-social {
  display: flex; flex-direction: column; gap: 10px;
}
.auth-social .btn {
  justify-content: flex-start;
  gap: 12px;
  padding-left: 22px;
}
.auth-social .btn svg { flex-shrink: 0; }

.auth-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.auth-foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-foot a:hover { color: var(--primary); }

.auth-status {
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: none;
  line-height: 1.5;
}
.auth-status.show { display: block; }
.auth-status.ok {
  background: rgba(46,122,117,0.12);
  color: var(--primary);
  border: 0.5px solid rgba(46,122,117,0.25);
}
.auth-status.err {
  background: rgba(198,106,74,0.12);
  color: var(--accent);
  border: 0.5px solid rgba(198,106,74,0.25);
}
.auth-status .spin {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; vertical-align: -3px; margin-right: 8px;
  animation: lullaSpin .8s linear infinite;
}
@keyframes lullaSpin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
  .auth-page { padding: 32px 12px 64px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
