/* ==========================================================================
   Cutvey Offload — cutveyoffload.com
   Design language: "instrument panel". Dark-first, near-black ink neutrals
   lifted straight from the app's Theme.swift, one purple accent, and the
   two slanted bars of the app mark used as the site's only ornament.
   Type: the native system faces the app itself runs on — SF Pro for chrome,
   SF Mono for numbers, paths, hashes and labels. Nothing is loaded from a
   third party: no webfonts, no scripts, no analytics, no external requests.
   ========================================================================== */

:root {
  /* Ink neutrals — Sources/CutveyOffload/Theme.swift */
  --ink-1000: #08080b;   /* page floor */
  --ink-950:  #0c0c10;   /* window background */
  --ink-900:  #131318;   /* panel fill */
  --ink-800:  #1b1b23;   /* raised panel fill */
  --line:     #26262f;   /* hairline borders */
  --line-soft:#1e1e26;

  /* Accent + status, same values the app draws with */
  --accent:      #6a4bf7;
  --accent-lift: #8e7bf9;
  --accent-deep: #4d24d6;
  --green:       #22c55e;
  --red:         #ef4444;
  --amber:       #f59e0b;
  --blue:        #3aa0ff;   /* verify accent */

  --text:       #f2f2f5;
  --text-dim:   #9a9aa6;
  --text-faint: #62626c;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --max: 1160px;
  --gut: 28px;
  --radius: 10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-dim);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: hidden;
}

/* A whisper of grain over everything, the way the parent site does it.
   Inline data URI — nothing is fetched. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent-lift); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- layout */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gut); }

.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 5.5vw, 4.15rem);
  letter-spacing: -0.038em;
  line-height: 1.0;
  font-weight: 700;
}
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -0.032em; line-height: 1.04; }
.h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.18; }
.h4 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

strong, b { color: var(--text); font-weight: 600; }
em { font-style: italic; }

.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.on { color: var(--text); }
.tabular { font-variant-numeric: tabular-nums; }

/* The eyebrow: mono, tracked out, prefixed by the app mark's slanted bar. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 17px;
  border-radius: 4px;
  background: var(--accent);
  transform: skewX(-12deg);
  flex: none;
}
.eyebrow .idx { color: var(--accent-lift); }

code, kbd, samp, pre { font-family: var(--mono); }

:not(pre) > code {
  font-size: 0.86em;
  color: var(--text);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  /* Short tokens stay on one line; only a string that would otherwise
     overflow the viewport is allowed to break. */
  white-space: normal;
  overflow-wrap: anywhere;
}

pre {
  background: var(--ink-1000);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.7;
  color: #c9c9d4;
  -webkit-overflow-scrolling: touch;
}
pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; color: inherit; }
pre .c { color: var(--text-faint); }        /* comment */
pre .s { color: #9ad6a0; }                  /* string  */
pre .k { color: var(--accent-lift); }       /* keyword */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-lift); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a3a48; background: var(--ink-800); transform: translateY(-1px); }
.btn-sm { padding: 10px 15px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--ink-800);
  color: var(--text-faint);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* On a very narrow phone a two-word label is wider than the gutter allows,
   so labels wrap rather than push the page sideways. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 15px 18px; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.textlink:hover { text-decoration: none; border-bottom-color: var(--accent); color: var(--accent-lift); }
.textlink::after { content: "→"; transition: transform .18s var(--ease); }
.textlink:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .textlink:hover::after { transform: none; } }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(12, 12, 16, 0.82);
  border-bottom: 1px solid var(--line-soft);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
  padding-top: 1px;
}
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 7px;
}
.nav a:hover { color: var(--text); background: var(--ink-800); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-cta .signin { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; padding: 8px 4px; }
.header-cta .signin:hover { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; }

/* With JS on, the mobile nav collapses. With JS off it simply stays open,
   so every link is reachable without scripting. */
@media (max-width: 900px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 2px; }
  .nav a { padding: 9px 10px; }
  .header-cta { margin-left: auto; }
  .header-cta .signin { display: none; }

  .js .nav {
    display: none;
    border-top: 1px solid var(--line-soft);
    padding-top: 10px;
    flex-direction: column;
  }
  .js .nav.open { display: flex; }
  .js .header-cta .signin { display: block; }
  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px; height: 38px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    order: 2;
  }
  .js .nav-toggle span { display: block; height: 1.5px; background: var(--text-dim); border-radius: 2px; }
  .js .header-cta { order: 3; margin-left: 10px; }
}
@media (max-width: 520px) {
  .brand .sub { display: none; }
  .js .header-cta .signin { display: none; }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-62%);
  background: radial-gradient(ellipse at center, rgba(106, 75, 247, 0.22), rgba(106, 75, 247, 0) 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 52px; align-items: center; }
}
@media (min-width: 1240px) {
  .hero-grid { gap: 64px; }
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 18px; }

.hero-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(106, 75, 247, 0.08);
  border: 1px solid rgba(106, 75, 247, 0.32);
  border-radius: 100px;
  padding: 7px 15px 7px 12px;
  margin-bottom: 26px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
  flex: none;
}

/* ---------------------------------------- the hero instrument (artwork) */

.instrument {
  position: relative;
  background: linear-gradient(180deg, var(--ink-900), #0e0e13);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
  container-type: inline-size;
}

.inst-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.inst-lights { display: flex; gap: 6px; }
.inst-lights i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a33; display: block; }
.inst-title { color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 9.5px; }
.inst-chip {
  margin-left: auto;
  color: var(--accent-lift);
  border: 1px solid rgba(106, 75, 247, 0.4);
  background: rgba(106, 75, 247, 0.1);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.inst-cols {
  display: grid;
  grid-template-columns: 0.82fr 1.36fr 0.82fr;
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line);
}
.inst-col { background: #0e0e13; padding: 13px 12px 15px; min-width: 0; }
.inst-col.zone { background: #101016; }
.col-head {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}
.col-head b { color: var(--text-dim); font-weight: 600; }

/* drop zones */
.dropzone {
  border: 1px dashed #2f2f3a;
  border-radius: 9px;
  padding: 9px;
  display: grid;
  gap: 8px;
  align-content: start;   /* cards sit at the top; the rest reads as free zone */
  min-height: 100%;
}
.dropzone.src { border-color: rgba(106, 75, 247, 0.45); background: rgba(106, 75, 247, 0.05); }
.dropzone.dst { border-color: rgba(58, 160, 255, 0.38); background: rgba(58, 160, 255, 0.045); }

.disk {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
}
.disk .g { flex: none; }
.disk .nm { color: var(--text); font-size: 10.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk .mt { color: var(--text-faint); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk .col { min-width: 0; display: block; overflow: hidden; }

/* the live volume grid */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vol {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  min-width: 0;
}
.vol .row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vol .nm { color: var(--text); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol .cap { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-faint); margin-top: 6px; }
.vol.assigned-s { border-color: rgba(106, 75, 247, 0.5); box-shadow: 0 0 0 1px rgba(106, 75, 247, 0.16); }
.vol.assigned-d { border-color: rgba(58, 160, 255, 0.45); box-shadow: 0 0 0 1px rgba(58, 160, 255, 0.14); }
.vol .tag {
  margin-left: auto; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 4px; padding: 1px 5px; flex: none;
}
.vol .tag.s { color: var(--accent-lift); background: rgba(106, 75, 247, 0.14); }
.vol .tag.d { color: var(--blue); background: rgba(58, 160, 255, 0.12); }

.meter { height: 4px; border-radius: 3px; background: #26262f; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--text-faint); }
.meter i.acc { background: linear-gradient(90deg, var(--accent-deep), var(--accent-lift)); }
.meter i.blue { background: linear-gradient(90deg, #1d6fbd, var(--blue)); }
.meter i.grn { background: linear-gradient(90deg, #15803d, var(--green)); }

/* transfer rows */
.inst-transfers { padding: 12px 14px 14px; }
.xfer { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.xfer:first-of-type { border-top: 0; }
.xfer .r1 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.xfer .from { color: var(--text); font-size: 10.5px; }
.xfer .arrow { color: var(--text-faint); }
.xfer .to { color: var(--text-dim); font-size: 10.5px; }
.xfer .phase {
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 4px; padding: 1px 6px;
}
.phase.copy { color: var(--accent-lift); background: rgba(106, 75, 247, 0.14); }
.phase.verify { color: var(--blue); background: rgba(58, 160, 255, 0.13); }
.phase.done { color: var(--green); background: rgba(34, 197, 94, 0.13); }
.xfer .r2 { display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; color: var(--text-faint); margin-top: 6px; }
.xfer .r2 .num { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.inst-foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 9.5px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.012);
  flex-wrap: wrap;
}
.inst-foot .ok { color: var(--green); }
.inst-foot .sp { margin-left: auto; }

.artwork-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
}

/* The three columns ARE the idea, so they hold as long as they possibly can.
   The volume grid gives up its second column first; only genuinely narrow
   containers fall back to a stack. */
@container (max-width: 640px) {
  .inst-cols { grid-template-columns: 0.9fr 1.25fr 0.9fr; }
  .vgrid { grid-template-columns: 1fr; }
  .inst-col { padding: 11px 9px 13px; }
  .disk .mt, .vol .cap { font-size: 8.5px; }
}
@container (max-width: 400px) {
  .inst-cols { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
}

/* live motion inside the instrument */
.meter i.anim { animation: fill 9s var(--ease) infinite; }
.meter i.anim.d2 { animation-duration: 11s; animation-delay: -3s; }
@keyframes fill {
  0%   { width: 6%; }
  62%  { width: 88%; }
  76%  { width: 100%; }
  100% { width: 100%; }
}
.blink { animation: blink 2.4s steps(1, end) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }

/* -------------------------------------------------- the triptych (jobs) */

.triptych {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) { .triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.job { background: var(--ink-950); padding: clamp(26px, 3.4vw, 40px); position: relative; }
.job .n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 20px;
  display: block;
}
.job h3 { margin-bottom: 12px; }
.job p { font-size: 0.97rem; }
.job .was {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.job .was b { color: var(--text-dim); font-weight: 500; }
.job::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(26px, 3.4vw, 40px);
  width: 26px; height: 3px;
  background: var(--accent);
  transform: skewX(-32deg);
}
.job:nth-child(2)::before { background: var(--blue); }
.job:nth-child(3)::before { background: var(--green); }

/* -------------------------------------------------------- the ledger */

.ledger { border-top: 1px solid var(--line); }
.ledger li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 760px) {
  .ledger li { grid-template-columns: 46px minmax(0, 20ch) minmax(0, 1fr); gap: 26px; align-items: baseline; }
}
.ledger .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  padding-top: 4px;
}
.ledger .t { color: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.ledger .d { font-size: 0.97rem; }

/* ------------------------------------------------------------- panels */

.panel {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 38px);
}
.panel-flat { background: transparent; }

/* Every grid column is minmax(0, …) and every grid child gets min-width: 0.
   Without this, a grid item's automatic minimum size is its content, so one
   long unbreakable line in a <pre> or a table widens the whole column past
   the viewport instead of scrolling inside its own box. */
.grid-2 { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grid-2-wide { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .grid-2-wide { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); } }
.grid-3 { display: grid; gap: clamp(20px, 2.6vw, 30px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.grid-2 > *, .grid-2-wide > *, .grid-3 > *,
.triptych > *, .chain-track > *, .price-grid > *,
.hero-grid > *, .facts > *, .footer-grid > * { min-width: 0; }

.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }

.section-head { max-width: 68ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { margin-bottom: 18px; }

/* ------------------------------------------------------- pull statement */

.pull {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px clamp(22px, 3vw, 34px);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.36;
  letter-spacing: -0.022em;
  color: var(--text);
  font-weight: 500;
  text-wrap: pretty;
}
.pull code { font-size: 0.82em; }
.pull .after {
  display: block;
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}

/* --------------------------------------------------------- spec tables */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.tablewrap table { min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--ink-900);
  border-bottom-color: var(--line);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.014); }
td .m, th .m { font-family: var(--mono); }
td strong { color: var(--text); }
.t-mono td:first-child, .t-mono th:first-child { font-family: var(--mono); font-size: 0.82rem; color: var(--text); white-space: nowrap; }

/* ---------------------------------------------------------- the chain */

.chain { position: relative; }
.chain-track {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .chain-track { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.step {
  background: var(--ink-900);
  padding: 22px 18px 24px;
  position: relative;
  min-height: 100%;
}
.step .n {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 14px;
}
.step .t { color: var(--text-dim); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.012em; margin-bottom: 7px; transition: color .4s var(--ease); }
.step .d { font-size: 0.83rem; line-height: 1.5; color: var(--text-faint); }
.step .led {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.js .chain-track .step .led { animation: sweep 13s linear infinite; }
.js .chain-track .step .t { animation: lit 13s linear infinite; }
.chain-track .step:nth-child(1) .led, .chain-track .step:nth-child(1) .t { animation-delay: 0s; }
.chain-track .step:nth-child(2) .led, .chain-track .step:nth-child(2) .t { animation-delay: 2.1s; }
.chain-track .step:nth-child(3) .led, .chain-track .step:nth-child(3) .t { animation-delay: 4.2s; }
.chain-track .step:nth-child(4) .led, .chain-track .step:nth-child(4) .t { animation-delay: 6.3s; }
.chain-track .step:nth-child(5) .led, .chain-track .step:nth-child(5) .t { animation-delay: 8.4s; }
.chain-track .step:nth-child(6) .led, .chain-track .step:nth-child(6) .t { animation-delay: 10.5s; }
.chain-track .step:nth-child(4) .led { background: var(--blue); }
.chain-track .step:nth-child(6) .led { background: var(--green); }

@keyframes sweep {
  0%    { transform: scaleX(0); opacity: 1; }
  13%   { transform: scaleX(1); opacity: 1; }
  76%   { transform: scaleX(1); opacity: 1; }
  86%   { transform: scaleX(1); opacity: 0; }
  100%  { transform: scaleX(1); opacity: 0; }
}
@keyframes lit {
  0%   { color: var(--text-dim); }
  10%  { color: var(--text); }
  76%  { color: var(--text); }
  90%  { color: var(--text-dim); }
  100% { color: var(--text-dim); }
}

.chain-tail {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------------------------------------------------------- fact strip */

.facts {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--ink-950); padding: 26px clamp(18px, 2.4vw, 28px); }
.fact .v {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
.fact .l { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* -------------------------------------------------------------- notes */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: rgba(245, 158, 11, 0.045);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.93rem;
}
.note.info { border-left-color: var(--blue); background: rgba(58, 160, 255, 0.045); }
.note.good { border-left-color: var(--green); background: rgba(34, 197, 94, 0.04); }
.note h4 { margin-bottom: 6px; font-size: 0.95rem; }

/* --------------------------------------------------------- FAQ / prose */

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 46px 0 14px; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.12rem; margin: 32px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 15px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--text-faint); }
.prose hr { margin: 40px 0; }
.prose table { margin-bottom: 20px; }
.prose blockquote {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin: 0 0 18px;
  color: var(--text-dim);
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0125rem;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-faint);
}
.faq details[open] summary::after { content: "−"; color: var(--accent-lift); }
.faq summary:hover { color: var(--accent-lift); }
.faq .a { padding: 0 0 22px; font-size: 0.97rem; max-width: 72ch; }
.faq .a p + p { margin-top: 12px; }

/* ------------------------------------------------------------ pricing */

.price-grid { display: grid; gap: 20px; }
@media (min-width: 880px) { .price-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; } }

.plan {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.2vw, 38px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: rgba(106, 75, 247, 0.55);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(106, 75, 247, 0.11), rgba(106, 75, 247, 0) 62%),
    var(--ink-900);
}
.plan .tagline { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-lift); margin-bottom: 16px; }
.plan .tagline.alt { color: var(--text-faint); }
.plan h3 { margin-bottom: 10px; }
.plan .amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 6px;
}
.plan .amount .n { font-size: clamp(2.4rem, 4.4vw, 3.2rem); font-weight: 700; color: var(--text); letter-spacing: -0.045em; line-height: 1; }
.plan .amount .u { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.05em; }
.plan .under { font-size: 0.9rem; margin-bottom: 24px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan .seats { border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 20px; }

.checklist { list-style: none; margin: 0 0 26px; }
/* The marker is absolutely positioned rather than a flex sibling: inline
   <code> and <strong> inside a flex list item would each become their own
   flex item on a nowrap line and overflow the box on a narrow screen. */
.checklist li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 0.94rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 14px;
  border-radius: 3px;
  background: var(--accent);
  transform: skewX(-12deg);
  opacity: 0.85;
}
.checklist.neutral li::before { background: var(--text-faint); opacity: 0.7; }

.seat-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.seat-row:last-child { border-bottom: 0; }
.seat-row .m { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; }
.seat-row b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------- CTA block */

.cta {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 8% 0%, rgba(106, 75, 247, 0.16), rgba(106, 75, 247, 0) 60%),
    var(--ink-900);
}
.cta .h2 { margin-bottom: 16px; }
.cta .lede { margin-bottom: 28px; }

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-1000);
  padding: 56px 0 34px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 40ch; color: var(--text-faint); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-bottom .sp { margin-left: auto; }

/* ------------------------------------------------------------ reveals */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .meter i.anim, .blink,
  .js .chain-track .step .led, .js .chain-track .step .t { animation: none !important; }
  .js .chain-track .step .led { transform: scaleX(1); opacity: 0.55; }
  .js .chain-track .step .t { color: var(--text); }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------ named features ---- */
/* Features in this app have names. They are set as objects, not prose. */
.fname {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(106, 75, 247, 0.11);
  border: 1px solid rgba(106, 75, 247, 0.28);
  border-radius: 5px;
  padding: 0.12em 0.42em;
  white-space: nowrap;
}

/* ------------------------------------------------ the artifact ------ */
/* A rendering of what the app actually leaves behind: the manifest.
   Original typographic artwork, not a screenshot of anything. */
.artifact {
  background: var(--ink-1000);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  overflow: hidden;
  container-type: inline-size;
}
.artifact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-900);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.artifact-head .path { color: var(--text-dim); letter-spacing: 0.04em; text-transform: none; font-size: 10.5px; }
.artifact-head .st { margin-left: auto; color: var(--green); letter-spacing: 0.12em; }
.artifact-body { padding: 12px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.arow {
  display: grid;
  grid-template-columns: 15px minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 3px 0;
  min-width: 400px;
  white-space: nowrap;
}
.arow .tick { color: var(--green); }
.arow .fn { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.arow .hx { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.arow.head { color: var(--text-faint); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.arow.head .fn, .arow.head .hx { color: var(--text-faint); }
.artifact-foot {
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 10px;
  color: var(--text-faint);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.artifact-foot .ok { color: var(--green); }

/* ------------------------------------------------ download switch --- */
/* The whole download area is gated by ONE attribute on .dl:
   data-state="pending"  → button disabled, "available shortly" copy
   data-state="live"     → real download button + first-launch instructions
   Nothing else has to change to ship the DMG. Works with JS disabled. */
.dl[data-state="pending"] .dl-live { display: none; }
.dl[data-state="live"] .dl-pending { display: none; }

.dl-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 130% at 6% 0%, rgba(106, 75, 247, 0.13), rgba(106, 75, 247, 0) 58%),
    var(--ink-900);
  padding: clamp(26px, 3.6vw, 42px);
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--text-faint);
}

/* numbered first-launch steps */
.steps { list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 46px;
  font-size: 0.95rem;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-lift);
  border: 1px solid rgba(106, 75, 247, 0.3);
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1;
}
.steps li:last-child { padding-bottom: 0; }

/* --------------------------------------------------------- anchors -- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}
.anchor-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  background: var(--ink-900);
}
.anchor-nav a:hover { color: var(--text); border-color: #3a3a48; text-decoration: none; }

[id] { scroll-margin-top: 86px; }

/* ------------------------------------------------------------- utils */

.mono { font-family: var(--mono); }
.small { font-size: 0.88rem; }
.xs { font-size: 0.8rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
