/* GammaRails — institutional trading infrastructure, presented like an operating memo. */

:root {
  --ink: #eef4f1;
  --muted: #9dacaa;
  --quiet: #6f807f;
  --bg: #071015;
  --bg-deep: #040a0e;
  --panel: #0b171c;
  --panel-high: #0e1d22;
  --line: #203037;
  --line-soft: rgba(211, 231, 222, 0.09);
  --green: #77d7a4;
  --green-high: #9be7bc;
  --green-ink: #06130c;
  --shell: 74rem;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 37rem), rgba(119, 215, 164, 0.035) calc(50% - 37rem), rgba(119, 215, 164, 0.035) calc(50% - 36.9375rem), transparent calc(50% - 36.9375rem)),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
}

::selection { background: var(--green); color: var(--green-ink); }

:focus-visible {
  outline: 2px solid var(--green-high);
  outline-offset: 4px;
  border-radius: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.shell {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-200%);
  background: var(--green-high);
  color: var(--green-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 21, 0.92);
}

@supports (backdrop-filter: blur(1rem)) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(7, 16, 21, 0.82);
    backdrop-filter: blur(1rem) saturate(130%);
  }
}

.header-inner {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--green);
  color: var(--green-high);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark span {
  display: grid;
  place-items: center;
}

.brand-mark span + span { border-left: 1px solid rgba(119, 215, 164, 0.4); }

.brand-name {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.header-actions,
.cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.email-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.3;
  text-decoration-color: var(--line);
  text-underline-offset: 0.28rem;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.email-link:hover { color: var(--green-high); text-decoration-color: var(--green); }

.button {
  display: inline-flex;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--green);
  background: var(--green);
  box-shadow: 0 0 0 rgba(119, 215, 164, 0);
  color: var(--green-ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button::after {
  content: "↗";
  margin-left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85em;
}

.button:hover {
  border-color: var(--green-high);
  background: var(--green-high);
  box-shadow: 0 0.75rem 2rem -1rem rgba(119, 215, 164, 0.8);
}

.button:active { transform: translateY(1px); }
.button-small { min-height: 2.5rem; padding: 0.625rem 1rem; font-size: 0.75rem; }

/* Reusable type */
.eyebrow,
.section-label,
.frame-bar,
.visual-note,
.step-number {
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  color: var(--green);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow > span {
  width: 2.75rem;
  height: 1px;
  background: var(--green);
}

.eyebrow b { color: var(--quiet); font-weight: 400; }
.section-label span { margin-right: 0.65rem; color: var(--quiet); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20rem;
  left: 50%;
  width: min(100rem, 130vw);
  height: 48rem;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(119, 215, 164, 0.13) 50%, transparent 50.05%),
    radial-gradient(circle at 50% 0%, rgba(38, 109, 77, 0.21), transparent 49%);
  pointer-events: none;
}

.hero-copy h1 {
  max-width: 15.5ch;
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: clamp(3rem, 7.5vw, 6.9rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-copy h1 > span:not(.sr-only) {
  color: var(--green);
  font-family: var(--body);
  font-weight: 300;
}

.hero-lower {
  display: grid;
  max-width: 57rem;
  margin: clamp(2.25rem, 5vw, 4rem) 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2.5rem 4.25rem;
}

.hero-summary {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-lower .cta-group { flex-direction: column; align-items: flex-start; gap: 0.85rem; }

.cta-note {
  max-width: 17rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-left: clamp(var(--gutter), 7vw, 6.75rem);
}

.visual-note {
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  display: flex;
  width: 1rem;
  align-items: center;
  gap: 1.25rem;
  color: var(--quiet);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
  white-space: nowrap;
}

.visual-note span + span::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin-right: 1.25rem;
  vertical-align: middle;
  background: var(--line);
}

.app-frame {
  overflow: hidden;
  border: 1px solid #294047;
  background: var(--panel);
  box-shadow: 0 2.25rem 6rem -3rem rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(119, 215, 164, 0.025) inset;
}

.frame-bar {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.875rem;
  border-bottom: 1px solid #294047;
  background: linear-gradient(180deg, #112228, #0b181d);
  color: var(--quiet);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.frame-name::before {
  content: "";
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.625rem;
  border: 1px solid var(--green);
  vertical-align: 0.02rem;
}

.frame-state { color: var(--muted); }
.frame-state i {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.1875rem rgba(119, 215, 164, 0.1);
}

.app-frame img { width: 100%; }

/* Proof */
.proof {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 0;
}

.proof-grid p {
  display: grid;
  min-height: 8.5rem;
  padding: 1.75rem;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 1rem;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.45;
}

.proof-grid p:last-child { border-right: 1px solid var(--line); }
.proof-grid span { color: var(--green); font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.12em; }

/* Editorial sections */
.section-heading-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 2rem;
}

.section-heading-row h2,
.build-cost h2 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.section-intro {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.card-index {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Current alternatives */
.desk-today {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(119, 215, 164, 0.035), transparent 48%);
}

.status-grid {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid article {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
}

.status-grid article:last-child { border-right: 1px solid var(--line); }

.status-grid h3 {
  max-width: 14ch;
  margin-top: 2rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.status-grid article > p:last-child {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Features */
.feature { border-bottom: 1px solid var(--line); }

.feature-layout {
  display: grid;
  min-height: 43rem;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.75rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.feature-reverse .feature-layout { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.72fr); }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-image { order: 1; }

.feature-copy h2 {
  max-width: 12ch;
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.feature-lede {
  max-width: 32rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.feature-list {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.75rem 0.25rem 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: #c7d2cf;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 1.08rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border: 1px solid var(--green);
}

.feature-image { position: relative; }
.feature-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -5% -8% 15%;
  border: 1px solid rgba(119, 215, 164, 0.08);
  background: rgba(119, 215, 164, 0.025);
}

/* Full inventory */
.inventory {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.inventory-grid {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inventory-grid > section {
  min-width: 0;
  padding: 1.75rem;
  border-left: 1px solid var(--line);
}

.inventory-grid > section:last-child { border-right: 1px solid var(--line); }

.inventory-grid h3 {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.inventory-grid ul {
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.inventory-grid li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: #c7d2cf;
  font-size: 0.78rem;
  line-height: 1.5;
}

.inventory-grid li::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  width: 0.3rem;
  height: 0.3rem;
  border: 1px solid var(--green);
}

/* Build comparison */
.build-cost {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(25, 74, 54, 0.18), transparent 60%);
}

.build-cost-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.build-cost-copy h2 { margin-top: 1.2rem; }

.build-cost-copy > p:last-child {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cost-math {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cost-math div {
  min-width: 0;
  padding: 1.75rem 1.25rem;
  border-left: 1px solid var(--line);
}

.cost-math div:last-child { border-right: 1px solid var(--line); }
.cost-math dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cost-math dd {
  margin: 0.75rem 0 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.build-contrast {
  grid-column: 2;
  max-width: 43rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--green);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

/* Workflow */
.workflow {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(211, 231, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 231, 222, 0.035) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 4rem 4rem;
}

.workflow-heading-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: 2rem;
}

.workflow-heading-row h2,
.faq-intro h2,
.final-cta h2 {
  color: var(--ink);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.workflow-list {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  list-style: none;
}

.workflow-list li {
  display: grid;
  min-height: 9.5rem;
  padding: 1.75rem 0;
  grid-template-columns: minmax(5rem, 1fr) 2fr;
  align-items: start;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.workflow-list li:last-child { border-bottom: 1px solid var(--line); }
.step-number { color: var(--green); font-size: 0.6875rem; letter-spacing: 0.14em; }

.workflow-list h3 {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.workflow-list p {
  max-width: 38rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.faq-intro h2 { max-width: 7ch; margin-top: 1.25rem; }
.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  min-height: 5rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 300;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { color: var(--green-high); }

.faq-list details p {
  max-width: 42rem;
  padding: 0 3rem 1.75rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Closing CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: linear-gradient(135deg, rgba(25, 74, 54, 0.19), transparent 55%);
}

.final-cta::after {
  content: "GR";
  position: absolute;
  right: -0.08em;
  bottom: -0.35em;
  color: rgba(119, 215, 164, 0.035);
  font-family: var(--display);
  font-size: clamp(14rem, 34vw, 34rem);
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 { max-width: 12ch; margin-top: 1.2rem; }

.final-cta-inner > p:not(.section-label) {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.final-cta .cta-group { margin-top: 2.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.footer-inner p { text-wrap: pretty; }
.footer-inner a { color: var(--muted); text-underline-offset: 0.25rem; }
.footer-inner a:hover { color: var(--green-high); }

/* Responsive */
@media (max-width: 56.25rem) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid p:nth-child(2) { border-right: 1px solid var(--line); }
  .proof-grid p:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .feature-layout,
  .feature-reverse .feature-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-reverse .feature-copy,
  .feature-reverse .feature-image { order: initial; }
  .feature-copy { max-width: 40rem; }
  .feature-copy h2 { max-width: 15ch; }
  .feature-image { width: 100%; }

  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid > section:nth-child(2) { border-right: 1px solid var(--line); }
  .inventory-grid > section:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .build-cost-layout { grid-template-columns: 1fr; }
  .cost-math { max-width: 46rem; }
  .build-contrast { max-width: 46rem; grid-column: 1; }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro h2 { max-width: 12ch; }
}

@media (max-width: 45rem) {
  :root { --gutter: 1rem; }

  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 0.625rem;
  }

  .brand { min-height: 2.5rem; }
  .header-actions {
    width: 100%;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--line-soft);
  }

  .hero { padding-top: 4.25rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); line-height: 0.94; }

  .hero-lower {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
  }

  .hero-visual { padding-left: var(--gutter); }
  .visual-note { display: none; }
  .frame-state { display: none; }

  .section-heading-row,
  .workflow-heading-row,
  .workflow-list li {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .status-grid { grid-template-columns: 1fr; }
  .status-grid article {
    padding-inline: 0;
    border-left: 0;
  }
  .status-grid article + article { border-top: 1px solid var(--line); }
  .status-grid article:last-child { border-right: 0; }
  .status-grid h3 { margin-top: 1.25rem; }

  .workflow-list li { min-height: 0; padding-block: 1.5rem; }
  .footer-inner { min-height: 0; padding-block: 1.75rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 30rem) {
  .brand-name { font-size: 0.875rem; }
  .header-email { font-size: 0.6875rem; }
  .button-small { padding-inline: 0.8rem; }

  .cta-group { align-items: stretch; flex-direction: column; }
  .hero-lower .cta-group { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }

  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid p {
    min-height: 5.75rem;
    padding: 1.25rem 0;
    grid-template-columns: 2rem 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    border-right: 0 !important;
    border-left: 0;
  }
  .proof-grid p + p { border-top: 1px solid var(--line); }

  .feature-list { grid-template-columns: 1fr; }
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-grid > section {
    padding-inline: 0;
    border-left: 0;
  }
  .inventory-grid > section + section { border-top: 1px solid var(--line); }
  .inventory-grid > section:nth-child(2),
  .inventory-grid > section:last-child { border-right: 0; }
  .cost-math { grid-template-columns: 1fr; }
  .cost-math div {
    display: grid;
    padding-inline: 0;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 1rem;
    border-left: 0;
  }
  .cost-math div + div { border-top: 1px solid var(--line); }
  .cost-math div:last-child { border-right: 0; }
  .cost-math dd { text-align: right; }
  .frame-index { display: none; }
  .faq-list details p { padding-right: 0; }
}

@media print {
  :root { --ink: #111; --muted: #333; --quiet: #555; --bg: #fff; --bg-deep: #fff; --panel: #fff; --line: #bbb; }
  body { background: #fff; }
  .site-header { position: static; background: #fff; }
  .app-frame { box-shadow: none; }
  .button { border-color: #111; background: #fff; color: #111; }
}
