/* Marketing / landing page. Deliberately standalone from app.css: the app's
   stylesheet is tuned for dense data tables behind a login, this one is for a
   page strangers read once. Shares the palette so the two don't feel unrelated. */

:root {
  --wrap-wide: min(1640px, 94vw);
  --wrap: var(--wrap-wide);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Links in the brass accent. --accent-2 is a bright blue the Carbon look kept
   for in-app badges and chart lines -- not for the public pages. */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }

/* ── header ───────────────────────────────────────────────────────── */

.m-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  /* The bar stays full width; its contents sit on the page track. */
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.m-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .4px; }
.m-brand:hover { text-decoration: none; }
.m-brand img { height: 26px; width: auto; display: block; }
.m-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink); font-weight: 900;
}
.m-nav { display: flex; align-items: center; gap: 22px; }
/* Plain nav links only. Without :not(.m-btn) this rule (0,2,1) outranks
   .m-btn-solid (0,1,0) and repaints the Sign in button muted-grey on gold --
   1.1:1 contrast, unreadable. The button keeps its own colours. */
.m-nav > a:not(.m-btn) { color: var(--muted); font-size: 15px; font-weight: 500; }
.m-nav > a:not(.m-btn):hover { color: var(--text); text-decoration: none; }

.m-btn {
  display: inline-block; border-radius: 10px; padding: 9px 16px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.m-btn:hover { text-decoration: none; transform: translateY(-1px); }
.m-btn-solid { background: var(--accent); color: var(--accent-ink); }
.m-btn-solid:hover { background: var(--accent-hi); }
.m-btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.m-btn-ghost:hover { border-color: var(--muted-2); }
.m-btn-lg { padding: 13px 26px; font-size: 16px; }

/* ── hero ─────────────────────────────────────────────────────────── */

/* Weighted towards the copy: at 1.15/.85 the headline got a 589px column and
   broke 62px type across four ragged lines, while the logo sat at 420px wide
   with its own wordmark competing against the H1. Giving the text more room
   and the lockup less lets one thing lead. */
/* Same track as the demo section below (--wrap-wide), so the two share their
   left and right edges instead of the page changing width as you scroll. The
   copy column is capped so the headline doesn't run long on a wide screen;
   the ring gets the rest. */
.m-hero {
  max-width: var(--wrap-wide); margin: 0 auto; padding: 92px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 56px; align-items: center;
}
.m-eyebrow {
  margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; font-weight: 800; color: var(--accent);
}
.m-hero h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; }
.m-hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-sheen));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-lede { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 0 30px; }
.m-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.m-center { justify-content: center; }
.m-fineprint { margin: 18px 0 0; font-size: 14px; color: var(--muted-2); }

/* The store badges under the hero buttons: the footer's badge (see "Store
   badges" below), drawn bigger -- up here it is a call to action, not a footnote. */
.m-hero-apps { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.m-hero-apps > span { font-size: 14px; font-weight: 600; color: var(--text); }
.m-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.m-hero-badges .m-play-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  background: var(--surface-deep); color: var(--text); border: 1px solid var(--border); border-radius: 9px;
  line-height: 1.1; font-size: 17px; font-weight: 600; text-decoration: none;
  transition: border-color .18s ease;
}
.m-hero-badges .m-play-badge:hover { border-color: var(--accent); text-decoration: none; }
.m-hero-badges .m-play-badge small { font-size: 9px; }

/* The full stacked lockup -- mark, wordmark and tagline. This used to be two
   abstract rectangles standing in for "devices", which said nothing; the real
   logo is both more honest and the only place the tagline appears. The asset
   is white/brass on transparency, so it needs no plate on the dark ground. */
.m-hero-art { display: grid; place-items: center; }
.m-logo-full {
  width: 100%; max-width: 330px; height: auto; display: block;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── value strip ──────────────────────────────────────────────────── */

/* Full-bleed band, contained content -- the same shape as .m-section-alt. The
   background and the top/bottom rules still run edge to edge, but the four
   cells sit on the --wrap track like every other section. Left full-width, a
   1900px screen got a band stretching the whole viewport with four narrow
   columns stranded in it, while the copy above and below sat in the middle
   1120px: the one element on the page that did not line up with anything. */
.m-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding-inline: max(0px, calc((100% - var(--wrap)) / 2));
}
.m-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.m-strip > div { padding: 22px 24px; border-right: 1px solid var(--border); }
.m-strip > div:last-child { border-right: 0; }
.m-strip strong { display: block; font-size: 15px; }
.m-strip span { font-size: 14px; color: var(--muted); }

/* ── generic sections ─────────────────────────────────────────────── */

.m-section { max-width: var(--wrap); margin: 0 auto; padding: 84px 24px; }
/* Full-bleed background, but the text inside must line up with every other
   section. .m-section is `max-width: var(--wrap)` centred with 24px padding,
   so its content box starts at (100% - wrap)/2 + 24 -- reproduce that with
   padding here rather than centring each child.

   Centring the children individually (the old `.m-section-alt > *` rule) broke
   as soon as a child set its own max-width: .m-sub's 60ch measure won on equal
   specificity, dropping its auto margins, so the sub-line jumped to the section
   edge while its siblings stayed centred. Only visible above 1120px, which is
   why it survived a narrow-viewport check. */
.m-section-alt {
  max-width: none; background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .22);
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
}
.m-h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.m-sub { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0 0 40px; }

.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.m-card:hover { border-color: var(--muted-2); transform: translateY(-3px); }
.m-card-ico { color: var(--accent); font-size: 20px; margin-bottom: 10px; }
.m-card h3 { font-size: 19px; }
.m-card p { color: var(--muted); margin: 0; font-size: 15px; }

.m-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
/* Each item's rule starts as brass and fades out into the neutral border, so
   the grid reads as a set of Wheyts things rather than a plain spec list. The
   bar sits on top of the border (not instead of it) to keep the row aligned. */
.m-feat > div { position: relative; padding: 24px 0; border-top: 1px solid var(--border); }
.m-feat > div::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0));
}
.m-feat h3 { font-size: 18px; color: var(--accent); }
.m-feat p { color: var(--muted); margin: 0; font-size: 15px; }

.m-final { text-align: center; padding: 92px 24px; }
.m-final h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.m-final p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

.m-foot {
  border-top: 1px solid var(--border); padding: 22px 24px;
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  color: var(--muted-2); font-size: 14px;
}
.m-foot-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; }
.m-foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
/* Footer links sit quiet in muted grey rather than the brass of links in the
   page text, and brighten on hover. */
.m-foot a { color: var(--muted); }
.m-foot a:hover { color: var(--text); }
.m-foot-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1500px) {
  .m-foot-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .m-foot-apps { order: -1; }
  .m-foot-links { justify-content: center; }
}
/* Store badges (Play, App Store) drawn in CSS (Google's own artwork can't be fetched at
   build time); in theme colours so it sits with the rest of the footer. */
.m-foot .m-play-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px;
  background: var(--surface-deep); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
  line-height: 1.1; font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.m-foot .m-play-badge:hover { color: var(--text); border-color: var(--accent); }
.m-play-badge svg { color: var(--text); }
.m-play-badge .pb { fill: var(--play-blue); }
.m-play-badge .pg { fill: var(--play-green); }
.m-play-badge .pr { fill: var(--play-red); }
.m-play-badge .py { fill: var(--play-yellow); }
.m-play-badge small { display: block; font-size: 6.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.m-foot-company { margin: 12px 0 0; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════
   GUIDED DEMO — a carousel of real product screenshots
   Eight slides, each a device frame around one screenshot from
   static/img/shots (captured by seed/capture_marketing_shots.py). One slide
   is front and square to the viewer, the next peeks in from the right, the
   one leaving continues off to the left. static/js/demo.js only sets the
   classes; every position lives here. No mock UI: the frames are the app.
   ══════════════════════════════════════════════════════════════════ */

.m-demo-section {
  max-width: var(--wrap-wide);
  padding-bottom: 96px;
}
/* The demo takes the lighter band too, so sections alternate dark/light down
   the page. The band runs full width; its contents stay on the page track. */
.m-demo-section.m-section-alt { max-width: none; }

.demo {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  padding: 26px; overflow: hidden;
}
.demo-stage {
  display: grid;
  grid-template-columns: clamp(216px, 17%, 300px) 1fr;
  gap: 26px; align-items: center;
}

/* The pane. Slides sit in a row inside it and the row slides sideways, so one
   transform moves everything -- animating each slide separately looked jerky
   and left gaps between the shrunken neighbours. Sized by *height* so a
   landscape browser shot and a portrait phone shot can trade places without
   the row changing height. */
.demo-track {
  --slide-h: clamp(300px, 34vw, 620px);
  position: relative;
  /* A starting height only: demo.js resizes the pane to whichever slide is
     centred, since a landscape shot and a portrait one differ wildly in
     height once the layout is width-driven. */
  height: var(--slide-h);
  overflow: hidden;
}
.demo-strip {
  display: flex; align-items: center; gap: 26px;
  height: 100%; width: max-content;
  will-change: transform;
  transition: transform .72s cubic-bezier(.4, 0, .2, 1);
}

.slide {
  margin: 0; flex: none;
  opacity: .3; cursor: pointer;
  transition: opacity .5s ease, transform .5s ease;
  transform: scale(.965);
}
.slide.is-main { opacity: 1; cursor: default; transform: scale(1); }
.slide:not(.is-main):hover { opacity: .6; }

/* Sized from the screen's aspect ratio, working outwards: fixing the screen's
   height and ratio makes its width derive, and the frame shrink-wraps to it.
   `--chrome` is the strip above the screen the browser has and the phone
   does not. */
.slide { --chrome: 0px; }
.slide-web { --chrome: 37px; }

.slide .dev {
  height: var(--slide-h);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(var(--shadow-rgb), .55);
  display: flex; flex-direction: column;
}
.slide-app .dev {
  border-radius: 30px; border-width: 8px; border-color: var(--device-bezel);
  position: relative;
}
.slide.is-main .dev { border-color: rgba(var(--accent-rgb), .45); }
.slide.is-main.slide-app .dev { border-color: var(--device-bezel); }

.slide .dev-screen {
  position: relative; overflow: hidden; flex: none;
  height: calc(var(--slide-h) - var(--chrome) - 2px);
}
.slide-web .dev-screen { aspect-ratio: 1640 / 1025; }
.slide-app .dev-screen { aspect-ratio: 414 / 896; }
.slide .dev-screen img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}

/* narration rail */
.demo-rail { margin-top: 0; padding-top: 0; border-top: 0; }
.demo-step {
  margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--text);
  min-height: 0;
}
.demo-step b { color: var(--accent); font-weight: 700; }
.demo-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.demo-play {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; color: var(--text); font-family: inherit;
}
.demo-play:hover { border-color: var(--accent); }
.demo-play::before {
  content: ""; display: block;
  width: 10px; height: 11px; background: currentColor;
  clip-path: polygon(0 0, 0 100%, 34% 100%, 34% 0, 66% 0, 66% 100%, 100% 100%, 100% 0);
}
.demo-play.paused::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }

.demo-dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.demo-dots button {
  width: 30px; height: 5px; border: 0; border-radius: 4px; padding: 0;
  background: var(--surface-3); cursor: pointer; display: block;
  transition: background .3s ease, width .3s ease;
}
.demo-dots button:hover { background: var(--muted-2); }
.demo-dots li.on button { background: var(--accent); width: 44px; }
.demo-dots li.seen button { background: rgba(var(--accent-rgb), .45); }

.demo-replay {
  margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--muted); border-radius: 8px; padding: 7px 14px;
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.demo-replay:hover { color: var(--text); border-color: var(--muted-2); }

/* device chrome */
.dev-chrome {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.dot.r { background: rgba(var(--red-rgb), .4); } .dot.y { background: rgba(var(--device-dot-min-rgb), .4); } .dot.g { background: rgba(var(--green-rgb), .4); }
.dev-url {
  margin-left: 10px; flex: 1; background: var(--bg); border-radius: 6px;
  padding: 3px 10px; font-size: 11px; color: var(--muted-2);
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 74px; height: 15px; background: var(--device-bezel); border-radius: 0 0 10px 10px; z-index: 3;
}

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 1500px) {
  .m-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .m-hero-art { order: -1; margin-bottom: 12px; }
  .m-logo-full { max-width: 260px; }
  .m-strip { grid-template-columns: repeat(2, 1fr); }
  .m-strip > div:nth-child(2n) { border-right: 0; }
  .m-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .m-cards, .m-feat { grid-template-columns: 1fr; }
  /* Pricing stays: it is the one link a visitor deciding to buy wants. */
  .m-nav > a:not(.m-btn):not([href="/pricing"]) { display: none; }
}

/* The demo stacks earlier than the rest of the page: side by side, the
   narration takes a fixed column out of the row, and below ~1100px that
   leaves the slide too small to read. Stacked, the narration reads better
   after the screens than before them. */
@media (max-width: 1100px) {
  .demo { padding: 18px; }
  .demo-stage { grid-template-columns: 1fr; gap: 22px; }
  .demo-rail {
    order: 3; width: 100%;
    margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--border);
  }
  .demo-step { font-size: 15px; min-height: 72px; }
  /* Stacked, the constraint flips from height to width: sized by height, a
     landscape browser shot at 375px came out wider than the pane. Web slides
     fill the pane and derive their height from the aspect ratio; the phone,
     being narrow, keeps its height. Neighbours fade right down -- at this
     width they are a sliver, and a sliver reads as a rendering fault. */
  .demo-track { --slide-h: min(460px, 62vh); }
  .demo-strip { gap: 16px; }
  .slide:not(.is-main) { opacity: .12; }
  /* Sized from the viewport, not `100%`: the row is `width: max-content`, so a
     percentage resolves against the row's own content width and blows up. The
     pane is 94vw (--wrap-wide) less the section's and the demo's padding. */
  .slide-web .dev { height: auto; width: calc(94vw - 88px); }
  .slide-web .dev-screen { height: auto; width: 100%; }
  /* The pane matches whichever shape is centred (demo.js sets data-kind). A
     landscape shot here is about 209px tall against a phone's 460, so a fixed
     pane left ~126px of dead space above and below every web slide. Derived
     from the same width above -- screen height is width / (1640/1025), plus
     the chrome bar and the frame border. */
  .demo[data-kind="web"] .demo-track {
    height: calc((94vw - 88px) / 1.6 + 45px);
  }
}

@media (max-width: 520px) {
  .m-strip { grid-template-columns: 1fr; }
  /* 20px to match .m-section's small-screen gutter below, so the strip and
     the headings share one left edge at every width. */
  .m-strip > div { border-right: 0; border-bottom: 1px solid var(--border); padding-inline: 20px; }
  .m-section { padding: 56px 20px; }
}

/* Someone who has asked for less motion gets the same story, statically:
   slides still advance (that is the content), but nothing travels or turns. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .demo-strip { transition: none; }
  .slide:not(.is-main) { opacity: .12; }
}

/* ── contact form (/contact) ──────────────────────────────────────── */

.m-form-page { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.m-form-page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }

.m-form { display: grid; gap: 18px; margin-top: 34px; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.m-form label { display: grid; gap: 7px; font-size: 14px; }
.m-form label > span { color: var(--muted); font-weight: 600; }
.m-form label > span i { color: var(--accent); font-style: normal; }
.m-form input, .m-form select, .m-form textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  color: var(--text); font: inherit; font-size: 15px; width: 100%;
}
.m-form textarea { resize: vertical; min-height: 120px; }
.m-form input:focus, .m-form select:focus, .m-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.m-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

.m-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.m-form-actions .m-fineprint { margin: 0; }

/* Honeypot -- kept out of sight without display:none, which some bots skip. */
.m-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.m-note { border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px; }
.m-note-err { background: rgba(var(--red-rgb), .12); border: 1px solid rgba(var(--red-rgb), .45); color: var(--red-text); }
.m-note-ok { background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.m-note-ok h1 { margin-top: 0; }
.m-note-ok p { color: var(--muted); }

@media (max-width: 640px) {
  .m-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   PRICING — /pricing. Cards read their numbers straight off the owner's
   Package rows (billing.public_packages); nothing here is a price.
   ══════════════════════════════════════════════════════════════════ */

.p-page { padding-top: 64px; }
.m-nav a[aria-current="page"] { color: var(--text); }

.p-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 28px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.p-toggle button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 7px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
}
.p-toggle button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.p-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.p-grid[hidden] { display: none; }

.p-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.p-card h2 { font-size: 20px; margin-bottom: 10px; }
.p-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.p-price strong { font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.p-price span { color: var(--muted); }
.p-per { color: var(--muted-2); font-size: 14px; margin: 2px 0 0; }
.p-seats { font-weight: 600; margin: 14px 0 0; }
.p-points { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 15px; }
.p-points li { margin: 4px 0; }
/* Pinned to the bottom of the card so every button lines up across the row,
   whatever the card holds above it. The gap above it lives on whatever comes
   before, because a margin-top here would replace the auto that pins it. */
.p-cta { margin-top: auto; text-align: center; }
.p-card > :nth-last-child(2) { margin-bottom: 22px; }
.p-card-special { background: transparent; border-style: dashed; }
.p-card-special .p-seats { font-weight: 400; color: var(--muted); }

.p-demo { margin-top: 48px; padding: 28px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); }
.p-demo h2 { font-size: 24px; margin: 0 0 6px; }
.p-demo p { color: var(--muted); margin: 0 0 16px; }
.p-demo .p-cta { display: inline-block; width: auto; margin: 0 4px 8px; }

.p-facts { margin-top: 64px; }
.p-footnote { color: var(--muted-2); font-size: 13px; margin: 40px 0 0; }
.p-facts h2 { font-size: 24px; }
.p-facts dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; margin: 18px 0 0; }
.p-facts dt { font-weight: 700; }
.p-facts dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .p-page { padding-top: 36px; }
  .p-facts dl { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   Hero ring of the 8 demo screens.
   Tilted 3D ring in device frames; turns one card, holds (hero-ring.js).
   Desktop only -- phones keep the logo.
   ══════════════════════════════════════════════════════════════════ */
main { overflow-x: clip; }          /* the ring bleeds off the right edge */

.hring {
  --z: 360px;                        /* ring radius: fits a wide + a tall card side by side */
  --shift: 0px;                      /* the art column is wide enough now */
  --ring-scale: 1;                   /* stepped down on narrower screens, below */
  position: relative; height: calc(420px * var(--ring-scale) + 30px); perspective: 2200px;
  /* The column centres its children, and every child here is absolutely
     positioned -- without these the box collapses to zero width and the
     vanishing point lands beside the ring, skewing the front card. */
  justify-self: stretch; width: 100%;
  perspective-origin: calc(50% + var(--shift)) 45%;
}
.hring-stage {
  position: absolute; inset: 0 0 70px 0;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  /* translateZ(-z): the front card lands exactly on the screen plane, so it
     is drawn 1:1 -- in front of it, perspective would enlarge (and blur) it. */
  transform: translateX(var(--shift)) scale3d(var(--ring-scale), var(--ring-scale), var(--ring-scale))
             rotateX(-9deg) translateZ(calc(var(--z) * -1));
}
.hring-ring {
  display: grid; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
}
.hring-card {
  --s: .92;
  grid-area: 1 / 1; place-self: center; margin: 0;
  background: var(--media-bg);
  border: 1px solid rgba(var(--highlight-rgb), .09);
  box-shadow: 0 18px 40px rgba(var(--shadow-rgb), .55);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  filter: brightness(.5) saturate(.8);
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--z)) scale(var(--s));
  transition: filter .7s ease, transform .9s ease;
  overflow: hidden;
}
.hring-card.is-front { --s: 1; filter: none; box-shadow: 0 24px 60px rgba(var(--shadow-rgb), .6), 0 0 0 1px rgba(var(--accent-rgb), .35); }
.hring-card img { display: block; width: 100%; object-fit: cover; object-position: top; }

.hring-web { width: 360px; border-radius: 10px; }
.hring-web img { height: 225px; }
.hring-chrome { display: flex; gap: 5px; align-items: center; height: 18px; padding: 0 8px; background: var(--device-chrome); }
.hring-chrome span { width: 6px; height: 6px; border-radius: 50%; background: var(--device-dot); }
.hring-chrome span:first-child { background: var(--device-dot-close); }
.hring-chrome span:nth-child(2) { background: var(--device-dot-min); }
.hring-chrome span:nth-child(3) { background: var(--green); }

.hring-app { width: 150px; padding: 7px; border-radius: 26px; background: var(--device-screen); }
.hring-app img { height: 300px; border-radius: 19px; }
.hring-notch { width: 40px; height: 5px; border-radius: 3px; background: var(--device-notch); margin: 0 auto 5px; }

/* ground it: a gold glow and a floor shadow under the ring */
.hring::before, .hring::after {
  content: ""; position: absolute; left: 50%; pointer-events: none;
  transform: translateX(calc(-50% + var(--shift)));
}
.hring::before {
  bottom: 70px; width: 620px; height: 170px; filter: blur(30px);
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .28), transparent 70%);
}
.hring::after {
  bottom: 62px; width: 460px; height: 34px; filter: blur(14px);
  background: radial-gradient(ellipse at center, rgba(var(--shadow-rgb), .7), transparent 70%);
}

.hring-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  transform: translateX(var(--shift));
  text-align: center; font-size: 15px; transition: opacity .35s ease;
}
.hring-caption strong { color: var(--accent); margin-right: 8px; }
.hring-caption span { color: var(--muted); }
.hring.is-swapping .hring-caption { opacity: 0; }

/* Narrower desktops: shrink the ring (it only gets smaller, so it stays
   sharp) and give the copy a little less room, so the two never touch.
   Floored at 901px: these come after the 900px stacking rule, so without the
   floor they won it on phones and kept the hero in two squeezed columns. */
@media (max-width: 1399px) { .hring { --ring-scale: .8; } }
@media (min-width: 901px) and (max-width: 1279px) {
  .hring { --ring-scale: .7; }
  .m-hero { grid-template-columns: minmax(0, 560px) 1fr; }
}
@media (min-width: 901px) and (max-width: 1099px) {
  .hring { --ring-scale: .58; }
  .m-hero { grid-template-columns: minmax(0, 500px) 1fr; }
}
@media (min-width: 901px) { .m-hero-art .m-logo-full { display: none; } }
@media (max-width: 1500px) { .hring { display: none; } }
@media (prefers-reduced-motion: reduce) { .hring-ring, .hring-card { transition: none; } }

/* ── Header: taller bar, logo lockup, pill nav ── */
.m-top { padding-block: 16px; }
.m-brand-lockup { gap: 14px; }
.m-brand-lockup .m-brand-emblem { height: 52px; width: auto; }
/* align-items: flex-start -- the default (stretch) widens the wordmark to the
   slogan's width and distorts it. Its width always follows its height. */
.m-brand-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  /* Optical centring: the heavy wordmark sits at the top of this block and
     the slogan under it is light, so a box-centred block reads high against
     the emblem. Nudged down until it looks centred. */
  transform: translateY(6px);
}
/* height only -- the width follows, so the wordmark keeps its proportions. */
.m-brand-lockup .m-brand-word { height: 30px; width: auto; }
.m-brand-slogan {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.m-nav-links {
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(var(--surface-rgb), .6);
}
.m-nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.m-nav-links a:hover { color: var(--text); background: rgba(var(--highlight-rgb), .06); text-decoration: none; }
.m-nav-links a.is-active { color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.m-nav-links + .m-btn { padding: 10px 20px; border-radius: 999px; }
@media (max-width: 1500px) {
  .m-nav-links a:not([href="/pricing"]) { display: none; }
  .m-brand-slogan { display: none; }
}
@media (max-width: 520px) {
  .m-brand-text { display: none; }          /* the emblem alone on a phone */
  .m-brand-lockup .m-brand-emblem { height: 34px; }
}

/* Click-to-load demo video (static/js/video.js) */
.m-video { max-width: 860px; margin: 28px auto 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.m-video-play, .m-video iframe { display: block; width: 100%; height: 100%; border: 0; position: relative; }
.m-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-video-btn { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(var(--shadow-rgb), .45); transition: transform .15s; }
.m-video-btn::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-left: 24px solid var(--accent-ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.m-video-play:hover .m-video-btn { transform: scale(1.08); }
.m-video-section { scroll-margin-top: 80px; }
