/* Steno – site styles */

/* ------------------------------------------------------------------ Tokens */
:root {
  color-scheme: light;
  --ink: #0b0b0c;
  --ink-2: #1d1d1f;
  --paper: #fff;
  --mist: #f5f5f7;
  --mist-2: #ebebef;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .13);
  --red-1: #ff734d;
  --red-2: #ff383d;
  --red: #ff4b3e;
  --rec: #ff453b;
  --red-grad: linear-gradient(180deg, var(--red-1), var(--red-2));
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --line-dark: rgba(255, 255, 255, .14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --fs-h1: clamp(2.75rem, 1.6rem + 4.3vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.375rem);
  --fs-h3: clamp(1.1875rem, 1.13rem + .22vw, 1.3125rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(4.5rem, 3rem + 4.2vw, 7.5rem);
  --fw-head: 600;
  --gap: clamp(14px, .7rem + .7vw, 24px);

  --r-btn: 14px;
  --r-card: 22px;
  --r-win: 12px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .12);
  --shadow-window: 0 0 0 .5px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .05), 0 26px 60px -14px rgba(0, 0, 0, .26);

  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* spring(response .38 s, damping .78) and spring(.32 s, .9), as used by the app */
  --spring: linear(0, .0346, .1191, .2303, .3513, .471, .582, .6803, .7641, .8331, .8883, .9309, .9628, .9857, 1.0013, 1.0112, 1.0169, 1.0195, 1.0199, 1.0188, 1.0169, 1.0146, 1.0122, 1.0099, 1.0077, 1.0059, 1.0043, 1.003, 1);
  --spring-soft: linear(0, .019, .0673, .1339, .2107, .2919, .3732, .4515, .5251, .5928, .6539, .7084, .7563, .7981, .834, .8647, .8907, .9125, .9306, .9456, .9578, .9677, .9757, .9821, .9871, .9911, .9941, .9964, 1);
  interpolate-size: allow-keywords;
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.52 var(--font);
  letter-spacing: -.011em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-head); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--mono); }
:lang(de) .prose, :lang(de) .prose p { hyphens: auto; -webkit-hyphens: auto; }
::selection { background: rgba(255, 75, 62, .18); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .section--dark :focus-visible { outline-color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 500; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.nobr { white-space: nowrap; }

/* -------------------------------------------------------------- Typography */
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.024em; }
.h2 { font-size: var(--fs-h2); line-height: 1.07; letter-spacing: -.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.014em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -.014em; color: var(--text-2); }
.section--dark .lead { color: var(--on-dark-2); }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); letter-spacing: -.005em;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-grad); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 4.25rem); }
.section-head .lead { margin-top: 18px; max-width: 40em; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.section-head--row > div:first-child { flex: 1 1 340px; max-width: 640px; }
.section-head--row > div:last-child { flex: none; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  --_bg: var(--ink); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  background: var(--_bg); color: var(--_fg);
  font: 500 1.0625rem/1 var(--font); letter-spacing: -.012em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--primary:hover { --_bg: #2a2a2d; }
.btn--primary .btn__arrow { transition: transform .25s var(--ease-out); }
.btn--primary:hover .btn__arrow { transform: translateY(2px); }
.btn--secondary { --_bg: #fff; --_fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--secondary:hover { --_bg: var(--mist); }
.btn--light { --_bg: #fff; --_fg: var(--ink); }
.btn--light:hover { --_bg: #e8e8ed; }
.btn--sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: .9375rem; gap: 7px; }
.btn--sm svg { width: 16px; height: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.section--dark .link { color: #fff; }

/* ------------------------------------------------------------------ Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 10px var(--gutter) 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto; position: relative;
  max-width: calc(var(--container) + 28px); margin-inline: auto;
  height: 60px; padding: 0 12px 0 14px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 20px;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.is-scrolled .site-header__bar, .menu-open .site-header__bar {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -10px rgba(0, 0, 0, .14);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .site-header__bar, .menu-open .site-header__bar { background: #fff; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 18px; text-decoration: none; font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; border-radius: 10px; }
.brand img { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 2px; }
.nav a, .lang {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: rgba(11, 11, 12, .82);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover, .lang:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; padding: 0 10px; }
.langs { display: flex; align-items: center; }
.langs .lang { padding: 0 8px; color: var(--text-2); }
.langs .lang[aria-current] { color: var(--ink); }
.langs .lang:hover { color: var(--ink); }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, .05);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .25s var(--ease-out), opacity .2s; }
.menu-toggle span + span { margin-top: 5px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu {
  pointer-events: auto; position: absolute; left: var(--gutter); right: var(--gutter); top: 78px;
  padding: 8px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px -20px rgba(0, 0, 0, .25);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 50px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-size: 1.0625rem; font-weight: 500;
}
.mobile-menu a:hover { background: var(--mist); }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------------- Hero */
.hero { padding-top: calc(70px + clamp(2.75rem, 1.5rem + 4vw, 5.25rem)); padding-bottom: var(--section); text-align: center; }
.hero .h1 { margin-top: 18px; }
.hero__lead { max-width: 44em; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fineprint { margin-top: 18px; font-size: var(--fs-xs); color: var(--text-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; }
.fineprint .link { font-size: var(--fs-xs); }

/* Stage: the top of a Mac screen with menu bar, notch, Steno window and a text field */
.stage {
  --pt: 1.15px;
  position: relative; isolation: isolate; overflow: hidden;
  height: 600px; margin-top: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  border-radius: 26px; text-align: left;
  background:
    radial-gradient(55% 70% at 88% 105%, rgba(255, 115, 77, .16), transparent 70%),
    radial-gradient(60% 80% at 8% -10%, rgba(255, 255, 255, .95), transparent 65%),
    linear-gradient(180deg, #efeff2 0%, #e2e2e7 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 50px 100px -50px rgba(0, 0, 0, .35);
}
.menubar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  height: calc(var(--pt) * 32); padding: 0 calc(var(--pt) * 16);
  display: flex; align-items: center; justify-content: space-between;
  font-size: calc(var(--pt) * 13); letter-spacing: -.005em; color: rgba(0, 0, 0, .86);
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 .5px 0 rgba(0, 0, 0, .06);
}
.menubar__menus, .menubar__status { display: flex; align-items: center; gap: calc(var(--pt) * 18); white-space: nowrap; }
.menubar__menus b { font-weight: 700; }
.menubar__status { gap: calc(var(--pt) * 14); }
.menubar__status svg { width: calc(var(--pt) * 17); height: calc(var(--pt) * 17); }
.menubar__glyph { position: relative; }
.menubar__glyph::after {
  content: ""; position: absolute; right: calc(var(--pt) * -1); top: calc(var(--pt) * 1.5);
  width: calc(var(--pt) * 5); height: calc(var(--pt) * 5); border-radius: 50%; background: currentColor;
  opacity: 0; transition: opacity .2s;
}
.is-recording .menubar__glyph::after { opacity: 1; }

.stage__window {
  position: absolute; z-index: 0; left: 50%; top: 168px;
  width: min(860px, 82%); transform: translateX(-50%);
  border-radius: var(--r-win); box-shadow: var(--shadow-window);
  background: #fafafa;
}

/* The floating text field the demo types into */
.prompt {
  position: absolute; z-index: 1; left: 50%; top: 66px; transform: translateX(-50%);
  width: min(640px, calc(100% - 28px)); min-height: 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .05), 0 28px 60px -16px rgba(0, 0, 0, .3);
}
.prompt__field { flex: 1; min-width: 0; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -.016em; color: var(--ink); }
.prompt__placeholder { color: rgba(60, 60, 67, .6); }
.prompt__typed:empty { display: none; }
.prompt__typed:not(:empty) ~ .prompt__placeholder { display: none; }
.caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em;
  background: #0a84ff; border-radius: 1px; opacity: 0;
}
.is-typing .caret, .show-caret .caret { opacity: 1; }
.show-caret .caret { animation: caret 1s steps(1) 4; animation-fill-mode: forwards; }
@keyframes caret { 50% { opacity: 0; } }

.try {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 14px;
  background: var(--ink); color: #fff; cursor: pointer;
  font: 500 .9375rem/1 var(--font); letter-spacing: -.01em;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.try:hover { background: #2a2a2d; }
.try[aria-pressed="true"] { transform: scale(.97); background: #2a2a2d; }
.try .kc {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px;
  border-radius: 6px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
  font-size: .9375rem;
}
.try[aria-pressed="true"] .kc { background: rgba(255, 255, 255, .28); }

/* Notch overlay – geometry from the app: ear 9 pt, radius 12 → 22 pt */
.notch {
  --gap: 184; --w: var(--gap); --h: 32; --r: 12;
  position: absolute; z-index: 3; top: 0; left: 50%;
  width: min(calc(var(--w) * var(--pt)), calc(100% - 20px));
  height: calc(var(--h) * var(--pt));
  transform: translateX(-50%);
  color: #fff; font-size: calc(var(--pt) * 11);
  transition: width .48s var(--spring), height .48s var(--spring);
  pointer-events: none;
}
.notch[data-state="recording"], .notch[data-state="working"], .notch[data-state="handsfree"] { --w: calc(var(--gap) + 174); }
.notch.is-closing { transition-duration: .3s; transition-timing-function: var(--spring-soft); }
.notch__body {
  position: absolute; inset: 0 calc(var(--pt) * 9); background: #000;
  border-radius: 0 0 calc(var(--r) * var(--pt)) calc(var(--r) * var(--pt));
}
.notch__ear { position: absolute; top: 0; width: calc(var(--pt) * 9); height: calc(var(--pt) * 9); }
.notch__ear--l { left: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--pt) * 9 - .5px), #000 calc(var(--pt) * 9 + .3px)); }
.notch__ear--r { right: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--pt) * 9 - .5px), #000 calc(var(--pt) * 9 + .3px)); }
.notch__row {
  position: absolute; inset: 0 calc(var(--pt) * 23); display: flex; align-items: center;
  opacity: 0; transition: opacity .18s var(--ease);
}
.notch:not([data-state="idle"]) .notch__row { opacity: 1; transition-delay: .1s; }
.notch__lead, .notch__trail { flex: 1 1 0; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.notch__trail { justify-content: flex-end; }
.notch__gap { flex: none; width: calc(var(--gap) * var(--pt)); max-width: 45%; }
.rec { display: none; align-items: center; gap: calc(var(--pt) * 6); }
.notch[data-state="recording"] .rec, .notch[data-state="handsfree"] .rec { display: inline-flex; }
.rec__dot { width: calc(var(--pt) * 7); height: calc(var(--pt) * 7); border-radius: 50%; background: var(--rec); flex: none; }
.notch[data-state="recording"]:not(.notch--still) .rec__dot { animation: pulse .7s ease-in-out infinite alternate; }
.notch--still { transition: none; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.rec__lock { display: none; width: calc(var(--pt) * 9); height: calc(var(--pt) * 11); color: #ff9f0a; flex: none; }
.notch[data-state="handsfree"] .rec__dot { display: none; }
.notch[data-state="handsfree"] .rec__lock { display: block; }
.timer { font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); letter-spacing: 0; line-height: 1; }
.sparkle { display: none; width: calc(var(--pt) * 13); height: calc(var(--pt) * 13); color: rgba(255, 255, 255, .9); }
.notch[data-state="working"] .sparkle { display: block; animation: sparkle 1s ease-in-out infinite; }
@keyframes sparkle { 50% { opacity: .35; transform: scale(.9); } }
.levels { display: flex; align-items: center; gap: calc(var(--pt) * 2); height: calc(var(--pt) * 20); flex: none; }
.levels i {
  --l: .1;
  display: block; flex: none; width: calc(var(--pt) * 2.5); border-radius: 99px; background: #fff;
  height: calc(var(--pt) * (3 + 15 * var(--l)));
  transition: height .1s ease-out, opacity .25s;
}
.levels i:nth-child(1) { opacity: .55; } .levels i:nth-child(2) { opacity: .58; }
.levels i:nth-child(3) { opacity: .61; } .levels i:nth-child(4) { opacity: .64; }
.levels i:nth-child(5) { opacity: .66; } .levels i:nth-child(6) { opacity: .69; }
.levels i:nth-child(7) { opacity: .72; } .levels i:nth-child(8) { opacity: .75; }
.levels i:nth-child(9) { opacity: .78; } .levels i:nth-child(10) { opacity: .8; }
.levels i:nth-child(11) { opacity: .83; } .levels i:nth-child(12) { opacity: .86; }
.levels i:nth-child(13) { opacity: .89; } .levels i:nth-child(14) { opacity: .92; }
.levels i:nth-child(15) { opacity: .94; } .levels i:nth-child(16) { opacity: .97; }
.notch[data-state="working"] .levels i { opacity: .35; }
/* static level pattern for still images */
.levels--still i:nth-child(1) { --l: .15; } .levels--still i:nth-child(2) { --l: .3; }
.levels--still i:nth-child(3) { --l: .55; } .levels--still i:nth-child(4) { --l: .8; }
.levels--still i:nth-child(5) { --l: .5; } .levels--still i:nth-child(6) { --l: .95; }
.levels--still i:nth-child(7) { --l: .7; } .levels--still i:nth-child(8) { --l: .4; }
.levels--still i:nth-child(9) { --l: .85; } .levels--still i:nth-child(10) { --l: .6; }
.levels--still i:nth-child(11) { --l: .35; } .levels--still i:nth-child(12) { --l: .75; }
.levels--still i:nth-child(13) { --l: .5; } .levels--still i:nth-child(14) { --l: .9; }
.levels--still i:nth-child(15) { --l: .65; } .levels--still i:nth-child(16) { --l: .45; }

/* ----------------------------------------------------------------- Keycaps */
.key {
  display: inline-grid; place-items: center; flex: none;
  min-width: 52px; height: 48px; padding: 0 12px; border-radius: 10px;
  background: #fff; color: var(--ink); font: 500 1.375rem/1 var(--font);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 0 rgba(0, 0, 0, .16), 0 6px 14px -8px rgba(0, 0, 0, .18);
}
.key svg { width: 22px; height: 22px; }
.key--dim { color: var(--text-2); }
.key--on { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 18px -8px rgba(0, 0, 0, .45); }
.key--xl {
  position: relative; width: 132px; height: 116px; border-radius: 18px; display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 0 rgba(0, 0, 0, .14), 0 22px 40px -18px rgba(0, 0, 0, .3);
}
.key--xl .key__sym { position: absolute; right: 16px; top: 14px; font-size: 1.5rem; }
.key--xl .key__word { position: absolute; left: 16px; bottom: 14px; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }

/* ------------------------------------------------------------ How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--mist); overflow: hidden; }
.step__visual { position: relative; height: 236px; display: grid; place-items: center; }
.step__body { padding: 0 30px 32px; }
.step__n { display: block; margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.step__body p { margin-top: 8px; color: var(--text-2); max-width: 30ch; }
.screen-strip {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background:
    radial-gradient(60% 70% at 85% 110%, rgba(255, 115, 77, .14), transparent 70%),
    linear-gradient(180deg, #ededf0, #e3e3e8);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.screen-strip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 40px; background: rgba(255, 255, 255, .5); box-shadow: 0 .5px 0 rgba(0, 0, 0, .06); }
.screen-strip .notch { --pt: 1.25px; --gap: 70; position: absolute; }
.field-card {
  width: min(86%, 330px); padding: 16px 18px; border-radius: 16px; background: #fff; text-align: left;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 16px 34px -18px rgba(0, 0, 0, .28);
  font-size: 1rem; line-height: 1.4; letter-spacing: -.012em;
}
.field-card__label { display: block; margin-bottom: 6px; font-size: .75rem; color: var(--text-2); letter-spacing: 0; }
.field-card .caret { opacity: 1; }

.steps-note {
  display: flex; align-items: flex-start; gap: 18px; margin-top: var(--gap);
  padding: 26px 30px; border-radius: var(--r-card); background: var(--mist);
}
.steps-note svg { width: 26px; height: 26px; flex: none; margin-top: 1px; color: var(--ink); }
.steps-note .h3 { font-size: 1.125rem; }
.steps-note p { margin-top: 6px; color: var(--text-2); max-width: 78ch; }

/* ---------------------------------------------------------------- Features */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 420px;
  border-radius: var(--r-card); background: var(--mist); overflow: hidden;
}
.tile--wide { grid-column: span 2; }
.tile__text { padding: 30px 30px 0; }
.tile__text p { margin-top: 8px; color: var(--text-2); font-size: 1rem; line-height: 1.45; max-width: 40ch; }
.tile__visual { flex: 1; position: relative; display: grid; place-items: center; padding: 26px 24px 30px; min-height: 210px; }
.tile--dark { background: var(--ink); color: var(--on-dark); }
.tile--dark .tile__text p { color: var(--on-dark-2); }

.rings { position: relative; width: 100%; height: 100%; min-height: 210px; display: grid; place-items: center; }
.rings span {
  position: absolute; left: 50%; top: 50%; border-radius: 32%;
  border: 1px solid rgba(0, 0, 0, .09); transform: translate(-50%, -50%);
}
.rings span:nth-child(1) { width: 190px; height: 190px; border-color: rgba(0, 0, 0, .1); }
.rings span:nth-child(2) { width: 290px; height: 290px; border-color: rgba(0, 0, 0, .075); }
.rings span:nth-child(3) { width: 400px; height: 400px; border-color: rgba(0, 0, 0, .055); }
.rings span:nth-child(4) { width: 520px; height: 520px; border-color: rgba(0, 0, 0, .04); }
.rings img { position: relative; width: 128px; height: 128px; }

.appcard {
  width: 100%; max-width: 300px; display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #3a2320 0%, #161616 45%, #0d0d0d 100%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 18px 36px -18px rgba(0, 0, 0, .55);
}
.appcard svg { width: 40px; height: 40px; flex: none; }
.appcard b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.appcard span { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .8125rem; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.appcard .ok { width: 7px; height: 7px; border-radius: 50%; background: #32d74b; flex: none; }
.appcard .badge { margin-left: 4px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); font-size: .6875rem; font-weight: 600; }

.fields { width: 100%; max-width: 330px; display: grid; gap: 12px; }
.chat {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 26px -16px rgba(0, 0, 0, .3); font-size: .9375rem; line-height: 1.35;
}
.chat span { flex: 1; min-width: 0; }
.chat i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.chat i svg { width: 14px; height: 14px; color: #fff; }
.term {
  padding: 12px 14px; border-radius: 12px; background: #161617; color: #e8e8ed;
  font: 500 .8125rem/1.5 var(--mono); letter-spacing: 0;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .5);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.term b { color: #7ee787; font-weight: 500; }
.term .caret { background: #e8e8ed; }

.duo { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.duo .keys { display: flex; gap: 10px; }
.mini-screen {
  position: relative; width: 100%; max-width: 300px; height: 64px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #e9e9ed, #dcdce2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.mini-screen .notch { --pt: 1px; --gap: 64; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 340px; }
.mode { text-align: center; }
.mode__screen {
  position: relative; height: 110px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #e3e3e8, #f1e4dc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 22px -16px rgba(0, 0, 0, .3);
}
.mode__screen i { position: absolute; left: 50%; transform: translateX(-50%); background: #000; display: flex; align-items: center; padding: 0 8px; }
.mode__screen i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rec); }
.mode__screen--notch i { top: 0; width: 60%; height: 16px; border-radius: 0 0 7px 7px; }
.mode__screen--bubble i { bottom: 16px; width: 52%; height: 18px; border-radius: 99px; }
.mode__screen--bubble::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 4px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .7); }

.dict { width: 100%; max-width: 330px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 14px 30px -18px rgba(0, 0, 0, .28); }
.dict__row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: .9375rem; }
.dict__row + .dict__row { border-top: 1px solid var(--line); }
.dict__row s { text-decoration: underline wavy var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--text-2); }
.dict__row svg { width: 14px; height: 14px; color: var(--text-2); flex: none; }
.dict__row span { font-weight: 500; }

.keyrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.keyrow .key { min-width: 64px; height: 60px; border-radius: 12px; font-size: 1.5rem; }

.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) calc(var(--gap) * 1.6); margin-top: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); }
.more li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.more svg { width: 26px; height: 26px; margin-bottom: 16px; color: var(--ink); }
.more h3 { font-size: 1.0625rem; letter-spacing: -.012em; }
.more p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }

/* --------------------------------------------------------- Segmented pill */
.seg {
  position: relative; display: inline-flex; align-items: center; padding: 4px; gap: 2px;
  border-radius: 999px; background: rgba(0, 0, 0, .055);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 10px -4px rgba(0, 0, 0, .3);
  transform: translateX(0); opacity: 0;
}
.seg.is-ready .seg__thumb { opacity: 1; transition: transform .5s var(--spring), width .5s var(--spring); }
.seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none;
  font-size: .9375rem; font-weight: 500; color: rgba(11, 11, 12, .62); cursor: pointer; white-space: nowrap;
  transition: color .25s var(--ease);
}
.seg button svg { width: 16px; height: 16px; flex: none; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: #fff; }
.seg:not(.is-ready) button[aria-selected="true"], .seg:not(.is-ready) button[aria-pressed="true"] { background: var(--ink); }
.seg--light .seg__thumb { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .1); }
.seg--light button[aria-pressed="true"] { color: var(--ink); }
.seg--light:not(.is-ready) button[aria-pressed="true"] { background: #fff; }
.seg--sm button { height: 32px; padding: 0 13px; font-size: .875rem; }

/* ----------------------------------------------------------------- Screens */
.screens__controls { display: none; flex-wrap: wrap; align-items: center; gap: 12px; }
.js .screens__controls { display: flex; }
.screens__stage {
  position: relative; border-radius: 26px; padding: clamp(18px, 1rem + 3.4vw, 64px) clamp(14px, .5rem + 6vw, 150px) clamp(16px, .8rem + 1.2vw, 30px);
  background: linear-gradient(180deg, #f5f5f7 0%, #e9e9ee 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
  transition: background .45s var(--ease);
  overflow: hidden;
}
.screens[data-mode="dark"] .screens__stage { background: linear-gradient(180deg, #2b2b2e 0%, #121213 100%); }
.screens__panels { display: grid; }
.js .screens__panel { grid-area: 1 / 1; }
.js .screens__panel:not(.is-active):not(.is-leaving) { display: none; }
.screens__panel.is-entering, .screens__panel.is-fading { opacity: 0; }
.screens__panel { transition: opacity .32s var(--ease); }
.screens__frame { position: relative; max-width: 880px; margin: 0 auto; }
.screens__frame img { width: 100%; border-radius: var(--r-win); box-shadow: var(--shadow-window); }
.screens img[data-mode="dark"] { display: none; }
.screens[data-mode="dark"] img[data-mode="dark"] { display: block; }
.screens[data-mode="dark"] img[data-mode="light"] { display: none; }
.screens__frame img[data-mode="dark"] { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .16), 0 26px 60px -14px rgba(0, 0, 0, .6); }
.screens__caption { padding: 24px 0 0; text-align: center; color: var(--text-2); font-size: var(--fs-sm); transition: color .45s var(--ease); }
.screens[data-mode="dark"] .screens__caption { color: var(--on-dark-2); }
html:not(.js) .screens__panel + .screens__panel { margin-top: 48px; }
.screens__panel:not(:first-child) .screens__caption { min-height: 0; }

/* --------------------------------------------------- Notch & bubble section */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.split__sticky { position: sticky; top: 110px; }
.split__text .lead { margin-top: 20px; }
.split__text .seg { margin-top: 30px; }
.states { display: grid; gap: 14px; }
.state { margin: 0; }
.state__frame {
  --z: 140%; --ar: 5.7;
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: var(--ar);
  background:
    radial-gradient(60% 90% at 90% 120%, rgba(255, 115, 77, .12), transparent 70%),
    linear-gradient(180deg, #eeeef1, #e2e2e7);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.state__frame img { position: absolute; left: 50%; width: var(--z); max-width: none; transform: translateX(-50%); }
.state__frame img[data-style="notch"] { top: 0; }
.state__frame img[data-style="bubble"] { bottom: 0; display: none; }
.overlays[data-style="bubble"] img[data-style="bubble"] { display: block; }
.overlays[data-style="bubble"] img[data-style="notch"] { display: none; }
.state--result .state__frame { --ar: 3.2; }
.state--message .state__frame { --ar: 4.27; }
.state--note .state__frame { --ar: 3.2; }
.overlays[data-style="bubble"] .state--result .state__frame { --z: 120%; }
.state figcaption { margin-top: 8px; padding-left: 4px; font-size: var(--fs-xs); color: var(--text-2); }
.states-grid { display: grid; gap: 14px; }

/* ------------------------------------------------------------------- Setup */
.tour { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(2rem, .5rem + 4.4vw, 5rem); align-items: center; }
.tour__steps { position: relative; display: grid; gap: 6px; }
.tour__tab {
  --p: 0;
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start;
  width: 100%; margin: 0; padding: 14px 20px 16px 14px; border: 0; border-radius: 20px; background: none; overflow: hidden;
  font: inherit; text-align: left; color: var(--text-2); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tour__n {
  display: grid; place-items: center; width: 30px; height: 30px; margin-top: -3px; border-radius: 50%;
  background: rgba(0, 0, 0, .05); font-size: .8125rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tour__label { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }
.tour__desc { grid-column: 2; margin-top: 3px; font-size: .9375rem; line-height: 1.45; letter-spacing: -.008em; max-width: 36ch; }
.tour__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red-grad); transform-origin: left; transform: scaleX(0);
}
.tour__tab:hover { color: var(--ink); background: rgba(0, 0, 0, .03); }
.tour__tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 32px -18px rgba(0, 0, 0, .22); }
.tour__tab[aria-selected="true"] .tour__n { background: var(--ink); color: #fff; }
.tour__tab[aria-selected="true"] .tour__desc { color: var(--ink-2); }
.tour__tab[aria-selected="true"] .tour__bar { transform: scaleX(var(--p)); }
html:not(.js) .tour__tab[aria-selected="true"] .tour__bar { transform: none; }
.tour__stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(18px, .4rem + 2.6vw, 44px);
  border-radius: 26px;
  background:
    radial-gradient(60% 70% at 90% 108%, rgba(255, 115, 77, .15), transparent 70%),
    radial-gradient(70% 80% at 6% -8%, rgba(255, 255, 255, .95), transparent 62%),
    linear-gradient(180deg, #fbfbfc 0%, #e6e6eb 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 40px 80px -48px rgba(0, 0, 0, .3);
}
.tour__panels { display: grid; width: 100%; max-width: 620px; }
.tour__panel { grid-area: 1 / 1; margin: 0; transition: opacity .45s var(--ease); }
.tour__panel.is-off { visibility: hidden; opacity: 0; transition: none; }
.tour__panel.is-top { position: relative; z-index: 1; }
.tour__panel.is-entering { opacity: 0; }
.tour__panel.is-leaving .tour__caption { opacity: 0; transition: opacity .15s var(--ease); }
.tour__panel img { width: 100%; border-radius: var(--r-win); box-shadow: var(--shadow-window); background: #fafafa; }
.tour__caption { margin-top: 14px; min-height: 2.9em; text-align: center; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.tour__pause {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 6px 14px -6px rgba(0, 0, 0, .25);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.js .tour__pause { display: grid; }
.tour__pause:hover { background: #fff; }
.tour__pause:active { transform: scale(.94); }
.tour__pause svg { width: 16px; height: 16px; }
.tour__pause .i-play, .tour__pause.is-stopped .i-pause { display: none; }
.tour__pause.is-stopped .i-play { display: block; }
.tour__pause[hidden] { display: none; }
@media (min-width: 901px) {
  .tour__caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ----------------------------------------------------------------- Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.privacy .h2 { color: #fff; }
.privacy .lead { margin-top: 20px; }
.privacy .btn { margin-top: 34px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line-dark); font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -.014em; }
.checklist li:last-child { border-bottom: 1px solid var(--line-dark); }
.checklist svg { width: 24px; height: 24px; margin-top: 2px; color: rgba(255, 255, 255, .72); }
.checklist a { color: #fff; }

/* ---------------------------------------------------------------- Audience */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1.4rem + 1.6vw, 3rem) clamp(1.5rem, .8rem + 2.4vw, 3.5rem); }
.people li { padding-top: 26px; border-top: 1px solid var(--line-2); }
.people svg { width: 28px; height: 28px; margin-bottom: 18px; color: var(--ink); }
.people p { margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; color: var(--text-2); max-width: 34ch; }

/* ----------------------------------------------------------------- Install */
.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.install .lead { margin-top: 20px; }
.install .cta-row { justify-content: flex-start; margin-top: 30px; }
.reqs { margin-top: 36px; display: grid; gap: 12px; }
.reqs li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--ink); }
.reqs svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.numbered li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.numbered li:last-child { border-bottom: 1px solid var(--line-2); }
.numbered .n { font-size: 1.75rem; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.numbered p { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -.014em; }
.numbered strong { font-weight: 600; hyphens: manual; -webkit-hyphens: manual; }
.numbered a { font-weight: 500; }

.build { margin-top: 48px; }
.build .h3 { font-size: 1.125rem; }
.build p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.code {
  position: relative; margin-top: 16px; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--ink); color: #e8e8ed;
}
.code pre { flex: 1; min-width: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .875rem/1.6 var(--mono); letter-spacing: 0; }
.code pre code::before { content: "$ "; color: #86868b; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 0; border-radius: 11px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  font-size: .875rem; font-weight: 500; transition: background-color .2s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, .2); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn .i-check { display: none; }
.copy-btn.is-done .i-check { display: block; }
.copy-btn.is-done .i-copy { display: none; }

/* --------------------------------------------------------------------- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.faq__list details { border-top: 1px solid var(--line-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.016em; line-height: 1.35;
  border-radius: 6px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .35s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: #3a3a3c; }
.faq__list .answer { padding: 0 48px 26px 0; color: var(--text-2); font-size: var(--fs-body); line-height: 1.55; max-width: 62ch; }
.faq__list .answer a { color: var(--ink); }
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }

/* --------------------------------------------------------------------- CTA */
.cta { text-align: center; }
.cta img { width: 132px; height: 132px; margin: 0 auto 18px; }
.cta .lead { margin-top: 16px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--mist); padding: 56px 0 44px; font-size: var(--fs-xs); color: var(--text-2); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: var(--fs-sm); }
.footer__brand img { width: 26px; height: 26px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a, .footer__lang a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.footer__links a:hover, .footer__lang a:hover { text-decoration: underline; }
.footer__guides { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.footer__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em; color: var(--text-2); }
.footer__guides ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__guides a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.footer__guides a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; line-height: 1.6; }
.footer__bottom p { max-width: 72ch; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.footer__legal a:hover { text-decoration: underline; }
.footer__lang { display: flex; gap: 14px; }
.footer__lang [aria-current] { color: var(--text-2); }

/* ------------------------------------------------------------ Legal pages */
.legal { padding-top: calc(70px + clamp(2.5rem, 1.5rem + 3.5vw, 5rem)); padding-bottom: var(--section); }
.legal__inner { max-width: 720px; }
.legal .h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.875rem); }
.legal__lead { margin-top: 14px; color: var(--text-2); }
.legal h2:not(.h2) { margin-top: 44px; font-size: 1.1875rem; letter-spacing: -.016em; }
.legal p, .legal address { margin-top: 10px; font-style: normal; line-height: 1.6; color: var(--ink-2); }
.legal a { color: var(--ink); }
.legal__stamp { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-2) !important; }

/* ------------------------------------------------------------------ Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--delay, 0ms);
}

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .nav a { padding: 0 9px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { --pt: 1px; height: 540px; }
  .stage__window { top: 156px; width: min(760px, 86%); }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn--secondary { display: none; }
  .menu-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .step__visual { height: 220px; }
  .step__body { padding: 28px 28px 28px 0; }
  .split, .privacy, .install, .faq { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tour__steps {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .tour__steps::-webkit-scrollbar { display: none; }
  .tour__tab {
    flex: none; width: auto; display: inline-flex; align-items: center; gap: 8px; column-gap: 8px;
    height: 40px; padding: 0 16px 0 13px; border-radius: 999px; overflow: hidden;
    background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); scroll-snap-align: start;
  }
  .tour__tab:hover { background: #fff; }
  .tour__label { font-size: .9375rem; white-space: nowrap; }
  .tour__n { width: 22px; height: 22px; margin-top: 0; font-size: .75rem; }
  .tour__tab[aria-selected="true"] .tour__n { background: rgba(255, 255, 255, .2); color: #fff; }
  .tour__desc { display: none; }
  .tour__bar { height: 2px; }
  .tour__tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
  .tour__tab[aria-selected="true"] .tour__bar { transform: scaleX(var(--p)); }
  .tour__panels { max-width: 560px; }
  .tour__caption { padding-inline: 44px; }
}
@media (max-width: 640px) {
  :root { --r-card: 20px; }
  .header-actions .langs { display: none; }
  .hero { text-align: left; }
  .hero .h1 { margin-top: 14px; }
  .hero__lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .cta-row .btn { flex: 1 1 100%; }
  .fineprint { justify-content: flex-start; }
  .stage { --pt: .92px; height: 430px; border-radius: 20px; }
  .tour__stage { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .tour__caption { margin-top: 16px; padding: 0 52px 0 0; text-align: left; }
  .tour__pause { right: 0; bottom: 2px; }
  .menubar__hide-sm { display: none; }
  .prompt { top: 50px; flex-wrap: wrap; padding: 14px; gap: 12px; border-radius: 18px; min-height: 0; }
  .prompt__field { flex-basis: 100%; font-size: 1.0625rem; min-height: 2.7em; }
  .try { width: 100%; justify-content: center; }
  .stage__window { top: 214px; width: calc(100% - 28px); }
  .step { display: flex; }
  .step__body { padding: 0 24px 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 0; }
  .tile__text { padding: 26px 24px 0; }
  .more { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .rings span:nth-child(4) { display: none; }
  .keyrow .key { min-width: 54px; height: 52px; }
  .screens__controls { width: 100%; }
  .screens__controls .seg:first-child { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .screens__stage { border-radius: 20px; }
  .state__frame { --z: 176%; --ar: 4.6; }
  .state--result .state__frame { --z: 149%; --ar: 2.82; }
  .state--message .state__frame { --z: 177%; --ar: 3.3; }
  .state--note .state__frame { --z: 140%; --ar: 3.2; }
  .overlays[data-style="bubble"] .state--result .state__frame { --z: 132%; }
  .numbered li { grid-template-columns: 44px 1fr; }
  .faq__list .answer { padding-right: 0; }
  .code { flex-wrap: wrap; }
  .code pre { flex-basis: 100%; }
  .cta { text-align: left; }
  .cta img { margin-left: 0; width: 104px; height: 104px; }
}

/* ---------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .notch[data-state="recording"] .rec__dot, .notch[data-state="working"] .sparkle { animation: none; }
}

/* Vergleich in den Ratgebern: Haarlinien statt Kästen, auf schmalen Bildschirmen seitlich scrollbar */
.compare { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.compare th, .compare td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare thead th { padding-top: 0; font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.compare tbody th { width: 19%; font-weight: 500; color: var(--text-2); }
.compare td:first-of-type { font-weight: 500; color: var(--ink); }
.compare td { color: var(--ink-2); }
.legal .compare__note { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-2); }
/* Beim seitlichen Wischen bleiben die Zeilennamen stehen. */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.legal .sources { margin-top: 10px; padding-left: 1.1em; font-size: var(--fs-sm); color: var(--text-2); }
.legal .sources li { margin-top: 4px; list-style: disc; }
