/* Ohmic website. Tokens mirror src/ohmic/theme.py so the site reads as the app. */

@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.woff2") format("woff2"), url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Bold.woff2") format("woff2"), url("../assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg-base: #161616;
  --bg-surface: #1a1a1a;
  --bg-elevated: #222222;
  --bg-input: #2a2a2a;
  --bg-hover: #323232;
  --border: #2e2e2e;
  --border-hover: #444444;
  --divider: #242424;

  --accent: #66bb6a;
  --accent-hover: #7acc7e;
  --accent-pressed: #52a856;
  --accent-muted: #4a7a4c;
  --accent-soft: #a5d6a7;
  --on-accent: #111111;
  --island-border: #3a4a3c;
  --pivot-bg: #322848;
  --pivot-border: #6644aa;
  /* Mode tags, from the design doc's Instant / Assistant segments. */
  --instant-bg: #2a3a2c;
  --assistant: #58d0ff;
  --assistant-bg: #17293a;
  --assistant-border: #3579ad;

  --text: #e0e0e0;
  --text-light: #c9c9c9;
  --text-2: #9a9a9a;
  --text-bright: #ffffff;

  --font-ui: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 8px;
  --radius-small: 5px;
  --gutter: 16px;
  --wrap: 1180px;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection { background: var(--accent-muted); color: var(--text-bright); }
html { scrollbar-color: var(--border-hover) var(--bg-base); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border: 3px solid var(--bg-base); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { color: var(--text-bright); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 5.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius-small); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 700 1rem/1 var(--font-ui); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-quiet { color: var(--text); border-color: var(--border-hover); }
.btn-quiet:hover { color: var(--text-bright); border-color: var(--text-2); background: var(--bg-elevated); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-base);
  background: color-mix(in srgb, var(--bg-base) 94%, transparent);
  border-bottom: 1px solid var(--divider);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-bright); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.brand:hover { color: var(--text-bright); }
/* Under 1180px the section links become one sideways-scrolling row below the brand. */
.site-nav { order: 3; display: flex; gap: 4px; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px) 8px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
@media (max-width: 639px) { .site-nav { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); } }
.site-nav a { flex: none; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; padding: 8px 12px; border-radius: var(--radius-small); }
.site-nav a:hover { color: var(--text-bright); background: var(--bg-elevated); }
.header-row .btn { margin-left: auto; }
@media (max-width: 1179px) {
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-small { min-height: 44px; }
  .video-toggle { min-height: 44px; }
}
@media (min-width: 1180px) {
  html { scroll-padding-top: 80px; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; overflow: visible; }
  .header-row .btn { margin-left: 8px; }
}

/* Hero */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--divider); }
.hero-copy { max-width: 860px; }
.hero-sub { margin-top: 20px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--accent-soft); }
.lede { margin-top: 16px; font-size: 1.25rem; line-height: 1.55; color: var(--text-light); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 20px; color: var(--text-2); font-size: 0.9375rem; max-width: 46ch; }
@media (min-width: 1000px) { .hero { padding: 88px 0 104px; } }
.hero-shot { margin-top: 56px; }
@media (min-width: 1000px) { .hero-shot { margin-top: 72px; } }


/* Sections */
.section { padding: 88px 0; }
.section-raised { background: var(--bg-surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
@media (min-width: 1000px) { .section { padding: 120px 0; } }
.section-intro { max-width: 720px; margin-bottom: 56px; }
.section-intro p, .narrow > p, .split-copy > p { margin-top: 20px; color: var(--text-light); font-size: 1.125rem; max-width: 64ch; }
.narrow > p + p { margin-top: 16px; }

/* Moments */
.moment { display: grid; gap: 28px; align-items: center; padding: 40px 0; border-top: 1px solid var(--divider); }
.section-intro + .moment { border-top: 0; padding-top: 0; }
.moment-copy p { margin-top: 12px; color: var(--text-light); max-width: 52ch; }
.moment-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 900px) {
  .moment { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 56px 0; }
  .moment:nth-child(odd) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .moment:nth-child(odd) .moment-copy { order: 2; }
}

/* Product screenshots, captured from Ohmic windows */
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-surface); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot-open { display: block; cursor: zoom-in; }
.shot-open:focus-visible { outline-offset: -3px; }
.tap-hint { display: none; color: var(--text-2); }
@media (max-width: 600px) { .tap-hint { display: inline; } }

/* Recorded product loop */
.shot-video { position: relative; }
.shot-video video { display: block; width: 100%; height: auto; background: var(--bg-surface); }
.video-caption { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; }
.video-caption span { flex: 1 1 32ch; }
.video-toggle {
  flex: none; min-height: 34px; padding: 0 14px;
  border-radius: var(--radius-small); border: 1px solid var(--border-hover);
  background: var(--bg-elevated); color: var(--text); font: 700 0.8125rem/1 var(--font-ui); cursor: pointer;
}
.lesson {
  margin-top: 20px; max-width: 72ch; padding: 16px 20px; border-radius: var(--radius);
  background: var(--pivot-bg); border: 1px solid var(--pivot-border); color: var(--text-light);
}
.lesson strong { color: var(--text-bright); }
@media (max-width: 600px) { .video-caption span a { display: inline-block; margin-top: 6px; } }
.shot-video + .lesson { margin-bottom: 56px; }
.video-toggle:hover { color: var(--text-bright); border-color: var(--text-2); }
.shot figcaption { padding: 12px 16px 14px; font-size: 0.875rem; color: var(--text-2); border-top: 1px solid var(--divider); }

/* Chords window pipeline */
.shot-wide { margin-bottom: 56px; }
.shot-wide.shot-video { margin-bottom: 0; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.pipeline li { position: relative; padding-top: 20px; border-top: 2px solid var(--accent-muted); }
.pipeline li:first-child { border-top-color: var(--accent); }
.pipeline p { margin-top: 10px; color: var(--text-light); max-width: 40ch; }
@media (min-width: 800px) {
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .pipeline li:not(:last-child)::after {
    content: ""; position: absolute; top: -7px; right: -26px; width: 12px; height: 12px;
    border-top: 2px solid var(--accent-muted); border-right: 2px solid var(--accent-muted); transform: rotate(45deg);
  }
}

.transforms-row { margin-top: 72px; }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.9375rem; color: var(--text-light); padding: 6px 12px; border: 1px solid var(--island-border); border-radius: 999px; background: var(--bg-elevated); }
.note { margin-top: 20px; color: var(--text-2); max-width: 60ch; }
.tags-intro { margin-top: 10px; color: var(--text-light); max-width: 64ch; }
.split-copy .tags-lead { margin-top: 28px; color: var(--text-2); font-size: 0.9375rem; }
.split-copy .tags { margin-top: 10px; }
.split-copy .tags li { font-size: 0.875rem; }

/* Inside Live */
.split { display: grid; gap: 48px; align-items: center; }
.shot-tall { max-width: 520px; justify-self: center; width: 100%; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-light); }
.checks-wide { margin-top: 0; gap: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Feature overview: every card jumps to its section */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.features li { background: var(--bg-base); display: flex; }
.features a, .features li > div { display: block; flex: 1; padding: 24px 24px 26px; text-decoration: none; color: inherit; }
.features a { transition: background-color 160ms var(--ease-out); }
.features a:hover { background: var(--bg-elevated); }
.features a:focus-visible { outline-offset: -3px; }
.features h3 { font-size: 1.125rem; }
.features a h3::after { content: " \2192"; color: var(--accent); font-weight: 400; }
.features p { margin-top: 8px; color: var(--text-light); font-size: 0.9375rem; }
.section-raised .features li { background: var(--bg-surface); }
.features-plain { background: var(--divider); }

/* Detail columns */
.specs { display: grid; gap: 36px 48px; margin-top: 56px; }
@media (min-width: 800px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section-intro + .specs { margin-top: 0; }
.specs h3 { font-size: 1.125rem; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.dots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 20px; color: var(--text-light); font-size: 0.9375rem; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-muted); }

/* Instant vs Assistant */
.modes { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
@media (min-width: 800px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { background: var(--bg-base); padding: 32px 28px; }
.mode h3 { font-size: 1.75rem; letter-spacing: -0.02em; }
.mode:first-child h3 { color: var(--assistant); }
.mode:last-child h3 { color: var(--accent); }
.mode-sub { margin-top: 6px; color: var(--text-bright); font-weight: 700; }
.mode h4 { margin: 28px 0 0; font-size: 1rem; font-weight: 700; color: var(--text-bright); }
.mode .tags { margin-top: 12px; }
.mode .tags li { font-size: 0.875rem; }
.mode h4 + p, .mode .tags + p { margin-top: 10px; color: var(--text-light); max-width: 56ch; font-size: 0.9375rem; }
.mode p.tags-lead { margin-top: 14px; color: var(--text-2); font-size: 0.875rem; }
.mode .tags-lead + .tags { margin-top: 8px; }
@media (max-width: 480px) { .mode { padding: 28px 18px; } .mode .tags { gap: 6px; } .mode .tags li { padding: 4px 10px; font-size: 0.8125rem; } }
.mode .note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 0.9375rem; }
.connect { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 0.9375rem; }
.connect dt { color: var(--accent-soft); font-weight: 700; }
.connect dd { margin: 0; color: var(--text-light); }
@media (max-width: 480px) { .connect { grid-template-columns: 1fr; gap: 0; } .connect dd { margin-bottom: 10px; } }

/* Assistant abilities */
.abilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 720px) { .abilities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .abilities { grid-template-columns: 1fr 1fr 1fr; } }
.abilities li { padding: 28px 0; border-top: 1px solid var(--divider); }
.abilities h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.abilities p { margin-top: 8px; color: var(--text-light); }
.abilities .ask { margin-top: 14px; font-style: italic; color: var(--accent-soft); }
.abilities .ask-link { margin-top: 6px; font-size: 0.9375rem; }

/* Workflows */
.workflows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 720px) { .workflows { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .workflows { grid-template-columns: 1fr 1fr 1fr; } }
.workflows li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--divider); }
.workflows img { flex: none; width: 40px; height: 40px; }
.workflows h3 { font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.workflows p { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; }
.workflows .wf-modes { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 6px; }
.badge {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border: 1px solid; border-radius: 6px;
}
.badge-instant { color: var(--accent); background: var(--instant-bg); border-color: var(--accent-muted); }
.badge-assistant { color: var(--assistant); background: var(--assistant-bg); border-color: var(--assistant-border); }

.inline-cta { margin-top: 40px; color: var(--text-light); }

/* Price */
.price-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.price-card {
  padding: 36px 32px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--island-border); box-shadow: var(--shadow);
}
.price-card > p { color: var(--text-light); margin-top: 12px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 4px; }
.price .amount { font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.price .was { color: var(--text-2); }
.price-card .btn { margin-top: 28px; }
.requirements h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.requirements dl { margin: 20px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
.requirements dt { font-weight: 700; color: var(--text-bright); }
.requirements dd { margin: 0; color: var(--text-light); }
@media (max-width: 480px) { .requirements dl { grid-template-columns: 1fr; gap: 2px; } .requirements dd { margin-bottom: 12px; } }

/* FAQ */
#faq h2 { margin-bottom: 32px; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.125rem; color: var(--text-bright);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: var(--accent-soft); }
details p { padding: 0 0 22px; color: var(--text-light); max-width: 66ch; }

/* Closing call to action */
.closing { padding: 72px 0; background: var(--bg-surface); border-top: 1px solid var(--island-border); }
.closing-row { display: grid; gap: 28px; align-items: center; }
.closing h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.closing p { margin-top: 12px; color: var(--text-light); max-width: 60ch; }
@media (min-width: 900px) { .closing-row { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--divider); }
.footer-row { display: grid; gap: 12px; }
.brand-small { font-size: 1rem; }
.brand-small img { border-radius: 5px; }
.site-footer p { color: var(--text-2); font-size: 0.9375rem; }
.site-footer .fine { font-size: 0.8125rem; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; }
}
.specs + .note { margin-top: 40px; }
