/* CuriousDeck — site. The app's roastery palette: oat paper, espresso ink, copper door. */

/* ============================================================ Site tokens */
:root {
  --paper: #EFE5D6;
  --paper-deep: #E6D8C3;
  --card: #F7F1E7;
  --cream: #FFF8EE;
  --ink: #2B1A12;
  --body: #5A4A40;
  --muted: #71635A;
  --rule: rgba(92, 58, 33, .14);
  --stroke: rgba(92, 58, 33, .14);
  --shadow: 43, 26, 18;
  --copper: #B87333;
  --copper-hi: #D18A45;
  --copper-deep: #8C5423;
  --accent-text: #8C5423;
  --espresso: #2B1A12;
  --display: Rockwell, "Rockwell Nova", "Arvo", Georgia, serif;
  --sans: "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --soft: cubic-bezier(.22, .8, .26, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-site="light"]) {
    --paper: #1C110B; --paper-deep: #140C07; --card: #2E1D14; --cream: #FFF8EE;
    --ink: #EFE5D6; --body: #C9B9A6; --muted: #A18A78;
    --rule: rgba(239, 229, 214, .1); --stroke: rgba(239, 229, 214, .1); --shadow: 0, 0, 0;
    --accent-text: #D18A45; color-scheme: dark;
  }
}
:root[data-site="dark"] {
  --paper: #1C110B; --paper-deep: #140C07; --card: #2E1D14; --cream: #FFF8EE;
  --ink: #EFE5D6; --body: #C9B9A6; --muted: #A18A78;
  --rule: rgba(239, 229, 214, .1); --stroke: rgba(239, 229, 214, .1); --shadow: 0, 0, 0;
  --accent-text: #D18A45; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--copper); color: var(--cream); }
:focus-visible { outline: 2.5px solid var(--copper); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 78px); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; }
h3 { font-size: 22px; line-height: 1.2; }
h1 em, h2 em { font-style: normal; color: var(--copper); }
p { margin: 0; }
kbd {
  font: 700 .78em/1 var(--sans); display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75em; height: 1.75em; padding: 0 .45em; border-radius: 6px; vertical-align: .08em;
  background: var(--card); color: var(--ink); border: 1px solid var(--stroke); box-shadow: 0 1.5px 0 var(--stroke);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.kicker::before { content: ""; width: 8px; height: 11px; border-radius: 4px 4px 1px 1px; background: currentColor; flex: none; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--body); max-width: 36em; }

/* Buttons: tactile copper, like the app's TactileButtonStyle. */
.btn {
  --bg: var(--copper); --fg: #FFF8EE; --edge: var(--copper-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 22px 15px; border-radius: 999px; background: var(--bg); color: var(--fg);
  box-shadow: 0 3px 0 var(--edge), 0 10px 22px -10px rgba(43, 26, 18, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .16s var(--soft), box-shadow .16s var(--soft), background-color .25s;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--copper-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge), inset 0 2px 6px rgba(0, 0, 0, .25); }
.btn .price { font-weight: 600; opacity: .85; padding-left: 9px; border-left: 1px solid rgba(255, 248, 238, .35); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stroke), 0 0 0 transparent; }
.btn.ghost:hover { background: var(--card); }
.btn.ghost .price { border-left-color: var(--stroke); }
.btn.small { padding: 10px 16px 11px; font-size: 14px; }
.link { color: var(--accent-text); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================ Nav */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.wordmark { font: 700 20px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.wordmark i { font-style: normal; color: var(--copper); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--body); padding: 8px 12px; border-radius: 999px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--rule); }
.nav-links .btn { margin-left: 10px; padding: 10px 16px 11px; font-size: 14px; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }

/* ============================================================ Hero */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(14px, 2.4vw, 24px); text-align: center; }
.hero h1 { max-width: 12em; margin: 18px auto 0; }
.hero .lede { margin: 20px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 8px; height: 11px; color: var(--copper); }

/* ============================================================ Sections */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section.tight { padding-top: clamp(40px, 6vw, 70px); }
.band { background: var(--paper-deep); }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }
.head h2 { margin-top: 14px; }
.head .lede { margin-top: 16px; }
.try-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.try-note a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.try-note a:hover { text-decoration: underline; }

/* AI + privacy */
.backends { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.backend { padding: 22px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); }
.backend small { font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.backend h3 { margin-top: 10px; font-size: 20px; }
.backend p { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.backend code { font: 600 12.5px/1 ui-monospace, Menlo, monospace; padding: 2px 5px; border-radius: 5px; background: var(--rule); color: var(--ink); }
.privacy { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; margin-top: 18px; padding: 22px 24px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); }
.privacy svg { width: 34px; height: 34px; color: var(--copper); }
.privacy p { font-size: 15.5px; line-height: 1.6; }
.privacy b { color: var(--ink); }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.models span { padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); font: 600 13px/1 var(--sans); color: var(--ink); }
.models span small { color: var(--muted); font-weight: 500; margin-left: 6px; }
@media (max-width: 960px) { .backends { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .backends { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(30px, 6vw, 80px); align-items: center; }
.price-card { position: relative; padding: 34px 34px 28px; border-radius: 22px; background: linear-gradient(rgba(255, 255, 255, .06), transparent 40%), var(--espresso); color: rgba(255, 248, 238, .8); box-shadow: 0 0 0 1.2px rgba(209, 138, 69, .45), 0 40px 80px -30px rgba(var(--shadow), .55); overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(209, 138, 69, .28), transparent 340px); pointer-events: none; }
.price-card > * { position: relative; }
.price-card .pk { font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #D18A45; }
.price-card .amount { font: 700 84px/1 var(--display); color: #FFF8EE; margin-top: 14px; letter-spacing: -.03em; }
.price-card .amount sup { font-size: 36px; vertical-align: 32px; margin-right: 4px; }
.price-card .once { font: 600 15px/1.4 var(--sans); color: rgba(235, 213, 181, .9); }
.price-card ul { list-style: none; margin: 22px 0 26px; padding: 18px 0 0; border-top: 1px solid rgba(255, 248, 238, .14); display: grid; gap: 10px; }
.price-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.price-card li svg { width: 16px; height: 16px; color: #D18A45; margin-top: 3px; }
.price-card .btn { width: 100%; }
.price-card .fine { margin-top: 14px; text-align: center; font-size: 13px; color: rgba(235, 213, 181, .75); }
.price-card .amount .cents { font-size: 40px; vertical-align: 30px; margin-left: 3px; letter-spacing: -.01em; }
.price-card .btn + .btn { margin-top: 12px; }
.btn.ghost.on-dark { --fg: #FFF8EE; box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, .3), 0 0 0 transparent; }
.btn.ghost.on-dark:hover { background: rgba(255, 248, 238, .08); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font: 700 18px/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 14px; border: 1.6px solid var(--copper); border-radius: 5px 5px 1.5px 1.5px; flex: none; transition: background-color .2s; }
.faq details[open] summary::after { background: var(--copper); }
.faq details p { padding: 0 2px 22px; font-size: 16px; line-height: 1.65; max-width: 44em; }

/* Closing + footer */
.closing { padding: clamp(80px, 11vw, 140px) 0; text-align: center; }
.closing svg.mark { width: 64px; height: 64px; margin: 0 auto 22px; color: var(--ink); }
.closing h2 { max-width: 14em; margin: 0 auto 28px; }
footer { border-top: 1px solid var(--rule); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--body); }
footer a:hover { color: var(--ink); }
.site-toggle { border: 0; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--sans); color: var(--ink); }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--soft), transform .7s var(--soft); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ============================================================ Screenshots */
.wrap.wide { width: min(100% - 2 * var(--gutter), 1240px); }
.shot { margin: 0; position: relative; border-radius: 14px; }
.shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(var(--shadow), .1), 0 34px 70px -30px rgba(var(--shadow), .55), 0 14px 30px -18px rgba(var(--shadow), .35); background: var(--card); }
.hero-shot { margin-top: clamp(36px, 5vw, 60px); }
.light-only, .dark-only { display: block; }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-site="light"]) .light-only { display: none; } :root:not([data-site="light"]) .dark-only { display: block; } }
:root[data-site="dark"] .light-only { display: none; }
:root[data-site="dark"] .dark-only { display: block; }

/* How it works */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.step.flip .step-copy { order: 2; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper); color: #FFF8EE; font: 700 15px/1 var(--sans); margin-bottom: 16px; }
.step h3, .split-feature h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.step p { margin-top: 14px; font-size: 16.5px; line-height: 1.65; }

/* Feature with one screenshot */
.split-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-feature.flip .head { order: 2; }
.split-feature .lede { font-size: 17.5px; }
.dealer-names { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dealer-names li { padding: 6px 11px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); font: 600 13px/1.2 var(--sans); color: var(--ink); }

/* Feature list */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.feat { padding: 22px 0; border-top: 1px solid var(--rule); }
.feat h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.feat h3::before { content: ""; width: 8px; height: 11px; border-radius: 4px 4px 1px 1px; border: 1.4px solid var(--copper); flex: none; }
.feat p { margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* Themes */
.themes { margin-top: clamp(56px, 8vw, 100px); }
.theme-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.theme-tabs button { border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; background: var(--card); box-shadow: 0 0 0 .8px var(--stroke); font: 600 14px/1 var(--sans); color: var(--ink); }
.theme-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.theme-stage { display: grid; }
.theme-stage img { grid-area: 1 / 1; opacity: 0; transition: opacity .35s ease; }
.theme-stage img.on { opacity: 1; }

@media (max-width: 900px) {
  .step, .split-feature { grid-template-columns: 1fr; }
  .step.flip .step-copy, .split-feature.flip .head { order: 0; }
  .feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } .shot img { border-radius: 8px; } }
