/* Brepper Dictate – home page. The app's look "Tinte": ink ground, one signal green, Space Grotesk.
   One column of 1120px, left aligned. Sections are separated by space and hairlines, not by boxes.
   The one loud element is the ring of modes; everything else stays quiet. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #10131c; --panel: #191d2a; --raised: #232838; --line: #2c3243; --line-strong: #3a4155;
  --text: #f3f4ee; --muted: #a9afc0; --signal: #b8f25a; --on-signal: #10131c; --warn: #ff8a80;
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --section: clamp(72px, 11vw, 136px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 18px/1.55 var(--font); }
img, video { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(46px, 8.2vw, 104px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 30em; margin-top: 20px; }
.note { font-size: 15px; color: var(--muted); }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.top { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; font-size: 16px; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--text); }
.top .brand { white-space: nowrap; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.top .brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.top .lang { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 700 18px/1 var(--font); text-decoration: none; background: var(--signal); color: var(--on-signal); border: 1.5px solid var(--signal); transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.quiet:hover { border-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; padding-top: clamp(28px, 6vw, 72px); padding-bottom: var(--section); }
.hero .terms { margin-top: 22px; font-size: 16px; color: var(--muted); }
.stage { position: relative; display: grid; justify-items: center; }
.stage::before { content: ""; position: absolute; inset: 10% -6% 14%; background: radial-gradient(closest-side, rgba(184, 242, 90, 0.2), transparent 74%); filter: blur(18px); }
.phone { position: relative; width: min(330px, 76vw); aspect-ratio: 540 / 1142; box-sizing: content-box; border: 9px solid #05070c; outline: 1px solid var(--line-strong); border-radius: 48px; overflow: hidden; background: #05070c; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.window video { width: 100%; height: auto; }
.stage figcaption { position: relative; margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; max-width: 290px; }

/* Sections */
.sec { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.claim { font-size: clamp(26px, 3.7vw, 44px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500; max-width: 23em; color: var(--muted); text-wrap: balance; }
.claim b { color: var(--text); font-weight: 500; }

/* The ring of modes: the app's own picker, usable here. */
.modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: 56px; }
.ring { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); justify-self: center; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px rgba(0, 0, 0, 0.45); isolation: isolate; }
.ring button { font: 700 clamp(15px, 1.9vw, 19px)/1.1 var(--font); color: var(--text); cursor: pointer; border: 0; }
.ring .seg { position: absolute; inset: 0; background: var(--raised); display: grid; padding: 9%; transition: background 0.15s ease; }
.ring .seg:hover { background: #2d3347; }
.ring .seg[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); }
.ring .n { clip-path: polygon(1.5% 0, 98.5% 0, 50% 48.5%); place-items: start center; }
.ring .e { clip-path: polygon(100% 1.5%, 100% 98.5%, 51.5% 50%); place-items: center end; }
.ring .s { clip-path: polygon(98.5% 100%, 1.5% 100%, 50% 51.5%); place-items: end center; }
.ring .w { clip-path: polygon(0 98.5%, 0 1.5%, 48.5% 50%); place-items: center start; }
.ring .mid { position: absolute; inset: 31%; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 6px var(--ink); z-index: 1; transition: background 0.15s ease; }
.ring .mid:hover { background: #2d3347; }
.ring .mid[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); }
.ring button:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.said, .written { padding: 22px 0; border-top: 1px solid var(--line); }
.said { color: var(--muted); }
.label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.written .label { color: var(--signal); }
.written p { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -0.01em; white-space: pre-line; min-height: 6.8em; }
.modes .note { padding-top: 18px; border-top: 1px solid var(--line); }

/* Device sections */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.device { font-size: 16px; color: var(--signal); margin-bottom: 14px; }
.list { list-style: none; padding: 0; margin-top: 32px; }
.list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list b { color: var(--text); font-weight: 700; }
.shot { position: relative; border-radius: 28px; overflow: hidden; outline: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.shot img { width: 100%; height: auto; }
.spot { position: absolute; left: 89.3%; top: 35.6%; width: 17%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--signal); transform: translate(-50%, -50%); animation: spot 1.8s ease-out infinite; }
@keyframes spot { from { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
.window { width: 100%; max-width: 560px; justify-self: center; border-radius: 16px; overflow: hidden; outline: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }


.keys { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: var(--muted); }
kbd { font: 700 22px/1 var(--font); color: var(--text); background: var(--raised); border: 1px solid var(--line-strong); border-bottom-width: 4px; border-radius: 12px; padding: 14px 20px; }

/* Privacy: where the voice goes, as a picture. */
.route { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto auto; align-items: center; gap: 18px; margin-top: 56px; }
.node { text-align: center; font-weight: 700; padding: 20px 26px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--panel); }
.node svg { width: 36px; height: 36px; margin: 0 auto 10px; display: block; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.node.off { background: transparent; border-style: dashed; color: var(--muted); margin-left: 22px; }
.node.off svg { stroke: var(--muted); }
.node.off .slash { stroke: var(--warn); stroke-width: 2; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--signal) 0 8px, transparent 8px 16px); }
.wire span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ink); padding: 0 10px; font-size: 14px; color: var(--signal); white-space: nowrap; }
.facts { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.facts b { display: block; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 16px; }
.sec .more { margin-top: 32px; font-size: 16px; }

/* Three steps: a real sequence, so it is numbered. */
.steps { list-style: none; padding: 0; margin-top: 48px; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 20px; font-weight: 700; line-height: 1.3; }
.steps li::before { content: counter(s); display: block; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--signal); margin-bottom: 18px; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--signal); font-weight: 400; font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 22px; max-width: 34em; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; font-size: 15px; color: var(--muted); }
footer a { color: var(--muted); }
footer span { margin-right: auto; }

@media (max-width: 860px) {
  .hero, .modes, .duo, .faq { grid-template-columns: 1fr; }
  .hero { gap: 48px; }
  .duo .media { order: -1; }
  .route { grid-template-columns: 1fr; gap: 0; justify-items: stretch; }
  .wire { width: 2px; height: 64px; justify-self: center; background: repeating-linear-gradient(180deg, var(--signal) 0 8px, transparent 8px 16px); }
  .node.off { margin: 20px 0 0; }
  .facts, .steps { grid-template-columns: 1fr; gap: 24px; }
  .written p { min-height: 8.2em; }
}
@media (max-width: 560px) {
  .top { gap: 18px; }
  .top .hide-s, .top a[href$="/setup/"] { display: none; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spot { animation: none; transform: translate(-50%, -50%) scale(1.25); }
  .btn, .ring .seg, .ring .mid { transition: none; }
}
