/* Murmel website. One accent colour, IBM Plex (self-hosted), Lucide icons, light and dark theme.
   Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 and one section rhythm (--section). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --border: #e4e4e0;
  --border-strong: #cfcfca;
  --text: #16161a;
  --text-2: #4b4b52;
  --text-3: #76767e;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fdeee6;
  --accent-ink: #ffffff;
  --ok: #1d8a4e;
  --ok-soft: #e6f4ec;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --section: clamp(72px, 9vw, 112px);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111113;
  --bg-2: #18181b;
  --surface: #18181b;
  --surface-2: #222226;
  --border: #2b2b30;
  --border-strong: #3d3d44;
  --text: #ededef;
  --text-2: #b2b2ba;
  --text-3: #85858e;
  --accent: #f7814b;
  --accent-hover: #ff9a6b;
  --accent-soft: #2d1c14;
  --accent-ink: #111113;
  --ok: #4cc283;
  --ok-soft: #1a2b22;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
kbd { display: inline-block; font: 500 0.82em/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }
code { font: 0.9em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.prose-link, p a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s; }
p a:not(.btn):hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 16px; border-radius: var(--radius-sm); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--border); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 0.95rem; transition: color 0.15s, background-color 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 500; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
.nav-links .only-mobile { display: none; }

/* ---------- Buttons (every button has a hover and a pressed state) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font: 500 0.95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.92rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn[aria-disabled="true"] { background: var(--surface-2); border-color: var(--border); color: var(--text-3); cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; transition: transform 0.15s; }
.btn:hover svg.lucide-arrow, .btn:hover .arrow svg { transform: translateX(2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); transition: color 0.15s, gap 0.15s; }
.link-arrow:hover { color: var(--accent-hover); gap: 9px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Type ---------- */
.label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.small { font-size: 0.88rem; color: var(--text-3); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Layout rhythm ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.page-head { padding: var(--section) 0 48px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.025em; max-width: 20ch; margin-bottom: 16px; }
.page-head .lead { max-width: 640px; margin: 0; }
.page-head + .section { padding-top: 0; }
.center-row { display: flex; justify-content: center; margin-top: 32px; }
.tc { text-align: center; }
.mt { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding: var(--section) 0 48px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; margin-bottom: 24px; }
.hero .lead { max-width: 600px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 16px 0 0; }
.cta .hero-cta { justify-content: center; }

/* ---------- App window mock ---------- */
.window { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-bar span { margin-left: 8px; font-size: 0.85rem; color: var(--text-3); }
.window-body { padding: 16px 24px 24px; }
.mail-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text-3); }
.mail-row b { color: var(--text-2); font-weight: 500; min-width: 64px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.18em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Murmel pill (as in the app) */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; background: #18181b; color: #ededef; border: 1px solid #2b2b30; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.pill img { width: 22px; height: 22px; border-radius: 6px; }
.bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 30%; border-radius: 2px; background: #f7814b; }
.pill.live .bars i { animation: bar 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.2s; } .bars i:nth-child(3) { animation-delay: -0.45s; }
.bars i:nth-child(4) { animation-delay: -0.1s; } .bars i:nth-child(5) { animation-delay: -0.6s; }
@keyframes bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3d3d44; border-top-color: #f7814b; animation: spin 0.8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.cmd-q { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 0.95rem; margin: 8px 0 16px; }
.cmd-q svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cmd-a { font-size: 0.97rem; color: var(--text); line-height: 1.7; }

/* ---------- Apps list ---------- */
.apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 860px; margin: 0 auto; }
.apps span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.93rem; color: var(--text-2); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tone-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tone-card .app { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tone-card .app span { font-size: 0.78rem; font-weight: 500; color: var(--text-2); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.tone-card .out { font-size: 0.98rem; color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); margin-top: 16px; }
.said { font-size: 0.95rem; color: var(--text-2); padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin: 0 0 24px; }
.said b { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.feature .ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* ---------- Command mode section ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.ai-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ai-list li { display: flex; gap: 12px; color: var(--text-2); }
.ai-list li b { color: var(--text); font-weight: 500; }
.ai-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.ai-demo { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; min-height: 380px; }
.ai-demo .q { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; color: var(--text); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px; min-height: 48px; }
.ai-demo .q svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ai-demo .a { margin-top: 16px; font-size: 0.95rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; min-height: 230px; }
.ai-demo .a.code { font: 0.86rem/1.65 var(--mono); color: var(--text-2); }
.ai-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ai-tabs button { font: 500 0.85rem/1 var(--font); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.ai-tabs button:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.ai-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Privacy flow ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.flow-node { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.flow-node .ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.flow-node .ico svg { width: 20px; height: 20px; }
.flow-node b { display: block; font-weight: 500; }
.flow-node span { font-size: 0.88rem; color: var(--text-2); }
.flow-node .tag { margin-left: auto; font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.flow-node .tag.opt { background: var(--accent-soft); color: var(--accent); }
.flow-line { height: 24px; width: 0; margin-left: 36px; border-left: 2px dashed var(--border-strong); }
.zone { border: 1px dashed var(--border-strong); border-radius: 16px; padding: 24px 16px 16px; position: relative; }
.zone-label { position: absolute; top: -10px; left: 16px; background: var(--bg); padding: 0 8px; font-size: 0.8rem; font-weight: 500; color: var(--text-3); }

/* ---------- Feature detail rows ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--border); }
.frow:first-child { border-top: 0; padding-top: 0; }
.frow.flip .frow-visual { order: -1; }
.frow h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 16px; }
.frow p { color: var(--text-2); font-size: 1.04rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.vis { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; }
.vis-title { font-size: 0.85rem; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }
.dict-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.dict-row:last-child { border-bottom: 0; }
.dict-row .from { color: var(--text-3); font-family: var(--mono); font-size: 0.86rem; }
.dict-row .to { font-weight: 500; margin-left: auto; text-align: right; }
.dict-row svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-cloud span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); font-size: 0.9rem; color: var(--text-2); }
.lang-cloud span.hot { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 500; }
.before-after { display: grid; gap: 12px; }
.before-after div { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.97rem; }
.before-after .b { color: var(--text-3); background: var(--bg-2); }
.before-after .b s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.before-after small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.plan.featured { border: 2px solid var(--accent); padding: 31px; }
.plan-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.plan h3 { font-size: 1.25rem; }
.plan .pop { font-size: 0.78rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.plan .for { color: var(--text-2); font-size: 0.95rem; min-height: 3.2em; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.price b { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--text-3); font-size: 0.95rem; }
.plan .note { font-size: 0.85rem; color: var(--text-3); margin-bottom: 24px; }
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-2); }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan li.head { font-weight: 500; color: var(--text); }
.plan li.soon { color: var(--text-3); }
.plan li.soon svg { color: var(--text-3); }
.soon-tag { font-style: normal; font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); margin-bottom: 48px; font-size: 0.97rem; }
.notice svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 600px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-2); }
.compare thead th { font-weight: 600; color: var(--text); }
.compare tbody tr.group td { font-weight: 600; color: var(--text); padding-top: 32px; }
.compare svg { width: 18px; height: 18px; color: var(--accent); margin: 0 auto; }
.compare .no { color: var(--text-3); }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 500; font-size: 1.04rem; position: relative; transition: color 0.15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; margin: 0; }
.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Access page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }
.step p { color: var(--text-2); margin: 8px 0 0; }
.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.req div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.req span { color: var(--text-2); }
.req b { font-weight: 500; text-align: right; }
.signin { max-width: 440px; margin: 0 auto; padding: 32px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 0.92rem; }
.field input { height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); padding: 0 12px; font: 0.98rem var(--mono); }
.field input:disabled { opacity: 0.6; }
.signin .btn { width: 100%; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 64px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); }
.cta img { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.cta p { color: var(--text-2); max-width: 540px; margin: 0 auto 32px; font-size: 1.08rem; }

/* ---------- Legal ---------- */
.legal { padding: var(--section) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.todo { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer p { color: var(--text-2); font-size: 0.93rem; max-width: 30em; margin-top: 16px; }
.footer h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); font-size: 0.93rem; transition: color 0.15s; }
.footer ul a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-3); flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ai-grid, .split, .frow { grid-template-columns: 1fr; gap: 32px; }
  .frow { padding: 48px 0; }
  .frow.flip .frow-visual { order: 0; }
  .tone-grid, .feature-grid, .plans, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .menu-btn { display: grid; }
  .nav-links .only-mobile { display: block; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
  .nav-right .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .window-body { padding: 12px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan { padding: 24px; } .plan.featured { padding: 23px; }
  .mail-row:nth-child(2) { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .signin { padding: 24px; }
  .ai-demo { padding: 16px; }
  .cmd-a { font-size: 0.9rem; line-height: 1.6; }
  .cmd-q { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Cinematic scroll sequence (home page). A dark stage in both themes.
   Every element is positioned absolutely and moved by site.js from the
   scroll position, so the sequence plays exactly as fast as you scroll.
   ===================================================================== */
.cine { position: relative; height: 820vh; background: #0b0b0d; color: #f2f2f4; }
.cine-stage { position: sticky; top: 64px; height: calc(100vh - 64px); min-height: 560px; overflow: hidden; }
.cine-stage > * { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; opacity: 0; }

.c-title { width: min(1100px, 92vw); text-align: center; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2.6rem, 8vw, 7rem); }
.c-title.sm { font-size: clamp(1.9rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; }
.c-sub { width: min(640px, 90vw); text-align: center; color: #9a9aa4; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; }

.c-keys { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.c-key { display: grid; place-items: center; min-width: clamp(84px, 13vw, 170px); height: clamp(84px, 13vw, 170px); padding: 0 clamp(16px, 2.6vw, 34px); border-radius: clamp(14px, 2vw, 26px);
  background: #1c1c21; border: 1px solid #34343c; border-bottom: clamp(5px, 0.8vw, 10px) solid #2a2a31; color: #f2f2f4;
  font: 500 clamp(1.1rem, 2.4vw, 2.2rem)/1 var(--mono); transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
.c-key.wide { min-width: clamp(170px, 30vw, 400px); }
.c-plus { font: 400 clamp(1.4rem, 3vw, 2.6rem)/1 var(--font); color: #5c5c66; }
.c-keys.down .c-key { background: #f7814b; border-color: #f7814b; border-bottom-color: #c8602f; color: #0b0b0d; }

.c-wave { width: 100vw; height: min(46vh, 380px); }

.c-words { width: min(1080px, 92vw); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; row-gap: 0.12em;
  font-size: clamp(1.9rem, 5.2vw, 4.4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.c-words .w { display: inline-block; white-space: nowrap; overflow: hidden; margin-right: 0.26em; color: #f2f2f4; opacity: 0; }
.c-words .w.filler { color: #75757f; }
.c-clean { width: min(1080px, 92vw); text-align: center; font-size: clamp(1.9rem, 5.2vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.c-clean b { color: #f7814b; font-weight: 600; }

.c-window { width: min(760px, 90vw); background: #16161a; border: 1px solid #2c2c33; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.c-window .window-bar { background: #1c1c21; border-bottom-color: #2c2c33; }
.c-window .window-bar i { background: #3a3a42; }
.c-window .window-bar span { color: #85858e; }
.c-window .mail-row { border-bottom-color: #2c2c33; color: #85858e; }
.c-window .mail-row b { color: #b2b2ba; }
.c-mailtext { min-height: 150px; padding-top: 18px; font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.7; color: #f2f2f4; }
.c-badge { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; color: #4cc283; background: #16261d; padding: 4px 10px; border-radius: 999px; opacity: 0; }
.c-badge svg { width: 14px; height: 14px; }

.c-card { width: min(330px, 84vw); background: #16161a; border: 1px solid #2c2c33; border-radius: 14px; padding: 18px 20px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.c-card .app { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.c-card .app span { margin-left: auto; font-size: 0.75rem; font-weight: 500; color: #b2b2ba; background: #24242a; padding: 2px 8px; border-radius: 999px; }
.c-card p { margin: 0; color: #e4e4e8; font-size: 1rem; line-height: 1.55; }
.c-card code { background: #24242a; color: #f2f2f4; }

.c-ask { width: min(820px, 90vw); }
.c-ask .q { display: flex; align-items: center; gap: 14px; font-size: clamp(1.25rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 24px; min-height: 2.6em; }
.c-ask .q svg { width: clamp(26px, 3vw, 36px); height: clamp(26px, 3vw, 36px); color: #f7814b; flex: none; }
.c-ask .a { background: #16161a; border: 1px solid #2c2c33; border-radius: 14px; padding: 22px 24px; min-height: 9.5em; font-size: clamp(0.98rem, 1.5vw, 1.12rem); line-height: 1.7; color: #e4e4e8; }

.c-end { text-align: center; }
.c-end img { width: clamp(72px, 9vw, 110px); height: auto; margin: 0 auto 22px; border-radius: 24%; }
.c-end .t { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.c-end .s { color: #9a9aa4; margin-top: 14px; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.c-hud { left: 0; top: auto; bottom: 0; width: 100%; opacity: 1; display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 4vw, 48px) 22px; font: 500 0.8rem/1 var(--mono); color: #75757f; }
.c-hud .bar { flex: 1; height: 2px; background: #26262c; position: relative; overflow: hidden; }
.c-hud .bar i { position: absolute; inset: 0; background: #f7814b; transform-origin: left; transform: scaleX(0); }
.c-hud .ch { min-width: 7.5em; color: #b2b2ba; }

@media (prefers-reduced-motion: reduce) {
  .cine { height: auto; }
  .cine-stage { position: relative; top: 0; height: 640px; }
}

/* ---------- Dark hero with WebGL background ---------- */
.hero-x { position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: grid; place-items: center; overflow: hidden; background: #0b0b0d; color: #f2f2f4; text-align: center; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-x-inner { position: relative; z-index: 1; width: min(1100px, 100% - 32px); padding: 64px 0 96px; }
.hero-x-label { display: inline-block; font: 500 0.85rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #a7a7b0; margin-bottom: 28px; }
.hero-x h1 { font-size: clamp(2.8rem, 8.4vw, 7.6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; margin: 0 auto 28px; max-width: 13ch; }
.hero-x h1 em { font-style: normal; color: #f7814b; }
.hero-x p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #b8b8c0; max-width: 560px; margin: 0 auto 40px; line-height: 1.55; }
.hero-x .hero-cta { justify-content: center; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.hero-x .btn-primary { background: #f7814b; color: #0b0b0d; }
.hero-x .btn-primary:hover { background: #ff9a6b; }
.btn-dark { background: rgba(255, 255, 255, 0.06); border-color: #3a3a42; color: #f2f2f4; }
.btn-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: #5c5c66; }
.hero-x-cue { position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #75757f; }
.hero-x-cue i { width: 1px; height: 40px; background: #3a3a42; position: relative; overflow: hidden; }
.hero-x-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #f2f2f4; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 560px) { .hero-x .hero-cta .btn { width: 100%; } .hero-x-inner { padding-bottom: 110px; } }
.c-pill .pill { box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55); }
.c-pill.refining .bars { display: none; }
.c-pill.refining .spinner { display: block; }
.cine-stage > .cine-gl { left: 0; top: 0; width: 100%; height: 100%; opacity: 1; transform: none; }
.hero-x h1 .hero-x-label { display: block; letter-spacing: 0.08em; line-height: 1; }
