/* WireCall global landing for platforms (15.11.2026).
   Calm engineering tone of the product: neutral greys, violet brand accent, Manrope, light and dark.
   Sizes follow the Tailwind type scale, spacing the 2/4/8/12/16/24/32/40/48/64/80/96 steps.
   Hover changes colour only: no lift, scale or sliding arrows (owner rule). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/manrope-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --surface-3: #e9e9e9;
  --line: #e4e4e4;
  --ink: #111111;
  --muted: #555555;
  --dim: #8a8a8a;
  --accent: #6c5ce7;
  --accent-hover: #5b4bd8;
  --accent-ink: #5546d4;
  --accent-soft: #efedfd;
  --ok: #0f8a6c;
  --code-bg: #181818;
  --code-ink: #e8e8e8;
  --code-dim: #8f8f8f;
  --code-key: #b9b0ff;
  --code-str: #7fd8c4;
  --hero-from: #000000;
  --hero-to: #666666;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* Light by default; dark only when the visitor picks it (stored in localStorage, applied in <head>). */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --line: #2c2c2c;
  --ink: #ededed;
  --muted: #a3a3a3;
  --dim: #767676;
  --accent: #7c6df0;
  --accent-hover: #8d80f4;
  --accent-ink: #a99ff7;
  --accent-soft: #23203a;
  --ok: #3cc9a7;
  --code-bg: #131313;
  --hero-from: #ffffff;
  --hero-to: #9b9b9b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, pre, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
.wrap { width: min(1152px, 100% - 32px); margin: 0 auto; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
code, pre, .mono { font-family: var(--mono); }

/* Buttons: one shape, colour-only feedback */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; line-height: 20px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-ink); }
.btn-quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-quiet:active { background: var(--surface-3); }

/* Navigation: compact floating bar */
.nav { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.nav-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; width: min(1152px, 100% - 32px); margin: 0 auto; height: 56px; padding: 0 8px 0 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 0 1px var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 28px; height: 18px; }
.brand b { color: var(--accent-ink); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="true"] { color: var(--ink); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-bar > .theme-toggle { margin: 0 -8px 0 -16px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-bar > .btn { display: none; }
  .nav-bar > .theme-toggle { margin: 0 0 0 auto; }
  .nav-toggle { display: block; margin-left: -16px; }
  .menu { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 96px 24px 32px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
  .nav-open .menu { opacity: 1; pointer-events: auto; }
  .menu a { font-size: 24px; line-height: 32px; font-weight: 600; padding: 12px 0; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .menu .btn { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .nav-open .menu a { opacity: 1; transform: none; }
  .nav-open .menu a:nth-child(2) { transition-delay: 60ms; }
  .nav-open .menu a:nth-child(3) { transition-delay: 120ms; }
  .nav-open .menu a:nth-child(4) { transition-delay: 180ms; }
  .nav-open .menu a:nth-child(5) { transition-delay: 240ms; }
  .nav-open .menu a:nth-child(6) { transition-delay: 300ms; }
}

/* Sections */
section { padding: 96px 0; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-ink); }
.h2 { margin-top: 12px; font-size: 36px; line-height: 40px; font-weight: 700; max-width: 680px; }
.lead { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--muted); max-width: 680px; }
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .h2 { font-size: 30px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 24px; }
}

/* Hero */
.hero { padding: 80px 0 64px; }
.hero h1 { max-width: 680px; font-size: 48px; line-height: 1.05; font-weight: 700; background: linear-gradient(90deg, var(--hero-from), var(--hero-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: 60px; }
.hero .sub { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); }
.hero .sub strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.facts .i { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 640px) {
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero .sub { font-size: 16px; line-height: 24px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* Hero visual: the platform page with the room and the record that arrives */
.stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 64px; }
@media (max-width: 960px) { .stage { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.panel-head b { color: var(--ink); font-weight: 600; }
.panel-head .tag { margin-left: auto; }
@media (max-width: 520px) { .panel-head > span:not(.tag) { display: none; } }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); }
.room { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--surface-3); overflow: hidden; display: grid; place-items: center; }
.tile .who { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 600; background: rgba(0, 0, 0, 0.55); color: #fff; }
.tile .cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .who { z-index: 2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.tile.speaking::after { opacity: 1; }
/* Hero: transcript lines arrive one by one while the speaker's tile lights up (JS sets .playing; without JS all lines show). */
.lines.playing .line { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.lines.playing .line.shown { opacity: 1; transform: none; }
.record-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }
.photo-band { padding-top: 0; }
.photo { margin-top: 48px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.photo figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.lines { margin-top: 12px; display: grid; gap: 4px; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.line:nth-child(odd) { background: var(--surface-2); }
.line .sp { font-weight: 600; }
.line .tx { color: var(--muted); }
@media (max-width: 520px) { .line { grid-template-columns: 1fr; gap: 0; } }

.json { margin: 0; padding: 16px; border-radius: 16px; background: var(--code-bg); color: var(--code-ink); font-size: 12px; line-height: 20px; overflow-x: auto; white-space: pre; }
.json .k { color: var(--code-key); }
.json .s { color: var(--code-str); }
.json .c { color: var(--code-dim); }
.panel .json { min-height: 0; }
.panel-record { display: flex; flex-direction: column; }
.panel-record .json { flex: 1; }
.after { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 20px; color: var(--muted); }
.after .i { width: 16px; height: 16px; color: var(--ok); }

/* Problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 32px; }
.card h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.card .muted { color: var(--muted); }
.bullets { margin-top: 16px; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--muted); }
.bullets b { color: var(--ink); font-weight: 600; }
.bullets .i { margin-top: 2px; }
.x { color: var(--dim); }
.v { color: var(--accent); }
.card-strong { background: var(--accent-soft); box-shadow: none; }

/* Steps */
.steps { margin-top: 48px; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 32px; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 16px; padding: 24px; } }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; line-height: 20px; font-weight: 700; }
.step h3 { margin-top: 16px; font-size: 20px; line-height: 28px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); }

/* Records by industry */
.tabs { margin-top: 48px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); max-width: 100%; overflow-x: auto; }
.tab { height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.record { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.record[hidden] { display: none; }
@media (max-width: 860px) { .record { grid-template-columns: 1fr; } }
.record .card h3 { font-size: 20px; line-height: 28px; }
.record dl { margin-top: 16px; display: grid; gap: 12px; }
.record dt { font-size: 14px; line-height: 20px; font-weight: 600; }
.record dd { font-size: 14px; line-height: 20px; color: var(--muted); }

/* Tagline reveal */
.tagline { padding: 128px 0; }
.tagline p { max-width: 900px; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.tagline .w { color: color-mix(in srgb, var(--ink) 28%, transparent); transition: color 600ms var(--ease); }
.tagline .w.on { color: var(--ink); }
@media (max-width: 640px) { .tagline { padding: 80px 0; } .tagline p { font-size: 30px; line-height: 36px; } }

/* Security */
.grid3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 24px; }
.fact .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.fact h3 { margin-top: 16px; font-size: 18px; line-height: 28px; font-weight: 700; }
.fact p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.table-wrap { margin-top: 16px; background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
tbody tr:nth-child(odd) td { background: var(--surface-2); }
tbody tr td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
tbody tr td:last-child { border-radius: 0 12px 12px 0; }

/* Pilot */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } }
.pilot .card h3 { font-size: 24px; line-height: 32px; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.checks .i { margin-top: 2px; color: var(--ok); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 300ms var(--ease); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #d14343; }
.err { font-size: 14px; line-height: 20px; color: #d14343; }
.err:empty { display: none; }
.note { font-size: 14px; line-height: 20px; color: var(--muted); }
.form-done { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); font-size: 14px; line-height: 20px; }
.form-done[hidden] { display: none; }

/* FAQ */
.faq { margin-top: 48px; display: grid; gap: 8px; max-width: 800px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { margin-left: auto; width: 20px; height: 20px; color: var(--dim); transition: transform 500ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final .h2, .final .lead { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { padding: 48px 0 64px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--ink); }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); }
.foot p { margin-top: 12px; max-width: 360px; }

/* Reveal: content is visible without JavaScript; only sections not yet seen start lowered */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .reveal.seen { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .tagline .w { transition: none; }
}
.more { margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 600; } .more a { color: var(--accent-ink); }
.solutions { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .solutions { grid-template-columns: 1fr; } }
.solution { display: flex; flex-direction: column; background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px; color: inherit; text-decoration: none; transition: box-shadow 300ms var(--ease); }
.solution:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.solution:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.solution img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.solution-body { display: grid; gap: 8px; padding: 16px 16px 12px; }
.solution-body b { font-size: 18px; line-height: 28px; }
.solution-body > span { font-size: 14px; line-height: 20px; color: var(--muted); }
.solution-body .solution-more { color: var(--accent-ink); font-weight: 600; }
