/* Meridian One website. Flat: one accent, hairline borders, the product does the talking.
   Colours come from the app icon (navy #0b1024, ice #9fe0ff) and the app's accent blue. */


:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --surface: #ffffff;
  --ink: #0b1024;
  --ink-2: #353d55;
  --mute: #5c6680;
  --line: #e2e6ee;
  --line-strong: #cbd2de;
  --accent: #1d5fd1;
  --accent-hover: #174fb0;
  --accent-ink: #ffffff;
  --accent-soft: #e9f0fc;
  --live: #0f9d58;
  --band: #0b1024;
  --band-ink: #eef2fb;
  --band-mute: #a9b3c9;
  --band-line: #1f2843;
  --radius: 14px;
  --radius-sm: 10px;
  --shot-shadow: 0 1px 2px rgba(11, 16, 36, .06), 0 18px 48px -12px rgba(11, 16, 36, .28);
  --focus: 0 0 0 3px rgba(29, 95, 209, .35);
  --wrap: 1200px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a14;
    --bg-soft: #0b1020;
    --surface: #0e1424;
    --ink: #eef2fa;
    --ink-2: #c4cbda;
    --mute: #8e98ae;
    --line: #1a2236;
    --line-strong: #29334d;
    --accent: #6cb2ff;
    --accent-hover: #8cc3ff;
    --accent-ink: #04112a;
    --accent-soft: #10203d;
    --live: #2fd27a;
    --band: #0e1424;
    --band-line: #222c47;
    --shot-shadow: 0 0 0 1px #1d2640, 0 18px 48px -12px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px rgba(108, 178, 255, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); line-height: 1.08; }
h3 { font-size: 1.07rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent;
  font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
@media (prefers-color-scheme: dark) { .brand img { box-shadow: 0 0 0 1px #2a3556; } }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 66px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; margin: 0; }
  .site-head.open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-head.open .nav .btn { margin-top: 14px; color: var(--accent-ink); border-bottom: 0; }
}
.nav .btn { display: none; }
@media (max-width: 880px) { .site-head.open .nav .btn { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-copy { text-align: center; max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lede { margin: 22px auto 0; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.req { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--mute); }
.req li { display: inline-flex; align-items: center; gap: 7px; }
.req svg { width: 16px; height: 16px; color: var(--live); flex: none; }
.hero-shot { margin-top: 56px; }

/* product screenshots: a plain frame, no glass */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shot-shadow); background: #0b0d12; }
.shot img { width: 100%; height: auto; }
.shot-tall { aspect-ratio: auto; }
.caption { margin-top: 12px; font-size: 13px; color: var(--mute); text-align: center; }

/* ---------- facts strip ---------- */
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 12px; }
.fact h3 { font-size: 15px; }
.fact p { font-size: 14px; color: var(--mute); margin-top: 4px; line-height: 1.5; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 18px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; padding-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
.section-head .eyebrow { margin: 0 0 18px; font-size: 13px; color: var(--accent); }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* feature rows: copy beside a real screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
.feature-copy > p { margin-top: 14px; font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.ticks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

/* map style switcher (mirrors the app's own segmented control) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); margin-top: 24px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 Inter, sans-serif; height: 36px; padding: 0 16px; border-radius: 9px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.styles-shot { position: relative; }
.styles-shot img { transition: opacity .25s; }
@media (prefers-reduced-motion: reduce) { .styles-shot img { transition: none; } }

/* ---------- capability grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 20px; height: 20px; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--mute); line-height: 1.55; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 700 18px/1 "Space Grotesk", sans-serif; color: var(--ink); }
.steps p { margin-top: 6px; color: var(--mute); font-size: 15px; }
.steps-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shot-shadow); background: #0b0d12; }
@media (max-width: 960px) { .steps-wrap { grid-template-columns: 1fr; gap: 40px; } .steps-shot { max-width: 520px; margin-inline: auto; } }

/* ---------- use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.use h3 { font-size: 1.1rem; }
.use p { margin-top: 8px; color: var(--mute); font-size: 15px; }
.use ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--surface); }
.plan.best { border: 2px solid var(--accent); padding: 25px 23px; }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1rem; color: var(--ink); }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.plan .price b { font: 700 2.4rem/1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.plan .price span { font-size: 14px; color: var(--mute); }
.plan .sub { margin-top: 6px; font-size: 14px; color: var(--mute); min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; }
.plan li svg { width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--mute); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.join-copy p { margin-top: 14px; font-size: 1.05rem; }
.join-copy .ticks { margin-top: 26px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--mute); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 400 15px/1.4 Inter, system-ui, sans-serif;
}
textarea { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-foot { font-size: 13px; color: var(--mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .join { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 24px 22px 0; color: var(--ink-2); font-size: 15px; }
.faq details p + p { margin-top: -10px; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq details:nth-last-child(-n+2) { border-bottom: 0; }
  .faq details:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- closing band ---------- */
.band { background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 64px 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--band-line); }
.band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.band p { margin-top: 10px; color: var(--band-mute); font-size: 1.05rem; }
.band .btn-primary { background: #9fe0ff; color: #0b1024; }
.band .btn-primary:hover { background: #c4ecff; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 104px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); }
.foot-about p { margin-top: 14px; color: var(--mute); max-width: 320px; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; display: grid; gap: 6px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- inner pages (help, legal) ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { margin-top: 14px; font-size: 1.1rem; max-width: 680px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.toc a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.65rem; margin-top: 56px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 1.1rem; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--mute); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose code, .key { font: 500 .92em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); white-space: nowrap; }
.note { margin-top: 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-soft); padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.note b { color: var(--ink); }
.prose figure { margin: 24px 0 0; }
.prose .shot { aspect-ratio: auto; }
.prose .faq { grid-template-columns: 1fr; margin-top: 16px; }
.prose .faq details:nth-last-child(-n+2) { border-bottom: 0; }
.prose .faq details:last-child { border-bottom: 1px solid var(--line); }
.prose .form { margin-top: 20px; }
.updated { color: var(--mute); font-size: 14px; margin-top: 10px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 16px; } }

/* simple centred pages (thanks, 404) */
.solo { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.solo .mark { width: 64px; height: 64px; margin: 0 auto 24px; }
.solo h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.solo p { margin: 14px auto 0; max-width: 520px; font-size: 1.08rem; }
.solo .cta-row { margin-top: 28px; }
