/* Sotto start page. Brand: docs/brand/README.md (Sotto Blue #5B8FFF, Ink #0B0C0D, Paper #F5F5F3). Dark is the default. */
:root {
  --blue: #5B8FFF;
  --blue-press: #4a7cf0;
  --bg: #0B0C0D;
  --bg-raise: #141618;
  --line: rgba(245, 245, 243, 0.09);
  --text: #F5F5F3;
  --text-2: rgba(245, 245, 243, 0.64);
  --text-3: rgba(245, 245, 243, 0.42);
  --glow: rgba(91, 143, 255, 0.22);
  --bezel-1: #d9dadc; --bezel-2: #7b7e83; --bezel-3: #f4f4f5; --bezel-4: #5d6066;
  --radius: 22px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F5F3;
    --bg-raise: #FFFFFF;
    --line: rgba(11, 12, 13, 0.08);
    --text: #0B0C0D;
    --text-2: rgba(11, 12, 13, 0.62);
    --text-3: rgba(11, 12, 13, 0.45);
    --glow: rgba(91, 143, 255, 0.18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; margin: 0; letter-spacing: -0.02em; }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 80px; height: auto; }
.bar-link { color: var(--text-2); text-decoration: none; font-size: 15px; }
.bar-link:hover { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { text-align: center; padding: 44px 0 24px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(34px, 9vw, 64px); line-height: 1.06; font-weight: 700; max-width: 14ch; margin: 0 auto; }
.lede { color: var(--text-2); font-size: clamp(17px, 4.4vw, 21px); max-width: 34ch; margin: 16px auto 0; }

/* The puck: a drawn bezel around the real screen snapshots (hardware/screens) */
.puck {
  --size: min(76vw, 360px);
  position: relative;
  width: var(--size); height: var(--size);
  margin: 40px auto 36px;
  border-radius: 50%;
  padding: calc(var(--size) * 0.055);
  background: conic-gradient(from 210deg, var(--bezel-1), var(--bezel-2) 18%, var(--bezel-3) 34%, var(--bezel-4) 52%, var(--bezel-1) 70%, var(--bezel-2) 86%, var(--bezel-1));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 120px 10px var(--glow);
}
.puck::after { /* glass highlight */
  content: ""; position: absolute; inset: calc(var(--size) * 0.055); border-radius: 50%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}
.puck-glass {
  position: relative; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 18px rgba(0, 0, 0, 0.9);
}
.puck-glass img { position: absolute; inset: 0; width: 100%; height: 100%; }
.puck.small { --size: min(56vw, 240px); margin: 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 40px -18px rgba(0, 0, 0, 0.6), 0 0 70px 0 var(--glow); }

/* Hero screens: listening, transcribing, typed. 9 s loop, CSS only. */
.screen { opacity: 0; animation: screen 9s infinite; }
.s1 { animation-delay: 0s; }
.s2 { animation-delay: 3s; }
.s3 { animation-delay: 6s; }
@keyframes screen {
  0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .s3 { opacity: 1; }
}

/* Download */
.cta { display: flex; flex-direction: column; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 18px; font-weight: 600; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(91, 143, 255, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: var(--blue-press); }
.button:active { transform: scale(0.98); }
.button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button svg { margin-top: -3px; }
.button.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); min-height: 44px; font-size: 16px; }
.fine { color: var(--text-3); font-size: 14px; margin: 12px 0 0; }
.phone-note {
  margin-top: 24px; padding: 18px 20px; max-width: 420px;
  border-radius: 18px; background: var(--bg-raise); border: 1px solid var(--line);
  color: var(--text-2); font-size: 15px;
}
.phone-note p { margin: 0 0 14px; }
.phone-note strong { color: var(--text); }

/* Sections */
.section { padding: 56px 0 8px; }
.section > h2 { font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-align: center; }
.sub { text-align: center; color: var(--text-2); margin: 10px 0 0; }

/* Steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.step {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.step-art {
  padding: 28px 20px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(91, 143, 255, 0.12), transparent 60%);
}
.step-art.mac { padding: 24px 16px 0; align-items: flex-end; }
.step-art.mac img { border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 -6px 30px rgba(0, 0, 0, 0.35); }
.step-text { padding: 22px 22px 26px; }
.num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); }
.note { margin-top: 12px !important; font-size: 15px; color: var(--text-3) !important; }

/* Requirements / privacy */
.split { display: grid; gap: 20px; }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h2 { font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--text-2); margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.privacy { background: radial-gradient(140% 120% at 0% 0%, rgba(91, 143, 255, 0.16), transparent 55%), var(--bg-raise); }
.card-mark { width: 40px; margin-bottom: 18px; }
@media (prefers-color-scheme: light) { .card-mark { content: url("img/mark-ink.png"); } }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > :not(summary) { color: var(--text-2); margin: 0 0 14px; }
.faq details > :last-child { margin-bottom: 20px; }
.faq ul { padding-left: 20px; }
.faq li { margin: 6px 0; }
.faq strong { color: var(--text); font-weight: 600; }

/* Later */
.later { text-align: center; padding-bottom: 24px; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-3); font-size: 14px; background: var(--bg-raise);
}

.foot {
  max-width: 1080px; margin: 48px auto 0; padding: 28px 20px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px;
}
.foot p { margin: 0; }
.foot img { width: 28px; }

/* Wider screens */
@media (min-width: 760px) {
  .hero { padding-top: 72px; }
  .puck { --size: 380px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step-art { min-height: 300px; }
  .puck.small { --size: 220px; }
  .split { grid-template-columns: 1fr 1fr; }
  .faq { max-width: 760px; margin-left: auto; margin-right: auto; }
}
