/*
 * Tremio landing — Equipment Panel (shotgun winner, 2026-07-11).
 * Spec: docs/design/equipment-panel-redesign/PLAN.md §1
 * Tokens trace to packages/ui/src/tokens.ts — change there first, mirror here.
 * Flat fills only. Depth = ink borders (2px panel / 3px heavy); 1px hairlines
 * survive only as internal row dividers, never as a card/control outline.
 */

:root {
  /* primary — deep field green */
  --green-600: #15803d;
  --green-700: #116932;
  --green-100: #d1fadf;
  --green-50: #ecfdf3;

  /* accent — safety orange (chips/callouts only; never body text on white) */
  --orange-500: #f97316;
  --orange-600: #ea580c; /* darkest step still reading as safety orange — display numerals */
  --orange-100: #ffedd5;

  /* neutrals — green-tinted, sunlight-first */
  --ink: #0a0f0c;
  --n-700: #2a342e;
  --n-600: #3f4a42;
  --n-500: #5a6e62;
  --n-300: #b9c6c0;
  --n-200: #dce4e0;
  --n-100: #eef2f0;
  --n-50: #f7f9f8;
  --white: #ffffff;

  /* semantic */
  --danger: #b91c1c;

  /* borders — mirrors `borders` in packages/ui/src/tokens.ts */
  --border-hairline: 1px;
  --border-panel: 2px;
  --border-heavy: 3px;

  --font-display: "Archivo Black", -apple-system, "SF Pro Display", Roboto, system-ui, sans-serif;
  --font-text: "Inter", -apple-system, "SF Pro Text", Roboto, system-ui, sans-serif;

  /* radius — 8px controls, 12px panels; nothing larger (Equipment Panel cap) */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --measure: 38rem;

  /* glove-sized touch targets */
  --tap-lg: 4rem;
  --tap-xl: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is drawn heavy at 400 */
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

p {
  text-wrap: pretty;
  margin: 0;
}

a {
  color: var(--green-700);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.site-header {
  border-bottom: var(--border-heavy) solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap-lg);
  padding-block: 0.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--green-600);
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  padding-inline: 0.75rem;
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--n-600);
  text-decoration: none;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-lg);
  padding-inline: 1.75rem;
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}

.btn-primary:active {
  background: var(--green-700);
}

.btn-hero {
  min-height: var(--tap-xl);
  font-size: 1.25rem;
  padding-inline: 2.25rem;
}

.btn-compact {
  min-height: 3rem;
  font-size: 0.9375rem;
  padding-inline: 1.25rem;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
}

.btn-outline:active {
  background: var(--n-100);
}

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

.hero {
  padding-block: 4.5rem 4rem;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.chip {
  display: inline-block;
  background: var(--orange-500);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}

.hero .lede {
  font-size: 1.25rem;
  color: var(--n-600);
  max-width: var(--measure);
}

.hero-note {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--n-500);
}

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

.band {
  padding-block: 4rem;
}

.band-tinted {
  background: var(--n-50);
  border-block: var(--border-panel) solid var(--ink);
}

.band-green {
  background: var(--green-600);
  color: var(--white);
}

/* black-bar section label — mirrors the app's SectionLabel (ink bar, white
   uppercase, bilingual echo) */
.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.875rem;
}

.band h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  max-width: 22ch;
}

.band .sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--n-600);
  max-width: var(--measure);
}

.band-green .sub {
  color: var(--green-50);
}

/* ---------- money loop steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--white);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange-600);
}

.step h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.step p {
  color: var(--n-600);
  font-size: 0.9875rem;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.feature {
  background: var(--white);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.feature p {
  color: var(--n-600);
  font-size: 0.9875rem;
}

/* ---------- bilingual band ---------- */

.band-green h2 {
  color: var(--white);
}

/* ---------- download / waitlist ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap-lg);
  padding: 0.625rem 1.5rem;
  border: var(--border-panel) dashed var(--n-500);
  border-radius: var(--radius);
  color: var(--n-500);
}

.store-badge strong {
  color: var(--n-600);
  font-size: 1rem;
}

.store-badge span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* founding-offer panel — PanelCard + orange status strip, like the app's
   attention treatment (ink text on orange; never white on orange) */
.founding-card {
  margin-top: 2rem;
  max-width: var(--measure);
  background: var(--white);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.founding-strip {
  background: var(--orange-500);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-bottom: var(--border-panel) solid var(--ink);
}

.founding {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--n-600);
}

.founding strong {
  color: var(--ink);
}

/* referral-link landing banner — same PanelCard treatment as founding-card,
   shown only when ?ref=CODE is on the URL (see the inline script by
   #ref-banner in index.html/es/index.html). */
.ref-banner {
  padding-block: 1.5rem 0;
}

.ref-banner-card {
  max-width: var(--measure);
  background: var(--green-50);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.ref-banner-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-600);
  margin: 0 0 0.375rem;
}

.ref-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ref-banner-code {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--green-700);
}

.ref-banner-hint {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--n-600);
}

.waitlist-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.waitlist-cta p {
  color: var(--n-600);
  font-size: 0.9375rem;
}

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

.site-footer {
  border-top: var(--border-heavy) solid var(--ink);
  padding-block: 2.5rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  color: var(--n-500);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

/* ── waitlist form ─────────────────────────────────────────────────────────── */
.waitlist-form[hidden] {
  display: none;
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.waitlist-form input[type="email"] {
  min-width: 16rem;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
}
.waitlist-form input[type="email"]:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.waitlist-msg {
  min-height: 1.4em;
  font-weight: 600;
}
.waitlist-msg.ok {
  /* the form is hidden on success — lead the row with the confirmation */
  order: -1;
  display: inline-block;
  padding: 0.9rem 1.5rem;
  color: var(--green-700);
  font-size: 1.1rem;
  background: var(--green-100);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
}
.waitlist-msg.err {
  color: var(--danger);
}

/* ---------- legal pages (privacy / terms) ---------- */

.legal {
  padding-block: 3rem 4rem;
}

.legal .wrap {
  max-width: 48rem;
}

.legal h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  max-width: 20ch;
}

.legal .updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n-500);
}

/* plain-language summary box up top */
.legal .summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
}

.legal .summary h2 {
  font-size: 1.125rem;
  color: var(--green-700);
}

.legal .summary ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.legal .summary li {
  margin-top: 0.5rem;
  color: var(--n-700);
  font-size: 1rem;
}

.legal-body {
  margin-top: 2.5rem;
  /* Long-form legal prose reads best at ~42rem (~72ch); the wrap/summary stay
     wider (48rem) intentionally. */
  max-width: 42rem;
  line-height: 1.6;
}

.legal-body h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  text-transform: none;
}

.legal-body h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.legal-body p {
  margin-top: 1rem;
  color: var(--n-700);
}

.legal-body ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--n-700);
}

.legal-body li {
  margin-top: 0.5rem;
}

.legal-body li strong {
  color: var(--ink);
}

.legal-body a {
  font-weight: 600;
}

.legal-body .contact {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--n-50);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
}

/* The box already supplies its own top padding — kill the h2's top margin so
   "Contact" doesn't sit in ~4rem of dead space. */
.legal-body .contact h2 {
  margin-top: 0;
}

/* Orlo Works attribution — Style E strip, light state. Colors are fixed by
   the OW brand spec and intentionally do NOT use Tremio tokens. */
.site-footer .wrap.ow-strip {
  border-top: 1px solid #e4e4e0;
  margin-top: 1.5rem;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* outweighs .site-footer .wrap space-between; spec wants a 14px gap */
  gap: 14px;
}

.ow-label {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888888;
}

.ow-wm {
  font-family: "Fraunces", serif;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: #1c1c1a;
  text-decoration: none;
  /* expand tap target without moving layout */
  padding: 14px 8px;
  margin: -14px -8px;
}

.ow-o {
  font-weight: 175;
  font-style: italic;
  letter-spacing: -0.01em;
}

.ow-d {
  color: #c8a84b;
  font-weight: 175;
  font-style: normal;
  margin: 0 0.14em;
}

.ow-w {
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── crew page creator (/crew-page, /es/pagina-cuadrilla) ─────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.crew-hero {
  padding-block: 3rem 1.5rem;
}
.crew-band {
  padding-block: 1.5rem 4rem;
}
.crew-wrap {
  max-width: 40rem;
}
/* Hero and form share one column and one left edge (they were 68rem and 40rem, centred separately). */
.crew-hero .wrap {
  max-width: 40rem;
}
/*
 * Desktop: hero, "What you get" and the form on one left edge, the live preview beside them
 * and sticky. The band and its wrap dissolve (display: contents) so the form column and the
 * preview become siblings in one grid; below 64rem the page is exactly the single column.
 */
@media (min-width: 64rem) {
  .crew-main {
    display: grid;
    grid-template-columns: minmax(0, 40rem) minmax(0, 26rem);
    column-gap: 2rem;
    max-width: 68rem;
    margin-inline: auto;
    padding-bottom: 4rem;
  }
  .crew-hero,
  .crew-hero .wrap {
    max-width: none;
  }
  .crew-hero {
    grid-column: 1;
    grid-row: 1;
  }
  .crew-band,
  .crew-wrap {
    display: contents;
  }
  .crew-gets,
  .crew-form,
  .crew-success {
    grid-column: 1;
    padding-inline: 1.25rem;
  }
  .crew-gets {
    grid-row: 2;
  }
  .crew-form,
  .crew-success {
    grid-row: 3;
  }
  .crew-preview {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    position: sticky;
    top: 1rem;
    margin-top: 3rem; /* the hero's top padding: the preview starts level with the chip */
    /* 9.5rem = that margin plus the site header above the grid, so the preview fits the first screen as well as the stuck one */
    max-height: calc(100vh - 9.5rem);
    overflow-y: auto;
  }
  /* the card clips its own overflow, so without this flex shrinks it to the cap and hides the rest */
  .crew-preview > * {
    flex-shrink: 0;
  }
}
.crew-form,
.crew-success,
.crew-preview {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.crew-form[hidden],
.crew-success[hidden],
.form-error[hidden] {
  display: none;
}
.crew-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.crew-form fieldset.field > .field {
  margin-top: 0.5rem;
}
.crew-form label,
.crew-form legend {
  padding: 0;
  font-weight: 700;
}
/* Beats the bare-label reset above (0,1,1), which otherwise zeroed the chip's inner padding. */
.crew-form label.check {
  padding: 0.25rem 1rem;
  font-weight: 600;
}
.crew-form input[type="text"],
.crew-form input[type="tel"],
.crew-form input[type="email"],
.crew-form input[type="url"],
.crew-form select,
.crew-form textarea,
.crew-success input[type="text"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
}
.crew-form textarea {
  resize: vertical;
}
.crew-form input:focus-visible,
.crew-form select:focus-visible,
.crew-form textarea:focus-visible,
.crew-success input:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}
.crew-form [aria-invalid="true"] {
  border-color: var(--danger);
}
.crew-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.hint {
  color: var(--n-600);
  font-size: 0.875rem;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.9rem;
  background: var(--n-50);
  border: var(--border-hairline) solid var(--n-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--green-600);
}
/* the ring (3px + 2px offset) sits inside the chip's padding, not on its border */
.crew-form .check input:focus-visible {
  outline-offset: 1px;
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}
.zip-row {
  display: flex;
  gap: 0.5rem;
}
.zip-row input {
  flex: 1;
}
.zip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  font-weight: 700;
  background: var(--green-100);
  border: var(--border-hairline) solid var(--green-700);
  border-radius: var(--radius-sm);
}
.zip-x {
  min-width: 2.25rem;
  min-height: 2.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.form-error {
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--danger);
  background: var(--white);
  border: var(--border-panel) solid var(--danger);
  border-radius: var(--radius);
}
.crew-submit {
  width: 100%;
}
.crew-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* success panel */
.crew-success {
  padding: 1.25rem;
  background: var(--green-50);
  border: var(--border-panel) solid var(--ink);
  border-radius: var(--radius);
}
.crew-success h2 {
  font-size: 1.5rem;
}
.ok-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ok-label {
  font-weight: 800;
}
.ok-link {
  overflow-wrap: anywhere;
  font-weight: 700;
}
.ok-warn {
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  background: var(--orange-100);
  border: var(--border-panel) solid var(--orange-600);
  border-radius: var(--radius-sm);
}
.ok-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* live preview */
.crew-preview h2 {
  font-size: 1.25rem;
}
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--white);
  border: var(--border-heavy) solid var(--ink);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
/*
 * The preview mirrors the public crew page (apps/api/src/public/crewPublicPage.ts)
 * in the picked theme. The colours are the three --pv-* sets below; crew-theme-palette.test.ts
 * reads this file and fails if one drifts from apps/api/src/public/crewTheme.ts.
 */
.preview-card.pv {
  --pv-ink: #0a0f0c;
  --pv-white: #ffffff;
  gap: 0;
  padding: 0;
  max-width: 30rem;
  width: 100%;
  overflow: hidden;
  background: var(--pv-page);
  color: var(--pv-ink);
  border: 0;
  border-radius: 0;
  outline: var(--border-hairline) solid var(--n-300);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  hyphens: auto;
  container-type: inline-size;
}
/*
 * On a phone the preview runs edge to edge, so it is exactly as wide as the page it
 * previews. Inside the 1.25rem gutters it was 40px narrower than the real page: the same
 * label sizes then had 7px less room per contact button, and a wider fallback font
 * (Linux CI) overflowed "WhatsApp" in the preview only.
 */
@media (max-width: 30rem) {
  .crew-preview .preview-card.pv {
    width: calc(100% + 2.5rem);
    max-width: none;
    margin-inline: -1.25rem;
  }
}
.pv-field {
  --pv-page: #f6f7f5;
  --pv-head-bg: #ffffff;
  --pv-head-fg: #0a0f0c;
  --pv-name: #15803d;
  --pv-accent: #f97316;
  --pv-chip: #ffffff;
  --pv-panel: #ffffff;
  --pv-muted: #3a4a40;
  --pv-band: transparent;
}
.pv-orange {
  --pv-page: #ffffff;
  --pv-head-bg: #f97316;
  --pv-head-fg: #0a0f0c;
  --pv-name: #0a0f0c;
  --pv-accent: transparent;
  --pv-chip: #fff7ed;
  --pv-panel: #ffffff;
  --pv-muted: #3a4a40;
  --pv-band: #0a0f0c;
}
.pv-ink {
  --pv-page: #ffffff;
  --pv-head-bg: #ffffff;
  --pv-head-fg: #0a0f0c;
  --pv-name: #0a0f0c;
  --pv-accent: #15803d;
  --pv-chip: #f4f6f3;
  --pv-panel: #f4f6f3;
  --pv-muted: #3a4a40;
  --pv-band: transparent;
}
.pv p,
.pv h3,
.pv h4,
.pv div,
.pv span {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pv-hd {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 20px;
  background: var(--pv-head-bg);
  color: var(--pv-head-fg);
}
.pv-field .pv-hd {
  border-top: 10px solid var(--pv-name);
  border-bottom: 3px solid var(--pv-ink);
}
.pv-orange .pv-hd {
  padding: 28px 20px 22px;
}
.pv-ink .pv-hd {
  padding: 32px 24px 20px;
}
.pv-name {
  /* the page itself cannot load Archivo Black (its CSP allows no fonts), so it prints in the fallback; the landing loads the webfont, so naming it here would show a different face */
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 0.95;
  color: var(--pv-name);
  /* the global h1-h3 rules uppercase and balance; the real page does neither unless its theme says so */
  text-transform: none;
  text-wrap: wrap;
}
.pv-field .pv-name,
.pv-orange .pv-name {
  text-transform: uppercase;
}
.pv-ink .pv-name {
  line-height: 1;
}
.pv-bar {
  width: 48px;
  height: 5px;
  background: var(--pv-accent);
}
.pv-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.pv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pv-ask {
  font-size: 16px;
  font-weight: 700;
}
.pv-badge {
  font-size: 12px;
  font-weight: 700;
}
.pv-field .pv-badge {
  padding: 3px 8px;
  border: 2px solid var(--pv-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pv-orange .pv-badge {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pv-ink .pv-badge {
  padding: 4px 8px;
  font-weight: 600;
  background: var(--pv-panel);
}
.pv-contact {
  display: grid;
  grid-template-columns: repeat(var(--pv-cols), minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px;
  background: var(--pv-band);
}
.pv-c1 {
  --pv-cols: 1;
}
.pv-c2 {
  --pv-cols: 2;
}
.pv-c3 {
  --pv-cols: 3;
}
.pv-c4 {
  --pv-cols: 2;
}
.pv-orange .pv-contact {
  padding: 14px 20px;
}
.pv-ink .pv-contact {
  padding: 0 24px 20px;
}
.pv-ink .pv-c2 {
  --pv-cols: 1;
}
.pv-ink .pv-c3 {
  --pv-cols: 2;
}
.pv-ink .pv-c4 {
  --pv-cols: 3;
}
.pv-cbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  background: var(--pv-white);
  color: var(--pv-ink);
}
.pv .pv-cbtn {
  overflow-wrap: normal;
  word-break: normal;
}
.pv-field .pv-cbtn {
  border: 2px solid var(--pv-ink);
}
.pv-ink .pv-cbtn {
  min-height: 52px;
  font-size: 16px;
  border: 1.5px solid var(--pv-ink);
}
.pv-cbtn:first-child {
  background: var(--pv-ink);
  color: var(--pv-white);
}
.pv-field .pv-cbtn:first-child {
  background: var(--pv-name);
}
.pv-orange .pv-cbtn:first-child {
  background: #f97316;
  color: var(--pv-ink);
}
.pv-field .pv-c3 .pv-cbtn,
.pv-orange .pv-c3 .pv-cbtn,
.pv-ink .pv-c4 .pv-cbtn:not(:first-child) {
  padding-inline: 4px;
  font-size: clamp(13px, 3.9vw, 15px);
}
.pv-ink .pv-cbtn:first-child {
  grid-column: 1 / -1;
  min-height: 56px;
  font-size: 17px;
}
.pv-paycard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 20px;
  padding: 16px;
}
.pv-field .pv-paycard {
  background: var(--pv-panel);
  border: 2px solid var(--pv-ink);
}
.pv-orange .pv-paycard {
  padding: 20px;
}
.pv-ink .pv-paycard {
  margin: 0;
  padding: 20px 24px;
  background: var(--pv-panel);
}
.pv-h {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pv-paycard .pv-pay-h {
  /* the page itself cannot load Archivo Black (its CSP allows no fonts), so it prints in the fallback; the landing loads the webfont, so naming it here would show a different face */
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.pv-orange .pv-pay-h {
  font-size: 22px;
}
.pv-ink .pv-pay-h {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pv-nm,
.pv-name,
.pv-pay-row,
.pv-cbtn,
.pv-zips,
.pv-area {
  hyphens: manual;
}
.pv-pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--pv-white);
}
.pv-field .pv-pay-row {
  border: 2px solid var(--pv-ink);
}
.pv-field .pv-pay-check {
  background: var(--pv-page);
  border: 2px dashed #6b7a70;
}
.pv-orange .pv-pay-row {
  border: 3px solid var(--pv-ink);
}
.pv-ink .pv-pay-row {
  min-height: 52px;
}
/* .pv span (0,1,1) would zero the margin of the Venmo/Cash App handle, which is a span */
.pv .pv-handle {
  margin-left: auto;
  font-weight: 500;
  color: var(--pv-muted);
  text-align: right;
}
.pv-direct {
  font-size: 13px;
  line-height: 1.4;
  color: var(--pv-muted);
}
.pv-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.pv-ink .pv-info {
  padding: 20px 24px;
  background: var(--pv-white);
}
.pv-info-part {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-ink .pv-info-part + .pv-info-part {
  padding-top: 10px;
  border-top: 1.5px solid var(--pv-ink);
}
.pv-info-part + .pv-info-part {
  margin-top: 10px;
}
.pv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-chip {
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  background: var(--pv-chip);
}
.pv-field .pv-chip,
.pv-orange .pv-chip {
  border: 2px solid var(--pv-ink);
}
.pv-ink .pv-chip {
  font-weight: 600;
}
.pv-area {
  font-size: 16px;
  font-weight: 600;
}
.pv-zips {
  font-size: 14px;
  color: var(--pv-muted);
}
.pv-about {
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}
.pv-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 24px;
  font-size: 13px;
  border-top: 3px solid var(--pv-ink);
}
.pv-ink .pv-foot {
  padding-inline: 24px;
  border-top-width: 1.5px;
}
.pv-orange .pv-foot {
  background: var(--pv-band);
  color: var(--pv-white);
}
.pv-made {
  font-weight: 600;
}
.pv-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--pv-muted);
}
.pv-orange .pv-tools {
  color: #d7ddd9;
}

/* Crew page creator: theme picker and the EN / ES / Both print links */
.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.theme-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.sw {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink, #0a0f0c);
  border-radius: 4px;
}
.sw-field {
  background: linear-gradient(#fff 62%, #15803d 62%);
}
.sw-orange {
  background: #f97316;
}
.sw-ink {
  background: linear-gradient(#fff 72%, #0a0f0c 72%);
}
.print-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.print-langs {
  font-size: 0.8125rem;
}

/* Crew page creator: page address field and the "what you get" strip */
.slug-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink, #0a0f0c);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.slug-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.75rem;
  background: #f4f6f3;
  font-size: 0.875rem;
  white-space: nowrap;
  color: #3a4a40;
}
.crew-form .slug-row input[type="text"] {
  border: 0;
  border-radius: 0;
  min-width: 0;
  flex: 1;
}
.crew-gets {
  margin: 0 0 2rem;
}
.crew-gets-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}
.crew-gets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.crew-gets-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.crew-gets-list img {
  width: 100%;
  height: auto;
  border: 1.5px solid var(--ink, #0a0f0c);
  border-radius: 10px;
  background: #f4f6f3;
}
.crew-gets-list p {
  margin: 0;
  font-weight: 700;
}
@media (max-width: 720px) {
  .crew-gets-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .crew-gets-list li {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}
.print-home {
  font-size: 0.8125rem;
}
