/* ==========================================================================
   KeelOffice — design system & styles
   No external fonts or libraries. Sections:
   1. Tokens  2. Base  3. Components  4. Header  5. Hero & demo
   6. Problem  7. How it works  8. Benefits  9. Offer  10. About
   11. FAQ  12. Contact  13. Legal & footer  14. Motion  15. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Ink: the brand navy, extended into a dark scale */
  --ink-950: #06111a;
  --ink-900: #0a1824;
  --ink-850: #0d1e2c;
  --ink-800: #112636;
  --ink-700: #1a3448;
  --navy: #0f2a3d;

  /* Teal: the brand accent */
  --teal-200: #b5efe7;
  --teal-300: #7fe0d3;
  --teal-400: #3cc6b6;
  --teal-500: #26a99b;
  --teal-600: #1a857c;
  --teal-700: #136760;

  /* Status colours (used in the product UI only) */
  --amber: #f0b44c;
  --sky: #7fb2ef;
  --rust: #b4533a;

  /* Light surfaces */
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --white: #ffffff;
  --text: #0b1a26;
  --text-2: #33424e;
  --muted: #5d6a75;
  --line: #e2e0d8;
  --line-strong: #cfccc2;

  /* Dark surfaces */
  --on-dark: #edf3f6;
  --on-dark-2: #a8bccb;
  --on-dark-3: #7a90a2;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-2: rgba(255, 255, 255, 0.14);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --fs-h1: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.5vw, 3.3rem);
  --fs-lead: clamp(1.075rem, 1rem + 0.35vw, 1.3rem);

  /* Shape & motion */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 9vw, 140px);
  --header-h: 64px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
section { position: relative; padding: var(--section-y) 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

::selection { background: var(--teal-300); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }

/* Language switching: every visible text exists as lang="de" and lang="en" */
html[data-lang="de"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="de"] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--text); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* 3. Components ------------------------------------------------------------ */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.section-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); margin-top: 20px; max-width: 34em; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.section-head.split .section-lead { margin-top: 0; }

/* Buttons */
.btn {
  --btn-h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { --btn-h: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--teal-400); color: var(--ink-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(6, 17, 26, 0.25), 0 10px 30px -12px rgba(60, 198, 182, 0.65);
}
.btn-primary:hover { background: #55d3c4; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(6, 17, 26, 0.25), 0 14px 34px -12px rgba(60, 198, 182, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--on-dark); border-color: var(--line-dark-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(11, 26, 38, 0.06); }
.btn-secondary:hover { border-color: var(--text-2); transform: translateY(-1px); }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color 0.2s, gap 0.25s var(--ease); }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-link:hover { border-color: var(--teal-500); gap: 12px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-new { background: var(--amber); }
.dot-done { background: var(--teal-400); }
.dot-visit { background: var(--sky); }

.placeholder { background: #fff3c4; color: #5c4600; padding: 1px 6px; border-radius: 4px; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 24, 36, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(8, 20, 30, 0.85); }
.nav { display: flex; align-items: center; height: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav-menu a:not(.btn) {
  color: var(--on-dark-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background-color 0.2s;
}
.nav-menu a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-menu-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.lang-switch button {
  border: 0; background: transparent; color: var(--on-dark-3); cursor: pointer;
  font: 600 12px/1 var(--mono); letter-spacing: 0.04em; padding: 7px 9px; border-radius: 6px; transition: color 0.2s, background-color 0.2s;
}
.lang-switch button:hover { color: var(--on-dark); }
.lang-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; left: 50%; width: 16px; height: 1.5px; margin-left: -8px; background: var(--on-dark); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-icon { top: 50%; }
.menu-icon::before { content: ""; top: -5px; left: 0; margin: 0; }
.menu-icon::after { content: ""; top: 5px; left: 0; margin: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* 5. Hero & product demo --------------------------------------------------- */
.hero { background: var(--ink-900); color: var(--on-dark); padding: clamp(64px, 8vw, 112px) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* fine engineering grid, fading out */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}
.hero-bg::after { /* single soft light source behind the product */
  content: ""; position: absolute; left: 50%; top: 38%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(60, 198, 182, 0.16), transparent 70%);
}
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-dark-2);
  background: rgba(255, 255, 255, 0.03); color: var(--on-dark-2); font-size: 13.5px; font-weight: 500;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(60, 198, 182, 0.18); }
.hero h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.048em; font-weight: 650; color: var(--white); }
.hero h1 em { display: block; font-style: normal; color: var(--teal-300); }
.hero .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-2); max-width: 36em; margin: 28px auto 0; }
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--on-dark-3); }

/* Demo ---------------------------------------------------------------- */
.demo { max-width: 1120px; margin: clamp(56px, 7vw, 88px) auto 0; }
.demo-stage { position: relative; perspective: 1600px; }
.win {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--ink-850); border: 1px solid var(--line-dark-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 120px -40px rgba(60, 198, 182, 0.25);
  font-size: 13.5px; line-height: 1.5; color: var(--on-dark);
}
.win::after { /* dimmer used on small screens while the phone is in front */
  content: ""; position: absolute; inset: 0; background: rgba(6, 17, 26, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.win-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.02); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.win-title { font-size: 12.5px; color: var(--on-dark-3); font-weight: 500; }
.win-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-3); border: 1px dashed var(--line-dark-2); padding: 3px 8px; border-radius: 6px; }

.win-body { display: grid; grid-template-columns: 212px 268px 1fr; height: 584px; }
.win-side { border-right: 1px solid var(--line-dark); padding: 16px 10px; background: rgba(0, 0, 0, 0.12); }
.side-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); padding: 0 8px 8px; }
.side-label-2 { margin-top: 22px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; white-space: nowrap; border-radius: 7px; color: var(--on-dark-2); font-size: 13px; }
.side-item.is-active { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); }
.side-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--on-dark-3); }
.side-source svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

.win-list { border-right: 1px solid var(--line-dark); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.list-item { position: relative; padding: 12px 12px 12px 14px; border-radius: 10px; border: 1px solid transparent; }
.list-item.is-selected { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.list-item.is-selected::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--teal-400); }
.li-top { display: flex; justify-content: space-between; gap: 8px; }
.li-top b { font-weight: 600; font-size: 13.5px; }
.li-time { font-family: var(--mono); font-size: 11px; color: var(--on-dark-3); }
.li-sub { color: var(--on-dark-3); font-size: 12.5px; margin: 2px 0 10px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
.list-item .pill { position: relative; }
.list-item-new { display: grid; grid-template-columns: auto; }
.list-item-new .pill { grid-area: 3 / 1; justify-self: start; }
.pill-new { background: rgba(240, 180, 76, 0.14); color: var(--amber); }
.pill-draft { background: rgba(127, 178, 239, 0.14); color: var(--sky); }
.pill-done { background: rgba(60, 198, 182, 0.14); color: var(--teal-300); }
.pill-visit { background: rgba(127, 178, 239, 0.12); color: var(--sky); }

.win-detail { position: relative; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.toast {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(240, 180, 76, 0.12); color: var(--amber); border: 1px solid rgba(240, 180, 76, 0.25);
}
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.d-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ink-700); color: var(--on-dark); border: 1px solid var(--line-dark-2); flex-shrink: 0; }
.d-name { font-weight: 600; font-size: 14.5px; }
.d-meta { color: var(--on-dark-3); font-size: 12px; font-family: var(--mono); }
.d-msg { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-dark); color: var(--on-dark); }
.d-panel { border-radius: 12px; border: 1px solid var(--line-dark); padding: 12px 14px; }
.d-panel-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 10px; }
.d-panel-head svg { width: 14px; height: 14px; fill: none; stroke: var(--teal-400); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.d-analysis { background: linear-gradient(rgba(60, 198, 182, 0.04), rgba(60, 198, 182, 0.01)); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.field { padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.field dt { font-size: 10.5px; color: var(--on-dark-3); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.field dd { margin: 1px 0 0; font-weight: 500; font-size: 13px; }
.field-missing { background: rgba(240, 180, 76, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 180, 76, 0.3); }
.field-missing dd { color: var(--amber); }
.field-next { background: rgba(60, 198, 182, 0.1); box-shadow: inset 0 0 0 1px rgba(60, 198, 182, 0.28); }
.field-next dd { color: var(--teal-300); }
.d-draft { background: rgba(255, 255, 255, 0.025); }
.draft-text { display: grid; gap: 4px; color: var(--on-dark); }
.draft-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-dark-2); font-size: 11.5px; color: var(--on-dark-3); }
.d-sent { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(60, 198, 182, 0.12); color: var(--teal-200); font-weight: 500; font-size: 13px; }
.d-sent svg { width: 16px; height: 16px; fill: none; stroke: var(--teal-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Owner's phone */
.phone {
  position: absolute; left: -36px; bottom: -44px; z-index: 3; width: 248px;
  padding: 10px; border-radius: 36px; background: #050c12;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 5px #0c1822, 0 40px 80px -20px rgba(0, 0, 0, 0.85);
}
.phone-notch { width: 70px; height: 20px; border-radius: 12px; background: #000; margin: 2px auto 10px; }
.phone-app { padding: 4px 6px 10px; }
.phone-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.phone-head b { display: block; font-size: 13px; }
.phone-head small { display: block; font-size: 11px; color: var(--on-dark-3); }
.phone-logo { width: 30px; height: 30px; border-radius: 8px; background: url("../assets/favicon.svg") center / cover; }
.phone-card { background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px; }
.phone-card-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.phone-card-text { color: var(--on-dark-2); font-size: 12px; line-height: 1.45; }
.phone-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 10px; }
.p-btn { position: relative; display: grid; place-items: center; height: 40px; border-radius: 11px; font-size: 13px; font-weight: 600; }
.p-btn > span { grid-area: 1 / 1; }
.p-btn-ghost { background: rgba(255, 255, 255, 0.07); color: var(--on-dark); }
.p-btn-go { background: var(--teal-400); color: var(--ink-950); }
.tap { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none; }

/* Stage visibility: [data-from=n] shows from stage n, [data-only="a b"] only at those stages (JS adds .is-on) */
.js .demo [data-from], .js .demo [data-only] {
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out), visibility 0s linear 0.5s;
}
.js .demo .is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .demo .phone[data-from] { transform: translateY(48px) rotate(-2deg) scale(0.96); }
.js .demo .phone.is-on { transform: none; }
html:not(.js) .demo [data-only] { display: none; }
html:not(.js) .demo-controls { display: none; }

.js .demo .d-analysis.is-on .field { animation: rise 0.5s var(--ease-out) both; }
.js .demo .d-analysis.is-on .field:nth-child(2) { animation-delay: 0.08s; }
.js .demo .d-analysis.is-on .field:nth-child(3) { animation-delay: 0.16s; }
.js .demo .d-analysis.is-on .field:nth-child(4) { animation-delay: 0.24s; }
.js .demo .d-analysis.is-on .field:nth-child(5) { animation-delay: 0.5s; }
.js .demo .d-analysis.is-on .field:nth-child(6) { animation-delay: 0.8s; }
.js .demo .d-draft.is-on .dl { animation: write 0.7s var(--ease-out) both; }
.js .demo .d-draft.is-on .dl:nth-child(2) { animation-delay: 0.6s; }
.js .demo .d-draft.is-on .dl:nth-child(3) { animation-delay: 1.2s; }
.js .demo .tap.is-on { animation: tap 1.6s var(--ease-out) 0.9s infinite; opacity: 0; }
.js .demo .list-item-new { animation: slideIn 0.6s var(--ease-out) both; }

/* Controls */
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(64px, 6vw, 80px); }
.demo-steps { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); counter-reset: none; }
.demo-steps button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--on-dark-3); cursor: pointer;
  font: 500 13px/1 var(--font); white-space: nowrap; overflow: hidden; transition: color 0.2s, background-color 0.2s;
}
.demo-steps button:hover { color: var(--on-dark); }
.ds-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 600 11px/1 var(--mono); background: rgba(255, 255, 255, 0.06); }
.demo-steps button.is-active { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.demo-steps button.is-active .ds-num { background: var(--teal-400); color: var(--ink-950); }
.demo-steps button.is-done .ds-num { color: var(--teal-300); }
.demo-steps button::after { /* progress for the current step */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--teal-400); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.demo-steps button.is-active::after { opacity: 0.8; animation: progress var(--dur, 3s) linear forwards; }
.demo.is-paused .demo-steps button.is-active::after { animation-play-state: paused; }
.demo-toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); color: var(--on-dark-2); cursor: pointer; display: grid; place-items: center; }
.demo-toggle:hover { color: var(--white); }
.demo-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.demo-toggle .i-play { display: none; fill: currentColor; }
.demo.is-paused .demo-toggle .i-play { display: block; }
.demo.is-paused .demo-toggle .i-pause { display: none; }
.demo-now { display: none; text-align: center; color: var(--on-dark); font-weight: 600; font-size: 14.5px; margin-top: 14px; }
.demo-caption { text-align: center; color: var(--on-dark-3); font-size: 12.5px; margin-top: 16px; }

/* Facts strip */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line-dark);
}
.facts li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 12px; color: var(--on-dark-2); font-size: 14.5px; font-weight: 500; }
.facts li + li { border-left: 1px solid var(--line-dark); }
.facts svg { width: 20px; height: 20px; fill: none; stroke: var(--teal-400); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 6. Problem --------------------------------------------------------------- */
.problem { background: var(--paper); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.problem h2 { max-width: 13em; }
.pains { margin-top: 56px; border-top: 1px solid var(--line-strong); }
.pains li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pain-num { font-family: var(--mono); font-size: 12.5px; color: var(--teal-600); padding-top: 3px; }
.pains h3 { margin-bottom: 6px; }
.pains p { color: var(--muted); font-size: 16px; }

.day {
  position: sticky; top: calc(var(--header-h) + 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px;
  box-shadow: 0 1px 2px rgba(11, 26, 38, 0.04), 0 24px 60px -30px rgba(11, 26, 38, 0.25);
}
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.day-title { font-weight: 600; letter-spacing: -0.01em; }
.day-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-strong); padding: 3px 8px; border-radius: 6px; }
.lane { border-radius: 16px; padding: 20px; }
.lane + .lane { margin-top: 12px; }
.lane-before { background: var(--paper); }
.lane-after { background: var(--ink-900); color: var(--on-dark); }
.lane-label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lane-after .lane-label { color: var(--teal-300); }
.lane-mark { width: 14px; height: 14px; border-radius: 4px; background: url("../assets/favicon.svg") center / cover; }
.events { position: relative; display: grid; gap: 12px; padding-left: 22px; }
.events::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.lane-after .events::before { background: rgba(255, 255, 255, 0.16); }
.events li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 15px; }
.events li::before { content: ""; position: absolute; left: -22px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-strong); }
.lane-after .events li::before { background: var(--ink-900); border-color: rgba(255, 255, 255, 0.35); }
.events time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 1px; }
.lane-after .events time { color: var(--on-dark-3); }
.ev-muted { color: var(--muted); }
.ev-late { color: var(--rust); font-weight: 600; }
.events .ev-late::before { border-color: var(--rust); background: var(--rust); }
.ev-good { color: var(--teal-300); font-weight: 600; }
.lane-after .events .ev-good::before { background: var(--teal-400); border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(60, 198, 182, 0.2); }
.day-cap { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* 7. How it works ---------------------------------------------------------- */
.how { background: var(--white); }
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.flow::before { /* connector through the visuals */
  content: ""; position: absolute; top: 88px; left: 12%; right: 12%; height: 1px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
}
.flow::after { /* a single pulse travelling along the connector */
  content: ""; position: absolute; top: 85px; left: 12%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-500); box-shadow: 0 0 0 4px rgba(38, 169, 155, 0.18);
  animation: travel 5s var(--ease) infinite;
}
.flow-step { position: relative; }
.flow-visual {
  position: relative; z-index: 1; height: 176px; border-radius: var(--r-lg); margin-bottom: 28px;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.flow-step:hover .flow-visual { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 20px 40px -24px rgba(11, 26, 38, 0.3); }
.flow-num { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--teal-600); margin-bottom: 10px; }
.flow-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: 16px; }

.fv-sources { display: grid; gap: 8px; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); }
.fv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 500; box-shadow: 0 2px 6px -2px rgba(11, 26, 38, 0.12); }
.fv-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--teal-600); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fv-arrow { position: absolute; left: 52%; top: 50%; width: 28px; height: 1px; background: var(--line-strong); }
.fv-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: rotate(45deg); }
.fv-inbox { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); padding: 10px 14px; border-radius: 10px; background: var(--ink-900); color: var(--teal-300); font: 500 12px/1 var(--mono); letter-spacing: 0.04em; }
.fv-draft { width: 72%; padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 8px; box-shadow: 0 8px 20px -12px rgba(11, 26, 38, 0.2); }
.fv-draft i { display: block; height: 7px; border-radius: 4px; background: var(--paper-2); }
.fv-draft i.short { width: 55%; }
.fv-draft .fv-mark { height: auto; width: max-content; padding: 3px 8px; font: normal 500 11.5px/1.3 var(--font); color: #8a5a00; background: #fbecc9; box-shadow: inset 0 0 0 1px #f0d08f; }
.fv-phone { width: 120px; height: 150px; margin-top: 52px; border-radius: 22px 22px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; background: var(--white); padding: 22px 14px 0; display: grid; align-content: start; gap: 7px; }
.fv-phone-line { height: 6px; border-radius: 3px; background: var(--paper-2); }
.fv-phone-line.short { width: 60%; }
.fv-approve { margin-top: 8px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-400); color: var(--ink-950); font-size: 12px; font-weight: 600; }
.flow-step:hover .fv-approve { animation: press 0.6s var(--ease-out); }

.video-note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 64px; font-size: 15px; }
.video-note a { font-weight: 600; color: var(--text); }
.video-soon { color: var(--muted); font-size: 14px; }

/* 8. Benefits (bento) ------------------------------------------------------ */
.benefits { background: var(--ink-900); color: var(--on-dark); }
.benefits .kicker { color: var(--teal-300); }
.benefits h2 { color: var(--white); }
.benefits .section-lead { color: var(--on-dark-2); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 32px;
  background: var(--ink-850); border: 1px solid var(--line-dark);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(60, 198, 182, 0.09), transparent 60%);
}
.tile:hover { border-color: var(--line-dark-2); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.tile p { color: var(--on-dark-2); font-size: 16px; max-width: 30em; }
.tile-control, .tile-pipeline { grid-column: span 3; display: flex; flex-direction: column; gap: 32px; }
.tile-speed, .tile-channels, .tile-data { grid-column: span 2; }
.tile-copy { max-width: 28em; }

.rules { display: grid; gap: 8px; margin-top: auto; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); font-size: 14.5px; }
.rules li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: var(--teal-400); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.rule-state { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--teal-300); background: rgba(60, 198, 182, 0.1); padding: 4px 8px; border-radius: 6px; }

.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.pcol { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-dark); min-height: 150px; }
.pcol-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-dark-2); font-weight: 500; margin-bottom: 4px; white-space: nowrap; }
.pcard { height: 38px; border-radius: 9px; background: var(--ink-800); border: 1px solid var(--line-dark); position: relative; }
.pcard::before, .pcard::after { content: ""; position: absolute; left: 10px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.pcard::before { top: 11px; width: 55%; }
.pcard::after { top: 22px; width: 35%; background: rgba(255, 255, 255, 0.07); }
.pcard-move { border-color: rgba(240, 180, 76, 0.45); animation: glow 2.4s ease-in-out infinite; }

.speed-figure { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1; font-weight: 650; letter-spacing: -0.045em; color: var(--teal-300); margin-bottom: 28px; }
.tile-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 28px; background: rgba(60, 198, 182, 0.1); border: 1px solid rgba(60, 198, 182, 0.2); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-300); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 9. Offer ----------------------------------------------------------------- */
.offer { background: var(--white); }
.offer-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.timeline { position: relative; margin-top: 56px; display: grid; gap: 32px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--teal-500), var(--line) 85%); }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -36px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--teal-500); }
.timeline li:first-child .tl-dot { background: var(--teal-500); box-shadow: 0 0 0 5px rgba(38, 169, 155, 0.15); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 16px; }

.price-card {
  position: sticky; top: calc(var(--header-h) + 32px);
  border-radius: var(--r-xl); padding: 36px; color: var(--on-dark);
  background: var(--ink-900); border: 1px solid var(--ink-800);
  box-shadow: 0 40px 80px -40px rgba(10, 24, 36, 0.55);
  overflow: hidden; isolation: isolate;
}
.price-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 240px at 100% 0%, rgba(60, 198, 182, 0.16), transparent 70%); }
.price-top { display: flex; justify-content: space-between; align-items: center; }
.price-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.price-badge { font-size: 12.5px; font-weight: 600; color: var(--ink-950); background: var(--teal-300); padding: 5px 10px; border-radius: 999px; }
.price { font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem); font-weight: 650; letter-spacing: -0.04em; color: var(--white); margin-top: 24px; line-height: 1.05; }
.price-sub { color: var(--on-dark-2); margin-top: 8px; }
.checklist { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.checklist li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--on-dark); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(60, 198, 182, 0.16); }
.checklist li::after { content: ""; position: absolute; left: 6.5px; top: 7px; width: 4px; height: 8px; border: solid var(--teal-300); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* 10. About ---------------------------------------------------------------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 6%; border-radius: var(--r-xl); background: var(--paper-2); }
.about-photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.about-photo figcaption b { color: var(--text); font-weight: 600; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--text-2); font-size: 17.5px; max-width: 34em; }
.about-copy p + p { margin-top: 16px; }
.about-lead { font-size: var(--fs-lead) !important; color: var(--text) !important; line-height: 1.5; }
.about-quote { margin: 36px 0; padding-left: 24px; border-left: 2px solid var(--teal-500); font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }

/* 11. FAQ ------------------------------------------------------------------ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro .btn { margin-top: 32px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 24px 48px 24px 0;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--teal-700); }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-a { padding: 0 48px 26px 0; }
.faq-a p { color: var(--muted); font-size: 16.5px; max-width: 40em; }
.faq-list details[open] .faq-a { animation: fadeDown 0.4s var(--ease-out); }

/* 12. Contact -------------------------------------------------------------- */
.contact { background: var(--ink-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 100%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 100%, #000 20%, transparent 70%);
}
.contact-bg::after { content: ""; position: absolute; left: -10%; bottom: -30%; width: 900px; height: 600px; background: radial-gradient(closest-side, rgba(60, 198, 182, 0.14), transparent 70%); }
.contact .kicker { color: var(--teal-300); }
.contact h2 { color: var(--white); }
.contact .section-lead { color: var(--on-dark-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-lines { display: grid; gap: 14px; margin-top: 40px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.contact-lines svg { width: 20px; height: 20px; fill: none; stroke: var(--teal-300); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-lines a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-dark-2); transition: border-color 0.2s; }
.contact-lines a:hover { border-color: var(--teal-400); }
.contact-promises { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.contact-promises li { font-size: 13.5px; color: var(--on-dark-2); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-dark-2); }

.form {
  background: var(--white); color: var(--text); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 100px -40px rgba(0, 0, 0, 0.7);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { margin-bottom: 18px; }
.form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: 16px/1.4 var(--font); color: var(--text);
  background: #fafaf7; border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: #98a1a8; }
.form input:hover, .form textarea:hover { border-color: #b7b3a8; }
.form input:focus, .form textarea:focus { outline: none; background: var(--white); border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(38, 169, 155, 0.16); }
.form textarea { min-height: 128px; resize: vertical; }
.form .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #e3f5f2; color: var(--teal-700); font-weight: 600; }
.form-success[hidden] { display: none; }
.form-success svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 13. Legal & footer ------------------------------------------------------- */
.legal { background: var(--paper); padding: clamp(56px, 6vw, 88px) 0; }
.legal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 14px; }
.legal p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-text h3 { font-size: 1rem; margin: 28px 0 6px; }
.legal-text p + p { margin-top: 10px; }
.site-footer { background: var(--ink-950); color: var(--on-dark-2); font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand p { margin: 16px 0 24px; color: var(--on-dark-3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--on-dark-2); text-decoration: none; padding: 5px 0; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: 13.5px; }
.to-top { color: var(--on-dark-3); text-decoration: none; }
.to-top:hover { color: var(--white); }

/* 14. Motion --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tap { 0% { opacity: 0.9; transform: scale(0.3); } 60% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes travel { 0% { left: 12%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 88%; opacity: 0; } }
@keyframes press { 40% { transform: scale(0.94); } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(240, 180, 76, 0.12); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow::after { display: none; }
}

/* 15. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .phone { left: 20px; bottom: -36px; }
}

@media (max-width: 1020px) {
  .nav-menu { margin-left: 8px; }
  .nav-menu a:not(.btn) { padding: 8px 9px; }
  .win-body { grid-template-columns: 250px 1fr; }
  .win-side { display: none; }
  .toast { top: auto; right: auto; left: 24px; bottom: 24px; }
  .tile-control, .tile-pipeline { grid-column: span 6; }
  .tile-speed, .tile-channels, .tile-data { grid-column: span 2; }
  .tile { padding: 28px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-menu a:not(.btn) { padding: 14px 4px; font-size: 17px; color: var(--on-dark); border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav-menu-cta { display: inline-flex; margin-top: 20px; height: 48px; }

  .section-head.split { grid-template-columns: 1fr; gap: 0; }
  .section-head.split .section-lead { margin-top: 20px; }
  .problem-grid, .offer-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .day, .price-card, .faq-intro { position: static; }
  .about-photo { max-width: 420px; }
  .flow { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin: 0 auto; }
  .flow::before, .flow::after { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .legal-grid, .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Demo: single focused pane, phone slides up over a dimmed window */
  .win-body { grid-template-columns: 1fr; height: auto; min-height: 560px; }
  .win-list { display: none; }
  .win-detail { padding: 18px 16px; }
  .win-badge { font-size: 9.5px; }
  .win-title { display: none; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .phone { left: 50%; bottom: 24px; width: 236px; margin-left: -118px; }
  .demo[data-stage="3"] .win::after { opacity: 1; }
  .js .demo[data-stage="4"] .phone { opacity: 0; visibility: hidden; transform: translateY(40px); transition: opacity 0.4s, transform 0.5s, visibility 0s 0.5s; }
  .demo-controls { margin-top: 20px; }
  .demo-steps { flex: 1; justify-content: space-between; }
  .demo-steps li { flex: 1; }
  .demo-steps button { width: 100%; justify-content: center; padding: 0; }
  .ds-label { display: none; }
  .demo-toggle { width: 46px; flex-shrink: 0; }
  .demo-now { display: block; }

  .bento { grid-template-columns: 1fr; }
  .tile-control, .tile-pipeline, .tile-speed, .tile-channels, .tile-data { grid-column: auto; }
  .tile { padding: 24px; }
  .pipeline { gap: 6px; }
  .pcol { padding: 8px; min-height: 120px; }
  .pcol-h { font-size: 11.5px; gap: 6px; }
  .rules li { font-size: 14px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .events li { grid-template-columns: 1fr; gap: 0; }
  .day { padding: 20px; }
  .lane { padding: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .hero-ctas .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts li { justify-content: flex-start; padding: 16px 4px; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
  .pains li { grid-template-columns: 40px 1fr; }
  .faq-list summary { font-size: 1.05rem; padding-right: 40px; }
  .faq-a { padding-right: 0; }
  .price-card { padding: 28px 22px; }
}
