/* Kural — marketing site.
   No third-party fonts, scripts or images: a privacy product's page should
   not phone anyone either. System fonts only. */

:root {
  color-scheme: dark;
  --bg: #0f0f11;
  --bg-alt: #141417;
  --surface: #19191d;
  --surface-2: #202025;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2ef;
  --muted: #a9a6a2;
  --faint: #7c7a77;
  --accent: #ff6b54;
  --accent-text: #ff8672;
  --accent-soft: rgba(255, 107, 84, 0.13);
  --on-accent: #1d0d09;
  --pill: #0f0f12;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 18px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #faf8f5;
    --bg-alt: #f3f0eb;
    --surface: #ffffff;
    --surface-2: #f6f3ef;
    --line: rgba(20, 16, 12, 0.1);
    --line-strong: rgba(20, 16, 12, 0.2);
    --text: #18171a;
    --muted: #5d5a57;
    --faint: #85817d;
    --accent-text: #c2371f;
    --accent-soft: rgba(255, 107, 84, 0.14);
    --shadow: 0 24px 60px -24px rgba(60, 40, 30, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-round); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

kbd {
  font-family: var(--font-round);
  font-size: 0.8em; font-weight: 600;
  padding: 0.22em 0.6em;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  white-space: nowrap;
}

/* ───────── Brand mark: a dot, then three bars ───────── */
.mark { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mark b { width: 3px; border-radius: 3px; background: var(--text); }
.mark b:nth-of-type(1) { height: 55%; }
.mark b:nth-of-type(2) { height: 100%; }
.mark b:nth-of-type(3) { height: 70%; }
.mark-large { height: 44px; gap: 7px; }
.mark-large i { width: 14px; height: 14px; }
.mark-large b { width: 7px; border-radius: 7px; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-family: var(--font-round); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-round); font-weight: 650; font-size: 16px;
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ff7d69; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 8px 16px; font-size: 14px; background: var(--text); color: var(--bg); }
.btn-small:hover { opacity: 0.88; }
.btn-block { width: 100%; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 76px 0 92px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: -12%; top: -10%; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(255, 107, 84, 0.16), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text);
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
}
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-center { justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: 14px; color: var(--faint); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ───────── Hero demo ───────── */
.demo { position: relative; padding-bottom: 8px; }
.win {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.win-bar span { margin: 0 auto; transform: translateX(-27px); font-size: 13px; font-weight: 600; color: var(--muted); }
.win-body { padding: 22px 24px 132px; min-height: 340px; }
.note { font-size: 17px; line-height: 1.6; }
.caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 1px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.fresh { animation: settle 0.5s ease-out; }
@keyframes settle {
  from { background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
  to { background: transparent; box-shadow: 0 0 0 4px transparent; }
}

/* The floating pill, as it looks in the app (always dark). */
.overlay {
  position: absolute; left: 0; right: 0; bottom: 116px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  opacity: 0; transform: translateY(8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.overlay:not([data-phase="idle"]) { opacity: 1; transform: none; }
.bubble {
  max-width: min(420px, 86%);
  padding: 9px 14px; border-radius: 14px;
  background: rgba(15, 15, 18, 0.92); color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px; line-height: 1.45; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.bubble:empty { visibility: hidden; }
.overlay:not([data-phase="listening"]) .bubble { visibility: hidden; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 15px; border-radius: 999px;
  background: rgba(15, 15, 18, 0.95); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 84, 0.5);
  animation: pulse 1.9s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 107, 84, 0); } }
.wave { display: inline-flex; align-items: center; gap: 2.5px; height: 22px; }
.wave i { width: 3px; height: 3px; border-radius: 3px; background: #fff; }
.elapsed { font-family: var(--font-round); font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.55); }
.thinking { display: none; gap: 5px; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: think 0.9s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 0.14s; }
.thinking i:nth-child(3) { animation-delay: 0.28s; }
@keyframes think { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
.pill-label { display: none; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.pill-label::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.overlay[data-phase="finishing"] .pill-label::before { content: none; }
.overlay[data-phase="finishing"] :is(.live-dot, .wave, .elapsed),
.overlay[data-phase="inserted"] :is(.live-dot, .wave, .elapsed) { display: none; }
.overlay[data-phase="finishing"] .thinking { display: inline-flex; }
.overlay[data-phase="finishing"] .pill-label,
.overlay[data-phase="inserted"] .pill-label { display: inline; }

.demo-controls {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: -26px; position: relative;
}
.holdkey {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-family: var(--font-round); font-weight: 600; font-size: 15px;
  color: var(--text);
  padding: 9px 20px 9px 9px; border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-bottom-width: 3px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: transform 0.08s, border-bottom-width 0.08s, background 0.15s;
}
.holdkey kbd { font-size: 14px; padding: 7px 12px; background: var(--bg); border-bottom-width: 1px; }
.holdkey:hover { background: var(--surface); }
.holdkey.is-down { transform: translateY(2px); border-bottom-width: 1px; background: var(--accent-soft); border-color: var(--accent); }
.demo-note { font-size: 12.5px; color: var(--faint); text-align: center; }

/* ───────── Sections ───────── */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 18em; }
.section-lede { margin-top: 16px; font-size: 18.5px; color: var(--muted); max-width: 38em; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.pillar {
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.pillar-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); }
.pillar h3 { margin-top: 14px; font-size: 27px; letter-spacing: -0.02em; }
.pillar-claim { margin-top: 6px; font-weight: 600; color: var(--accent-text); }
.pillar p:last-child { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Where your voice goes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.route { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.route h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.route > p { margin-top: auto; padding-top: 22px; font-size: 15.5px; color: var(--muted); }
.hops { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 18px; }
.hops li {
  position: relative;
  font-size: 14.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.hops li:not(:last-child)::after {
  content: "↓"; position: absolute; left: 14px; top: calc(100% + 4px);
  color: var(--faint); font-weight: 400; line-height: 22px;
}
.hops li.away { border-style: dashed; border-color: var(--line-strong); color: var(--muted); background: transparent; }
.route-local { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.route-local h3 { color: var(--accent-text); }
.boundary {
  position: relative; margin-top: 26px; padding: 8px 16px 18px;
  border: 1.5px solid var(--accent); border-radius: 14px;
  background: var(--accent-soft);
}
.boundary-label {
  position: absolute; top: -11px; left: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1px 8px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.boundary .hops li { background: var(--surface); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 52px; counter-reset: step; }
.steps li { counter-increment: step; }
.step-key {
  display: flex; align-items: center; justify-content: center;
  height: 112px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step-key kbd { font-size: 17px; padding: 9px 16px; }
.steps h3 { margin-top: 20px; font-size: 21px; letter-spacing: -0.015em; }
.steps h3::before { content: counter(step) ". "; color: var(--accent-text); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.mini-wave { display: inline-flex; align-items: center; gap: 5px; height: 48px; }
.mini-wave i { width: 5px; border-radius: 5px; background: var(--text); animation: bob 1.1s ease-in-out infinite; }
.mini-wave i:nth-child(1) { height: 22%; animation-delay: -0.9s; }
.mini-wave i:nth-child(2) { height: 55%; animation-delay: -0.5s; }
.mini-wave i:nth-child(3) { height: 90%; animation-delay: -0.2s; }
.mini-wave i:nth-child(4) { height: 60%; animation-delay: -0.7s; background: var(--accent); }
.mini-wave i:nth-child(5) { height: 100%; animation-delay: -0.35s; }
.mini-wave i:nth-child(6) { height: 45%; animation-delay: -0.8s; }
.mini-wave i:nth-child(7) { height: 25%; animation-delay: -0.1s; }
@keyframes bob { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.mini-cursor { font-family: var(--font-round); font-size: 26px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.mini-cursor i { width: 2.5px; height: 30px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.aside { margin-top: 40px; color: var(--muted); font-size: 16px; }

/* App screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); background: #1f1f1f;
}
.shot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 52px; }
.features svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin-top: 14px; font-size: 18px; letter-spacing: -0.01em; }
.features p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* Compare */
.table-scroll { margin-top: 44px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child :is(th, td) { border-bottom: 0; }
.compare thead th { font-family: var(--font-round); font-size: 15px; font-weight: 650; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 24%; }
.compare .us { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare thead .us { color: var(--accent-text); }
.compare .lose .us { font-weight: 400; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 18px; margin-top: 48px; }
.plan {
  display: flex; flex-direction: column;
  padding: 30px 28px 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan h3 { font-size: 16px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan-featured h3 { color: var(--accent-text); }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-family: var(--font-round); font-size: 54px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--muted); font-size: 17px; }
.plan-sub { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.plan-fine { margin-top: 12px; color: var(--faint); font-size: 13px; text-align: center; }
.plan ul { margin: 22px 0 28px; display: grid; gap: 11px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-round); font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details p { padding: 0 2px 22px; color: var(--muted); max-width: 40em; }

/* Closing */
.closing { padding: 112px 0 104px; text-align: center; }
.closing h2 { margin: 26px auto 0; max-width: 14em; font-size: clamp(32px, 4.6vw, 56px); }
.name-note { margin-top: 14px; color: var(--muted); font-size: 16px; }
.closing .cta-row { margin-top: 34px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--faint); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: var(--muted); text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }

/* Toast (shown while download / checkout links are not wired up yet) */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.25s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .demo { max-width: 560px; width: 100%; margin: 0 auto; }
  .pillars, .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps { gap: 32px; }
  .routes { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .lede { font-size: 17.5px; }
  .win-body { min-height: 300px; padding: 18px 18px 132px; }
  .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .closing { padding: 80px 0; }
}

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