/* RoCode landing remake (/new). Standalone stylesheet: no style.css, no web fonts, no icon fonts.
   Colours are the live site's Spring Glass tokens (style.css :root) so /new reads as the same product; the layout stays the flat Apple structure. */
:root {
  --bg: #120b1f;
  --card: #1a102c; --card-top: #211538;
  --surface: #241a3a; --surface-hover: #2e2148; --surface-down: #382a58;
  --line: rgba(207,195,224,.14); --line-ui: #6f6489; --line-ui-hover: #9b8fb6;
  --edge: rgba(207,195,224,.10);
  --text: #f6f1ff; --text-2: #cfc3e0; --text-3: #b7abc8;
  --brand: #8b5cf6; /* the live site's --accent, used only where WCAG large-text applies (the wordmark) */
  --violet: #a78bfa; --violet-soft: #c4b5fd;
  /* The live site's primary button: .btn-primary overrides --rc-btn-mid to var(--accent)
     = #8b5cf6 (style.css:1523-1531). #5b21b6 is only the generic-button default, which is
     why it read too dark here. White on #8b5cf6 is 3.82:1, so .btn-primary is set at
     19px/700 below, where WCAG's large-text 3:1 threshold applies. */
  --fill: #8b5cf6; --fill-hover: #a78bfa; --fill-down: #7c3aed;
  --on-fill: #f6f1ff; /* the live site's --rc-btn-text, not pure white */
  /* the canvas: #120b1f under the live site's three violet glows. Held in one token so the
     sticky header can repaint it exactly and stay seamless instead of banding over it. */
  --canvas:
    radial-gradient(1100px 640px at 82% -8%, rgba(91,33,182,.29), transparent 58%),
    radial-gradient(860px 520px at -8% 18%, rgba(74,24,116,.35), transparent 52%),
    radial-gradient(900px 500px at 50% 110%, rgba(42,10,74,.24), transparent 58%),
    var(--bg);
  --ok: #6BE08A; --ok-bg: rgba(48,209,88,.12); --ok-line: rgba(48,209,88,.32);
  --amber: #FBBF24;
  --disabled-bg: #261c3d; --disabled-text: #a89cbd;
  --radius: 18px; --radius-sm: 12px; --radius-xs: 8px; --radius-pill: 999px;
  --shadow: 0 24px 60px -18px rgba(0,0,0,.78), 0 2px 8px rgba(0,0,0,.34);
  --card-shadow: inset 0 1px 0 var(--edge), var(--shadow);
  --dur: .16s; --ease: cubic-bezier(.22,.61,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px; --gutter: 24px;
  --hero-top: 112px; --hero-bottom: 96px; --section: 96px; --section-minor: 64px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The live site's canvas: #120b1f under its three violet glows (style.css html).
   The glow offsets are percentages of the painting box, so laying them on a ~5300px
   document pushes all three below the fold and the hero renders as bare #120b1f —
   the original only escaped that because its document is barely taller than the
   viewport. A fixed-position layer pins the box to the viewport instead. It is a
   real fixed element rather than background-attachment: fixed because iOS Safari
   still treats that as scroll on non-root boxes, and the sticky header below has
   to paint the identical canvas to stay seamless. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--canvas);
}
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--violet); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }
svg { display: block; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid #A78BFA; outline-offset: 3px; border-radius: var(--radius-sm); }
.visually-hidden, .rc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--fill); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* type */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.eyebrow-center { text-align: center; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); }
.section-lead { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.micro-row { font-size: 13px; font-weight: 500; color: var(--text-3); }
/* The live site's .logo-text: #8b5cf6 at 20px/900. That colour is 3.9:1 on the lit
   canvas — below AA for body text, but 19px at weight 700 is WCAG "large scale", where
   the threshold is 3:1, so the exact brand purple is usable here and nowhere else. */
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--brand); line-height: 1.5; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary { background: var(--fill); color: var(--on-fill);
  /* 19px/700 is WCAG large-scale text, where the 3:1 threshold applies — the exact
     brand #8b5cf6 measures 3.82:1 with a white label and would fail at body size. */
  font-size: 19px; font-weight: 700;
}
.btn-primary:hover { background: var(--fill-hover); color: var(--on-fill); }
.btn-primary:active { background: var(--fill-down); transform: scale(.98); }
.btn-quiet, .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-ui); font-weight: 500; }
.btn-quiet:hover, .btn-secondary:hover { background: var(--surface-hover); border-color: var(--line-ui-hover); color: var(--text); }
.btn-quiet:active, .btn-secondary:active { background: var(--surface-down); transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-text); border-color: transparent; cursor: default; pointer-events: none; }
.btn-nav { min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; } /* quiet pill: the hero button is the one fill per viewport */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 16px; font-weight: 500; color: var(--violet); }
.link-arrow:hover { color: var(--text); }

/* nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
/* Repaints the same viewport-anchored canvas, clipped to the bar, so the header is
   invisible against the glow at rest yet fully opaque over scrolled content. The old
   translucent+blur bar composited 12% of whatever passed under it, which banded across
   the glow and dragged the wordmark under 4.5:1. */
.site-header::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--canvas);
  clip-path: inset(0 0 calc(100% - var(--nav-h) - 1px) 0);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a, .nav-link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-xs); font-size: 15px; font-weight: 500; color: var(--text-2);
}
.nav-links a:hover, .nav-link-btn:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* hero */
.hero { padding: var(--hero-top) 0 var(--hero-bottom); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 6px; }
.hero-copy h1 { text-wrap: balance; }
.hero-copy .lead { max-width: 40ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
#hero-cta-container { display: contents; }
#hero-cta-container .btn-primary > span { font-weight: 500; }
.hero .micro-row { margin-top: 18px; }

/* hero demo: the live site's framed video (window bar over a 16:9 stage) */
.hero-visual { position: relative; min-width: 0; }
/* The live site lets the demo bleed past the container to the right edge (765px wide at
   1440); boxed inside 1120px it lands at 549, which undersells the page's one asset.
   Reclaim the margin, capped so it stops growing on very wide screens. The -8px keeps
   the frame's right edge at 100vw-32, which stays inside the client area even where a
   classic scrollbar makes 100vw ~15px wider than it. */
@media (min-width: 1024px) {
  .hero-visual { margin-right: calc(-1 * clamp(0px, (100vw - var(--container)) / 2 - 8px, 160px)); }
}
/* The demo is dark footage on a dark page, so on a dim frame the panel can read
   as an empty rectangle. A lit rim plus a soft brand glow keeps it reading as a
   real window whatever frame the video happens to be on. */
.hero-demo {
  position: relative; width: 100%; margin: 0;
  background: var(--card);
  border: 1px solid rgba(167,139,250,.22);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 30px 90px -28px rgba(139,92,246,.30),
    var(--shadow);
  overflow: hidden;
}
/* Soft violet bloom behind the panel so it lifts off the background. */
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  inset: 8% -6% -12% -6%;
  background: radial-gradient(60% 55% at 50% 45%, rgba(139,92,246,.26), transparent 70%);
  filter: blur(52px); pointer-events: none;
}
.hero-demo { z-index: 1; }
.demo-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--card-top); border-bottom: 1px solid var(--line); }
.demo-dots { display: inline-flex; gap: 7px; flex: none; }
.demo-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-down); border: 1px solid var(--line-ui); }
.demo-title { min-width: 0; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-stage { position: relative; aspect-ratio: 16 / 9; background: #0d0718; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.05) brightness(1.04); }
/* shown until the first play (autoplay blocked, reduced motion, or the observer has not fired): the whole stage is the target */
.demo-play {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(18,11,31,.32); color: #fff; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.demo-play:hover { background: rgba(18,11,31,.48); }
.demo-play:focus-visible { border-radius: 0; outline-offset: -4px; }
.demo-play-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px 12px 18px;
  border-radius: var(--radius-pill); background: var(--fill); font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color var(--dur) var(--ease);
}
.demo-play:hover .demo-play-badge { background: var(--fill-hover); }
/* pause/play for the loop (WCAG 2.2.2): always in the corner once the video is running, 44px target */
.demo-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  background: rgba(18,11,31,.74); color: #fff; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.demo-toggle:hover { background: rgba(18,11,31,.94); border-color: rgba(255,255,255,.36); }
.demo-toggle:focus-visible { border-radius: 50%; }
.demo-toggle .ico-play, .demo-toggle.is-paused .ico-pause { display: none; }
.demo-toggle.is-paused .ico-play { display: block; }

/* run mock (02 section) */
.tool-list { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tool { min-width: 0; position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 38px; padding: 7px 12px 7px 42px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs);
  font-size: 14px; line-height: 1.3;
}
.tool-check { color: var(--ok); flex: none; position: absolute; left: 12px; top: 9px; }
.tool-name { font-weight: 600; color: var(--text); white-space: nowrap; }
/* targets break only at spaces and at the <wbr> after each dot; a target that does not fit wraps whole under the name */
.tool-target { min-width: 0; flex: 1 1 auto; color: var(--text-2); font-family: var(--font-mono); font-size: 13px; overflow-wrap: normal; }

.code { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.code-tab { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code-file { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.code-meta { font-size: 13px; color: var(--text-2); }
.code pre { padding: 12px 0; overflow-x: auto; counter-reset: ln; white-space: normal; font-family: var(--font-mono); }
.code code { display: block; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: var(--text); tab-size: 4; }
/* hanging indent: a soft-wrapped continuation (phones only) starts 2ch in, like an editor's wrap, never mid-identifier */
.line { display: block; padding: 0 14px 0 calc(52px + 2ch); text-indent: -2ch; position: relative; white-space: pre; min-height: 1.55em; }
.line::before {
  counter-increment: ln; content: counter(ln);
  position: absolute; left: 0; top: 0; width: 40px; text-align: right; color: var(--text-3); font-size: 13px; line-height: 1.6;
}
.kw { color: var(--violet-soft); }
.str { color: var(--amber); }


/* sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .section-lead { margin-top: 14px; }

/* facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line-ui); }
.fact-value { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.fact-label { font-size: 15px; color: var(--text-2); }
.fact-label a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -12px 0; color: var(--violet); }
.fact-label a:hover { color: var(--text); }

/* how it works — horizontal stepper */
.how { padding-top: var(--section); padding-bottom: var(--section-minor); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.step { position: relative; }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fill); color: #fff; font-size: 15px; font-weight: 600;
}
.step h3 { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-ui); }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.step p a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,139,250,.45); }
.step p a:hover { color: var(--text); }

/* what it does — numbered rows on hairlines, each with a product mock */
.what { padding-top: var(--section-minor); }
.card {
  background: linear-gradient(180deg, var(--card-top) 0, var(--card) 120px), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.cap-list { display: grid; }
.cap-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-row-flip .cap-text { order: 2; }
.cap-row-flip .cap-mock { order: 1; }
.cap-num { display: block; color: var(--violet); font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cap-text h3 { margin-top: 18px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.cap-text p { margin-top: 10px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.cap-mock { padding: 20px 22px 22px; font-size: 14px; }
.cap-mock .tool-list { margin-top: 14px; }
.cap-mock .code { margin-top: 12px; }
.mock-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tree { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.tree-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-xs); color: var(--text); font-size: 14px; }
.tree-item.tree-l2 { padding-left: 30px; }
.tree-item.tree-l3 { padding-left: 50px; }
.tree-icon { color: var(--text-2); flex: none; }
.is-new { background: var(--surface); }
.is-new .tree-icon { color: var(--violet); }
.tree-tag { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.props { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.props li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.prop-val { font-family: var(--font-mono); color: var(--text); }
.history { margin-top: 10px; display: flex; flex-direction: column; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-xs); font-size: 15px; color: var(--text); }
.history-row:first-child { background: var(--surface); }
.history-row-quiet { color: var(--text-2); }
.history-label strong { font-weight: 600; }
.keys { display: inline-flex; align-items: center; gap: 4px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 6px; background: var(--card-top); border: 1px solid var(--line-ui); font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); }
.kbd-plus { color: var(--text-2); font-size: 13px; }

/* pricing (markup injected by /new/pricing-display.js) */
.pricing { padding-top: var(--section); padding-bottom: var(--section); }
#home-pricing-section { scroll-margin-top: calc(var(--nav-h) + 24px); }
#pricing { scroll-margin-top: calc(var(--nav-h) + 16px); }
/* card rules: /pricing.css (shared with the account page and the chat quota modal) */

/* FAQ — single column list with hairline dividers */
.faq { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); } /* the hairline sits centred: --section above (pricing) and below */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.faq-head { margin-bottom: 0; }
.faq-head a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,139,250,.45); }
.faq-list { border-top: 1px solid var(--line-ui); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line-ui); }
.faq-item h3 { font-size: 18px; }
.faq-item p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* community: copy on the left, one quiet button on the right. Real member
   quotes join later as a grid under it. */
.community { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.community-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.community-copy { max-width: 620px; }
.community-copy .section-lead { margin-top: 14px; }
.community-btn { gap: 10px; flex: none; }
.community-btn .discord-mark { flex-shrink: 0; }
.community-quotes { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 768px) {
  .community-btn { width: 100%; justify-content: center; }
  .community-quotes { grid-template-columns: minmax(0, 1fr); }
}

/* final CTA */
.final { padding-top: var(--section); padding-bottom: 112px; border-top: 1px solid var(--line); }
.final-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.final-inner .section-lead { margin-top: 16px; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.final .micro-row { margin-top: 20px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.footer-col a { display: inline-flex; align-items: center; min-width: 44px; padding: 11px 0; font-size: 15px; line-height: 1.5; color: var(--text-2); } /* fixed line box: one- and two-line links space identically; 44px hit area */
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 13px; color: var(--text-3); }

/* responsive */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* small laptops / iPad landscape: a tighter hero gutter; the 02 mock's 50-char Luau lines stay on one row */
  .hero-grid { gap: 40px; }
  .code code { font-size: 13px; }
  .line { padding-left: calc(44px + 2ch); }
  .line::before { width: 34px; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  /* short laptop viewports (e.g. 1440x770): the whole hero, video included, sits inside the fold */
  :root { --hero-top: 72px; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { max-width: 16ch; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --hero-top: 64px; --hero-bottom: 56px; --section: 56px; --section-minor: 40px; }
  h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .lead { font-size: 17px; }
  .section-lead { font-size: 17px; }
  .nav { gap: 12px; }
  .btn-nav { min-height: 44px; }
  .hero-demo { border-radius: 16px; }
  .code code { font-size: 13px; }
  .line { padding-left: calc(40px + 2ch); white-space: pre-wrap; overflow-wrap: normal; }
  .line::before { width: 30px; }
  .facts-grid, .stepper { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .cap-row-flip .cap-text { order: 1; }
  .cap-row-flip .cap-mock { order: 2; }
  .cap-text p { max-width: none; }
  .facts-grid { gap: 20px; }
  .stepper { gap: 40px; }
  .final { padding-bottom: 80px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :nth-child(2) { grid-row: 2 / span 2; } /* Product spans two rows; Legal and Support stack beside it */
  .footer-grid > :nth-child(4) { grid-column: 2; }
}
@media (max-width: 640px) {
  /* phone-only layout: section links move to the footer, hero buttons go full width */
  .nav-links { display: none; }
  .nav-link-btn { padding: 0 8px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { gap: 24px 16px; }
  .segmented-toggle-btn { padding: 6px 12px; font-size: 14px; }
  .btn { font-size: 16px; }
}
@media (max-width: 360px) {
  /* 320-360: narrower code gutter in the 02 mock; tighter billing toggle so it sits inside the gutter */
  .line { padding-left: calc(28px + 2ch); } /* ~205px of code per row instead of ~186 */
  .line::before { width: 20px; }
  .segmented-toggle-btn { padding: 6px 10px; gap: 6px; }
  .segmented-toggle-btn--with-badge { padding-right: 6px; }
  .annual-save-badge { padding: 2px 7px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); } /* the email link is wider than half a 288px row */
  .footer-grid > :nth-child(2) { grid-row: auto; }
  .footer-grid > :nth-child(4) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}

/* inline links keep a 44px hit area without changing the line box; the focus ring is drawn inset so it hugs the text, not the padded box */
.step p a, .faq-head a { padding: 13px 12px; margin: -13px -12px; border-radius: 6px; }
.step p a:focus-visible, .faq-head a:focus-visible { outline-offset: -10px; }
.fact-label a:focus-visible { outline-offset: -8px; border-radius: 6px; }
@media (max-width: 768px) {
  .nav-links a, .nav-link-btn, .segmented-toggle-btn { min-height: 44px; }
  .fact-label a { min-height: 44px; }
}

/* Section 02's mock marks the lines RoCode added, so the "+3 lines" badge on the
   Edit Script tool call corresponds to something the reader can actually see. */
.code .line-added {
  position: relative;
  background: var(--ok-bg);
  box-shadow: inset 2px 0 0 var(--ok);
}
