/* /growth-engine. The server HTML is the finished page: the plan radios light the lamps
   through :has() with no script. .sb-live and .sb-moving add on top of it. */

@layer components {
.sb-page {
  --sb-soft: var(--ink-2);
  --sb-ring: var(--sb-blue);
  --sb-gut: clamp(16px, 2.8vw, 40px);
  --sb-pad: max(var(--sb-gut), calc((100% - 1520px) / 2));
  --sb-gap: clamp(88px, 11vw, 160px);
  --sb-out: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  overflow-x: clip;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.sb-page :focus-visible { outline: 3px solid var(--sb-ring); outline-offset: 3px; }
.sb-page h1, .sb-page h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.sb-page h2 { font-size: clamp(36px, 5vw, 72px); max-width: 15em; }
.sb-page h3 { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.sb-page figure { margin: 0; }
.sb-page figcaption { font-size: 15px; line-height: 1.35; margin-top: 10px; color: var(--sb-soft); max-width: 40em; }
.sb-section { padding: var(--sb-gap) var(--sb-pad); scroll-margin-top: var(--nav-height); }
.sb-band { background: var(--paper-2); }
.sb-frame { overflow: hidden; border-radius: var(--radius-family); }
.sb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-lede { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.34; max-width: 30em; margin-top: 28px; text-wrap: pretty; }
.sb-link { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; font-weight: 600; transition: text-underline-offset .2s var(--sb-out); }
.sb-link:hover { text-underline-offset: .36em; }
.sb-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.sb-two.sb-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sb-sticky { position: sticky; top: calc(var(--nav-height) + 24px); }

.sb-bulb { position: relative; display: block; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--sb-off); transition: background-color .3s ease; }
.sb-bulb::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: transparent; transition: background-color .3s ease; }
.sb-bulb.is-lit { background: var(--sb-amber); }
.sb-bulb.is-lit::after { background: var(--sb-amber-core); }
.sb-bulb.is-caged { background: var(--sb-mint); }
.sb-bulb.is-caged::after { background: var(--sb-cagebulb); inset: 28%; }
.sb-hole { position: relative; display: block; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--sb-hole); border: 2px solid var(--sb-hole-ring); }
.sb-hole::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sb-hole-dot); }

.sb-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; padding: clamp(32px, 4vw, 64px) var(--sb-pad) 0; }
.sb-hero h1 { font-size: clamp(52px, 6.4vw, 104px); letter-spacing: -.045em; line-height: .92; }
.sb-lead { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.36; margin-top: 32px; max-width: 26em; text-wrap: pretty; }
.sb-hero-text { position: sticky; top: calc(var(--nav-height) + 32px); }
.sb-hero-form { margin-top: 32px; max-width: 560px; }
.sb-key { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16px; }
.sb-key li { display: flex; align-items: center; gap: 14px; }
.sb-key .sb-bulb, .sb-key .sb-hole { width: 26px; height: 26px; }

.sb-board { container-type: inline-size; display: grid; gap: 22px; padding: clamp(18px, 2.2vw, 32px); background: var(--sb-face); color: var(--sb-paper0); border-radius: var(--radius-family); --sb-ring: var(--sb-amber); }
.sb-levers { margin: 0; padding: 0; border: 0; min-width: 0; }
.sb-levers legend { margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; }
.sb-lever-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sb-lever { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px 10px 12px; background: var(--sb-face-2); border-radius: var(--radius-family); cursor: pointer; font-weight: 700; transition: background-color .2s ease, transform .2s var(--sb-out); }
.sb-lever:hover { background: var(--sb-face-3); }
.sb-lever:active { transform: scale(.97); }
.sb-lever input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sb-toggle { position: relative; flex: none; width: 18px; height: 34px; background: var(--sb-hole); border-radius: 4px; }
.sb-toggle::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 14px; background: var(--sb-toggle); border-radius: 3px; transition: transform .35s var(--sb-out), background-color .2s ease; }
.sb-lever input:checked ~ .sb-toggle::after { transform: translateY(-14px); background: var(--sb-amber); }
.sb-lever input:checked ~ .sb-lt { color: var(--sb-amber); }
.sb-lever input:focus-visible ~ .sb-toggle { outline: 3px solid var(--sb-amber); outline-offset: 3px; }
.sb-lt b { display: block; font-weight: 500; color: var(--sb-mute); white-space: nowrap; }
.sb-hint { margin: -6px 0 0; font-size: 15px; color: var(--sb-mute); }

.sb-zone { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sb-plate { justify-self: start; margin: 0; padding: 7px 10px; background: var(--sb-plate); color: var(--sb-ink0); font-size: 15px; font-weight: 700; line-height: 1; border-radius: var(--radius-family); }
.sb-lamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 880px) { .sb-lamps { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.sb-lamp { position: relative; appearance: none; display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; min-height: 104px; padding: 14px 4px 12px; border: 0; background: var(--sb-face-2); color: var(--sb-lamp-ink); font: 600 15px/1.15 var(--font-display); text-align: center; border-radius: var(--radius-family); cursor: pointer; transition: background-color .2s ease, transform .2s var(--sb-out); }
.sb-lamp:hover { background: var(--sb-face-3); }
.sb-lamp:active { transform: scale(.95); }
.sb-lamp[aria-pressed="true"] { background: var(--sb-lamp-on); }
/* The pressed lamp's bar is drawn, not a shadow. */
.sb-lamp[aria-pressed="true"]::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--sb-amber); border-radius: 0 0 var(--radius-family) var(--radius-family); }
.sb-lamp[aria-pressed="true"] .sb-nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sb-nm { overflow-wrap: break-word; }
.sb-lamp.is-on .sb-bulb,
.sb-board:has(#sb-plan-free:checked) .sb-lamp[data-free] .sb-bulb,
.sb-board:has(#sb-plan-hobby:checked) .sb-lamp[data-hobby] .sb-bulb,
.sb-board:has(#sb-plan-pro:checked) .sb-lamp[data-pro] .sb-bulb { background: var(--sb-amber); }
.sb-lamp.is-on .sb-bulb::after,
.sb-board:has(#sb-plan-free:checked) .sb-lamp[data-free] .sb-bulb::after,
.sb-board:has(#sb-plan-hobby:checked) .sb-lamp[data-hobby] .sb-bulb::after,
.sb-board:has(#sb-plan-pro:checked) .sb-lamp[data-pro] .sb-bulb::after { background: var(--sb-amber-core); }

.sb-tally { margin: 0; font-size: 15px; font-weight: 600; color: var(--sb-lamp-ink); }
.sb-tally span { display: none; }
.sb-board:has(#sb-plan-free:checked) .sb-tally [data-for="free"],
.sb-board:has(#sb-plan-hobby:checked) .sb-tally [data-for="hobby"],
.sb-board:has(#sb-plan-pro:checked) .sb-tally [data-for="pro"] { display: inline; }

.sb-lower { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 14px; }
.sb-cage { position: relative; overflow: hidden; padding: 14px 14px 58px; background: var(--sb-face-2); border-radius: var(--radius-family); }
.sb-wires { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 5; }
.sb-wires path:nth-child(1) { stroke: var(--sb-teal); }
.sb-wires path:nth-child(2) { stroke: var(--sb-rust); }
.sb-wires path:nth-child(3) { stroke: var(--sb-amber); }
.sb-wires path:nth-child(4) { stroke: var(--sb-blue); }
.sb-cage .sb-lamps { position: relative; z-index: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-cage .sb-lamp { background: transparent; color: var(--sb-ink0); transition: color .4s ease, background-color .2s ease; }
.sb-cage:has(.sb-cover.is-waiting) .sb-lamp { color: var(--sb-lamp-ink); }
.sb-cage .sb-lamp:hover { background: var(--sb-wash-1); }
.sb-cage .sb-lamp[aria-pressed="true"] { background: var(--sb-wash-2); }
.sb-cage .sb-lamp[aria-pressed="true"]::before { background: var(--sb-rust); }
.sb-cage .sb-bulb { background: var(--sb-cagebulb); }
.sb-cage .sb-bulb::after { background: var(--sb-cagebulb-dot); inset: 36%; }
.sb-cover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 14px; background: var(--sb-cover); color: var(--sb-ink0); pointer-events: none; transform-origin: top center; }
.sb-cover b { font-size: 15px; line-height: 1.2; }
.sb-cover svg { flex: none; width: 30px; height: 38px; }
.sb-sockets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; background: var(--sb-face-2); border-radius: var(--radius-family); }
.sb-sockets .sb-lamp { min-height: 0; background: transparent; color: var(--sb-mute); }
.sb-sockets .sb-lamp:hover { background: var(--sb-face-3); }

.sb-readout { display: grid; gap: 6px; align-content: start; min-height: 120px; padding: 16px 18px; background: var(--sb-hole); border-radius: var(--radius-family); }
.sb-readout p { margin: 0; }
.sb-rt { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.02em; color: var(--sb-amber); }
.sb-rd { color: var(--sb-paper0); }
.sb-rp { font-size: 15px; font-weight: 600; color: var(--sb-mint); }

.sb-live-t { width: 100%; margin-top: 48px; border-collapse: collapse; }
.sb-live-t th, .sb-live-t td { padding: 18px 14px; text-align: left; vertical-align: top; }
.sb-live-t tbody tr:nth-child(odd) { background: var(--paper-2); }
.sb-live-t tbody tr:nth-child(odd) > :first-child { border-radius: var(--radius-family) 0 0 var(--radius-family); }
.sb-live-t tbody tr:nth-child(odd) > :last-child { border-radius: 0 var(--radius-family) var(--radius-family) 0; }
.sb-live-t thead th { padding-block: 0 12px; font-size: 15px; font-weight: 700; }
.sb-live-t tbody th { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.sb-lp { width: 58px; }
.sb-lp .sb-bulb { width: 30px; height: 30px; }
.sb-pl { font-weight: 700; white-space: nowrap; }
.sb-check { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 36px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; }
.sb-check .tg-btn { min-height: 48px; }
.sb-drift img { transform: scale(1.02); }

.sb-dark { --sb-soft: var(--band-ink-2); --sb-ring: var(--sb-paper0); background: var(--band); color: var(--band-ink); }
.sb-built-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.sb-built-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.sb-bigcage { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 36px); background: var(--sb-face); border-radius: var(--radius-family); }
.sb-bigcage .sb-wires { stroke-width: 7; }
.sb-bigcage ul { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.sb-bigcage li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 20px; background: var(--sb-cover-2); color: var(--sb-ink0); border-radius: var(--radius-family); }
.sb-bigcage li .sb-bulb { grid-row: span 2; width: 44px; height: 44px; background: var(--sb-cagebulb); }
.sb-bigcage li .sb-bulb::after { background: var(--sb-cagebulb-dot); inset: 36%; }
.sb-bigcage li p { margin: 0; }
/* A plate on the cage: the wires run behind the words, never through them. */
.sb-lockline { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 24px 0 0; padding: 10px 18px 10px 14px; background: var(--sb-face); border-radius: var(--radius-family); font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; color: var(--sb-mint); }
.sb-lockline svg { flex: none; width: 34px; height: 42px; }

.sb-slip { position: relative; margin-top: 28px; padding: 56px 26px 28px; background: var(--sb-paper0); color: var(--sb-ink0); border-radius: var(--radius-family); transform: rotate(-1.6deg); --sb-ring: var(--sb-blue); }
.sb-clip { position: absolute; top: -30px; left: 50%; width: 64px; height: 76px; margin-left: -32px; }
.sb-slip > p { margin: 12px 0 0; }
.sb-fine { font-size: 15px; color: var(--sb-fine); }

.sb-sock-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 48px 0 0; padding: 0; list-style: none; }
.sb-sock-row li { display: grid; gap: 14px; align-content: start; }
.sb-sock-row .sb-hole { width: 72px; height: 72px; }
.sb-sock-row p { margin: 0; }

.sb-bleed { margin: 0; }
.sb-bleed-pic { height: clamp(320px, 52vw, 760px); overflow: hidden; }
.sb-bleed-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sb-bleed figcaption { padding-inline: var(--sb-pad); }

.sb-plans { display: grid; gap: 10px; margin: 48px 0 0; padding: 0; list-style: none; }
.sb-plans li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 4fr); gap: 24px; align-items: center; padding: 22px 26px; background: var(--paper-2); border-radius: var(--radius-family); }
.sb-page .sb-plans h3 { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.035em; }
.sb-price { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-minis { display: flex; flex-wrap: nowrap; gap: 6px; }
.sb-minis i { position: relative; display: block; flex: none; width: clamp(14px, 1.4vw, 20px); height: clamp(14px, 1.4vw, 20px); border-radius: 50%; background: var(--rule-strong); }
.sb-minis i.is-lit { background: var(--sb-amber); }
.sb-minis i.is-caged { background: var(--sb-mint); }
.sb-minis i.is-caged::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--sb-cagebulb); }
.sb-plans p { margin: 0; }
.sb-plan-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; font-size: clamp(19px, 1.6vw, 24px); }
.sb-plan-note .sb-link { display: inline-flex; align-items: center; min-height: 44px; }

.sb-end { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(64px, 7vw, 112px) var(--sb-pad); }
.sb-end-pic { aspect-ratio: 4 / 3; }
.sb-end-pic img { object-position: 50% 70%; }
.sb-page .sb-end h2 { font-size: clamp(28px, 3vw, 44px); }
.sb-credits { margin: 20px 0 0; max-width: 60em; font-size: 15px; line-height: 1.55; color: var(--sb-soft); }
.sb-credits a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .sb-hero, .sb-two, .sb-two.sb-flip, .sb-built-head, .sb-built-grid, .sb-end { grid-template-columns: minmax(0, 1fr); }
  .sb-sticky { position: static; }
  .sb-two.sb-flip > figure { order: 2; }
  .sb-bigcage ul { grid-template-columns: minmax(0, 1fr); }
  .sb-slip { transform: rotate(-1deg); margin-inline: 6px; }
  .sb-plans li { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; padding: 20px; }
  .sb-plans .sb-minis, .sb-plans p { grid-column: 1 / -1; }
  .sb-end-pic { max-width: 520px; }
  .sb-hero-text { position: static; }
}
@media (max-width: 760px) {
  .sb-lower { grid-template-columns: minmax(0, 1fr); }
  .sb-lamp { min-height: 96px; padding-inline: 2px; }
  .sb-bulb, .sb-hole { width: 32px; height: 32px; }
  .sb-live-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sb-live-t tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px 12px; border-radius: var(--radius-family); }
  .sb-live-t th, .sb-live-t td { padding: 0; }
  .sb-live-t tbody tr:nth-child(odd) > :first-child, .sb-live-t tbody tr:nth-child(odd) > :last-child { border-radius: 0; }
  .sb-live-t td.sb-lp { grid-row: span 3; width: auto; }
  .sb-live-t tbody th { white-space: normal; }
  .sb-sock-row { grid-template-columns: minmax(0, 1fr); }
  .sb-sock-row li { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .sb-sock-row li p { grid-column: 1 / -1; }
  .sb-sock-row .sb-hole { width: 52px; height: 52px; }
  .sb-minis { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .sb-lever-row { grid-template-columns: minmax(0, 1fr); }
  .sb-lever { min-height: 48px; }
  .sb-lamps, .sb-cage .sb-lamps, .sb-sockets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-lamp { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 52px; padding: 8px 10px; text-align: left; }
  .sb-bulb, .sb-hole { width: 26px; height: 26px; }
  .sb-cage { padding-bottom: 54px; }
  .sb-board { padding: 14px; gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .sb-moving .sb-drift img { animation: sb-drift 26s ease-in-out 1 forwards; }
  .sb-moving .sb-lamp.is-flick .sb-bulb { animation: sb-flick .5s var(--sb-out); }
  .sb-moving .sb-board.is-booting .sb-lamps .sb-bulb { animation: sb-flick .6s var(--sb-out) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .sb-moving .sb-readout.is-swap > * { animation: sb-rise .45s var(--sb-out) both; }
  .sb-moving .sb-readout.is-swap .sb-rd { animation-delay: .05s; }
  .sb-moving .sb-readout.is-swap .sb-rp { animation-delay: .1s; }
  .sb-moving .sb-cover.is-waiting { transform: translateY(-100%); }
  .sb-moving .sb-cover { transition: transform 1.1s var(--sb-out); }
  .sb-moving .sb-slip.is-filed { animation: sb-file .6s var(--sb-out); }
}
@keyframes sb-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1%); } }
@keyframes sb-flick { 0% { transform: scale(.7); opacity: .3; } 40% { opacity: 1; } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes sb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sb-file { 40% { transform: rotate(1deg) translateY(-6px); } 100% { transform: rotate(-1.6deg); } }
}

/* Unlayered, so it beats the small utility classes on the shared waitlist form. */
.sb-slip form { margin-top: 18px; max-width: none; }
.sb-slip legend, .sb-slip label { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--sb-ink0); }
.sb-slip label { border-radius: var(--radius-family); border-color: var(--sb-toggle); background: var(--sb-white); }
.sb-slip input[type="email"] { min-height: 48px; border: 2px solid var(--sb-ink0); border-radius: var(--radius-family); background: var(--sb-white); color: var(--sb-ink0); font-size: 16px; }
.sb-slip input[type="email"]::placeholder { color: var(--sb-placeholder); }
.sb-slip input[type="submit"] { min-height: 48px; border-radius: var(--radius-family); background: var(--sb-teal); color: var(--sb-white); font-size: 16px; }
.sb-slip input[type="submit"]:hover { background: var(--sb-rust); }
.sb-slip [id$="-error"], .sb-slip p { color: var(--sb-ink0); }
@media (max-width: 520px) { .sb-slip form > .flex { flex-wrap: wrap; } .sb-slip input[type="email"] { flex-basis: 100%; } }
.sb-faq .tg-faq-row { background: var(--panel); }
