/* VoiceTyp lander – no framework, system fonts, logical properties (RTL-safe). */
:root {
  --brand-1: #7c3aed;
  --brand-2: #a855f7;
  --brand-3: #c084fc;
  --brand-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --surface: #ffffff;
  --text: #17141f;
  --muted: #5d5869;
  --border: #e6e1ef;
  --ring: rgba(124, 58, 237, .35);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 20, 31, .05), 0 8px 24px rgba(23, 20, 31, .06);
  --container: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d14;
    --bg-alt: #16131d;
    --surface: #1b1823;
    --text: #f1eef7;
    --muted: #aaa3b8;
    --border: #2c2737;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--brand-3); } }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--brand-1); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-1); margin-bottom: .75rem; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--brand-3); } }
.fineprint { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: var(--brand-gradient); color: #fff; margin-inline-start: .5rem; vertical-align: middle; }
.text-link { font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: inherit; font-weight: 650; border-radius: 12px; padding: .7rem 1.2rem; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn-primary { background: var(--brand-gradient); color: #fff !important; box-shadow: 0 6px 18px rgba(124, 58, 237, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 58, 237, .38); }
.btn-secondary { background: var(--surface); color: var(--text) !important; border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand-2); }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text) !important; text-decoration: none !important; }
.brand img { border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-by { font-size: .75rem; color: var(--muted); }
.main-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 550; font-size: .95rem; }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 900px) {
  .brand-by { display: none; }
  .nav-toggle-label { display: block; font-size: 1.5rem; cursor: pointer; padding: .25rem .5rem; }
  .main-nav ul { display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 1.25rem 1rem; }
  .main-nav li a { display: block; padding: .7rem 0; }
  .nav-cta a { margin-top: .5rem; }
  .nav-toggle:checked ~ ul { display: flex; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-link { color: var(--text) !important; text-decoration: none !important; display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.card-link p { color: var(--muted); flex: 1; }
.card-link .text-link { color: var(--brand-1); }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand-1) 12%, transparent); margin-bottom: 1rem; fill: none; stroke: var(--brand-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .icon { stroke: var(--brand-3); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-3) 25%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { background: linear-gradient(120deg, var(--text) 30%, var(--brand-1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.22rem; max-width: 40ch; }
.hero-topic .lead { max-width: none; }
.hero-topic .download-buttons { justify-content: center; }
.download-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 .75rem; }
.cta-final .download-buttons { justify-content: center; }
.download-buttons [data-os].is-secondary { background: var(--surface); color: var(--text) !important; border-color: var(--border); box-shadow: none; }
.download-note { font-size: .9rem; margin-bottom: 1.25rem; }

.hero-visual { position: relative; padding-bottom: 2rem; }
.mock-window { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(76, 29, 149, .35); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar em { font-style: normal; font-size: .82rem; color: var(--muted); margin-inline-start: .75rem; }
.mock-body { padding: 1.25rem 1.4rem 1.6rem; min-height: 230px; }
.mock-meta { font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.mock-text { margin-top: 1rem; font-size: 1rem; }
.mock-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--brand-1); vertical-align: text-bottom; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
.mock-pill { position: absolute; inset-inline-start: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; background: #17141f; color: #fff; border-radius: 99px; padding: .55rem 1rem; font-size: .88rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); white-space: nowrap; }
[dir="rtl"] .mock-pill { transform: translateX(50%); }
.mock-pill kbd { font: inherit; font-size: .75rem; background: rgba(255, 255, 255, .14); border-radius: 5px; padding: .05rem .4rem; }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--brand-3); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@keyframes blink { 50% { opacity: 0; } }

/* Calculator */
.calculator-section { padding-top: 0; }
.calculator { text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.calc-label { display: block; font-weight: 600; margin: 1.5rem 0 .75rem; }
.calc-label output { color: var(--brand-1); font-weight: 800; }
.calculator input[type=range] { width: 100%; max-width: 520px; accent-color: var(--brand-1); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.calc-results div { background: var(--bg-alt); border-radius: 12px; padding: 1.1rem; }
.calc-results strong { display: block; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-results span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); }

/* Templates / example */
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { position: relative; padding-inline-start: 1.9rem; margin-bottom: .7rem; }
.checklist li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: var(--brand-gradient); }
.example { margin: 0; display: grid; gap: .75rem; }
.example-in, .example-out { border-radius: var(--radius); padding: 1.25rem 1.4rem; border: 1px solid var(--border); }
.example-in { background: var(--bg-alt); }
.example-in p { font-style: italic; color: var(--muted); margin: 0; }
.example-out { background: var(--surface); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-2) 40%, var(--border)); }
.example-out p { margin: 0; }
.pre { white-space: pre-line; }
.example-label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.mic-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(1) infinite; }
.example-arrow { text-align: center; color: var(--brand-2); font-size: 1.4rem; transform: rotate(90deg); }

/* Features */
.feature { padding: .5rem; }
.feature p { color: var(--muted); }

/* Teams */
.teams { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 10%, var(--surface)), var(--surface)); }
.teams h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.teams p { color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .teams { flex-direction: column; align-items: flex-start; } }

/* Pricing */
.plan-free { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 820px; margin: 0 auto 2.5rem; }
.plan-free h3 { margin-bottom: .2rem; }
.plan-amount { font-size: 1.3rem; font-weight: 750; margin: 0 0 .25rem; }
@media (max-width: 640px) { .plan-free { flex-direction: column; align-items: flex-start; } }
.plans-title { text-align: center; font-size: 1.3rem; margin-top: 1rem; }
.plans { list-style: none; padding: 0; margin: 1rem auto 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; max-width: 1060px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; display: flex; flex-direction: column; gap: .4rem; }
.plan-popular { border: 2px solid var(--brand-2); box-shadow: 0 10px 30px rgba(124, 58, 237, .18); }
.plan-popular .pill { position: absolute; top: -.75rem; inset-inline-start: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
[dir="rtl"] .plan-popular .pill { transform: translateX(50%); }
.plan-hours { font-weight: 650; }
.plan-price { font-size: 1.5rem; font-weight: 800; }
.plan-price small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: .35rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-1); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq details p { color: var(--muted); padding-bottom: .8rem; }

/* Final CTA */
.cta-final { background: radial-gradient(900px 400px at 50% 120%, color-mix(in srgb, var(--brand-3) 28%, transparent), transparent 70%), var(--bg-alt); }

/* Breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.25rem 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; }

/* Contact */
.contact-form { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ring); border-color: var(--brand-2); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 550; }
.notice-ok { background: color-mix(in srgb, #16a34a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); }
.notice-error { background: color-mix(in srgb, #dc2626 12%, var(--surface)); border: 1px solid color-mix(in srgb, #dc2626 40%, transparent); }

/* Legal */
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal p, .legal li { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 3rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); margin-top: .75rem; }
.footer-address { font-size: .85rem; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { color: var(--text); }
.footer-languages { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-block: 1.5rem 2rem; }
.footer-languages summary { cursor: pointer; font-weight: 600; }
.language-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .1rem 1rem; margin-top: 1rem !important; }
.language-list a[aria-current] { font-weight: 800; color: var(--brand-1); }
.copyright { color: var(--muted); font-size: .85rem; margin: 1.25rem 0 0; }
.platform-links { display: flex; gap: 1.25rem; margin-top: .9rem; font-size: .92rem; }
.platform-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
q { quotes: auto; }

/* Cookie consent */
.consent { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 860px; width: 100%; display: flex; align-items: center; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: 0 20px 50px rgba(23, 20, 31, .22); }
.consent-title { font-weight: 700; margin: 0 0 .2rem; }
.consent-text { margin: 0; font-size: .92rem; color: var(--muted); }
.consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent-actions .btn { padding: .6rem 1.1rem; }
@media (max-width: 680px) { .consent-inner { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Blog */
.blog-card-meta { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.article { padding-top: 1.5rem; }
.article-head { margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.article-meta { font-size: .9rem; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-inline-start: 4px solid var(--brand-2); background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--muted); }
[dir="rtl"] .prose blockquote { border-radius: 10px 0 0 10px; }
.prose code { font-size: .9em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: .05rem .35rem; }
.prose kbd { font: inherit; font-size: .85em; background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: .05rem .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: .6rem .5rem; text-align: start; vertical-align: top; }
.prose th { font-weight: 700; }
.article-cta { margin-top: 3rem; text-align: center; }
.article-cta .download-buttons { justify-content: center; }
.prose th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.prose th.sortable::after { content: " ↕"; color: var(--muted); font-weight: 400; }
.prose th[aria-sort="ascending"]::after { content: " ↑"; color: var(--brand-1); }
.prose th[aria-sort="descending"]::after { content: " ↓"; color: var(--brand-1); }
.prose .row-num { width: 2.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
