/* SonoPlot site styles. Colors and font are set once here. */
:root {
  --primary: #32689B;
  --navy: #1B3664;
  --text: #111418;
  --muted: #5B6470;
  --light: #F5F6F8;
  --footer: #0E1B33;
  --border: #E3E6EA;
  --tint: #EAF1F8;
  --tint-border: #D3E1EE;
  --radius: 20px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-sm { padding: 64px 0; }
.bg-light { background: var(--light); }
.center { text-align: center; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font: 600 16px/1.2 var(--font);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav a.ext::after { content: "↗"; font-size: 11px; margin-left: 3px; color: var(--muted); vertical-align: 2px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; border-bottom: 1px solid var(--primary); color: #fff; }
}

/* Hero */
.hero { padding: 120px 0 0; text-align: center; }
.hero h1 { max-width: 920px; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 36px; }
.hero .btn-row { justify-content: center; }
.hero-img { display: block; max-width: 900px; margin: 64px auto 0; }
.hero-img img { margin: 0 auto; }
.page-hero { padding: 120px 0 72px; }
.page-hero h1 { max-width: 900px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(48px, 7vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.stat-cap { color: var(--muted); margin-top: 12px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split p { color: var(--muted); font-size: 18px; }
.split img { border-radius: var(--radius); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card-light { background: var(--light); border-color: var(--light); }
.card-tint { background: var(--tint); border-color: var(--tint-border); }
.card .card-foot { margin-top: auto; padding-top: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--light); color: var(--muted); }
.card-light .tags li { background: #fff; }

/* Model cards */
.model h3 { font-size: 36px; margin: 6px 0 6px; }
.model .tagline { color: var(--muted); margin: 0 0 24px; }
.big { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.big small { font-size: 24px; letter-spacing: -0.01em; margin-left: 4px; }
.big-cap { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.specs { list-style: none; margin: 8px 0 0; padding: 0; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--tint-border); font-size: 15px; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 600; text-align: right; }
.model .btn-row { margin-top: auto; padding-top: 28px; }
.model .btn { flex: 1; }

/* Shared specs */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.spec-item { display: flex; gap: 16px; align-items: flex-start; }
.spec-item img { width: 52px; height: 52px; flex: none; }
.spec-item .val { font-weight: 600; margin-top: 2px; line-height: 1.4; }
.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 64px; }

/* Application chips */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chip { background: var(--light); border-radius: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; line-height: 1.35; }

/* App notes */
.note-card { padding: 32px; }
.note-card .tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.note-card h3 { font-size: 20px; line-height: 1.3; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { font: 500 15px var(--font); padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Lists (publications, downloads, legal) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rows li { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.rows .row-main { flex: 1; min-width: 0; }
.rows .row-title { font-weight: 600; line-height: 1.4; }
.rows .row-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.rows .row-sub em { font-style: normal; color: var(--text); }
.rows .row-action { flex: none; font-weight: 600; font-size: 15px; }
.rows .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.rows .ico svg { width: 20px; height: 20px; }
.bg-light .rows .ico { background: #fff; }
.pub-num { flex: none; width: 32px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; align-self: flex-start; padding-top: 2px; }
.list-group + .list-group { margin-top: 64px; }
.list-group h3 { margin-bottom: 20px; }

/* Software cards */
.os { width: 44px; height: 44px; margin-bottom: 20px; color: var(--navy); }
.version { color: var(--muted); font-size: 15px; margin: -4px 0 16px; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 104px 0; }
.cta-band h2 { color: #fff; margin-bottom: 32px; }

/* Trusted-by marquee */
.trusted { padding: 72px 0; text-align: center; border-top: 1px solid var(--border); }
.trusted .label { display: block; margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee var(--dur, 40s) linear infinite; }
.marquee li { flex: none; padding: 0 32px; white-space: nowrap; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #9AA2AD; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* Contact */
.contact-card h3 { font-size: 26px; }
.contact-card .btn-row { margin-top: auto; padding-top: 24px; }
.dist-card { padding: 32px; font-size: 15px; }
.dist-country { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dist-country img { width: 32px; height: 32px; }
.dist-card h3 { font-size: 18px; line-height: 1.35; }
.dist-card p { margin: 0 0 10px; }
.dist-card a { word-break: break-word; }

/* Quote */
.quote-list { list-style: none; padding: 0; margin: 32px 0 0; }
.quote-list li { padding: 12px 0; border-top: 1px solid var(--border); font-weight: 500; }
.quote-list li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 12px; }
.form-slot { background: var(--light); border-radius: var(--radius); padding: 40px; min-height: 420px; }
.form-placeholder { color: var(--muted); text-align: center; padding: 120px 16px; border: 2px dashed var(--border); border-radius: 14px; }

/* Legal */
.back { display: inline-block; font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.back::before { content: "← "; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.prose h2 { font-size: 24px; color: var(--navy); margin: 48px 0 12px; letter-spacing: -0.015em; }
.prose h3 { font-size: 18px; color: var(--navy); margin: 28px 0 8px; }
.prose p, .prose li { color: #2B3138; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.toc { background: var(--light); border-radius: 16px; padding: 24px 28px; margin: 0 0 16px; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: 15px; }
.paste-me { background: #FFF8E6; border: 1px dashed #E0B84F; border-radius: 12px; padding: 16px 20px; color: #6B5310; font-size: 15px; }
.note-box { background: var(--light); border-radius: 14px; padding: 20px 24px; color: var(--muted); margin-top: 48px; }

/* Footer */
.site-footer { background: var(--footer); color: rgba(255,255,255,.72); padding: 80px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-bottom .social { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero, .page-hero { padding-top: 80px; }
  .page-hero { padding-bottom: 48px; }
  .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 80px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .narrow { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .chips, .spec-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .hero-img { margin-top: 40px; }
  .rows li { flex-wrap: wrap; gap: 12px 16px; }
  .rows .row-action { margin-left: 56px; }
  .pub-row .row-action { margin-left: 48px; }
  .toc ol { columns: 1; }
  .form-slot { padding: 20px; }
}
