/* Spreks — spreks.com
   Brand: Killarney Deep #064E3B, Fresh Moss #10B981, Slate Graphite #1F2937
   Type: Montserrat (headings), Inter (body), JetBrains Mono (numbers) */

:root {
  --brand: #064E3B;
  --brand-dark: #052E22;
  --brand-hover: #065F46;
  --moss: #10B981;
  --mint: #A7F3D0;
  --mint-soft: #D1FAE5;
  --tint: #ECF5F0;
  --tint-line: #D1E7DC;
  --soft: #F6F8F7;
  --ink: #1F2937;
  --ink-strong: #052E22;
  --muted: #4B5563;
  --line: #E5E7EB;
  --field: #9CA3AF;
  --slate: #1F2937;
  --slate-line: #374151;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 78, 59, .08);
  --wrap: 1180px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink-strong); margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-3 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.mono { font-family: var(--mono); }

/* ---------- top bar ---------- */
.topbar { background: var(--brand); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-badge svg { color: var(--mint); }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mint-soft); }
.topbar-links a { color: #fff; text-decoration: none; }
.topbar-links a:hover { text-decoration: underline; color: #fff; }

/* ---------- header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-word { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--brand); }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-family: var(--body); font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--tint); color: var(--brand); }
.btn--moss { background: var(--moss); color: var(--brand-dark); }
.btn--moss:hover { background: #34D399; color: var(--brand-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--tint); border-bottom: 1px solid var(--tint-line); padding: 88px 0 80px; }
.hero--sub { padding: 64px 0 56px; }
.hero-tagline { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--brand-hover); margin: 0 0 14px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.025em; max-width: 820px; }
.hero--sub h1 { font-size: clamp(32px, 4vw, 44px); }
.lede { font-size: 19px; line-height: 1.65; color: #374151; max-width: 760px; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tint-line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.chip svg { width: 16px; height: 16px; color: var(--brand-hover); }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumb a { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--green { background: var(--brand); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: var(--mint); }
.section--green p { color: var(--mint-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 17px; color: var(--muted); margin: 14px 0 0; }
.eyebrow { display: block; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--brand-hover); margin-bottom: 8px; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.card h3 { margin-top: 18px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 24px; height: 24px; }

.feature { display: flex; gap: 16px; }
.feature-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.12); color: var(--mint); display: flex; align-items: center; justify-content: center; }
.section:not(.section--green) .feature-icon { background: var(--tint); color: var(--brand); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 15px; margin: 6px 0 0; }

/* languages */
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lang-list li { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: baseline; gap: 8px; }
.lang-list .native { font-weight: 600; color: var(--ink-strong); }
.lang-list .en { font-size: 13px; color: var(--muted); }
.lang-table { width: 100%; border-collapse: collapse; }
.lang-table th, .lang-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.lang-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.lang-table td:first-child { font-weight: 600; color: var(--ink-strong); font-size: 18px; }
.lang-table td.mono { font-size: 14px; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--ink-strong); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.panel h3 { font-size: 24px; font-weight: 800; }
.demo-number { font-family: var(--mono); font-weight: 500; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; color: var(--brand); margin: 22px 0 4px; }
.panel-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* feature rows (features page) */
.feature-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row:nth-child(even) > :first-child { order: 2; }
.feature-row h2 { margin-bottom: 14px; }
.feature-row ul, .ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature-row li, .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.feature-row li::before, .ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23064E3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fact-box { background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--radius); padding: 32px; }
.fact-box .big { font-family: var(--head); font-weight: 800; font-size: 40px; color: var(--brand); line-height: 1.1; letter-spacing: -0.02em; }
.fact-box p { color: #374151; margin: 10px 0 0; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(16,185,129,.35); outline-offset: 0; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; display: none; }
.form-status.is-ok { display: block; background: var(--mint-soft); color: var(--brand-dark); }
.form-status.is-error { display: block; background: #FEF3C7; color: #78350F; }
.hp { position: absolute; left: -9999px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-family: var(--head); font-weight: 700; color: var(--ink-strong); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* placeholder quote / founder */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.quote p { font-size: 19px; line-height: 1.6; color: var(--ink-strong); }
.quote footer { color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat strong { display: block; font-family: var(--head); font-weight: 800; font-size: 32px; color: var(--brand); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 15px; }

/* cta band */
.cta-band { background: var(--brand-dark); color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 32px); }
.cta-band p { color: var(--mint-soft); font-size: 17px; margin: 10px 0 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.placeholder { background: #FEF3C7; color: #78350F; border-radius: 10px; padding: 14px 18px; }

/* footer */
.footer { background: var(--slate); color: #D1D5DB; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 15px; color: #F9FAFB; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #D1D5DB; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand .brand-word { color: #F9FAFB; font-size: 22px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--slate-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #9CA3AF; }

/* mobile call bar */
.callbar { display: none; }

/* ---------- responsive ---------- */
/* "Talk to Spreks" live demo panel (assets/js/talk.js) */
[hidden] { display: none !important; }
.btn--danger { background: #B91C1C; color: #fff; }
.btn--danger:hover { background: #991B1B; color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
.talk > .muted { margin-top: 10px; }
.talk-start { margin-top: 20px; width: 100%; }
.talk-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.talk-turnstile:not(:empty) { margin-top: 16px; display: flex; justify-content: center; }
.talk-status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; color: var(--ink); text-align: center; }
.talk-status.is-live { color: var(--brand-hover); }
.talk-status.is-ok { color: var(--brand); }
.talk-status.is-error { color: #B91C1C; }
.talk-live { margin-top: 14px; text-align: center; }
.talk-timer { margin: 0; font-family: var(--mono); font-size: 28px; color: var(--brand); }
.talk-controls { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.talk-controls .btn { min-width: 120px; }
.talk-controls [aria-pressed="true"] { background: var(--tint); }
.talk-fallback { margin: 12px 0 0; text-align: center; font-size: 15px; }
.talk-hint { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.talk-hint p { margin: 0; font-size: 15px; color: var(--muted); }
.talk-langs { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.talk-langs li { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--brand); }
.talk-try { font-style: italic; }
.talk-privacy { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.talk[data-mode="call"] .talk-note { display: none; }
.talk-transcript { list-style: none; margin: 18px 0 0; padding: 12px; max-height: 240px; overflow-y: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.talk-line { font-size: 14px; line-height: 1.45; max-width: 90%; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.talk-line--caller { align-self: flex-end; background: var(--tint); border-color: var(--tint-line); }
.talk-who { font-weight: 600; color: var(--brand); margin-right: 6px; }
.talk-lang { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--tint-line); border-radius: 4px; padding: 0 4px; margin-right: 6px; }

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header .wrap { position: relative; }
  .topbar-links span { display: none; }
  .grid-2, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row:nth-child(even) > :first-child { order: 0; }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-3, .grid-4, .stats, .footer-grid, .form { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .panel, .card { padding: 24px; }
  .callbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .callbar .btn { flex: 1; }
}
