/* Kol2Text home page, short version (owner, 23.11.2026): about 150-200 visible words, the rest behind
   tabs and fold-outs. No browser scripts: the tabs are radio buttons, the questions are <details>.
   Small hover and open motions, all off under prefers-reduced-motion. Tokens come from site.css. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tabs: "what the app does" ---------- */
.tabs { margin: 0; padding: 0; border: 0; min-width: 0; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tablist label {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  color: var(--ink-2); font-weight: 600; cursor: pointer; gap: .3em;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.tablist label:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.tablist label:active { transform: translateY(1px); }
#tab-local:checked ~ .tablist label[for="tab-local"],
#tab-word:checked ~ .tablist label[for="tab-word"],
#tab-spell:checked ~ .tablist label[for="tab-spell"],
#tab-dict:checked ~ .tablist label[for="tab-dict"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
#tab-local:focus-visible ~ .tablist label[for="tab-local"],
#tab-word:focus-visible ~ .tablist label[for="tab-word"],
#tab-spell:focus-visible ~ .tablist label[for="tab-spell"],
#tab-dict:focus-visible ~ .tablist label[for="tab-dict"] { outline: 3px solid var(--brand); outline-offset: 3px; }

.panel { display: none; grid-template-columns: minmax(0, 1fr); gap: 20px 56px; align-items: center; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); min-height: 250px; }
#tab-local:checked ~ .panels #panel-local,
#tab-word:checked ~ .panels #panel-word,
#tab-spell:checked ~ .panels #panel-spell,
#tab-dict:checked ~ .panels #panel-dict { display: grid; animation: panel-in .28s ease-out; }
@media (min-width: 820px) { .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.panel-text { margin: 0; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: balance; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Small drawn pictures inside the panels (decorative: aria-hidden in the page) ---------- */
.mock { min-width: 0; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); }
.mock p { margin: 0; }

.mock-flow { display: grid; grid-template-columns: auto minmax(12px, 28px) auto minmax(12px, 28px) auto; align-items: center; justify-content: center; gap: 14px 10px; }
.file { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 14px 4px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); font-size: .875rem; color: var(--ink-2); }
.file b { padding: 2px 8px; border-radius: 4px; background: var(--paper-3); color: var(--ink); font-size: .75rem; letter-spacing: .04em; }
.file-out { border-color: var(--tint-line); background: var(--tint); }
.file-out b { background: var(--brand); color: var(--on-brand); }
.flow-arrow { width: 100%; height: 2px; background: var(--line-2); position: relative; }
.flow-arrow::after { content: ""; position: absolute; inset-inline-end: 0; top: -4px; width: 8px; height: 8px; border-block-end: 2px solid var(--line-2); border-inline-end: 2px solid var(--line-2); rotate: 135deg; }
.pc { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; text-align: center; border: 2px solid var(--brand); border-radius: 10px; font-weight: 700; color: var(--brand-ink); }
.pc i { width: 54px; height: 34px; border: 2px solid currentColor; border-radius: 4px; box-shadow: 0 6px 0 -3px currentColor; }
.cloud-off { grid-column: 1 / -1; text-align: center; margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.cloud-off::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-inline-end: 8px; border: 2px solid var(--brand); border-radius: 50%; background: linear-gradient(135deg, transparent 43%, var(--brand) 43% 57%, transparent 57%); vertical-align: -1px; }

.mock-doc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px 14px; align-items: center; max-width: 420px; margin-inline: auto; width: 100%; }
.doc-title { grid-column: 1 / -1; height: 14px; width: 55%; border-radius: 3px; background: var(--ink); }
.doc-time { grid-row: span 3; align-self: start; font-size: .8125rem; font-weight: 600; color: var(--brand-ink); direction: ltr; }
.doc-line { height: 8px; border-radius: 3px; background: var(--paper-3); }
.w100 { width: 100%; } .w90 { width: 90%; } .w80 { width: 80%; } .w60 { width: 60%; } .w40 { width: 40%; }

.mock-spell p { font-size: 1.25rem; font-weight: 600; }
.mock-spell mark { padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, #e53935 16%, var(--paper)); color: inherit; text-decoration: underline wavy #c62828; text-underline-offset: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.chip-pick { border-color: var(--brand); background: var(--tint); color: var(--brand-ink); }
.chip-listen::before { content: ""; display: inline-block; margin-inline-end: 8px; border-block: 5px solid transparent; border-inline-end: 8px solid currentColor; vertical-align: -1px; }

.mock-dict { display: grid; gap: 16px; justify-items: start; }
.dict-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 1.25rem; font-weight: 600; }
.dict-row s { color: var(--ink-3); text-decoration-color: #c62828; }
.dict-row i { width: 26px; height: 2px; background: var(--line-2); position: relative; }
.dict-row i::after { content: ""; position: absolute; inset-inline-end: 0; top: -4px; width: 8px; height: 8px; border-block-end: 2px solid var(--line-2); border-inline-end: 2px solid var(--line-2); rotate: 135deg; }
.dict-row b { color: var(--brand-ink); }
.dict-saved { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--tint-line); border-radius: 6px; background: var(--tint); color: var(--brand-ink); font-size: .9375rem; font-weight: 600; }
.dict-saved::before { content: ""; width: 12px; height: 6px; border-block-end: 2px solid currentColor; border-inline-start: 2px solid currentColor; rotate: -45deg; translate: 0 -2px; }

/* ---------- Steps: a number that answers the pointer ---------- */
.home-short .steps p { margin: 0; }
.home-short .steps > li::before { transition: background-color .18s, color .18s, transform .18s; }
.home-short .steps > li:hover::before { background: var(--brand); color: var(--on-brand); transform: scale(1.08); }

/* ---------- Short questions ---------- */
.home-short details > summary { transition: color .18s; }
.home-short details > summary:hover { color: var(--brand-ink); }
.home-short details[open] > :not(summary) { animation: panel-in .24s ease-out; }
.more-link { margin: 18px 0 0; }
.more-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Price band ---------- */
.price-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.price-band h2 { margin-bottom: 10px; }
.price-band p { margin: 0 0 4px; }

/* ---------- Buttons and links answer the pointer ---------- */
.home-short .btn { transition: background-color .18s, border-color .18s, transform .18s; }
.home-short .btn:hover { transform: translateY(-2px); }
.home-short .btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .home-short *, .home-short *::before, .home-short *::after { animation: none !important; transition: none !important; }
  .home-short .btn:hover, .tablist label:hover, .home-short .steps > li:hover::before { transform: none; }
}
@media (max-width: 520px) {
  .tablist label { flex: 1 1 calc(50% - 8px); padding-inline: 10px; }
  .price-band .btn { flex: 1 1 100%; }
}

/* Real screenshots of build 90 inside the panels. */
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--radius-control); background: var(--paper); transition: transform .25s; }
.panel:hover .shot { transform: scale(1.015); }
@media (min-width: 820px) { #panel-local, #panel-spell, #panel-dict { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (prefers-reduced-motion: reduce) { .panel:hover .shot { transform: none; } }

/* Download and price side by side: the download box is the reserved place for the installer link at launch. */
.get-grid { display: grid; gap: 28px 56px; }
@media (min-width: 760px) { .get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.get-box { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); }
.get-box h2 { margin-bottom: 12px; }
.get-box p { margin: 0 0 10px; }
.get-line { font-size: 1.1875rem; font-weight: 600; }
.get-box .more-link { margin: 14px 0 0; }
.home-short .steps h3 { margin: 0; }
.hero-copy .actions { grid-template-columns: auto auto 1fr; }
.hero-copy .actions .btn { grid-column: auto; }
@media (max-width: 520px) { .hero-copy .actions { grid-template-columns: 1fr; } }
