/* Landing page. Tokens and controls come from base.css. Flat, hairline, mono labels. */

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 34px; height: 58px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  padding: 6px 0; font: 400 13.5px/1 var(--f-body); color: var(--text-2);
  text-decoration: none; transition: color .12s;
}
.nav a:hover { color: var(--text); }
.top-cta { display: flex; align-items: center; gap: 16px; }
.link-quiet { font: 500 13.5px/1 var(--f-body); color: var(--text-2); text-decoration: none; }
.link-quiet:hover { color: var(--text); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: #e8e8e8;
  padding: clamp(64px, 9vh, 96px) 0 clamp(120px, 15vh, 156px);
}
.hero-scene {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 96%);
}
.hero-scene canvas { position: absolute; left: 0; top: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 10, .97) 0%, rgba(10, 10, 10, .93) 40%, rgba(10, 10, 10, .55) 72%, rgba(10, 10, 10, .1) 100%);
}
.hero-in { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero h1 {
  font: 500 clamp(34px, 4.6vw, 58px)/1.05 var(--f-display);
  letter-spacing: -.032em; text-wrap: balance; color: #fff;
}
.lede { margin-top: 20px; max-width: 32em; font-size: 15.5px; line-height: 1.65; color: #a3a3a3; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 16px; font: 400 12.5px/1.5 var(--f-mono); color: #737373; }

.hero-foot { position: relative; z-index: 2; margin-top: clamp(40px, 6vh, 60px); padding-top: 22px; border-top: 1px solid #232323; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 20px 44px; margin: 0; }
.facts > div { min-width: 0; }
.facts dt { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; }
.facts dd { margin: 0; }
.facts dd:not(.unit) { margin-top: 8px; font: 500 clamp(20px, 2vw, 25px)/1.1 var(--f-display); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.facts .unit { margin-top: 3px; font: 400 11.5px/1.4 var(--f-body); color: #6f6f6f; }

/* ---------- product window ---------- */
.showcase { position: relative; z-index: 3; margin-top: -86px; }
.window {
  overflow: hidden; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 13px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.window-title {
  min-width: 0; font: 400 11px/1 var(--f-mono); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-live {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.window-body { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: 330px; }
.mock-list { padding: 10px; border-right: 1px solid var(--line); background: var(--panel-2); }
.mock-search {
  display: flex; align-items: center; padding: 0 10px; min-height: 30px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s);
  font: 400 12px/1 var(--f-body); color: var(--muted);
}
.mock-msg {
  display: grid; gap: 4px; width: 100%; margin-top: 2px; padding: 9px 10px;
  text-align: left; background: none; border: 0; border-radius: var(--r-s); cursor: default;
}
.mock-msg.on { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.mock-msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mock-msg-top b { font: 500 12px/1.2 var(--f-body); color: var(--text); }
.mock-msg-top span { font: 400 10.5px/1 var(--f-mono); color: var(--muted); }
.mock-msg-subject { font: 500 12.5px/1.35 var(--f-body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-msg-preview { font: 400 11.5px/1.35 var(--f-body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-chip {
  justify-self: start; margin-top: 2px; padding: 2px 5px; border-radius: 3px;
  font: 500 10px/1.4 var(--f-mono); letter-spacing: .06em;
  color: var(--text); background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line);
}

.mock-view { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2.6vw, 28px); min-width: 0; }
.mock-view-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; width: 100%; font: 400 11.5px/1.4 var(--f-mono); color: var(--muted); }
.mock-subject { margin-top: 12px; font: 500 17px/1.3 var(--f-display); letter-spacing: -.015em; color: var(--text); }
.mock-body { margin-top: 6px; max-width: 46em; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.mock-code {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  width: 100%; margin: 18px 0 0; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r);
}
.mock-code-label { flex-basis: 100%; font: 500 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mock-code b { font: 500 24px/1 var(--f-mono); letter-spacing: .16em; color: var(--text); }
.mock-copy {
  margin-left: auto; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  font: 500 11px/1 var(--f-body); color: var(--text-2); background: var(--panel);
}
.mock-foot { margin-top: auto; padding-top: 16px; font: 400 11.5px/1.5 var(--f-body); color: var(--muted); }

/* ---------- stat strip ---------- */
.strip { padding: 22px 0 0; }
.strip-in {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip-in > div { padding: 16px 20px 16px 0; border-left: 1px solid var(--line); }
.strip-in > div:first-child { border-left: 0; padding-left: 0; }
.strip-in > div:not(:first-child) { padding-left: 20px; }
.strip b { display: block; font: 500 17px/1.1 var(--f-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.strip span { display: block; margin-top: 4px; font: 400 11.5px/1.4 var(--f-body); color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7.5vw, 92px) 0; }
.sec-alt { background: var(--ground-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 560px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: block; margin-bottom: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2 { font: 500 clamp(24px, 2.9vw, 33px)/1.12 var(--f-display); letter-spacing: -.028em; text-wrap: balance; color: var(--text); }
.sec-head p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

/* ---------- feature grid: hairline cells, no cards ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); transition: background .15s;
}
.card:hover { background: var(--panel-2); }
.card-ico { display: block; margin-bottom: 14px; color: var(--text-2); }
.card-ico svg { width: 17px; height: 17px; }
.card h3 { font: 500 13.5px/1.3 var(--f-body); color: var(--text); }
.card p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
code { font: 500 .88em/1.4 var(--f-mono); padding: .12em .34em; background: var(--ground-2); color: var(--text); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- three steps ---------- */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps3 li { padding: 22px 22px 0 0; border-right: 1px solid var(--line); }
.steps3 li:last-child { border-right: 0; padding-right: 0; }
.steps3 li + li { padding-left: 22px; }
.step-n {
  display: inline-block; margin-bottom: 12px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted);
}
.steps3 h3 { font: 500 14px/1.3 var(--f-body); }
.steps3 p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ---------- pricing ---------- */
.till { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.calc { display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 30px); border-right: 1px solid var(--line); }
.calc-label { display: block; margin-bottom: 12px; font: 500 12.5px/1.3 var(--f-body); color: var(--text); }
.calc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
#qty {
  flex: 0 1 160px; width: 160px; min-height: 42px; padding: 0 12px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r);
  font: 500 17px/1 var(--f-body); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
#qty::-webkit-outer-spin-button, #qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#qty:focus-visible { outline: none; border-color: var(--text); box-shadow: var(--ring); }
.quick { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.quick button {
  min-height: 36px; padding: 0 10px; background: var(--panel); color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-s);
  font: 500 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.quick button:hover { border-color: var(--line-2); color: var(--text); }
.quick button[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: #fff; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 18px 0 2px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--text) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
.range::-moz-range-track { height: 2px; border-radius: 1px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--text); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5.5px;
  border: 1px solid var(--text); border-radius: 50%; background: #fff;
}
.range::-moz-range-thumb { width: 12px; height: 12px; border: 1px solid var(--text); border-radius: 50%; background: #fff; }

.readout { margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.total { display: flex; align-items: baseline; gap: 3px; font: 500 clamp(34px, 4vw, 44px)/1 var(--f-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.total .cur { font-size: .48em; color: var(--muted); }
.each { margin-top: 6px; font: 400 12.5px/1.4 var(--f-mono); color: var(--text-2); }
.wide { width: 100%; margin-top: auto; }
.calc-note { margin-top: 10px; font: 400 11.5px/1.5 var(--f-body); color: var(--muted); text-align: center; }

.ledger { display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 26px); background: var(--panel-2); }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { padding-bottom: 12px; text-align: left; font: 500 12.5px/1 var(--f-body); color: var(--text); }
.ledger th { padding: 0 0 8px; text-align: left; font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: right; }
.ledger td { padding: 10px 0; border-top: 1px solid var(--line); font: 400 12.5px/1 var(--f-mono); color: var(--text-2); transition: color .15s; }
.ledger td:first-child { color: var(--text-2); }
.ledger td:nth-child(2) { color: var(--text); }
.ledger tr.on td { color: var(--text); }
.ledger tr.on td:first-child::before { content: '\2192  '; color: var(--text); }
.ledger-note { margin-top: auto; padding-top: 16px; font: 400 11.5px/1.5 var(--f-body); color: var(--muted); }

/* ---------- api band ---------- */
.sec-api { background: var(--dark); color: #e8e8e8; }
.sec-api h2 { color: #fff; }
.sec-api .eyebrow { color: #6f6f6f; }
.api-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.api-copy p { margin-top: 14px; max-width: 28em; font-size: 14.5px; line-height: 1.65; color: #a3a3a3; }
.link-hot {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding-bottom: 4px;
  font: 500 13px/1 var(--f-body); color: #fff; text-decoration: none;
  border-bottom: 1px solid #3a3a3a; transition: border-color .12s;
}
.link-hot:hover { border-color: #fff; }
.code-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.code {
  margin: 0; min-width: 0; max-width: 100%; overflow: hidden;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r);
}
.code figcaption {
  padding: 8px 13px; border-bottom: 1px solid var(--dark-line);
  font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6f6f6f;
}
.code pre { margin: 0; padding: 14px; overflow-x: auto; font: 400 11.5px/1.85 var(--f-mono); color: #c4c4c4; }
.code code { padding: 0; background: none; font-size: inherit; color: inherit; border-radius: 0; box-shadow: none; }
.c-k { color: #fff; font-weight: 500; }
.c-h { color: #6f6f6f; }
.c-s { color: #a8a8a8; }
.c-n { color: #d4d4d4; }
.c-d { color: #6f6f6f; }

/* ---------- faq: hairline rows ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; }
.faq-in .sec-head { position: sticky; top: 84px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 18px; padding: 14px 0;
  list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 16px/1 var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 16px; max-width: 42em; font-size: 13px; line-height: 1.65; color: var(--text-2); }

/* ---------- cta ---------- */
.sec-cta { padding-top: 0; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--dark); color: #fff; border-radius: var(--r-l);
}
.cta-band h2 { max-width: 17ch; color: #fff; }
.cta-band p { margin-top: 8px; max-width: 44ch; font-size: 13.5px; line-height: 1.6; color: #a3a3a3; }

/* ---------- footer ---------- */
.foot { padding: clamp(34px, 5vw, 52px) 0 34px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); gap: 28px 40px; }
.foot-brand .mark { margin-bottom: 12px; }
.foot-brand p { max-width: 26em; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.foot-col h4 { margin: 2px 0 10px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-col a { display: block; margin: 7px 0; font: 400 12.5px/1.4 var(--f-body); color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-note { font: 400 11.5px/1.4 var(--f-body); color: var(--muted); }
.link-btn { padding: 0; background: none; border: 0; cursor: pointer; font: 400 12px/1.4 var(--f-body); color: var(--text-2); }
.link-btn:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .till, .api-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .calc { border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-in .sec-head { position: static; }
  .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px 28px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero { padding-bottom: 116px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
  .showcase { margin-top: -74px; }
  .window-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-list { display: none; }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .steps3 li, .steps3 li + li { border-right: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .steps3 li:last-child { border-bottom: 0; }
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cta-band { align-items: flex-start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col { padding-top: 2px; }
}
@media (max-width: 560px) {
  .top-in { height: 54px; gap: 12px; }
  .link-quiet { display: none; }
  .hero { padding-top: 52px; padding-bottom: 104px; }
  .lede { font-size: 14.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .facts { gap: 16px 22px; }
  .facts dd:not(.unit) { font-size: 19px; }
  .showcase { margin-top: -66px; }
  .window-dots { display: none; }
  .strip-in { grid-template-columns: minmax(0, 1fr); }
  .strip-in > div { border-left: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .strip-in > div:last-child { border-bottom: 0; }
  #qty { flex-basis: 100%; width: 100%; }
  .quick button { flex: 1 1 auto; }
  .cta-band .btn { width: 100%; }
}
@media (max-width: 400px) {
  .top-in { gap: 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}