/* Stylo Notes site: the app's dark palette (packages/core/src/theme.ts) */
:root {
  --bg: #1F1E1C; --desk: #181816; --surface: #262522; --surface-alt: #302F2B; --line: #3A3935;
  --text: #ECE9E2; --muted: #ADA99F; --faint: #6F6B63; --accent: #E0825F; --accent-soft: #3A2B24;
  --paper: #F7F5EF; --ok: #4CAF7D; --danger: #EF5A55;
  --radius: 14px; --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--desk); color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--desk) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 11px; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn:disabled { opacity: .6; cursor: default; }
.field { height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
.field:focus, textarea.field:focus { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; border-color: transparent; }
textarea.field { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* waitlist form */
.join { display: flex; gap: 10px; max-width: 520px; }
.join .field { flex: 1; }
@media (max-width: 520px) { .join { flex-direction: column; } .join .field { flex: none; width: 100%; } .join .btn { width: 100%; } }
.form-note { margin: 10px 0 0; font-size: 13.5px; color: var(--faint); }
.form-status { margin: 10px 0 0; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* hero */
.hero { padding: 88px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; max-width: 14ch; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 0 0 30px; }

/* video */
.demo { padding: 8px 0 72px; }
.frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px #0008; aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.caption { margin: 14px 0 0; text-align: center; color: var(--faint); font-size: 14px; }

/* sections */
section h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--muted); margin: 0 0 36px; max-width: 60ch; }
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 14px 0 6px; font-size: 17.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.chip { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.chip svg { width: 19px; height: 19px; stroke: var(--accent); }
.card.feature { grid-column: span 1; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { padding: 80px 0; border-top: 1px solid var(--line); text-align: center; }
.cta .join { margin-inline: auto; }
.cta .form-note, .cta .form-status { text-align: center; }

/* prose pages */
.page { padding: 64px 0 80px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; }
.prose h2 { font-size: 22px; margin: 38px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-top: -10px; }
.faq { display: grid; gap: 10px; margin: 24px 0 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; }
.contact { display: grid; gap: 12px; margin-top: 18px; }
.contact .field { width: 100%; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
