/* withdonna.com — one stylesheet, no build step. Colours are theme tokens; dark mode swaps the tokens. */

:root {
  --lemon: #EDFF8D;
  --grass: #0A342B;
  --mint: #D0E1CA;
  --moon: #D8DFE9;
  --blue: #CBD6F2;
  --blueberry: #6181E2;

  --bg: #FBFFE8;
  --surface: #FFFFFF;
  --line: rgba(10, 52, 43, .12);
  --text: #0A342B;
  --muted: #4A5D53;
  --serif: #3E6B54;
  --accent: #0A342B;
  --on-accent: #EDFF8D;
  --nav: rgba(251, 255, 232, .86);
  --glow: rgba(237, 255, 141, .9);
  --shadow: rgba(10, 52, 43, .45);
  --chip: #EDFF8D;
  --chip-text: #0A342B;

  --doc-bg: #F4F7EC;
  --paper: #FFFFFF;
  --ink: #1C1E24;
  --user-bg: #0A342B;
  --user-fg: #FBFFE8;
  --input-bg: #F7F9F1;
  --focus-line: rgba(10, 52, 43, .45);
  --src-bg: #EDFF8D;
  --src-fg: #0A342B;
  --dot: #0A342B;
  --hl: rgba(237, 255, 141, .85);
  --ring: rgba(10, 52, 43, .25);

  --radius-lg: 28px;
  --radius-md: 22px;
  --wrap: 1200px;
  --sans: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141613;
  --surface: #1E201D;
  --line: rgba(237, 255, 141, .13);
  --text: #F2F5EA;
  --muted: #A9B3AA;
  --serif: #EDFF8D;
  --accent: #EDFF8D;
  --on-accent: #0A342B;
  --nav: rgba(20, 22, 19, .84);
  --glow: rgba(237, 255, 141, .16);
  --shadow: rgba(0, 0, 0, .75);
  --chip: rgba(237, 255, 141, .12);
  --chip-text: #EDFF8D;
  --doc-bg: #181A17;
  --paper: #262724;
  --ink: #E6E8E0;
  --user-bg: #2E302C;
  --user-fg: #F2F5EA;
  --input-bg: #232521;
  --focus-line: rgba(237, 255, 141, .55);
  --src-bg: rgba(237, 255, 141, .14);
  --src-fg: #EDFF8D;
  --dot: #EDFF8D;
  --hl: rgba(237, 255, 141, .22);
  --ring: rgba(237, 255, 141, .55);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; line-height: 1.04; }
p { margin: 0; }
em.serif, .serif { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); 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 { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blueberry); outline-offset: 3px; border-radius: 6px; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--serif); }
.section { padding-top: 120px; padding-bottom: 120px; }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 44px; }
.section-head h2, .h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); }
.section-head p { max-width: 560px; font-size: 17.5px; line-height: 1.6; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .3s ease, color .3s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: background-color .4s ease, border-color .4s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(10, 52, 43, .5); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .4s ease; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; color: var(--text); }
.logo { align-items: center; gap: 10px; text-decoration: none; }
.logo .app-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 0 rgba(10, 52, 43, .12); }
.logo .wordmark { height: 22px; width: auto; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 14.5px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color .4s ease; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { position: fixed; inset: 68px 0 auto 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; flex-direction: column; gap: 4px; box-shadow: 0 30px 40px -30px var(--shadow); }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { padding: 14px 4px; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -40px; width: 980px; max-width: 100%; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; transition: background .4s ease; }
.hero > * { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.pill span { padding: 3px 9px; border-radius: 999px; background: var(--lemon); color: var(--grass); }
.hero h1 { margin: 26px auto 0; max-width: 920px; font-weight: 700; font-size: clamp(40px, 6.8vw, 86px); line-height: 1; letter-spacing: -.045em; }
.hero h1 .serif { color: var(--serif); }
/* hero line: phrases take turns; letters rise in from a blur, then lift away */
.rotator { display: inline-grid; justify-items: center; }
.rotator .rot { grid-area: 1 / 1; white-space: nowrap; visibility: hidden; }
.rotator .rot.is-active, .rotator .rot.is-leaving { visibility: visible; }
.rotator .w { display: inline-block; white-space: nowrap; }
.rotator .ch { display: inline-block; }
.rotator .rot.is-active .ch { animation: chIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(340ms + var(--i) * 28ms); }
.rotator .rot.is-leaving .ch { animation: chOut .32s cubic-bezier(.6, 0, .8, .2) both; animation-delay: calc(var(--i) * 8ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes chOut { from { opacity: 1; transform: none; filter: none; } to { opacity: 0; transform: translateY(-.35em); filter: blur(6px); } }
@media (max-width: 520px) { .rotator .rot { white-space: normal; } }
.hero .lede { margin: 24px auto 0; max-width: 580px; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--muted); }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.load-in { animation: loadIn .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .32s; }
@keyframes loadIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* product shot: tilted back, straightens as it scrolls in (main.js sets --p from 0 to 1) */
.shot { max-width: 1240px; margin: 64px auto 0; padding: 0 16px; perspective: 1600px; }
.shot-frame { --p: 1; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p)) * 32deg)) scale(calc(.86 + .14 * var(--p))); opacity: calc(.55 + .45 * var(--p)); border-radius: 18px; overflow: hidden; box-shadow: 0 60px 120px -50px var(--shadow); will-change: transform; }
.js .shot-frame { --p: 0; }
.shot-frame img { width: 100%; height: auto; }
.shot-caption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- scroll reveal (main.js adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- statement ---------- */
.statement { max-width: 1100px; margin: 0 auto; padding: 120px 24px 40px; }
.statement p { font-size: clamp(24px, 3.4vw, 42px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.statement .dim { opacity: .5; }
/* the answer half: green on light, lemon on dark */
.statement .lit { color: #0A342B; opacity: .35; transition: opacity 1s ease .2s; }
:root[data-theme="dark"] .statement .lit { color: #EDFF8D; }
.statement.is-in .lit, .no-js .statement .lit { opacity: 1; }

/* ---------- features (auto-advancing tabs) ---------- */
.features { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.feat-list { flex: 1 1 340px; display: flex; flex-direction: column; gap: 6px; }
.feat-tab { position: relative; overflow: hidden; text-align: left; padding: 18px 20px 20px; border-radius: 18px; border: 1px solid transparent; background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background-color .3s ease, border-color .3s ease; }
.feat-tab:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.feat-tab .row { display: flex; align-items: center; gap: 12px; }
.feat-tab .num { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--line); color: var(--muted); transition: background-color .3s ease, color .3s ease; }
.feat-tab b { font-size: 18px; letter-spacing: -.01em; }
.feat-tab .desc { display: none; padding-left: 42px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.feat-tab .bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.feat-tab .bar i { display: block; height: 100%; background: var(--lemon); transform-origin: left; transform: scaleX(0); }
.feat-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
.feat-tab[aria-selected="true"] .num { background: var(--lemon); color: var(--grass); }
.feat-tab[aria-selected="true"] .desc { display: block; animation: loadIn .4s ease both; }
.feat-tab[aria-selected="true"] .bar { display: block; }
.features.is-playing .feat-tab[aria-selected="true"] .bar i { animation: fbar var(--feat-ms, 5500ms) linear forwards; }
.features.is-paused .feat-tab[aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes fbar { to { transform: scaleX(1); } }

.stage { flex: 999 1 560px; min-width: 0; min-height: 440px; border-radius: var(--radius-lg); background: var(--grass); position: relative; overflow: hidden; display: grid; place-items: center; padding: 36px; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(237, 255, 141, .10) 1px, transparent 1px); background-size: 22px 22px; }
.panel { position: relative; width: 100%; display: none; justify-content: center; }
.panel.is-active { display: flex; animation: stageIn .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ln { display: block; height: 7px; background: rgba(10, 52, 43, .22); border-radius: 4px; }
.ln.b { background: rgba(22, 32, 74, .22); }
.pl { display: block; height: 8px; background: #D7DBD8; border-radius: 3px; }

.ill-split { width: 100%; max-width: 520px; height: 300px; display: flex; gap: 10px; }
.ill-split .doc { border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ill-split .left { background: #FBFFE8; flex: 0 0 50%; }
.ill-split .right { background: var(--moon); flex: 1; }
.ill-split .handle { width: 6px; border-radius: 6px; background: var(--lemon); position: relative; flex: none; }
.ill-split .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 44px; border-radius: 11px; background: var(--lemon); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(237, 255, 141, .18); }
.panel.is-active .ill-split .left { animation: splitA 4.5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes splitA { 0%, 100% { flex-basis: 34%; } 50% { flex-basis: 64%; } }

.ill-paper { position: relative; width: 100%; max-width: 520px; background: #FBFFE8; border-radius: 16px; padding: 30px 32px; color: #1C1E24; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(16px, 2vw, 20px); line-height: 1.75; }
.ill-paper .tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--serif); display: block; }
:root[data-theme="dark"] .ill-paper .tag { color: #3E6B54; }
.strike { color: #B4232C; background-image: linear-gradient(#B4232C, #B4232C); background-repeat: no-repeat; background-position: 0 58%; background-size: 0 2px; }
.ins { display: inline-block; color: #2F5BD3; text-decoration: underline; text-decoration-thickness: 2px; opacity: 0; }
.comment { position: absolute; right: -10px; bottom: -22px; max-width: 230px; background: var(--lemon); color: var(--grass); font-family: var(--sans); font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); opacity: 0; }
.panel.is-active .strike { animation: strike 5s ease infinite; }
.panel.is-active .ins { animation: ins 5s ease infinite; }
.panel.is-active .comment { animation: cmt 5s ease infinite; }
@keyframes strike { 0%, 22% { background-size: 0 2px; } 38%, 100% { background-size: 100% 2px; } }
@keyframes ins { 0%, 42% { opacity: 0; transform: translateY(6px); } 56%, 100% { opacity: 1; transform: none; } }
@keyframes cmt { 0%, 62% { opacity: 0; transform: translateY(10px) scale(.96); } 74%, 100% { opacity: 1; transform: none; } }

.ill-pdf { width: 100%; max-width: 380px; background: #FFFFFF; border-radius: 10px; padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ill-pdf .title { height: 10px; width: 50%; background: #1C1E24; border-radius: 3px; }
.redline { position: relative; height: 14px; }
.redline .pl { position: absolute; inset: 3px 0; height: 8px; }
.redline i { position: absolute; inset: 0; background: #0E1110; border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.panel.is-active .redline i { animation: redact 5s cubic-bezier(.65,0,.35,1) infinite; }
.panel.is-active .redline.r2 i { animation-delay: .5s; }
@keyframes redact { 0%, 12% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
.sign { margin-top: 14px; border-top: 1.5px solid #1C1E24; padding-top: 4px; display: flex; justify-content: space-between; align-items: end; font-family: var(--sans); font-size: 11px; color: #5B6170; }
.sig { stroke-dasharray: 420; stroke-dashoffset: 420; }
.panel.is-active .sig { animation: sign 5s ease infinite; }
@keyframes sign { 0%, 45% { stroke-dashoffset: 420; } 82%, 100% { stroke-dashoffset: 0; } }

.term { position: relative; border-bottom: 2px dotted #2F5BD3; color: #16204A; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 14px); width: 290px; margin-left: -145px; background: var(--grass); color: #E8F2E4; font-family: var(--sans); font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); opacity: 0; }
.tip b { color: var(--lemon); }
.cursor { position: absolute; left: 150px; top: 70px; }
.panel.is-active .tip { animation: tip 5s ease infinite; }
.panel.is-active .cursor { animation: cursor 5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes tip { 0%, 30% { opacity: 0; transform: translateY(8px); } 40%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cursor { 0% { transform: translate(110px, 80px); } 28%, 88% { transform: translate(0, 0); } 100% { transform: translate(110px, 80px); } }

.ill-cards { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcard { border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); color: var(--grass); opacity: 0; }
.mcard small { font-size: 11px; font-weight: 700; color: #3E6B54; }
.mcard .chip { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; transform: scale(0); }
.panel.is-active .mcard { animation: card3 .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d); }
.panel.is-active .mcard .chip { animation: chip .5s ease both; animation-delay: calc(var(--d) + .7s); }
@keyframes card3 { from { opacity: 0; transform: translateY(40px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
@keyframes chip { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Ask Donna ---------- */
.ask { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 50px 100px -60px var(--shadow); transition: background-color .4s ease; }
.ask-doc { flex: 1 1 420px; min-width: 0; background: var(--doc-bg); padding: 28px clamp(20px, 3vw, 40px); border-right: 1px solid var(--line); transition: background-color .4s ease; }
.ask-doc .file { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.ask-doc .file i { width: 10px; height: 12px; border-radius: 2px; background: #2F5BD3; }
.paper { position: relative; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 28px 30px; font-family: Georgia, 'Times New Roman', serif; font-size: 14.5px; line-height: 1.7; box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; transition: background-color .4s ease, color .4s ease; }
.paper .head { text-align: center; font-weight: 700; letter-spacing: .5px; }
.clause { margin: 0 -8px; padding: 6px 8px; border-radius: 6px; transition: background-color .5s ease, box-shadow .5s ease; }
.clause.is-cited { background: var(--hl); box-shadow: 0 0 0 1.5px var(--ring); }
.chat { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; height: 560px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.chat-head .who { display: flex; align-items: center; gap: 8px; }
.chat-head .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--lemon); color: var(--grass); display: grid; place-items: center; }
.chat-head .avatar svg { width: 13px; height: 16px; }
.chat-head .ctx { color: var(--muted); }
.chat-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 20px; overflow: hidden; font-size: 14.5px; line-height: 1.6; }
.chat-empty { margin: auto 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.chat-empty span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.msg { display: flex; flex-direction: column; gap: 8px; animation: msgIn .35s ease both; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { max-width: 90%; padding: 11px 14px; border-radius: 16px 16px 4px 16px; background: var(--user-bg); color: var(--user-fg); }
.msg.ai { align-items: flex-start; }
.msg.ai .bubble { max-width: 94%; white-space: pre-line; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--src-bg); color: var(--src-fg); animation: msgIn .35s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.thinking { display: flex; align-items: center; gap: 5px; padding: 6px 2px; font-size: 12.5px; color: var(--muted); }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); animation: typing 1.2s infinite; }
.thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
.thinking em { font-style: normal; margin-left: 6px; }
@keyframes typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.composer { display: flex; align-items: center; gap: 10px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 14px; transition: border-color .25s ease, background-color .4s ease; }
.composer.is-typing { border-color: var(--focus-line); }
.composer .text { flex: 1; min-height: 22px; font-size: 14.5px; color: var(--muted); }
.composer.has-text .text { color: var(--text); }
.caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--dot); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--line); color: var(--muted); transition: background-color .2s ease, transform .2s ease; }
.composer.has-text .send { background: var(--accent); color: var(--on-accent); }
.send.is-pressed { transform: scale(.86); }
.chat-note { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* ---------- steps / privacy / team / pricing ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; border-radius: 26px; }
.step .top { display: flex; justify-content: space-between; align-items: center; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--lemon); color: var(--grass); display: grid; place-items: center; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.badge.solid { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.step b { font-size: 20px; }
.step p, .muted { color: var(--muted); line-height: 1.6; }

.privacy { padding: clamp(28px, 5vw, 56px); border-radius: 30px; }
.privacy .head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.privacy h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); }
.privacy p { margin-top: 6px; }

.founder { background: var(--grass); color: #D9E6DC; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.founder .eyebrow { color: var(--lemon); }
.founder p.big { font-family: var(--display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.22; color: #FBFFE8; }
:root[data-theme="dark"] .founder { background: #1E201D; border: 1px solid var(--line); }
.person { overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; }
.person .photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; }
.person .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.person .photo .initials { font-family: var(--display); font-style: italic; font-size: 92px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.person:hover .photo img, .person:hover .photo .initials { transform: scale(1.05); }
.person .body { padding: 18px 20px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.person b { font-size: 18px; }
.person .li { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.person .li:hover { background: #0A66C2; border-color: #0A66C2; color: #FFFFFF; }
.person .role { font-size: 14px; font-weight: 600; margin-top: 2px; color: var(--serif); }
.say-hello { grid-column: 1 / -1; border: 1.5px dashed var(--line); border-radius: 24px; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; }
.say-hello span { color: var(--muted); font-size: 14px; }

.plan { padding: 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 26px; }
.plan .price { font-weight: 700; font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.plan .price small { margin-left: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--lemon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A342B' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; }
.plan.pro { background: var(--grass); color: #E8F2E4; border: 1px solid rgba(237, 255, 141, .25); }
.plan.pro .price { color: #FBFFE8; }
.plan.pro .name { color: var(--lemon); }
.plan.pro .btn-primary { background: var(--lemon); color: var(--grass); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--lemon); color: var(--grass); display: grid; place-items: center; transition: transform .3s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); line-height: 1.65; animation: loadIn .35s ease both; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--lemon); color: var(--grass); border-radius: 32px; padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 80px); text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cta h2 { font-weight: 700; font-size: clamp(36px, 5.6vw, 70px); letter-spacing: -.045em; line-height: 1; }
.cta p { font-size: 18px; opacity: .8; }
.waitlist { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 520px; background: #FFFFFF; border-radius: 999px; padding: 6px; }
.waitlist input[type="email"] { flex: 1 1 200px; min-width: 0; height: 50px; border: 0; padding: 0 18px; border-radius: 999px; font: 400 16px var(--sans); background: transparent; color: var(--grass); }
.waitlist input[type="email"]:focus { outline: none; }
.waitlist:focus-within { box-shadow: 0 0 0 3px rgba(10, 52, 43, .35); }
.waitlist button { flex: 1 0 auto; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--grass); color: var(--lemon); font-weight: 600; font-size: 15px; cursor: pointer; }
.waitlist button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 24px; font-size: 15px; font-weight: 600; }
.form-note:empty { min-height: 0; margin-top: -18px; }
.form-note a { text-decoration: underline; }
@media (max-width: 520px) { .waitlist { border-radius: 22px; } .waitlist button { width: 100%; } }

.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); margin-top: 96px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer .cols div { display: flex; flex-direction: column; gap: 10px; }
.footer .cols a { text-decoration: none; color: var(--muted); }
.footer .cols a:hover { color: var(--text); }
.footer small { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .section { padding-top: 84px; padding-bottom: 84px; }
  .shot-frame { box-shadow: 0 30px 60px -36px var(--shadow); border-radius: 12px; }
  .hero { padding-top: 56px; }
  .stage { min-height: 360px; padding: 24px; }
  .ill-split { height: 240px; }
  .comment { right: 8px; bottom: -30px; }
  .chat { height: 520px; }
  .ask { box-shadow: 0 24px 50px -36px var(--shadow); }
  .ask-doc { border-right: 0; border-bottom: 1px solid var(--line); }
  .paper { padding: 20px; font-size: 13.5px; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
  .paper::-webkit-scrollbar { display: none; }
  .tip { width: 240px; margin-left: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .shot-frame { opacity: 1; transform: none; }
  /* show each illustration's finished state instead of looping */
  .ins, .comment, .tip, .mcard { opacity: 1; transform: none; }
  .mcard .chip, .redline i { transform: none; }
  .strike { background-size: 100% 2px; }
  .sig { stroke-dashoffset: 0; }
  .statement .lit { opacity: 1; }
}

/* ---------- One place: apps fly into Donna, Donna versions come out (9s loop) ---------- */
.onep { padding-top: 8px; padding-bottom: 0; }
.onep .section-head { margin-bottom: 8px; }
.onep-stage { --R: 205px; --loop: 9s; position: relative; height: calc(2 * var(--R) + 250px); max-width: 780px; margin: 0 auto; }
.onep-stage > * { position: absolute; left: 50%; top: calc(50% - 30px); }
.onep-orbit { width: calc(2 * var(--R)); height: calc(2 * var(--R)); margin: calc(-1 * var(--R)) 0 0 calc(-1 * var(--R)); border-radius: 50%; border: 1.5px dashed var(--line); }

.onep-in, .onep-out { --tx: calc(var(--dx) * var(--R)); --ty: calc(var(--dy) * var(--R)); transform: translate(-50%, -50%) translate(var(--tx), var(--ty)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.onep-in { animation: onepIn var(--loop) cubic-bezier(.6, 0, .4, 1) infinite; animation-delay: var(--d); }
.btile { width: 68px; height: 68px; border-radius: 18px; background: #FFFFFF; border: 1px solid rgba(10, 52, 43, .1); box-shadow: 0 16px 30px -16px rgba(10, 52, 43, .5); display: grid; place-items: center; }
.btile img { width: 40px; height: 40px; }
.onep-in .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.onep-out { opacity: 0; animation: onepOut var(--loop) cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: var(--d); }
.onep-out img { width: 84px; height: 84px; filter: drop-shadow(0 14px 20px rgba(var(--c), .6)); }
.onep-out .name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--text); }

.onep-core { width: 0; height: 0; display: grid; place-items: center; }
.onep-core > * { position: absolute; max-width: none; }
.onep-core img { z-index: 2; width: 112px; height: 112px; border-radius: 26px; animation: onepGlow var(--loop) ease-in-out infinite; }
.onep-core { --glow: 10, 52, 43; }
:root[data-theme="dark"] .onep-core { --glow: 237, 255, 141; }
.onep-word { top: auto !important; bottom: 0; transform: translateX(-50%); margin: 0; white-space: nowrap; font-family: var(--display); font-style: italic; font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--text); opacity: 0; animation: onepWord var(--loop) ease infinite; }

@keyframes onepIn {
  0%, 22% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
  11% { transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) - 8px)) scale(1); }
  36% { transform: translate(-50%, -50%) translate(0, 0) scale(.2); opacity: 0; }
  88% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
}
@keyframes onepGlow {
  0%, 30% { transform: scale(1); box-shadow: 0 18px 40px -18px rgba(10, 52, 43, .45); }
  40% { transform: scale(1.12); box-shadow: 0 0 70px 24px rgba(237, 255, 141, .95), 0 24px 60px -10px rgba(var(--glow), .35); }
  54% { transform: scale(1); box-shadow: 0 0 40px 10px rgba(237, 255, 141, .6), 0 18px 44px -14px rgba(var(--glow), .3); }
  82%, 100% { transform: scale(1); box-shadow: 0 18px 40px -18px rgba(10, 52, 43, .45); }
}
@keyframes onepOut {
  0%, 42% { transform: translate(-50%, -50%) translate(0, 0) scale(.2); opacity: 0; }
  54% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.08); opacity: 1; }
  58%, 86% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
  94%, 100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(.92); opacity: 0; }
}
@keyframes onepWord {
  0%, 56% { opacity: 0; transform: translateX(-50%) translateY(14px); }
  64%, 86% { opacity: 1; transform: translateX(-50%); }
  94%, 100% { opacity: 0; transform: translateX(-50%); }
}
/* only animate while on screen (main.js toggles .is-playing) */
.js .onep-stage:not(.is-playing) * { animation-play-state: paused !important; }

@media (max-width: 720px) {
  .onep-stage { --R: 128px; height: calc(2 * var(--R) + 190px); }
  .onep-core img { width: 76px; height: 76px; border-radius: 18px; }
  .btile { width: 50px; height: 50px; border-radius: 14px; }
  .btile img { width: 28px; height: 28px; }
  .onep-in .lbl { font-size: 11px; }
  .onep-out img { width: 52px; height: 52px; }
  .onep-out .name { font-size: 12px; }
  .onep-out { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .onep-in { display: none; }
  .onep-out { opacity: 1; animation: none; }
  .onep-word { opacity: 1; animation: none; }
}

/* ---------- legal pages (privacy, terms) ---------- */
.legal-page { padding: 72px 0 24px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.legal-toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.legal-toc a { margin-left: -1px; padding: 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.legal-toc a:hover { color: var(--text); }
.legal-toc a.is-current { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.legal { min-width: 0; }
.legal h1 { font-weight: 700; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; line-height: 1; }
.legal .updated { display: inline-block; margin: 18px 0 36px; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-size: 13px; font-weight: 600; }
.legal h2 { margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; line-height: 1.15; scroll-margin-top: 96px; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.legal p, .legal li { font-size: 17px; line-height: 1.75; color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal b, .legal strong { color: var(--text); }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--serif); }
.legal a { color: var(--text); text-decoration-color: var(--serif); text-underline-offset: 3px; }
.legal table { width: 100%; margin: 18px 0 24px; border-collapse: collapse; font-size: 15.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--line) 40%, transparent); }
.legal tr:last-child td { border-bottom: 0; }
.legal .fill { padding: 1px 6px; border-radius: 5px; background: var(--chip); color: var(--chip-text); font-weight: 600; }
.legal .socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.legal .socials > div { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal .socials h3 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--serif); }
.legal .socials ul { list-style: none; padding: 0; margin: 0; }
.legal .socials li { font-size: 15px; margin-bottom: 6px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none !important; }
  .legal-page { padding-top: 48px; }
}
@media (max-width: 600px) {
  .legal .socials { grid-template-columns: 1fr; }
  .legal table { display: block; overflow-x: auto; }
  .legal p, .legal li { font-size: 16px; }
}
