/* Voicely landing page
   Minimal: one headline, one demo, three lines, questions, one ask.
   Voicely works by reading the name every app gives its buttons; those names
   are the yellow tags, the one loud thing. Everything else is graphite on white.
   Type: Atkinson Hyperlegible Next, drawn for readers with low vision.
   Inside the demo the pretend apps use Inter, so they read as software, not as the page. */

:root {
  --ground: #FFFFFF;
  --mist: #F1F2F5;
  --raised: #FFFFFF;
  --graphite: #1C1C1E;      /* the real bar's panel */
  --ink: #1C1C1E;
  --ink-2: #555963;
  --line: #D9DCE1;
  --tag: #FFD43B;           /* the name tags */
  --tag-edge: #E3B400;
  --listen: #0A84FF;        /* the real bar's caret and asking mark */
  --done: #30D158;          /* the real bar's done mark */

  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, "Segoe UI", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground) linear-gradient(180deg, var(--mist) 0, var(--ground) 760px) no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--tag); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; min-height: 44px; display: inline-flex; align-items: center; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* The name tag: what an app calls a control. Used in the demo, the how-it-works picture and the draft. */
.ntag {
  display: inline-block;
  padding: .12em .5em .14em;
  background: var(--tag); color: var(--graphite);
  border-radius: .32em;
  box-shadow: inset 0 -1px 0 var(--tag-edge);
  font: 700 13px/1.3 var(--sans); font-style: normal; letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: 10px;
  font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--graphite);
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-tag { background: var(--tag); color: var(--graphite); }
.btn-tag:hover { background: #FFC800; }
.btn-line { background: transparent; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #3A3A3E; }
.btn-line:hover { background: var(--mist); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 9px; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 242, 245, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect:first-child { fill: var(--graphite); }
.brand-mark .m-line { fill: #fff; }
.brand-mark .m-tag { fill: var(--tag); }
.nav-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 17px; text-decoration: none; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero: centred, one line under the headline, one button ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-sub { margin-top: 22px; max-width: 36em; font-size: clamp(17.5px, 1.4vw, 21px); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; }
.hero-note { font-size: 16px; color: var(--ink-2); }

/* ---------- Three lines ---------- */
.points {
  margin-top: clamp(96px, 11vw, 150px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 56px);
}
.points > div { border-top: 1px solid var(--line); padding-top: 20px; }
.points h2 { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.points p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Questions: everything else, folded away ---------- */
.faq { margin-top: clamp(96px, 11vw, 150px); max-width: 860px; }
.faq h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-align: center; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 14px 0; font-size: 20px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--mist);
  transition: transform .2s;
}
.faq summary:hover::after { background-color: var(--tag); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }
.faq details p:has(+ .faq-ul) { padding-bottom: 8px; }
.faq details > .faq-ul:last-child { margin-bottom: 24px; }
.faq-ul { margin: 0 0 16px; padding-left: 1.2em; list-style: disc; color: var(--ink-2); display: grid; gap: 4px; }

/* ---------- The ask ---------- */
.cta { margin-top: clamp(110px, 13vw, 180px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(34px, 5vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.cta-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-need { margin-top: 18px; max-width: 34em; font-size: 16px; color: var(--ink-2); text-wrap: balance; }

/* ---------- Waitlist ---------- */
.cta-lead { margin-top: 22px; max-width: 30em; font-size: clamp(17.5px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.wl { margin-top: 28px; width: 100%; max-width: 560px; text-align: left; }
.wl-label { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.wl-row { display: flex; gap: 10px; }
.wl-input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  font: inherit; font-size: 18px; color: var(--ink);
  background: var(--raised); border: 2px solid var(--graphite); border-radius: 10px;
}
.wl-input::placeholder { color: #8A8E97; }
.wl-input[aria-invalid="true"] { border-color: #C42B1C; }
.wl .btn { cursor: pointer; font-family: inherit; }
.wl .btn:disabled { opacity: .6; cursor: progress; }
.wl-msg { min-height: 1.5em; margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.wl-msg.is-ok { color: var(--ink); font-weight: 700; }
.wl-msg.is-err { color: #C42B1C; font-weight: 700; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(96px, 11vw, 150px);
  padding-top: 28px; padding-bottom: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16px; color: var(--ink-2);
}

/* ---------- Responsive ---------- */
/* Short laptop windows: a compact hero, so the demo plays without scrolling. */
@media (max-height: 560px) { .nav-wrap { position: relative; } }
@media (max-height: 940px) and (min-width: 721px) {
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(40px, 4.6vw, 64px); }
  .hero-sub { margin-top: 16px; font-size: 18px; }
  .hero-cta { margin-top: 20px; }
  .btn { min-height: 48px; }
}

/* Laptops 768px tall or less: smaller again, so the whole pretend screen is in view */
@media (max-height: 820px) and (min-width: 721px) {
  .hero { padding-top: 14px; }
  .hero-title { font-size: clamp(38px, 3.8vw, 52px); }
  .hero-sub { margin-top: 12px; font-size: 17.5px; }
  .hero-cta { margin-top: 16px; }
}

@media (max-width: 860px) {
  .points { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .nav-wrap { position: relative; }
  .hero-title { font-size: min(52px, calc((100vw - 32px) / 11.4)); }
  .hero-cta { gap: 8px 18px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .wl-row { flex-direction: column; }

  .foot { flex-direction: column; align-items: flex-start; }
}

.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .no-touch { display: none; }
  .touch-only { display: inline; }
}

@media (max-width: 380px) {
  .nav { gap: 12px; }
  .nav-link { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
  .br-wide { display: none; }
  .hero-title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Easy targets: nothing on the page needs a precise aim (44px minimum) ---------- */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
