/* oakpad.app — plain CSS, no build step. Colours follow DESIGN.md (warm umber neutrals + Spring Lake accent). */
:root {
  --bg: oklch(0.232 0.013 82);
  --surface: oklch(0.272 0.013 82);
  --surface-2: oklch(0.306 0.014 82);
  --fg: oklch(0.925 0.035 88);
  --fg-muted: oklch(0.735 0.028 85);
  --fg-faint: oklch(0.66 0.02 85);
  --border: oklch(0.35 0.012 82);
  --accent: oklch(0.585 0.045 245);
  --accent-text: oklch(0.78 0.05 245);
  --gold: oklch(0.80 0.09 80);
  --success: oklch(0.70 0.09 130);
  --success-text: oklch(0.76 0.09 130);
  --check: oklch(0.76 0.09 130);
  --dot: oklch(0.42 0.012 82);
  --font: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 8px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(0.975 0.008 85);
    --surface: oklch(0.96 0.008 85);
    --surface-2: oklch(0.93 0.012 85);
    --fg: oklch(0.25 0.015 82);
    --fg-muted: oklch(0.43 0.018 82);
    --fg-faint: oklch(0.53 0.016 82);
    --border: oklch(0.82 0.014 85);
    --accent: oklch(0.50 0.048 245);
    --accent-text: oklch(0.47 0.07 245);
    --gold: oklch(0.50 0.10 70);
    --success: oklch(0.58 0.09 130);
    --success-text: oklch(0.465 0.09 130);
    --check: oklch(0.50 0.10 150);
    --dot: oklch(0.80 0.014 85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 14px;
}
.skip:focus { top: 12px; }

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

/* Header */
.top { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; }
.mark .nut { fill: var(--fg); }
.mark .cap { fill: var(--accent-text); }
.links { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.links a { color: var(--fg-muted); }
.links a:hover { color: var(--fg); }
.pill {
  font-size: 13px; color: var(--accent-text); border: 1px solid color-mix(in oklch, var(--accent) 60%, transparent);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}

/* Hero */
.hero { padding: 64px 24px 32px; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--fg-muted); margin-bottom: 16px; }
.hero h1 { font-size: 56px; line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 20px; }
.hero h1 .ai { display: block; color: var(--gold); }
.lead { font-size: 19px; color: var(--fg-muted); max-width: 640px; margin: 0 auto 26px; }
.badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 14px; color: var(--fg-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; }
.badge b { color: var(--fg); font-weight: 600; }

/* Illustration */
.shot-fig { margin: 48px auto 0; max-width: 880px; }
.shot {
  display: grid; grid-template-columns: 170px 1fr 250px; grid-template-rows: 36px 1fr;
  aspect-ratio: 16 / 10; text-align: left; font-size: 13px; line-height: 1.5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.titlebar { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.wintitle { margin-left: 10px; color: var(--fg-muted); font-size: 12px; }
.tree { border-right: 1px solid var(--border); padding: 12px 10px; color: var(--fg-muted); }
.tree div { padding: 3px 8px; border-radius: 4px; }
.tree .on { background: var(--surface-2); color: var(--fg); box-shadow: inset 1px 0 0 var(--accent); }
.ed { padding: 22px 28px; background: var(--bg); min-width: 0; }
.ed .h { font-size: 20px; font-weight: 650; margin-bottom: 12px; }
.ed p { font-size: 14px; }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 10px; }
.ask .m { color: var(--accent-text); }
.typed { white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0 8px 0 6px; background: var(--surface);
}
.chip .i { width: 13px; height: 13px; color: var(--success-text); stroke-width: 2; }
.ins {
  position: relative; display: flex; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 0 6px 6px 0;
  background: color-mix(in oklch, var(--success) 8%, transparent); box-shadow: inset 1px 0 0 var(--success);
}
.ins .plus { width: 14px; height: 14px; margin-top: 3px; color: var(--success-text); stroke-width: 2; }
.undo-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 14px; font-size: 12px; color: var(--fg);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px 3px 8px; background: var(--surface);
}
.undo-btn .i { width: 14px; height: 14px; }
.bullets { color: var(--fg-muted); font-size: 14px; }
.bullets li::before { content: "- "; }
.panel { border-left: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.panel .t { font-weight: 600; }
.bubble { background: var(--surface-2); border-radius: 6px; padding: 8px 10px; color: var(--fg-muted); }
.row { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; color: var(--fg-muted); }
.row .u { color: var(--accent-text); }
.shot-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--fg-muted); text-align: center; }

/* Trust strip */
.nots { padding-top: 40px; padding-bottom: 24px; }
.nots ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.nots li { border-top: 1px solid var(--border); padding-top: 14px; }
.nots b { display: block; font-size: 18px; margin-bottom: 4px; }
.nots span { color: var(--fg-muted); font-size: 14px; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 8px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; }
.sub { color: var(--fg-muted); font-size: 17px; margin-bottom: 14px; }
.center { text-align: center; }
.legend { color: var(--fg-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend .pro, .legend .soon-tag, .checks .soon-tag { vertical-align: 1px; margin-right: 4px; }
.grp { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); margin: 36px 0 14px; }

/* Tags */
.pro, .soon-tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 650; line-height: 18px;
  border-radius: 999px; padding: 0 8px; white-space: nowrap;
}
.pro {
  color: var(--accent-text); border: 1px solid var(--accent-text);
  background: color-mix(in oklch, var(--accent) 18%, transparent); letter-spacing: .04em; text-transform: uppercase;
}
.soon-tag { color: var(--fg-muted); border: 1px dashed var(--fg-faint); font-weight: 600; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.tile {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 14px;
  border-radius: 6px; background: var(--surface-2); color: var(--accent-text);
}
.pro-card .tile { color: var(--gold); }
.card h4 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.card p { color: var(--fg-muted); font-size: 15px; }
.card .tags { position: absolute; top: 20px; right: 16px; display: flex; gap: 6px; }
.privacy-line { margin-top: 18px; color: var(--fg-muted); font-size: 14px; max-width: 720px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 28px auto 0; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px;
}
.pro-tier { border-color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent); }
.includes {
  position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 650; color: var(--accent-text);
  background: color-mix(in oklch, var(--accent) 18%, transparent); border: 1px solid var(--accent-text);
  border-radius: 999px; padding: 0 8px; line-height: 18px;
}
.tier-name { font-size: 17px; font-weight: 600; }
.amt { font-size: 46px; font-weight: 700; line-height: 1.15; margin: 6px 0 2px; }
.amt small { font-size: 16px; color: var(--fg-muted); font-weight: 400; }
.amt-note { color: var(--fg); font-size: 15px; }
.fine { color: var(--fg-muted); font-size: 13px; margin-top: 6px; }
.checks { margin: 18px 0 22px; color: var(--fg-muted); }
.checks li { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.checks .i { width: 16px; height: 16px; margin-top: 4px; color: var(--check); stroke-width: 2; }
.status {
  margin-top: auto; text-align: center; font-size: 15px; color: var(--fg-muted);
  border: 1px dashed var(--fg-faint); border-radius: 6px; padding: 10px 18px;
}

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 2px; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--fg-muted); border-bottom: 1.5px solid var(--fg-muted); transform: rotate(45deg) translateY(-2px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { color: var(--fg-muted); padding: 0 2px 16px; max-width: 70ch; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 72px; padding-top: 28px; padding-bottom: 40px;
  border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 14px;
}
.foot .imprint { flex-basis: 100%; }
.foot .r { margin-left: auto; }

/* Two-column hero: product above the fold on wide screens. */
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; text-align: left; padding-top: 56px; }
  .hero h1 .s { display: block; }
  .lead { margin-left: 0; }
  .badges { justify-content: flex-start; }
  .shot-fig { margin: 0; max-width: none; }
  .shot { grid-template-columns: 140px 1fr 210px; }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(28px, 8.2vw, 52px); }
  .hero h1 .s { display: block; }
  .lead { font-size: 17px; }
  .shot { grid-template-columns: 1fr; grid-template-rows: 36px auto auto; aspect-ratio: auto; }
  .tree { display: none; }
  .ed { padding: 18px; }
  .panel { border-left: 0; border-top: 1px solid var(--border); }
  .nots ul { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 48px; }
  h2 { font-size: 26px; }
  .tiers { grid-template-columns: 1fr; }
  .foot .r { margin-left: 0; }
}

/* Mobile: features as a compact list, not cards. */
@media (max-width: 640px) {
  .top { gap: 14px; }
  .links { gap: 16px; }
  .pill { display: none; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card, .card.wide, .card.full {
    grid-column: auto; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px;
    background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 14px 0;
  }
  .tile { grid-row: 1 / span 3; margin: 0; }
  .card h4 { grid-column: 2; margin-bottom: 4px; }
  .card .tags { position: static; grid-column: 2; margin-bottom: 6px; }
  .card p { grid-column: 2; }
  .price { padding: 22px; }
  .includes { top: 20px; right: 20px; }
}

/* Motion: only when the visitor hasn't asked for less. Transform/opacity only (the typing reveal uses clip-path). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-text > *, .shot-fig { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .shot-fig { animation-delay: .24s; }

  .card, .price { transition: transform .18s ease-out; }
  .card:hover, .price:hover { transform: translateY(-2px); }

  /* ~8 s loop: type the ask, the paragraph appears, the chip pops, hold. Final frame = the static picture. */
  .typed { animation: type 8s infinite; }
  .ins, .undo-btn { animation: appear 8s infinite; }
  .undo-btn { animation-name: appear-late; }
  .chip { animation: pop 8s infinite; }
  .bubble, .row { animation: appear-panel 8s infinite; }

  @supports (animation-timeline: view()) {
    .card, .price, .grp, .faq details, .nots li {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes type {
  0%, 6% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(44, end); }
  32%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes appear {
  0%, 36% { opacity: 0; transform: translateY(6px); }
  44%, 92% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: none; }
}
@keyframes appear-late {
  0%, 42% { opacity: 0; transform: translateY(6px); }
  50%, 92% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: none; }
}
@keyframes pop {
  0%, 48% { opacity: 0; transform: scale(.6); }
  52% { opacity: 1; transform: scale(1.08); }
  56%, 92% { opacity: 1; transform: scale(1); }
  99%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes appear-panel {
  0%, 50% { opacity: 0; }
  58%, 92% { opacity: 1; }
  99%, 100% { opacity: 0; }
}
