:root {
  --ink: #111516;
  --ink-2: #161b1c;
  --panel: #1b2122;
  --panel-2: #22292a;
  --line: #3a4547;
  --line-soft: #2a3334;
  --paper: #e7e9e5;
  --text: #c5ccc9;
  --muted: #adb7b4;
  --muted-2: #87918e;
  --carbon: #789481;
  --carbon-soft: rgba(120, 148, 129, 0.12);
  --evidence: #81d8b0;
  --evidence-soft: rgba(129, 216, 176, 0.12);
  --blue: #8ab4f8;
  --warning: #f3c969;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--ink);
  /* iOS Safari inflates type when a phone is rotated to landscape unless this
     is pinned, which silently breaks every clamp() size on the page. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* In-page anchors must clear the sticky nav instead of landing under it. */
  scroll-padding-top: 90px;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 52% 0%, rgba(255, 255, 255, .035), transparent 36rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(120, 148, 129, .22);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, summary, a { touch-action: manipulation; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--evidence); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: -5rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 21, 22, .92);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark-logo {
  width: 210px;
  height: 44px;
  display: block;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
.wordmark .nav-beta { padding: .24rem .34rem; border: 1px solid var(--carbon); color: var(--carbon); background: var(--carbon-soft); font: 900 .56rem/1 var(--mono); font-style: normal; letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav-links a {
  padding: .55rem .72rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); border-color: var(--line); background: var(--panel); }
.nav-links .nav-cta { color: #120a06; background: var(--carbon); border-color: var(--carbon); white-space: nowrap; }
.nav-links .nav-cta:hover { color: #0d1510; background: #8aa58f; border-color: #8aa58f; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--carbon);
  font: 850 .69rem/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero {
  min-height: 760px;
  padding: 100px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}
.hero h1, .page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 7.4vw, 7.7rem);
  line-height: .88;
  letter-spacing: -.072em;
  text-wrap: balance;
}
.hero h1 span, .page-hero h1 span { color: var(--carbon); }
.hero .lede, .page-hero .lede {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  padding: .8rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--carbon);
  background: var(--carbon);
  color: #160b07;
  font-weight: 850;
  font-size: .88rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #8aa58f; border-color: #8aa58f; }
.button.secondary { color: var(--paper); border-color: var(--line); background: var(--panel); }
.button.secondary:hover { border-color: #4a5658; background: var(--panel-2); }
.button.small { min-height: 40px; padding: .6rem .8rem; font-size: .78rem; }

.terminal {
  position: relative;
  border: 1px solid #344043;
  background: rgba(22, 27, 28, .96);
  box-shadow: 24px 24px 0 rgba(120, 148, 129, .07);
  overflow: hidden;
}
.terminal::before {
  content: "CARBON / LOCAL RUN";
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font: 800 .64rem/1 var(--mono);
  letter-spacing: .13em;
}
.carbon-mini-demo::before { content: "CARBON / 15 SECOND LIVE DEMO"; }
.terminal-body { padding: 26px; font: 650 clamp(.76rem, 1.35vw, .91rem)/1.75 var(--mono); }
.terminal-line { display: flex; gap: 12px; }
.terminal-line + .terminal-line { margin-top: 10px; }
.prompt { color: var(--carbon); }
.terminal .dim { color: var(--muted-2); }
.terminal .good { color: var(--evidence); }
.terminal .blue { color: var(--blue); }
.terminal-rule { height: 1px; margin: 22px 0; background: var(--line-soft); }
.run-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.run-chip { padding: 12px; border: 1px solid var(--line-soft); background: var(--ink-2); }
.run-chip small { display: block; color: var(--muted-2); font-size: .61rem; letter-spacing: .1em; text-transform: uppercase; }
.run-chip strong { display: block; margin-top: 5px; color: var(--paper); font-size: .82rem; }
.mini-demo-title { min-height: 3.2em; margin: 0; color: var(--paper); font: 850 clamp(1.25rem, 2.5vw, 2rem)/1.08 var(--sans); letter-spacing: -.035em; }
.mini-demo-why { min-height: 4.5em; margin-top: 15px; padding: 11px 12px; border-left: 2px solid var(--carbon); background: var(--carbon-soft); color: var(--text); font: 650 .72rem/1.5 var(--mono); }
.mini-demo-why small { display: block; margin-bottom: 4px; color: var(--carbon); font-weight: 850; letter-spacing: .1em; }
.mini-demo-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 18px; }
.mini-demo-flow span { position: relative; padding-top: 15px; color: var(--muted-2); font: 800 .56rem/1 var(--mono); letter-spacing: .06em; text-align: center; }
.mini-demo-flow span::before { position: absolute; top: 0; left: calc(50% - 4px); width: 8px; height: 8px; border: 1px solid var(--muted-2); border-radius: 50%; content: ""; }
.mini-demo-flow span.is-done { color: var(--text); }
.mini-demo-flow span.is-done::before { border-color: var(--evidence); background: var(--evidence); }
.mini-demo-flow span.is-active { color: var(--paper); }
.mini-demo-flow span.is-active::before { border-color: var(--paper); background: var(--paper); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.mini-demo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.mini-demo-actions button,.mini-demo-actions a { padding: .45rem .6rem; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); font: 750 .63rem/1.2 var(--mono); text-decoration: none; cursor: pointer; }
.mini-demo-actions a { color: var(--evidence); }

.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(27, 33, 34, .72); }
.stat-intro { padding: 21px 26px; display: grid; grid-template-columns: minmax(180px, .38fr) 1fr; gap: 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-intro strong { color: var(--carbon); font: 900 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stat-intro span { max-width: 820px; color: var(--text); font-size: .92rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:last-child { border-right: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.055em; }
.stat span { display: block; margin-top: 9px; color: var(--muted); font: 700 .69rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 110px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: .42fr 1fr; gap: 50px; margin-bottom: 52px; }
.section-head h2 { max-width: 780px; margin: 0; font-size: clamp(2.25rem, 5vw, 5.2rem); line-height: .95; letter-spacing: -.057em; text-wrap: balance; }
.section-head p { max-width: 680px; margin: 16px 0 0; color: var(--text); font-size: 1.08rem; line-height: 1.68; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  min-height: 285px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(27, 33, 34, .78);
}
.feature-index { color: var(--evidence); font: 800 .67rem/1 var(--mono); letter-spacing: .1em; }
.feature h3 { margin: 48px 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.feature p { margin: 0; color: var(--text); font-size: .97rem; line-height: 1.68; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split-panel { min-width: 0; padding: clamp(28px, 5vw, 56px); background: var(--ink-2); }
.split-panel h3 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.045em; }
.split-panel p { color: var(--text); font-size: 1rem; line-height: 1.7; }
.list-clean { margin: 28px 0 0; padding: 0; list-style: none; }
.list-clean li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line-soft); color: var(--text); }
.list-clean li::before { content: ""; position: absolute; top: 23px; left: 1px; width: 9px; height: 9px; background: var(--evidence); }

.visual-figure {
  margin: 0 0 42px;
  border: 1px solid var(--line);
  background: #101415;
}
.visual-frame {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}
.visual-figure figcaption {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.visual-figure figcaption a {
  flex: 0 0 auto;
  color: var(--evidence);
  font: 800 .67rem/1.3 var(--mono);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.visual-figure figcaption a:hover { color: var(--paper); }

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
}
.brand-hero h1 { font-size: clamp(3.4rem, 7vw, 7rem); }
.brand-lockup-stage {
  min-height: 360px;
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #000;
}
.brand-horizontal-logo {
  width: min(100%, 680px);
  height: 132px;
  display: block;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
.brand-lockup { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 24px; }
.brand-lockup img { width: 116px; border: 1px solid #3d4648; }
.brand-lockup-copy strong { display: block; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .9; letter-spacing: .11em; }
.brand-lockup-copy em { display: inline-block; margin-top: 14px; padding: .32rem .45rem; border: 1px solid var(--carbon); color: var(--carbon); font: 900 .66rem/1 var(--mono); font-style: normal; letter-spacing: .12em; }
.brand-lockup-copy span { display: block; margin-top: 13px; color: var(--muted); font: 750 .72rem/1.4 var(--mono); }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.brand-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-card { min-width: 0; padding: clamp(26px, 4vw, 42px); background: var(--ink-2); }
.brand-card h3 { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: -.03em; }
.brand-card p { margin: 0; color: var(--muted); }
.brand-card p + p, .brand-card .code-block { margin-top: 18px; }
.brand-kicker { display: block; margin-bottom: 30px; color: var(--evidence); font: 850 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.mark-preview { min-height: 220px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #000; }
.mark-preview.light { background: var(--paper); }
.mark-preview img { width: 132px; }
.mark-preview .horizontal-lockup-preview {
  width: min(88%, 560px);
  height: 170px;
  object-fit: cover;
  object-position: center;
}
.wordmark-preview { display: flex; align-items: baseline; gap: 11px; font-weight: 900; letter-spacing: .13em; }
.wordmark-preview strong { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; }
.wordmark-preview em { padding: .34rem .45rem; border: 1px solid var(--carbon); color: var(--carbon); font: 900 .65rem/1 var(--mono); font-style: normal; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); background: var(--panel); }
.swatch-color { min-height: 116px; border-bottom: 1px solid rgba(255,255,255,.14); }
.swatch-meta { padding: 15px; }
.swatch-meta strong, .swatch-meta span { display: block; }
.swatch-meta strong { font-size: .86rem; }
.swatch-meta span { margin-top: 5px; color: var(--muted); font: 700 .68rem/1.3 var(--mono); }
.type-specimen { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); background: var(--panel); }
.type-specimen + .type-specimen { margin-top: 14px; }
.type-specimen strong { display: block; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.06em; }
.type-specimen.mono strong { color: var(--evidence); font: 850 clamp(1.2rem, 3vw, 2.3rem)/1.2 var(--mono); letter-spacing: .04em; }
.type-specimen p { max-width: 760px; margin: 20px 0 0; color: var(--muted); }
.naming-table td:first-child { color: var(--paper); font-weight: 800; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.usage-card { padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.usage-card.good { border-top: 3px solid var(--evidence); }
.usage-card.bad { border-top: 3px solid var(--carbon); }
.usage-card strong { display: block; margin-bottom: 12px; font: 850 .69rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.usage-card p { margin: 0; color: var(--muted); }
.usage-card p + p { margin-top: 11px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asset-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.asset-preview { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.asset-preview.square { aspect-ratio: 1 / 1; }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.asset-preview .horizontal-lockup-preview { object-fit: contain; }
.asset-preview.square img { width: 56%; height: 56%; object-fit: contain; }
.asset-meta { padding: 18px; }
.asset-meta strong, .asset-meta span { display: block; }
.asset-meta span { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.asset-meta a { display: inline-block; margin-top: 14px; color: var(--evidence); font: 800 .68rem/1.3 var(--mono); text-decoration: none; text-transform: uppercase; }
.message-sample { margin: 0; padding: clamp(24px, 5vw, 44px); border-left: 3px solid var(--carbon); background: var(--carbon-soft); color: var(--paper); font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1.25; letter-spacing: -.025em; }
.brand-footnote { margin-top: 24px; color: var(--muted-2); font-size: .78rem; }

.architecture { padding: 46px; border: 1px solid var(--line); background: var(--panel); }
.architecture-flow { display: grid; grid-template-columns: 1fr 80px 1.2fr 80px 1fr; align-items: stretch; gap: 0; }
.arch-node { padding: 26px; border: 1px solid var(--line); background: var(--ink-2); }
.arch-node strong { display: block; margin-bottom: 8px; }
.arch-node span { color: var(--muted); font-size: .85rem; }
.arch-arrow { display: flex; align-items: center; justify-content: center; color: var(--carbon); font: 900 1.2rem/1 var(--mono); }

.pricing-section { position: relative; overflow: hidden; }
.pricing-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: max(-180px, calc((100vw - var(--max)) / 2 - 240px));
  width: 520px;
  height: 1px;
  background: var(--carbon);
  box-shadow: 0 0 72px 20px rgba(120, 148, 129, .15);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.pricing-card {
  min-width: 0;
  padding: clamp(26px, 3.8vw, 42px);
  display: flex;
  flex-direction: column;
  background: rgba(27, 33, 34, .97);
}
.pricing-card-accent { background: linear-gradient(145deg, rgba(120, 148, 129, .11), rgba(27, 33, 34, .98) 54%); }
.pricing-card-head { min-height: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-index { color: var(--evidence); font: 850 .65rem/1.35 var(--mono); letter-spacing: .11em; }
.plan-status { color: var(--muted-2); font: 750 .61rem/1.35 var(--mono); letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.pricing-card h3 { margin: 42px 0 14px; font-size: clamp(1.55rem, 2.3vw, 2.35rem); line-height: 1; letter-spacing: -.045em; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.price strong { font-size: clamp(2.6rem, 4vw, 4.5rem); line-height: .95; letter-spacing: -.065em; }
.price span { color: var(--muted-2); font: 750 .7rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.plan-summary { min-height: 88px; margin: 22px 0 0; color: var(--text); font-size: .97rem; line-height: 1.68; }
.plan-features { margin: 26px 0 34px; padding: 0; list-style: none; }
.plan-features li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line-soft); color: var(--text); font-size: .9rem; }
.plan-features li::before { content: ""; position: absolute; top: 18px; left: 1px; width: 7px; height: 7px; background: var(--evidence); }
.plan-link {
  min-height: 44px;
  margin-top: auto;
  padding: .72rem .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--carbon);
  color: var(--paper);
  background: var(--carbon-soft);
  font: 800 .73rem/1.3 var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.plan-actions { margin-top: auto; display: grid; gap: 9px; }
.plan-actions .plan-link { width: 100%; margin-top: 0; }
button.plan-link { cursor: pointer; text-align: left; }
.plan-link-secondary { border-color: var(--line); color: var(--text); background: transparent; }
a.plan-link:hover, button.plan-link:hover { color: #160b07; background: var(--carbon); }
.plan-link-disabled { border-color: var(--line); color: var(--muted); background: var(--ink-2); cursor: default; }
.sprint-plan {
  margin-top: 18px;
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  gap: clamp(40px, 7vw, 90px);
  border: 1px solid var(--carbon);
  background: linear-gradient(118deg, rgba(120, 148, 129, .17), rgba(27, 33, 34, .97) 46%, var(--ink-2));
}
.sprint-plan h3 { max-width: 680px; margin: 44px 0 20px; font-size: clamp(2.4rem, 5vw, 5.1rem); line-height: .94; letter-spacing: -.06em; text-wrap: balance; }
.sprint-plan-intro > p { max-width: 720px; margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.sprint-plan-offer { padding-left: clamp(0px, 3vw, 34px); border-left: 1px solid rgba(120, 148, 129, .35); }
.sprint-plan-offer .plan-features { margin-bottom: 28px; }
.pricing-note { margin: 18px 0 0; color: var(--muted-2); font: 700 .67rem/1.55 var(--mono); }

.contact-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--carbon);
  color: var(--paper);
  background: var(--ink-2);
  overflow: auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .68);
}
.contact-dialog::backdrop { background: rgba(4, 6, 6, .82); backdrop-filter: blur(7px); }
.contact-dialog-shell { position: relative; padding: clamp(28px, 6vw, 58px); }
.contact-dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: 400 1.7rem/1 var(--sans);
  cursor: pointer;
}
.contact-dialog-close:hover { border-color: var(--carbon); color: var(--paper); }
.contact-dialog h2 { max-width: 620px; margin: 28px 0 14px; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.058em; }
.contact-dialog-intro { max-width: 620px; margin: 0 0 32px; color: var(--text); line-height: 1.65; }
.contact-dialog-intro strong { color: var(--paper); }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span { color: var(--muted-2); font: 800 .65rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.contact-form label em { color: var(--muted); font-style: normal; font-weight: 650; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--paper);
  background: #101415;
  font: 500 1rem/1.45 var(--sans);
}
.contact-form input { min-height: 50px; padding: 0 14px; }
.contact-form textarea { min-height: 116px; padding: 13px 14px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--evidence); box-shadow: 0 0 0 1px var(--evidence); }
.contact-note { margin-top: 16px; }
.contact-form-footer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-form-footer p { max-width: 330px; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.contact-form-footer .button { flex: 0 0 auto; cursor: pointer; }
.contact-form-footer .button:disabled { opacity: .55; cursor: wait; }
.contact-form-status { min-height: 24px; margin: 18px 0 0; color: var(--evidence); font: 700 .76rem/1.55 var(--mono); }
.contact-form-status.is-error { color: #ff9a78; }
.contact-honeypot,
.contact-submit-frame { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.cta-band { padding: 90px 0; }
.cta-box { padding: clamp(34px, 7vw, 80px); border: 1px solid var(--carbon); background: linear-gradient(120deg, rgba(120,148,129,.16), rgba(27, 33, 34, .94) 48%); }
.cta-box h2 { max-width: 880px; margin: 0; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .92; letter-spacing: -.062em; }
.cta-box p { max-width: 670px; color: var(--text); font-size: 1.1rem; line-height: 1.7; }

.page-hero { padding: 100px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; font-size: clamp(3.4rem, 7vw, 7rem); }
.page-hero .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag { padding: .4rem .58rem; border: 1px solid var(--line); color: var(--muted); background: var(--panel); font: 750 .67rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.tag.beta { border-color: var(--carbon); color: var(--carbon); background: var(--carbon-soft); }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; padding: 60px 0 110px; }
.docs-sidebar { position: sticky; top: 100px; align-self: start; }
.docs-sidebar strong { display: block; margin-bottom: 14px; color: var(--muted-2); font: 800 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.docs-sidebar a { display: block; padding: .55rem 0; color: var(--muted); font-size: .86rem; text-decoration: none; }
.docs-sidebar a:hover { color: var(--paper); }
.docs-main { min-width: 0; }
.doc-section { padding: 10px 0 68px; scroll-margin-top: 100px; }
.doc-section + .doc-section { padding-top: 58px; border-top: 1px solid var(--line); }
.doc-section h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; }
.doc-section h3 { margin: 36px 0 12px; font-size: 1.2rem; }
.doc-section p, .doc-section li { color: var(--text); font-size: 1rem; line-height: 1.75; }
.doc-section p { max-width: 76ch; }
.doc-section li { max-width: 82ch; }
.doc-section a { color: var(--evidence); }
.doc-section ul, .doc-section ol { padding-left: 1.25rem; }
.doc-section li + li { margin-top: .55rem; }

.starter-details { border: 1px solid var(--line); background: var(--panel); }
.starter-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
}
.starter-details summary::-webkit-details-marker { display: none; }
.starter-details summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--paper);
  font: 500 1.35rem/30px var(--mono);
  text-align: center;
}
.starter-details[open] summary::after { content: "−"; }
.starter-details summary .eyebrow { display: block; margin-bottom: 7px; }
.starter-title { color: var(--paper); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; }
.starter-hint { margin-left: auto; color: var(--muted-2); font: 700 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.starter-details-body { padding: 24px; border-top: 1px solid var(--line); }
.starter-details-body > p:first-child { margin-top: 0; }
.starter-details-body > :last-child { margin-bottom: 0; }

.code-block {
  position: relative;
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: #d9ddda;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  font: 650 .81rem/1.7 var(--mono);
}
.code-block .accent { color: var(--carbon); }
.code-block .good { color: var(--evidence); }
.callout { margin: 24px 0; padding: 20px 22px; border-left: 3px solid var(--evidence); background: var(--evidence-soft); color: #c9d9d3; }
.callout.warn { border-left-color: var(--warning); background: rgba(243,201,105,.09); }
.callout strong { color: var(--paper); }

.table-wrap { margin: 24px 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: rgba(27, 33, 34, .78); font-size: .9rem; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted-2); font: 800 .64rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
td { color: var(--text); }
td code { color: var(--paper); }
tr:last-child td { border-bottom: 0; }

.beta-strip { padding: 13px 20px; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--carbon); color: #1b0d07; text-align: center; font: 800 .72rem/1.4 var(--mono); letter-spacing: .035em; }
.beta-strip strong { font-weight: 950; letter-spacing: .13em; white-space: nowrap; }
.beta-strip span { max-width: 820px; }
.beta-strip a { color: #1b0d07; font-weight: 950; white-space: nowrap; text-underline-offset: 3px; }
.install-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; padding: 60px 0 100px; }
.install-picker { position: sticky; top: 100px; align-self: start; display: grid; gap: 8px; }
.install-tab {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.install-tab[aria-selected="true"] { border-color: var(--carbon); color: var(--paper); background: var(--carbon-soft); }
.install-panel { min-width: 0; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); background: rgba(27, 33, 34, .88); }
.install-panel[hidden] { display: none; }
.install-panel h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.install-panel > p { color: var(--muted); }
.install-panel summary { width: fit-content; margin-top: 24px; color: var(--evidence); font-weight: 800; cursor: pointer; }
.step-list { margin: 30px 0; padding: 0; list-style: none; counter-reset: install-step; }
.step-list li { counter-increment: install-step; position: relative; min-height: 56px; padding: 0 0 24px 62px; color: var(--text); }
.step-list li::before { content: counter(install-step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--carbon); font: 900 .75rem/38px var(--mono); text-align: center; width: 38px; height: 38px; border: 1px solid var(--carbon); }
.step-list li + li::after { content: ""; position: absolute; left: 19px; top: -24px; width: 1px; height: 22px; background: var(--line); }
.download-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.package-note { color: var(--muted-2); font: 700 .68rem/1.4 var(--mono); }

.feedback { margin-top: 50px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); background: var(--panel); }
.feedback h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.feedback > p { color: var(--muted); max-width: 700px; }
.feedback-form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font: 800 .67rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--ink-2); color: var(--paper); padding: 13px 14px; border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.check-field { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; color: var(--text); font-size: .9rem; }
.check-field input { margin-top: 4px; accent-color: var(--carbon); }

.site-footer { padding: 40px 0 calc(60px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-inner p { margin: 0; color: var(--muted-2); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 80px; }
  .brand-hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.8rem, 14vw, 7rem); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-summary { min-height: 0; }
  .sprint-plan { grid-template-columns: 1fr; }
  .sprint-plan-offer { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid rgba(120, 148, 129, .35); }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .architecture-flow { grid-template-columns: 1fr; }
  .arch-arrow { min-height: 58px; transform: rotate(90deg); }
  .docs-layout, .install-grid { grid-template-columns: 1fr; gap: 34px; }
  .brand-grid.three, .asset-grid { grid-template-columns: 1fr 1fr; }
  .docs-sidebar, .install-picker { position: static; }
  .docs-sidebar { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
  .docs-sidebar strong { width: 100%; }
  .install-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { background-size: 40px 40px; }
  input, select, textarea { font-size: 16px; }
  .beta-strip { padding: 9px 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; font-size: .66rem; line-height: 1.35; }
  .beta-strip span { flex: 1 0 100%; }
  .nav-inner { width: min(100% - 24px, var(--max)); min-height: 62px; }
  .wordmark-logo { width: 156px; height: 36px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .wrap { width: min(100% - 28px, var(--max)); }
  .hero, .page-hero { padding-top: 66px; }
  .hero h1, .page-hero h1 { font-size: clamp(3.25rem, 17vw, 5.2rem); }
  .hero .lede, .page-hero .lede { font-size: 1rem; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .terminal-body { padding: 18px; font-size: .7rem; }
  .run-grid, .stats, .feature-grid, .split, .feedback-form { grid-template-columns: 1fr; }
  .stat-intro { padding: 18px; grid-template-columns: 1fr; gap: 7px; }
  .stat, .stat:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section { padding: 76px 0; }
  .section-head h2 { font-size: 2.75rem; }
  .feature { min-height: 240px; }
  .architecture { padding: 20px; }
  .visual-frame img { width: 760px; max-width: none; }
  .visual-figure figcaption { display: grid; gap: 8px; }
  .brand-grid, .brand-grid.three, .swatch-grid, .asset-grid, .do-dont { grid-template-columns: 1fr; }
  .brand-lockup-stage { min-height: 290px; }
  .brand-lockup { grid-template-columns: 84px 1fr; }
  .brand-lockup img { width: 84px; }
  .install-picker { display: flex; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .install-tab { flex: 0 0 170px; }
  .starter-details summary { align-items: flex-start; gap: 14px; padding: 18px; }
  .starter-hint { display: none; }
  .starter-details-body { padding: 18px; }
  .feedback-form { display: grid; }
  .contact-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .contact-dialog-shell { padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
  .contact-dialog h2 { padding-right: 34px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-form-footer .button { justify-content: space-between; }
  .footer-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* ---------------------------------------------------------------------------
   Phone refinements
   The primary links are hidden below 640px, so carbon-site.js builds a
   disclosure panel from them; without this block a phone gets a header with
   no navigation in it at all. Touch targets are raised to the ~44px Apple
   asks for, and the horizontal scrollers are marked so a swipe reads as
   content rather than as a dead end.
   --------------------------------------------------------------------------- */

.nav-toggle { display: none; }
.nav-panel { display: none; }

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: var(--panel);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--paper); transition: transform .18s ease, opacity .18s ease; }
  .nav-toggle[aria-expanded="true"] { border-color: var(--carbon); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-panel {
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 6px calc(14px + env(safe-area-inset-right)) 12px calc(14px + env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .5);
  }
  .nav-panel[hidden] { display: none; }
  .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--paper);
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
  }
  .nav-panel a:last-child { border-bottom: 0; }
  .nav-panel a[aria-current="page"] { color: var(--carbon); }

  /* The CTA and the toggle share the bar, so keep them from being squeezed.
     The logo is object-fit: cover, so letting flex shrink it crops the
     "engineering confidence" line straight off the lockup. */
  .nav-inner { gap: 10px; }
  .nav-links { gap: 8px; flex: 0 0 auto; }
  .nav-links .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .wordmark { flex: 0 0 auto; min-height: 44px; }

  /* Touch targets. These rows were 14-21px tall, which is a coin-flip tap. */
  .beta-strip a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .footer-links { gap: 0 18px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .visual-figure figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
  .docs-sidebar a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .mini-demo-actions { gap: 8px; }
  .mini-demo-actions button, .mini-demo-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .7rem; }
  .install-tab { min-height: 52px; }
  .asset-meta a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; }
  .footer-inner p a, .doc-section p > a { text-underline-offset: 4px; }
  .button.small { min-height: 44px; }

  /* Horizontal scrollers: a fade on the right edge signals there is more, and
     containing the inline overscroll stops a sideways swipe from firing
     Safari's back-navigation gesture mid-table. */
  .table-wrap, .install-picker, .visual-frame {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* .is-scrollable is set by carbon-site.js only when content actually
     overflows, so a table that fits keeps its crisp right edge. */
  .table-wrap.is-scrollable, .install-picker.is-scrollable {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }

  /* Type that fell below comfortable phone legibility. */
  .wordmark .nav-beta { font-size: .62rem; }
  th { font-size: .66rem; }
  .footer-links a, .footer-inner p { font-size: .82rem; }
}

/* Landscape phones: the notch and home indicator sit beside the content, and
   the tall fixed minimums stop fitting. */
@media (max-width: 900px) and (orientation: landscape) {
  .hero, .page-hero { padding-top: 54px; padding-bottom: 48px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
  .brand-lockup-stage { min-height: 200px; }
  .mark-preview { min-height: 150px; }
  .feature { min-height: 0; }
}

/* Narrowest phones still in use (iPhone SE 1st gen, 320px). The nav bar has to
   fit a lockup, a CTA and the menu button, so drop the badge the beta strip
   already announces and tighten what is left. */
@media (max-width: 400px) {
  .nav-inner { width: min(100% - 20px, var(--max)); gap: 8px; }
  .wordmark-logo { width: 132px; height: 31px; }
  .wordmark .nav-beta { display: none; }
  .nav-links .nav-cta { padding: .5rem .68rem; font-size: .8rem; }
  .beta-strip { gap: 0 10px; }
}
