/* DocuMeow site. Tokens mirror docs/DESIGN.md so the site and the apps look like one product. */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F2EFEA;
  --ink: #1C1B1A;
  --ink-2: #6B6760;
  --ink-3: #A8A39A;
  --hairline: #E7E2DA;
  --accent: #D9643A;
  --accent-soft: #F8E3D9;
  --highlight: #D9643A26;
  --mark: #F6D36566;
  --leaf: #3E9E5C;
  --shadow: 0 12px 32px rgba(28, 27, 26, 0.10);
  --shadow-lg: 0 30px 80px rgba(28, 27, 26, 0.18);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1C1B19;
    --surface-alt: #262421;
    --ink: #F2EFEA;
    --ink-2: #A39E95;
    --ink-3: #6E6A63;
    --hairline: #2E2C29;
    --accent: #F07A4F;
    --accent-soft: #3A2419;
    --highlight: #F07A4F33;
    --mark: #F6D36540;
    --leaf: #6CC48A;
    --shadow: none;
    --shadow-lg: 0 0 0 1px #3A3835, 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; cursor: default; user-select: none;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: 0.75; letter-spacing: 0.02em; }
.store b { font-size: 17px; font-weight: 600; }
.store.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }

/* Phone mockup */
.phone {
  position: relative; justify-self: center;
  width: 300px; aspect-ratio: 9 / 19.2;
  border-radius: 46px; padding: 12px;
  background: #0E0D0C; box-shadow: var(--shadow-lg);
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 36px; background: var(--surface);
  display: flex; flex-direction: column; padding: 44px 20px 20px;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 20px; background: #0E0D0C; }
.np { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; text-align: center; }
.book { font-family: var(--serif); font-size: 15px; font-weight: 600; text-align: center; margin: 4px 0 18px; }
.lines { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.lines p { margin: 0 0 10px; }
.lines .now { color: var(--ink); background: var(--highlight); border-radius: 6px; padding: 2px 4px; margin-left: -4px; margin-right: -4px; }
.lines mark { background: var(--mark); color: inherit; border-radius: 3px; }
.answer {
  margin-top: auto; border-radius: 20px; padding: 14px 14px 12px;
  background: var(--surface-alt); font-size: 12.5px; line-height: 1.5;
}
.answer .q { color: var(--ink-2); margin: 0 0 6px; }
.answer .a { margin: 0 0 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.orb {
  align-self: center; margin-top: 14px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 0 8px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
.orb svg { width: 22px; height: 22px; color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.sub { color: var(--ink-2); font-size: 18px; margin: 0 0 48px; max-width: 36em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px; padding: 24px; }
.alt .card { background: var(--bg); }
.card .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 16px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.quote { text-align: center; padding: 72px 0; }
.quote blockquote { margin: 0 auto; max-width: 30em; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.quote blockquote em { color: var(--accent); }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; justify-content: center; }
.price { background: var(--bg); border: 1px solid var(--hairline); border-radius: 20px; padding: 28px; position: relative; }
.price.best { border-color: var(--accent); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.price h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink-2); font-weight: 600; }
.price .amt { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.price .amt small { font-family: var(--sans); font-size: 16px; color: var(--ink-2); font-weight: 400; }
.price p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.note { text-align: center; color: var(--ink-3); font-size: 14px; margin: 24px 0 0; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 8px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink); font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc .summary { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 4px 24px; margin: 0 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.doc th { color: var(--ink-2); font-weight: 600; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .nav a { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .phone { width: 290px; }
  .lines { font-size: 14px; }
  .lines p:last-child { display: none; }
  .lede { font-size: 17px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid var(--hairline); padding: 10px 0; }
  .doc td:first-child { font-weight: 600; }
}
