/* ==========================================================================
   MyWhisper — landing page
   Editorial split. A hard-ruled asymmetric grid, oversized Bricolage
   Grotesque, and one committed colour: deep green against warm off-white.
   The rhythm-machine bank ramp (red / amber / yellow / grey) is the second
   accent and appears only where the pipeline does.

   Light is the default. Dark is a real second appearance.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;

  --ink: #111110;
  --ink-2: #3c3c38;
  --ink-3: #7c7c72;

  --rule: #111110;          /* the hard editorial rule */
  --hair: #dcdad0;          /* the quiet one */

  --green: #1b4d3e;

  --on-green: #eaf2ec;
  --on-green-2: rgba(234, 242, 236, 0.72);

  --bank-a: #f0350f;
  --bank-b: #f59b00;
  --bank-c: #e8c400;
  --bank-d: #dcdad0;

  --live: #f0350f;

  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 1240px;
  --gutter: 28px;

  --t: 160ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

:root { --green-2: #164034; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101110;
    --paper-2: #181a18;

    --ink: #f2f2ec;
    --ink-2: #b6b6ac;
    --ink-3: #8a8a80;

    --rule: #f2f2ec;
    --hair: #2c2e2c;

    --green: #1f6650;
    --green-2: #185241;
    --on-green: #eaf2ec;
    --on-green-2: rgba(234, 242, 236, 0.74);

    --bank-a: #ff5a34;
    --bank-b: #ffab1f;
    --bank-c: #ffd633;
    --bank-d: #3a3c3a;

    --live: #ff5a34;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #101110;
  --paper-2: #181a18;

  --ink: #f2f2ec;
  --ink-2: #b6b6ac;
  --ink-3: #8a8a80;

  --rule: #f2f2ec;
  --hair: #2c2e2c;

  --green: #1f6650;
  --green-2: #185241;
  --on-green: #eaf2ec;
  --on-green-2: rgba(234, 242, 236, 0.74);

  --bank-a: #ff5a34;
  --bank-b: #ffab1f;
  --bank-c: #ffd633;
  --bank-d: #3a3c3a;

  --live: #ff5a34;

  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.042em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- editorial furniture ---------- */

.num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  white-space: nowrap;
}

code { font-family: var(--font-mono); font-size: 0.9em; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hair);
  flex: none;
  transition: background var(--t) var(--ease);
}

.dot.on { background: var(--live); }
.dot.on.b { background: var(--bank-b); }
.dot.on.g { background: var(--green); }

/* the four-bank ramp, used as a rule */
.ramp {
  display: flex;
  height: 26px;
}

.ramp i { flex: 1; display: block; }
.ramp i:nth-child(1) { background: var(--bank-a); }
.ramp i:nth-child(2) { background: var(--bank-b); }
.ramp i:nth-child(3) { background: var(--bank-c); }
.ramp i:nth-child(4) { background: var(--bank-d); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 14px; height: 14px; flex: none; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  transition: opacity var(--t) var(--ease);
}

.store:hover { opacity: 0.86; }
.store svg { width: 17px; height: 17px; flex: none; fill: currentColor; }

.store .l1 {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.3;
  white-space: nowrap;
}

.store .l2 {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.store.big { padding: 11px 20px; }
.store.big svg { width: 19px; height: 19px; }
.store.big .l2 { font-size: 14.5px; }

/* on the green panel */
.store.inv { background: var(--on-green); color: var(--green); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}

.site-header.stuck { border-bottom-color: var(--hair); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand img { width: 26px; height: 26px; border-radius: 6px; }

/* one compact line in the bar; the full two-line badge belongs in the page */
.site-header .store { padding: 8px 14px; gap: 8px; }
.site-header .store .l1 { display: none; }
.site-header .store .l2 { font-size: 13px; }
.site-header .store svg { width: 15px; height: 15px; }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t) var(--ease);
}

.site-nav a:hover,
.site-nav a.active { color: var(--ink); }

.theme-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.theme-btn:hover { background: var(--paper-2); color: var(--ink); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .moon { display: none; }

:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ==========================================================================
   HERO — the editorial split
   ========================================================================== */

.hero { padding: 44px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

.hero-left {
  padding: 40px 44px 30px 0;
  border-right: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* the ramp sits on the foot rule, but only takes up slack that already exists */
.hero-left .ramp { margin-top: auto; }

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  margin: 14px 0 0;
}

.hero-left .lede { margin-top: 22px; font-size: 17.5px; max-width: 38ch; }

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-right {
  background: var(--green);
  color: var(--on-green);
  padding: 40px 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* the capsule and the CTA travel together on the foot */
.hero-cap-mount { margin-top: auto; }

.hero-right .num { color: var(--on-green-2); }

.hero-price {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-top: 10px;
}

.hero-right .sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-green-2);
  margin-top: 12px;
  max-width: 32ch;
}

.hero-cap-mount {
  display: flex;
  justify-content: flex-start;
  max-width: 100%;
}

.hero-facts {
  display: flex;
  gap: 0;
  border-top: 1.5px solid var(--rule);
  margin-top: -1.5px;
}

.hero-facts span {
  flex: 1;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--hair);
}

.hero-facts span:last-child { border-right: 0; }
.hero-facts span:not(:first-child) { padding-left: 16px; }

/* ==========================================================================
   THE SENTENCE — what the product does, said in one sentence
   ========================================================================== */

.sentence {
  padding: 104px 0;
  border-bottom: 1.5px solid var(--rule);
}

.sentence .big {
  font-size: clamp(1.7rem, 3.5vw, 3.05rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.032em;
  max-width: 26ch;
}

.sentence .strike {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--live);
  text-decoration-thickness: 3px;
  transition: color var(--t) var(--ease);
}

.sentence .hl {
  background: color-mix(in srgb, var(--bank-c) 42%, transparent);
  padding: 0 0.1em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sentence-foot {
  margin-top: 44px;
  display: flex;
  gap: 22px 30px;
  align-items: center;
  flex-wrap: wrap;
}

.sentence-foot .num { color: var(--ink-3); }

/* ==========================================================================
   THE CAPSULE — 360x52, never changes width between states
   ========================================================================== */

.minibar {
  width: 360px;
  height: 52px;
  border-radius: 26px;
  background: #16161a;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 0 15px;
  color: #f5f5f7;
  font-size: 13px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  flex: none;
}

.mb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7a797f;
  flex: none;
  transition: background var(--t) var(--ease);
}

.minibar[data-state="listening"] .mb-dot,
.minibar[data-state="processing"] .mb-dot { background: #ff5a34; }
.minibar[data-state="inserted"] .mb-dot { background: #45c07d; }

.mb-body {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.mb-rail {
  flex: 1;
  border-top: 1px dotted rgba(245, 245, 247, 0.26);
  height: 1px;
}

.mb-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
}

.mb-text.dim { color: #a3a2a8; }

.mb-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #a3a2a8;
  border: 1px solid rgba(245, 245, 247, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  flex: none;
}

.mb-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a3a2a8;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.mb-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  flex: none;
}

.mb-wave i {
  width: 2px;
  border-radius: 2px;
  background: #ff5a34;
  height: 18px;
  transform: scaleY(var(--h, 0.2));
  transform-origin: center;
  transition: transform 80ms linear;
}

.mb-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 90, 52, 0.3);
  border-top-color: #ff5a34;
  animation: spin 0.7s linear infinite;
  flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1.5px solid var(--rule);
}

.section:last-of-type { border-bottom: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin: 12px 0 16px;
}

/* ---------- the app rows ---------- */

.app-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-row {
  margin: 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--hair);
}

.app-row:nth-child(even) { grid-template-columns: 0.7fr 1.3fr; }
.app-row:nth-child(even) .frame { order: 2; }

.app-row .frame {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 24px;
  display: grid;
  place-items: center;
}

.app-row .frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
}

.app-row:first-child .frame img { width: auto; max-width: 300px; }

.app-row h3 { font-size: 21px; margin: 10px 0 10px; }

.app-row p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ---------- the run ---------- */

.run-top {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.run-top .section-head { margin-bottom: 0; }

.run-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.now .k {
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.now .v { color: var(--ink); min-width: 20ch; }

.step-scroll { overflow-x: auto; padding-bottom: 4px; }
.step-inner { min-width: 680px; }

.step-nums,
.step-row {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 5px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--ink-3);
  margin-bottom: 7px;
  transition: color var(--t) var(--ease);
}

.step-num.now { color: var(--ink); font-weight: 500; }

.step-key {
  position: relative;
  width: 100%;
  height: 78px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: block;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.step-key[data-bank="a"].armed { background: var(--bank-a); border-color: var(--bank-a); }
.step-key[data-bank="b"].armed { background: var(--bank-b); border-color: var(--bank-b); }
.step-key[data-bank="c"].armed { background: var(--bank-c); border-color: var(--bank-c); }
.step-key[data-bank="d"].armed { background: var(--bank-d); border-color: var(--bank-d); }

.step-key:hover { transform: translateY(-3px); }

.step-key.now::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2.5px var(--rule);
}

.bank-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.bank {
  border-top: 1.5px solid var(--rule);
  padding-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--t) var(--ease);
}

.bank.active { color: var(--ink); }

.state-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 40px;
  max-width: 660px;
}

.state-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--t) var(--ease);
}

.state-cell.active { color: var(--ink); }

.run-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 52px;
  align-items: start;
}

.target { border: 1.5px solid var(--rule); }

.target-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  background: var(--paper-2);
}

.target-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair);
}

.target-chrome span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 6px;
}

.target-text {
  padding: 20px 18px;
  min-height: 112px;
  font-size: 15.5px;
  line-height: 1.62;
}

.target-text .ghost { color: var(--ink-3); }

.target-text .caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--live);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.run-note h3 { font-size: 19px; margin-bottom: 12px; }

.run-note p {
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-2);
}

.run-note p + p { margin-top: 13px; }

/* ---------- patterns ---------- */

.patterns {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 48px;
  align-items: start;
}

.pattern-list { display: flex; flex-direction: column; }

.pattern-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.pattern-btn:hover { color: var(--ink); transform: translateX(6px); }

.pattern-btn[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  transform: translateX(6px);
  border-bottom-color: var(--rule);
}

.pattern-btn .idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  flex: none;
}

.pattern-btn[aria-selected="true"] .idx { color: var(--live); }

.pattern-btn .tail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pattern-out { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.pattern-cell h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.14em;
}

.pattern-cell .text { font-size: 16px; line-height: 1.62; }
.pattern-cell.raw .text { color: var(--ink-2); }

.pattern-cell .filler {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--live);
}

.pattern-cell .note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

.pattern-cell .out-anim { animation: pop var(--t) var(--ease); }

@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* ---------- specs ---------- */

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }

.spec { padding: 28px 0; border-top: 1px solid var(--hair); }

.spec h3 {
  font-size: 17px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.spec p { font-size: 15px; line-height: 1.64; color: var(--ink-2); }

/* ---------- signal flow ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: start;
}

.flow-diagram { overflow-x: auto; }

.flow-diagram svg {
  width: 100%;
  min-width: 420px;
  height: auto;
  display: block;
}

.flow-list li {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.flow-list li:first-child { padding-top: 0; }
.flow-list li:last-child { border-bottom: 0; }
.flow-list .dot { margin-top: 8px; }
.flow-list strong { color: var(--ink); font-weight: 700; }

/* ---------- comparison ---------- */

.table-scroll { overflow-x: auto; }

table.compare {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-size: 14px;
}

table.compare th,
table.compare td {
  padding: 16px 18px 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
  line-height: 1.55;
}

table.compare thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  border-bottom: 1.5px solid var(--rule);
  padding-bottom: 12px;
}

table.compare thead th.us { color: var(--ink); }

table.compare tbody th {
  font-weight: 500;
  color: var(--ink);
  min-width: 210px;
  padding-right: 28px;
}

table.compare td { color: var(--ink-2); }
table.compare td.us { color: var(--ink); font-weight: 600; }

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }

.mark { display: inline-flex; align-items: center; gap: 8px; }

.compare-note {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 92ch;
}

.compare-note a { color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.compare-note a:hover { color: var(--ink); }

/* ---------- price ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

.price-left {
  padding: 44px 44px 44px 0;
  border-right: 1.5px solid var(--rule);
}

.price-right {
  background: var(--green);
  color: var(--on-green);
  padding: 44px;
}

.price-right .num { color: var(--on-green-2); }

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 4px;
}

.price-figure .n {
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}

.price-figure .u {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.6;
}

.price-why {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 44ch;
}

.price-rows { margin-top: 14px; }

.price-rows li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(234, 242, 236, 0.18);
  font-size: 14px;
  color: var(--on-green-2);
}

.price-rows li:last-child { border-bottom: 0; }
.price-rows b { color: var(--on-green); font-weight: 700; text-align: right; }

.price-fine {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--on-green-2);
}

/* ---------- faq ---------- */

.faq { max-width: 800px; }

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  transition: color var(--t) var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }

.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  background: var(--ink-3);
  right: 8px;
  top: 50%;
}

.faq summary::after { width: 12px; height: 1.5px; transform: translateY(-50%); }

.faq summary::before {
  width: 1.5px;
  height: 12px;
  right: 13px;
  transform: translateY(-50%);
  transition: opacity var(--t) var(--ease);
}

.faq details[open] summary::before { opacity: 0; }

.faq .answer {
  padding: 0 20px 24px 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
}

.faq .answer p + p { margin-top: 12px; }

/* ---------- closer ---------- */

.closer {
  background: var(--green);
  color: var(--on-green);
  padding: 104px 0;
  text-align: center;
}

.closer h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }

.closer .lede {
  margin-inline: auto;
  color: var(--on-green-2);
  text-align: center;
}

.closer-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.closer .btn { border-color: var(--on-green); color: var(--on-green); }
.closer .btn:hover { background: var(--on-green); color: var(--green); }

/* ---------- footer ---------- */

.site-footer { padding: 30px 0; }

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- reveal ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .price-grid { grid-template-columns: 1fr; }
  .hero-left,
  .price-left {
    border-right: 0;
    border-bottom: 1.5px solid var(--rule);
    padding-right: 0;
  }
  .flow-grid,
  .run-out { grid-template-columns: 1fr; gap: 40px; }
  .app-row,
  .app-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .app-row:nth-child(even) .frame { order: 0; }
}

@media (max-width: 820px) {
  .patterns { grid-template-columns: 1fr; gap: 32px; }
  .specs { grid-template-columns: 1fr; gap: 0; }
  .state-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .hero-facts { flex-wrap: wrap; }
  .hero-facts span { flex: 1 0 44%; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .site-nav { display: none; }
  .hero { padding: 24px 0 0; }
  .hero-left { padding: 30px 0 28px; }
  .hero-right { padding: 30px 22px; }
  .section { padding: 64px 0; }
  .closer { padding: 76px 0; }
  .price-left { padding: 32px 0; }
  .price-right { padding: 32px 22px; }
  .pattern-out { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn,
  .hero-cta .store { width: 100%; }
  .run-controls { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .now .v { min-width: 0; }
  .sentence { padding: 68px 0; }
}

/* The capsule is specified at 360x52 and must not be reflowed, so on a narrow
   screen it scales as one object. */
@media (max-width: 470px) {
  .minibar {
    --s: 0.76;
    transform: scale(var(--s));
    transform-origin: left center;
    margin-right: calc(360px * var(--s) - 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
