/* DonePanda website. Tokens and rules: see DESIGN.md at the repo root. */

@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/hanken-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/hanken-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/newsreader-italic-400.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #F1EDE4;
  --surface: #FBF9F3;
  --surface-2: #F3EFE6;
  --ink: #24201A;
  --ink-2: #6F685C;
  --ink-3: #877D64;
  --line: rgba(36, 32, 26, .12);
  --primary: #A94E2C;
  --primary-hover: #93421F;
  --on-primary: #FFFFFF;
  --primary-soft: rgba(194, 96, 58, .12);
  --sage: #5F7A56;
  --amber: #AD7B27;
  --shadow: 0 1px 2px rgba(36, 32, 26, .05), 0 10px 34px rgba(36, 32, 26, .07);
  --shadow-lg: 0 2px 6px rgba(36, 32, 26, .06), 0 30px 70px rgba(36, 32, 26, .16);
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --wide: 1120px; --text: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120D;
    --surface: #201B14;
    --surface-2: #262017;
    --ink: #ECE5D8;
    --ink-2: #A1998B;
    --ink-3: #8A806D;
    --line: rgba(236, 229, 216, .12);
    --primary: #E08458;
    --primary-hover: #EE9B72;
    --on-primary: #15120D;
    --primary-soft: rgba(224, 132, 88, .16);
    --sage: #9DB492;
    --amber: #DCAA54;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 40px rgba(0, 0, 0, .42);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 36px 80px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.wrap--text { max-width: calc(var(--text) + 48px); }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Home: hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--primary); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 32px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.shot { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 920px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .lead { max-width: none; }
}
@media (max-width: 420px) { .hero h1 { font-size: 34px; } }

/* Home: sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 34px; font-weight: 700; max-width: 22ch; }
.section .intro { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin-top: 14px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section h2 { font-size: 28px; } }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px 48px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 14px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; }
.chip { display: inline-block; font: 500 14px/1.4 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; margin: 6px 0 12px; color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; margin-top: 8px; }
.split--flip > :first-child { order: 2; }
@media (max-width: 920px) { .split, .split--flip { grid-template-columns: 1fr; gap: 36px; } .split--flip > :first-child { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--sage); }
.ticks .no svg { color: var(--primary); }
.tag-pro { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; vertical-align: middle; margin-left: 8px; }

.prompt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.prompt-card h3 { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-bottom: 16px; }
.prompt { font: 400 15px/1.55 var(--mono); padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); margin: 0 0 10px; }
.prompt b { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 4px; }
.reply { font-size: 15px; color: var(--ink-2); margin: 0 0 18px 16px; padding-left: 14px; border-left: 2px solid var(--line); }
.reply:last-child { margin-bottom: 0; }

.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.inbox-head { padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.inbox-head span { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.inbox-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row small { display: block; color: var(--ink-2); font-size: 14px; }
.inbox-btns { display: flex; gap: 8px; }
.inbox-btns span { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 10px; }
.inbox-btns span:first-child { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.facts div { padding: 24px 32px 24px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 32px; }
.facts h3 { font-size: 18px; margin-bottom: 6px; }
.facts p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts div, .facts div:nth-child(even) { padding: 20px 0; border-right: 0 !important; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan--pro { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 2px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.price-alt { color: var(--ink-2); font-size: 15px; margin: 0 0 6px; }
.offer { font-size: 15px; background: var(--primary-soft); border-radius: var(--r-sm); padding: 10px 12px; margin: 14px 0 0; }
.plan ul { padding-left: 20px; margin: 22px 0 28px; display: grid; gap: 8px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price-notes { font-size: 14px; color: var(--ink-2); margin-top: 24px; max-width: 80ch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 24px; } }

/* FAQ */
.faq { margin-top: 36px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-size: 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); margin: -4px 0 20px; max-width: 68ch; }

.cta-band { padding: 88px 0; border-top: 1px solid var(--line); text-align: left; }
.cta-band h2 { font-size: 34px; margin-bottom: 12px; }
.cta-band p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }

/* Legal and info pages */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; }
.doc .meta { color: var(--ink-2); font-size: 15px; margin: 10px 0 32px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 36px; }
.doc .summary h2 { font-size: 17px; margin: 0 0 10px; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc .toc { border-left: 2px solid var(--line); padding: 2px 0 2px 18px; margin: 0 0 44px; font-size: 15px; }
.doc .toc p { font-weight: 600; margin-bottom: 8px; }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.doc .toc li { margin-bottom: 4px; break-inside: avoid; }
.doc h2 { font-size: 24px; margin: 52px 0 14px; scroll-margin-top: 84px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.doc p, .doc li { font-size: 17px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { text-decoration: underline; }
.doc code { font: 15px var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.doc .note { background: var(--surface-2); border-radius: var(--r-md); padding: 16px 20px; font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--r-md); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.doc th { background: var(--surface-2); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc address { font-style: normal; }
@media (max-width: 600px) { .doc { padding: 36px 0 64px; } .doc h1 { font-size: 32px; } .doc .toc ol { columns: 1; } }

.vendor { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 24px 26px; margin: 18px 0; }
.vendor h3 { margin: 0 0 4px; font-size: 19px; }
.vendor .who { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.vendor dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; font-size: 16px; }
.vendor dt { font-weight: 600; }
.vendor dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) { .vendor dl { grid-template-columns: 1fr; gap: 2px; } .vendor dd { margin-bottom: 10px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Fixes after the phone and tablet render check */
.btn { white-space: nowrap; }
.doc address { margin: 0 0 16px; }
@media (max-width: 420px) { .site-header .btn svg { display: none; } .site-header .btn { padding: 0 14px; } .brand { font-size: 17px; } }
