/* Snake Oil — pre-launch splash
   Type: Rye (display, brand voice) + Bitter (reading + interface). */

@font-face { font-family: "Rye"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rye-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bitter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bitter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/bitter-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #1c2415;
  --ink-2: #2b3523;
  --ink-deep: #0a0e07;
  --sage: #5f6e58;
  --sage-lt: #9aa98f;
  --gold: #e3b863;
  --gold-dk: #8a6424;
  --cream: #f6f1df;
  --cream-2: #e9e2c8;
  --white: #ffffff;
  --error: #9b2a1a;
  --error-lt: #f2a48f;

  --f-display: "Rye", Georgia, "Times New Roman", serif;
  --f-text: "Bitter", Georgia, "Times New Roman", serif;

  /* type scale */
  --fs-display: clamp(2.15rem, 1.35rem + 3.6vw, 3.75rem);
  --fs-h2: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.78rem;

  --lh-display: 1.06;
  --lh-body: 1.6;

  --track-display: 0.015em;
  --track-label: 0.2em;

  --radius: 12px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(227, 184, 99, 0.16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(10, 14, 7, 0.9), transparent 70%);
  color: var(--cream);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}

/* stitched frame, nod to the sell sheet */
body::before {
  content: "";
  position: fixed;
  inset: 10px;
  border: 2px dashed rgba(246, 241, 223, 0.18);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 40rem) { body::before { display: none; } }

p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { display: none !important; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) var(--gutter) 2rem;
}

/* ---------- type roles ---------- */
.kicker {
  margin: 0;
  font: 600 var(--fs-label)/1.3 var(--f-text);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--sage-lt);
}
.kicker .dot { margin: 0 0.6em; color: var(--gold); }
@media (max-width: 26rem) { .kicker { letter-spacing: 0.14em; } }

.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink-deep), 4px 4px 0 var(--ink-deep);
  text-wrap: balance;
}
.display .line { display: block; }

.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--cream);
}

.fine {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ---------- hero ---------- */
.hero { text-align: center; }
.hero .logo {
  width: min(78vw, 400px);
  margin: 1.25rem auto 1.75rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 1.1rem;
  padding: 0.5em 1em 0.45em;
  border: 1.5px solid rgba(227, 184, 99, 0.55);
  border-radius: 999px;
  font: 600 var(--fs-label)/1 var(--f-text);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}
.status::before {
  content: "";
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(227, 184, 99, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 184, 99, 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.6em rgba(227, 184, 99, 0); }
}
.hero .lede { margin: 1.4rem auto 0; }

/* ---------- card (signup / dealer form) ---------- */
.card {
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  padding: clamp(1.4rem, 1rem + 2vw, 2.1rem);
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink-deep);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink-deep);
}
.card .h2 { color: var(--ink); }
.card .card-sub { margin: 0.45rem 0 0; color: #3d4635; }
.card .fine { margin-top: 1rem; color: #4b5345; }

/* ---------- form controls ---------- */
.form { margin-top: 1.25rem; }
.field { margin: 0 0 1rem; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  margin-bottom: 0.4rem;
  font: 600 var(--fs-label)/1.3 var(--f-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.label .opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: #5a6352; }
.label .req { color: var(--error); }

.input, .select, .textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  font: 400 1.0625rem/1.35 var(--f-text);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #7d8577; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.textarea { min-height: 7rem; resize: vertical; }
.select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c2415' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.8rem;
}

.inline {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 34rem) {
  .inline { grid-template-columns: 1fr auto; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  font: 700 0.95rem/1 var(--f-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--ink-deep);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-dark { background: var(--ink); color: var(--gold); box-shadow: 3px 3px 0 var(--ink-deep); }
.btn-dark:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink-deep); }
.btn-gold:hover { background: #ecc779; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-deep); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn .arrow { font-size: 1.15em; line-height: 0.6; letter-spacing: 0; }

/* chip radios / checkboxes */
.chips { border: 0; margin: 1rem 0 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  font: 600 0.95rem/1.1 var(--f-text);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  user-select: none;
}
.chip input:checked + span { background: var(--ink); color: var(--gold); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.error-msg {
  margin: 0.45rem 0 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}
.error-msg:empty { display: none; }

/* success panel */
.done { text-align: left; }
.done[hidden] { display: none; }
.done .h2 { color: var(--ink); }
.done p { margin: 0.6rem 0 0; }
.done .badge {
  display: inline-grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.3rem;
}

/* ---------- dealer band (home) ---------- */
.dealer-band {
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 1rem + 2vw, 2rem);
  border: 2px solid rgba(227, 184, 99, 0.6);
  border-radius: var(--radius);
  background: rgba(10, 14, 7, 0.35);
  display: grid;
  gap: 1.1rem;
  align-items: center;
}
@media (min-width: 40rem) {
  .dealer-band { grid-template-columns: 1fr auto; gap: 1.5rem; }
}
.dealer-band .h2 { color: var(--gold); margin-top: 0.35rem; }
.dealer-band p { margin: 0.5rem 0 0; color: var(--cream); max-width: 30em; }

/* ---------- dealer page ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .logo-sm { width: 132px; }
.back { font-size: var(--fs-small); font-weight: 600; }
.page-head { margin-top: 2rem; }
.page-head .display { margin-top: 0.6rem; }
.page-head .lede { margin-top: 1.1rem; }

.sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.sizes li {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid rgba(227, 184, 99, 0.55);
  border-radius: 999px;
  font: 600 var(--fs-small)/1.2 var(--f-text);
  color: var(--gold);
}

.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 34rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
}
.foot-inner {
  padding-top: 1.4rem;
  border-top: 2px dashed rgba(246, 241, 223, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-small);
  color: var(--sage-lt);
}
.foot .made { font: 600 var(--fs-label)/1.3 var(--f-text); letter-spacing: var(--track-label); text-transform: uppercase; }
.foot a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
