/* Speech to Text — landing page design tokens.
   Light blue-white is the resting state; dark is an explicit opt-in via the
   toggle, not the default. Every component below reads one of these
   variables — never a hardcoded color — so the whole page flips on
   data-theme alone. */
:root {
  --bg:          #f6f8fd;
  --bg-raised:   #eef2fb;
  --surface:     #ffffff;
  --surface-alt: #eef3fc;
  --line:        #dde4f2;
  --line-strong: #c3cce3;

  --fg:          #10172a;
  --fg-muted:    #45506b;
  --fg-dim:      #5c6780;

  --accent:       #2454f4;
  --accent-2:     #0f2fa6;
  --accent-3:     #0b9e8c;
  --accent-hover: #1540c4;

  --ok:  #0f9d6b;
  --err: #c2254a;

  --grad: linear-gradient(120deg, var(--accent-3), var(--accent) 55%, var(--accent-2));

  --dot:        #c9d2e6;
  --live-dot:   #0bb58f;
  --nav-bg:     rgba(246, 248, 253, .82);
  --shadow-lg:  0 24px 50px -28px rgba(16, 23, 42, .22), 0 0 0 1px rgba(16, 23, 42, .04);
  --glow:       rgba(36, 84, 244, .14);

  --glass-bg:     rgba(255, 255, 255, .55);
  --glass-brd:    rgba(16, 23, 42, .10);
  --glass-hi:     rgba(255, 255, 255, .9);
  --glass-knob:   rgba(255, 255, 255, .95);
  --glass-shadow: 0 2px 8px rgba(16, 23, 42, .14);

  --scroll-thumb: #c3cce3;
  --scroll-hover: #a9b4d1;

  --cap-k: #1540c4;  /* caption "keyword"-weight line (final text) */
  --cap-d: #5c6780;  /* caption dim line (interim / older text) */

  --radius: 14px;
  /* Named step for the small-control radius that already repeats across the
     tool page (chips, buttons) — same pixel value as before, just shared
     instead of typed out as a literal everywhere. */
  --radius-tight: 8px;
  --maxw: 1180px;

  --font:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg:          #0c1322;
  --bg-raised:   #111b2e;
  --surface:     #152138;
  --surface-alt: #1a2740;
  --line:        #223252;
  --line-strong: #324564;

  --fg:          #eef2fb;
  --fg-muted:    #aab4cc;
  --fg-dim:      #818ca8;

  --accent:       #5b8dff;
  --accent-2:     #7c6bff;
  --accent-3:     #2fe0c4;
  --accent-hover: #83a8ff;

  --ok:  #30c98a;
  --err: #ff6b89;

  --dot:        #2c3a52;
  --live-dot:   #2fe0c4;
  --nav-bg:     rgba(12, 19, 34, .82);
  --shadow-lg:  0 24px 60px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .03);
  --glow:       rgba(91, 141, 255, .22);

  --glass-bg:     rgba(255, 255, 255, .06);
  --glass-brd:    rgba(255, 255, 255, .14);
  --glass-hi:     rgba(255, 255, 255, .22);
  --glass-knob:   rgba(255, 255, 255, .16);
  --glass-shadow: 0 2px 10px rgba(0, 0, 0, .45);

  --scroll-thumb: #324564;
  --scroll-hover: #425878;

  --cap-k: #bcd0ff;
  --cap-d: #818ca8;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root { color-scheme: light; }

* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb); border-radius: 6px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); background-clip: content-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }

body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.lp-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* Skip link */
.lp-skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 100;
  transform: translateY(-200%);
  padding: .55rem 1rem; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: .875rem; font-weight: 600;
}
.lp-skip:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- nav ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.lp-nav__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.lp-nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -.01em;
}
.lp-nav__brand .wordmark-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--live-dot);
  box-shadow: 0 0 0 4px var(--glow);
}
.lp-nav__links { display: flex; gap: 1.75rem; margin-left: 2.5rem; }
.lp-nav__links a { color: var(--fg-muted); font-size: .95rem; transition: color .15s ease; }
.lp-nav__links a:hover { color: var(--fg); }
.lp-nav__actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font); font-size: .925rem; font-weight: 600;
  cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg-muted); background: transparent; }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--fg); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .48rem .95rem; font-size: .82rem; }
.btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }

/* ---------- theme toggle (sun/moon switch) ---------- */
.theme-switch { flex: none; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.theme-switch:focus-visible { outline: none; }
.theme-switch:focus-visible .theme-track { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.theme-track {
  position: relative; display: inline-flex; align-items: center;
  justify-content: space-between; gap: .28rem;
  width: 56px; height: 28px; padding: 0 .34rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 2px rgba(16, 23, 42, .1);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-switch:hover .theme-track { border-color: var(--accent-3); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 3px var(--glow); }
.theme-track svg { position: relative; z-index: 1; width: 14px; height: 14px; transition: color .18s ease; }
.theme-track .ico-sun  { color: var(--fg-dim); }
.theme-track .ico-moon { color: var(--fg-dim); }
:root:not([data-theme="dark"]) .theme-track .ico-sun  { color: var(--accent); }
:root[data-theme="dark"]       .theme-track .ico-moon { color: var(--accent-3); }
.theme-knob {
  position: absolute; top: 50%; left: 3px;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-knob) 55%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1);
}
:root[data-theme="dark"] .theme-knob { transform: translateX(26px); }
:root:not([data-theme="dark"]) .theme-knob { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .theme-track, .theme-track svg, .theme-knob { transition: none; }
}

/* ---------- built-by badge ----------
 * One floating pill, bottom-right, on every page (landing + the /app tool).
 * Standardized across every WebMobTech POC to the same mark + "BUILT BY /
 * WebMob Technologies" two-line lockup, fixed bottom-right, 24px mark,
 * 12px radius, design-system shadow/motion steps. */
:root .wmt-dark  { display: none; }
:root[data-theme="dark"] .wmt-light { display: none; }
:root[data-theme="dark"] .wmt-dark  { display: block; }

.built-by-float {
  /* z-index above the /app login overlay (1000) and its persistent
     theme-toggle/sign-out controls (1001) — see templates/index.html —
     so the badge stays visible even while signed out. */
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1002;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 25px -5px rgba(16, 23, 42, .25);
  text-decoration: none;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.built-by-float:hover, .built-by-float:focus-visible {
  border-color: var(--accent-3);
  box-shadow: 0 20px 25px -5px rgba(16, 23, 42, .35);
  transform: translateY(-2px);
}
.built-by-float:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.built-by-float img { height: 24px; width: auto; display: block; }
.built-by-float .built-by-txt {
  display: flex; flex-direction: column; gap: .1rem;
  padding-left: .5rem; margin-left: 0;
  border-left: 1px solid var(--glass-brd);
  line-height: 1.15; font-size: .75rem; font-weight: 700; color: var(--fg);
}
.built-by-float em {
  display: block; font-style: normal; font-weight: 500; font-size: .625rem;
  letter-spacing: .025em; text-transform: uppercase; color: var(--fg-dim);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .built-by-float { background: var(--surface); border-color: var(--line); }
}
@media (max-width: 640px) { .built-by-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .built-by-float { transition: none; }
  .built-by-float:hover { transform: none; }
}
