/* ============================================================================
   Text Drift — marketing site
   One responsive stylesheet. The design canvas carried separate desktop and
   mobile artboards; here they are the same document at two widths.
   ========================================================================= */

:root {
  /* Surfaces — warm paper, not grey */
  --paper: #FBFAF7;
  --panel: #FFFFFF;
  --panel-2: #F4F1ED;
  --wash: #FDFCFB;

  /* Ink */
  --ink: #0A0F26;            /* the wordmark's own black */
  --ink-2: #3D384C;
  --ink-3: #5A5468;
  --ink-4: #8A8398;
  --ink-5: #A79FB4;
  --ink-6: #B4AEBF;

  /* Lines */
  --line: #E7E2DA;
  --line-2: #EAE5DE;
  --line-3: #EFEBE5;
  --line-strong: #D8D2C8;

  /* Accent — sampled from the logo: #1E47F6 bright blue, #072194 deep navy.
     The v2 dashboard uses violet (oklch 0.54 0.22 258 = #5B3AE0). If the
     violet is the newer intent and the logo is what should move, changing
     these three values is the whole job. */
  --accent: #1E47F6;
  --accent-ink: #072194;
  --accent-lt: #8FA5FF;
  --accent-wash: color-mix(in oklab, var(--accent) 6%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 28%, transparent);
  --accent-tint: color-mix(in oklab, var(--accent) 3%, var(--paper));

  /* Signal — reserved for the alert moment, nothing else */
  --amber: #E08A1E;
  --green: #2E9E6B;

  /* Dark sections */
  --dark: #0A0F26;
  --dark-2: #151A33;
  --dark-3: #1F2544;
  --dark-line: #272D4C;
  --dark-ink: #B8B2C4;
  --dark-ink-2: #D6D1DE;
  --dark-ink-3: #857D93;

  --display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Red Hat Text', system-ui, -apple-system, sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, SFMono-Regular, monospace;

  --wrap: 1200px;
  --gutter: 40px;
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* a 91-char bare URL in the legal text pushed
                                  the whole page 338px sideways at 375px */
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
::selection { background: #D9E1FF; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 0 0 8px 0; font-size: 14px;
}
.skip:focus { left: 0; color: var(--paper); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.tint { background: var(--accent-tint); border-top: 1px solid var(--line-2); }
.rule-top { border-top: 1px solid var(--line-2); }
.center { text-align: center; }
.measure { max-width: 34em; }
.measure-sm { max-width: 30em; }
.grow { flex-grow: 1; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split-narrow { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split-top { align-items: start; }
.split-tight { gap: 56px; }

.row { display: flex; align-items: center; gap: 14px; }
.row-wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 13px; }
.stack-sm { gap: 9px; }
.stack-lg { gap: 20px; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.eyebrow-accent { color: var(--accent); }
.eyebrow-amber { color: var(--amber); }

h1, h2, h3, .h1, .h2, .h3, .h4 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
h1, .h1 { font-size: 58px; line-height: 1.04; letter-spacing: -0.032em; }
.h1-lg { font-size: 62px; }
h2, .h2 { font-size: 42px; line-height: 1.06; letter-spacing: -0.028em; }
.h2-lg { font-size: 50px; line-height: 1.04; }
h3, .h3 { font-size: 28px; line-height: 1.14; letter-spacing: -0.024em; }
.h4 { font-size: 20px; line-height: 1.2; letter-spacing: -0.012em; }

.lede { font-size: 18px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
p { margin: 0 0 1em; line-height: 1.62; color: var(--ink-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.body-lg { font-size: 16.5px; }
.small { font-size: 14.5px; color: var(--ink-4); }
.micro { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.02em; }
.mark { color: var(--accent); font-weight: 800; }
.mark-lt { color: var(--accent-lt); font-weight: 800; }
strong { font-weight: 600; color: var(--ink-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap;
  font-family: var(--body); font-size: 15.5px; font-weight: 500;
  padding: 15px 26px; min-height: 44px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: inherit; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease,
              background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-5); }
.btn-dark { background: var(--ink); color: var(--paper); font-size: 14.5px; padding: 10px 18px; }
.btn-dark:hover { color: var(--paper); }
.btn-sm { font-size: 14.5px; padding: 12px 20px; }
.btn-link { padding: 10px 0; color: var(--accent); }
.btn-link:hover { color: var(--accent-ink); }
.btn-block { display: flex; width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a { color: var(--ink-3); transition: opacity .18s ease; }
.nav-links a:hover { opacity: .62; color: var(--ink-3); }
.nav-links a.is-current { color: var(--ink); font-weight: 500; }
.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-end .login { font-size: 14.5px; color: var(--ink-3); }
.nav-end .login:hover { opacity: .62; color: var(--ink-3); }
.nav-toggle { display: none; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { color: var(--accent); flex-shrink: 0; }
/* Intrinsic width/height are on the <img> so the row never reflows on load. */
.brand img { height: 26px; width: auto; display: block; }
.brand-sm img { height: 22px; }
@media (max-width: 640px) { .brand img { height: 23px; } }
.brand-name {
  font-family: var(--display); font-size: 20px; font-weight: 500;
  letter-spacing: -0.035em;
}
.brand-name b { font-weight: 800; }

/* ---------- Cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
}
.card-pad-lg { padding: 44px 48px; }
.card-pad-sm { padding: 26px; }
.card-lift { transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -30px rgba(30,27,38,.35); }
.card-icon { color: var(--accent); margin-bottom: 18px; display: block; }
.icon-tile + .h4, .icon-tile + h3 { margin-top: 0; }
.card h3, .card .h4 { margin-bottom: 9px; }
.card .h4 { font-family: var(--body); font-weight: 600; font-size: 20px; }

.tile { background: var(--wash); border: 1px solid var(--line-3); border-radius: 10px; padding: 13px 15px; }

/* ---------- Feature list (icon + label + one line) ---------- */

.icon-tile {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: color-mix(in oklab, var(--accent) 9%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
/* On the dark band the accent has no contrast against the panel, so the
   tile borrows the light accent instead. */
.dark .icon-tile {
  background: color-mix(in oklab, var(--accent-lt) 16%, transparent);
  color: var(--accent-lt);
}

.feat-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in oklab, var(--accent) 9%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feat-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.feat p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }

/* ---------- Ticks ---------- */

.ticks { display: flex; flex-direction: column; gap: 13px; }
.tick { display: flex; gap: 11px; align-items: flex-start; }
.tick svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.tick > div { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tick-muted svg { color: var(--ink-5); }

.chip {
  font-size: 12px; color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 6px 11px; border-radius: 999px;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-wash);
  padding: 7px 13px; border-radius: 999px;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- Tabs (widget types, install, triggers, steps) ---------- */

.tabs { display: flex; gap: 8px; }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--body); font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: none; color: var(--ink-3); cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.tab:hover { transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.tabs-underline { border-bottom: 1px solid var(--line); gap: 8px; }
.tabs-underline .tab {
  border-radius: 11px 11px 0 0; margin-bottom: -1px;
  border-color: transparent; background: none;
}
.tabs-underline .tab[aria-selected="true"] {
  background: var(--panel); border-color: var(--line);
  border-bottom-color: var(--panel); color: var(--ink);
}

.panel[hidden] { display: none; }
.panel { animation: fade .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Dark section ---------- */

.dark { background: var(--dark); color: var(--paper); }
.dark p, .dark .lede { color: var(--dark-ink); }
.dark h1, .dark h2, .dark h3, .dark .h2, .dark .h3 { color: var(--paper); }
.dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.dark .tab { border-color: #3E3750; color: var(--dark-ink); }
.dark .tab[aria-selected="true"] { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--ink); }
.dark .small { color: var(--dark-ink-3); }
.dark strong { color: var(--dark-ink-2); }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet { display: flex; gap: 12px; align-items: flex-start; }
.bullet i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); margin-top: 9px; flex-shrink: 0; }
.bullet div { font-size: 15.5px; line-height: 1.55; color: var(--dark-ink-2); }

/* ---------- Hero demo ---------- */

.hero { padding-block: 92px 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 20px; align-items: start; }

.widget {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 70px -34px rgba(30,27,38,.28), 0 2px 5px rgba(30,27,38,.04);
  overflow: hidden;
}
.widget-head {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  border-bottom: 2px solid var(--accent); background: var(--panel);
}
.widget-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in oklab, var(--accent) 14%, #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 15px;
}
.widget-title { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.widget-sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.widget-body {
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 328px; background: var(--wash);
}
.widget-foot {
  border-top: 1px solid var(--line-3); padding: 11px 16px;
  display: flex; align-items: center; gap: 10px; background: var(--panel);
}
.widget-foot .ph { flex-grow: 1; font-size: 13px; color: var(--ink-6); }

.msg { display: flex; }
.msg > div {
  max-width: 86%; font-size: 13.5px; line-height: 1.5;
  padding: 10px 13px; border-radius: 14px;
}
.msg-them { justify-content: flex-start; }
.msg-them > div { background: var(--panel-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-you { justify-content: flex-end; }
.msg-you > div { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg[hidden] { display: none; }
.msg:not([hidden]), .device-card:not([hidden]) { animation: pop .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }

.typing > div { display: flex; gap: 4px; align-items: center; padding: 13px 15px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.device { padding-top: 34px; }
.device-shell { background: var(--ink); border-radius: 26px; padding: 9px; box-shadow: 0 30px 60px -28px rgba(30,27,38,.45); }
.device-screen {
  background: #F7F5F2; border-radius: 19px; padding: 14px 11px;
  min-height: 300px; display: flex; flex-direction: column;
}
.device-notch { width: 34px; height: 4px; border-radius: 999px; background: #DDD8D0; margin: 0 auto 14px; }
.device-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-5); text-align: center; margin-bottom: 12px;
}
.device-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 8px 20px -12px rgba(30,27,38,.25); }
.device-card[hidden], .device-idle[hidden] { display: none; }
.device-idle { flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; color: var(--ink-6); }
.alert-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.alert-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.alert-meta span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- Beats ---------- */

.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beat { padding: 54px 40px; border-right: 1px solid var(--line); }
.beat:first-child { padding-left: 0; }
.beat:last-child { padding-right: 0; border-right: 0; }
.beat-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; color: var(--accent); margin-bottom: 16px; }
.beat h3 { font-size: 27px; line-height: 1.18; margin-bottom: 11px; }
.beat p { font-size: 15px; }

/* ---------- Code ---------- */

.code {
  background: var(--ink); border-radius: 16px; padding: 26px 28px;
  box-shadow: 0 24px 60px -34px rgba(30,27,38,.5);
}
.code-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.code-head span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--dark-ink-3); }
.code pre {
  margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--dark-ink-2); overflow-x: auto; white-space: pre;
}
.code .c { color: #6D6580; }
.code .k { color: #8FA5FF; }
.code .s { color: #8FD0A8; }
.code .n { color: var(--amber); }
.copy {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--accent-lt); background: none; border: 0; cursor: pointer; padding: 4px;
}

/* ---------- Pricing ---------- */

.meter { max-width: 560px; margin: 0 auto; }
.meter-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.meter-value { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.024em; color: var(--accent); }
.meter input[type="range"] { accent-color: var(--accent); width: 100%; height: 3px; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-5); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease;
}
.plan.is-fit {
  border-color: var(--accent); transform: translateY(-6px);
  box-shadow: 0 24px 60px -34px color-mix(in oklab, var(--accent) 55%, transparent);
}
.plan-name { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.plan-name > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.plan-fit {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.075em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 999px;
}
.plan:not(.is-fit) .plan-fit { display: none; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.plan-price b { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.028em; color: var(--ink); }
.plan-price span { font-size: 14px; color: var(--ink-4); }
.plan-for { font-size: 14px; color: var(--ink-4); margin-bottom: 24px; }
.plan .ticks { margin-bottom: 26px; }
.plan .tick > div { font-size: 14.5px; }

/* ---------- Accordion ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; gap: 20px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 24px 6px 24px 4px;
  font-family: var(--display); font-size: 18px; font-weight: 800;
  letter-spacing: -0.014em; color: var(--ink);
}
.faq-q > span { flex-grow: 1; }
.faq-q i {
  font-family: var(--mono); font-style: normal; font-size: 22px; color: var(--ink-5); flex-shrink: 0;
  /* Fixed box, or the rotation grows the element's bounds and overflows. */
  width: 30px; height: 30px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), color .18s ease;
}
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 60px 26px 4px; font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.faq-a[hidden] { display: none; }

/* ---------- Prose (legal pages) ---------- */

/* ---------- Testimonial ---------- */

.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-mark { color: color-mix(in oklab, var(--accent) 42%, transparent); margin-bottom: 26px; }
.quote blockquote {
  margin: 0 0 30px;
  font-family: var(--display); font-weight: 800;
  font-size: 34px; line-height: 1.26; letter-spacing: -0.022em;
  color: var(--ink); text-wrap: pretty;
}
.quote blockquote em { font-style: normal; color: var(--accent); }
.quote figcaption { font-size: 15px; color: var(--ink-3); }
.quote figcaption b { font-weight: 600; color: var(--ink); }
.quote-logo {
  height: 34px; width: auto; margin: 26px auto 0; display: block;
  opacity: .75;
}
@media (max-width: 640px) {
  .quote blockquote { font-size: 25px; line-height: 1.3; }
  .quote figcaption { font-size: 14px; }
  .quote-logo { height: 28px; }
}

.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose-meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 40px;
}
.review-note {
  border-left: 3px solid var(--amber); background: color-mix(in oklab, var(--amber) 7%, transparent);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 32px;
}
.review-note p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 44px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 3px; }
.foot-col a { font-size: 14px; color: var(--ink-3); }
.foot-col a:hover { opacity: .62; color: var(--ink-3); }
.foot-bar {
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--line-3); padding: 22px 0 44px;
  font-size: 12.5px; color: var(--ink-5);
}

/* ---------- Contact ---------- */

.embed {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; min-height: 420px;
}
.embed-fallback { font-size: 15px; color: var(--ink-4); text-align: center; padding: 60px 20px; }

/* ============================================================================
   Responsive
   Four steps: 1080 (columns collapse), 860 (tablet -> phone chrome),
   640 (phone type + full-width controls), 380 (small phones).
   Product mockups deliberately keep their small type — they are drawings of
   a UI, and 11px inside a rendered phone is what a real phone looks like.
   Page copy has a floor.
   ========================================================================= */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero-grid, .split, .split-wide, .split-narrow, .split-tight { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .demo { grid-template-columns: minmax(0, 1fr) 200px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1, .h1 { font-size: 50px; }
  .h1-lg { font-size: 54px; }
  .h2-lg { font-size: 44px; }
}

@media (max-width: 860px) {
  .section { padding-block: 72px; }
  .hero { padding-block: 56px 72px; }
  .plans, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }

  .beats { grid-template-columns: minmax(0, 1fr); }
  .beat { padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .beat:last-child { border-bottom: 0; }

  /* Stacked plans: the lift that marks the recommended card reads as a
     misalignment once they are in a column, so mark it with the border only. */
  .plan.is-fit { transform: none; }

  .demo { grid-template-columns: minmax(0, 1fr); }
  .device { padding-top: 0; max-width: 300px; margin: 0 auto; }

  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

  /* Phone nav: links move behind the toggle. */
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper); border-bottom: 1px solid var(--line-2);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 20px 40px -28px rgba(10,15,38,.4);
  }
  .nav-links.is-open a { padding: 12px 0; font-size: 16px; width: 100%; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .nav-end .login { display: none; }

  .faq-a { padding-right: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  h1, .h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.028em; }
  .h1-lg { font-size: 42px; }
  h2, .h2 { font-size: 34px; }
  .h2-lg { font-size: 36px; }
  h3, .h3 { font-size: 25px; }
  .beat h3 { font-size: 25px; }
  .lede { font-size: 16.5px; }

  /* Floor for page copy — mockup internals are left alone on purpose. */
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .micro { font-size: 13px; }
  .small { font-size: 14.5px; }
  .prose-meta { font-size: 13px; }
  .foot-bar { font-size: 13px; }
  .foot-col a { font-size: 15px; }

  .section { padding-block: 60px; }
  .section-sm { padding-block: 48px; }
  .hero-grid, .split, .split-wide, .split-narrow, .split-tight { gap: 36px; }
  .card { padding: 26px 22px; }
  .card-pad-lg { padding: 28px 22px; }
  .card-pad-sm { padding: 22px; }

  /* Eight short items in two 148px columns is unreadable; one column. */
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feat { display: flex; gap: 14px; align-items: flex-start; }
  .feat-icon { margin-bottom: 0; width: 32px; height: 32px; }
  .icon-tile { width: 36px; height: 36px; margin-bottom: 14px; }

  .plan { padding: 26px 22px; }
  .plan-price b { font-size: 46px; }

  /* Controls become thumb targets. */
  .btn { padding: 0 22px; min-height: 52px; }
  .btn-dark { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .btn-sm { min-height: 46px; }
  .tab { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }

  /* An underline tab strip needs an edge to sit on. Inside a horizontal
     scroller on a phone there isn't one, so they become pills. */
  .tabs-underline { border-bottom: 0; }
  .tabs-underline .tab {
    border-radius: 999px; margin-bottom: 0; border-color: var(--line);
  }
  .tabs-underline .tab[aria-selected="true"] {
    background: var(--accent); border-color: var(--accent); color: #fff;
  }
  /* Let the last tab breathe when scrolled, without a negative margin that
     escapes .wrap and makes the whole page scroll sideways. */
  .tabs-scroll { padding-right: 6px; }

  .meter-head { row-gap: 4px; }
  .faq-q { font-size: 17px; padding: 20px 4px; gap: 14px; }
  .faq-a { padding: 0 4px 24px; font-size: 15.5px; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 44px 0 32px; }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0 40px; }

  .code { padding: 20px 18px; }
  .code pre { font-size: 11px; }

  /* Stacked under the widget, the device was ~340px of mostly empty screen. */
  .device { max-width: 260px; }
  .device-screen { min-height: 220px; }

  .prose h2 { font-size: 23px; margin: 36px 0 12px; }
  .prose h3 { font-size: 18px; }
  .prose p, .prose li { font-size: 15.5px; }
  .embed { padding: 20px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  h1, .h1 { font-size: 36px; }
  .h1-lg { font-size: 37px; }
  h2, .h2 { font-size: 30px; }
  .h2-lg { font-size: 31px; }
  .plan-price b { font-size: 42px; }
  .device { max-width: 100%; }
}
