/*
 * The commercial site's own stylesheet.
 *
 * Deliberately not shared with apps/web. That one is a tool used by somebody
 * standing in a garage with a phone in one hand, and its constraints — 48px
 * thumb targets, a tab bar, dense tables — are the wrong ones for a page
 * somebody reads once. The two share a palette and nothing else, which is
 * also what lets this directory be served by any static host with no build.
 */

:root {
  --ink: #16130f;
  --paper: #fdfcfa;
  --muted: #6b6259;
  --line: #ded7cd;
  --accent: #1f5f3f;
  --accent-ink: #fdfcfa;
  --alt: #f5f1ea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece7e0;
    --paper: #15130f;
    --muted: #a39a8e;
    --line: #342f28;
    --accent: #5fbf8f;
    --accent-ink: #15130f;
    --alt: #1d1a15;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

a { color: var(--accent); }

/* ------------------------------------------------------------------ bands */

.band { background: var(--alt); border-bottom: 1px solid var(--line); }
footer.band { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 3rem; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.mark { margin-right: auto; font-weight: 700; letter-spacing: -0.01em; }

.quiet { color: var(--muted); text-decoration: none; }
.quiet:hover { color: var(--ink); }

.cta {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
}

.cta.big { display: inline-block; padding: 0.85rem 1.6rem; font-size: 1.05rem; }

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

main { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

/*
 * The alternating bands run full width while the text stays in the column.
 * Negative margins rather than a wrapper per section: fewer elements, and the
 * page is read rather than maintained.
 */
section.alt {
  margin: 0 calc(50% - 50vw);
  padding: 3.5rem calc(50vw - 50% + 1.25rem);
  background: var(--alt);
}

.hero { padding-top: 4.5rem; }
.lead { max-width: 40rem; font-size: 1.1rem; }
.note { max-width: 40rem; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
}

.grid p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------- segments */

.segments { max-width: 44rem; margin: 1.5rem 0 1rem; padding: 0; list-style: none; }

.segments li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.segments li:last-child { border-bottom: 0; }
.segments span { color: var(--muted); font-size: 0.95rem; }

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

.price-card {
  max-width: 28rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 0.7rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.figure { margin: 0.3rem 0 0.75rem; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.figure span { margin-left: 0.4rem; color: var(--muted); font-size: 1rem; font-weight: 400; }
.price-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.97rem; }

.bands { width: 100%; max-width: 40rem; margin: 1rem 0; border-collapse: collapse; }
.bands th, .bands td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.bands th { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.bands td:last-child, .bands th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- form */

.ask { max-width: 32rem; margin-top: 1.5rem; }

.ask label { display: block; margin: 1rem 0 0.3rem; font-weight: 600; font-size: 0.95rem; }

.ask input,
.ask select {
  width: 100%;
  /* 2.75rem is the smallest target a thumb finds reliably, and this form is
     filled in on a phone as often as not. */
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.ask button {
  width: 100%;
  min-height: 3rem;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

footer .note { max-width: 62rem; margin: 0 auto; padding: 0.4rem 1.25rem; }
footer.band { padding: 1.5rem 0; }

/* The per-seller rate: shown because it is the point of the bands, muted
   because it is not the price. Dropped on a narrow screen, where three
   columns of figures is one too many to read standing up. */
.aside { color: var(--muted); font-weight: 400; }

@media (max-width: 34rem) {
  .bands .aside { display: none; }
}

/* The spam trap: present for bots, absent for people and screen readers. Off
   screen rather than display:none, which some bots know to skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* `hidden` must win over the .note display rules above. */
[hidden] { display: none !important; }

/*
 * A pair of radio buttons inside the form.
 *
 * The .ask label rules above are for a caption over a text box, so they are
 * undone here: the whole row is the target, which on a phone matters more
 * than the circle.
 */
.choice { margin: 1rem 0 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 0.3rem; padding: 0; font-weight: 600; font-size: 0.95rem; }

.ask .choice label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.ask .choice input {
  flex: none;
  width: 1.15rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

/* The form's answer, shown where the button was pressed. */
.ok { max-width: 40rem; color: var(--accent); font-weight: 600; }
.ask button:disabled { opacity: 0.6; cursor: progress; }

/*
 * The menu stays at the top while the page scrolls, so "Ask for access" is
 * always one tap away (Nathan, 2026-10-22).
 *
 * scroll-padding-top stops a menu link from landing its heading underneath
 * the bar. It is the bar's height, which is one row on a wide screen and two
 * on a phone, where the links wrap under the name.
 */
header.band { position: sticky; top: 0; z-index: 10; }
html { scroll-padding-top: 4.5rem; }

@media (max-width: 40rem) {
  .bar { gap: 0.4rem 1rem; padding: 0.6rem 1rem; font-size: 0.95rem; }
  html { scroll-padding-top: 6.5rem; }
}
