/* Ayo — public pages.
 *
 * Light only, by design: one background on every device, so a shirt's page
 * looks the same to the person wearing it and to the stranger scanning it.
 *
 * Mobile-first, no framework, no JavaScript, no third-party requests: the
 * scan pages are hardened (script-src 'none', img-src 'self'), so the font is
 * self-hosted and every asset is served from this origin. Someone scanning a
 * stranger's shirt is not billed a round trip to a CDN, and no third party
 * learns that they did.
 *
 * The palette is the store's, so a scan feels like the same brand as the
 * checkout: moss green wordmark, warm paper, near-black ink.
 */

/* --- Poppins, latin subset only (three weights, ~8 kB each) ------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --brand: #536E3B;          /* the wordmark's green */
  --brand-deep: #3F5529;
  --brand-ink: #ffffff;      /* text on --brand */

  --paper: #ffffff;
  --surface: #ffffff;
  --surface-sunk: #F5F5F3;
  --ink: #121212;
  --ink-soft: #5C5A55;
  --line: #E6E6E2;

  --danger: #B3261E;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .04), 0 8px 24px rgba(18, 18, 18, .06);
  --shadow-lift: 0 2px 4px rgba(18, 18, 18, .05), 0 18px 40px rgba(18, 18, 18, .10);

  --measure: 34rem;          /* reading width, unchanged from the scan pages */
  --wide: 68rem;             /* landing sections */

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

/* --- shell ------------------------------------------------------------- */
.site-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.15rem 1.15rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 68px; height: auto; display: block; }
.site-head .btn { padding: .55rem .95rem; font-size: .92rem; }

.page { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.15rem 3rem; }
.page--wide { max-width: var(--wide); }

.site-foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.15rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.site-foot a { color: inherit; }

/* --- type -------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.head { margin-bottom: 1.75rem; }
.intro { margin: 0 0 .8rem; color: var(--ink-soft); font-size: 1.03rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .9rem;
}
.empty { color: var(--ink-soft); }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600;
  padding: .95rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--brand-ink);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: .5rem .95rem; font-size: .9rem; }
.btn--block { width: 100%; }
.cta { margin: 1.75rem 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn { flex: 1 1 12rem; }

/* --- landing ----------------------------------------------------------- */
.hero { padding: 1rem 0 2.5rem; }
.hero__text { max-width: 32rem; }
.hero p.intro { font-size: 1.1rem; }
/* The product shot carries its own studio background, so wrapping it in a
 * second panel reads as a box inside a box. Let the photo be the panel. */
.hero__art {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__art img { display: block; width: 100%; }

.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section__lead { color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.75rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.card--brand h3, .card--brand p { color: inherit; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.6rem;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  position: absolute; left: 1.25rem; top: 1.3rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.band {
  margin: 2.5rem 0 0;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}
.band h2 { color: inherit; }
.band p { color: inherit; opacity: .85; }
.band .btn { background: var(--brand-ink); color: var(--brand); }

/* --- content items (scan pages, dashboard) ----------------------------- */
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.item .text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.item img, .item video { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 6px); background: var(--surface-sunk); }
.item audio { display: block; width: 100%; }
.caption { margin: .7rem 0 0; color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.item--rejected { opacity: .55; }

/* --- forms ------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field textarea,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .9rem;
  width: 100%;
  resize: vertical;
}
.field textarea:focus-visible,
.field input:focus-visible,
.field select:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field input[type="file"] { font: inherit; font-size: .93rem; color: var(--ink-soft); }
.field ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.hint { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .85rem; }
.errors, .error { color: var(--danger); margin: 0; font-size: .92rem; }
.errors { border: 1px solid currentColor; border-radius: 12px; padding: .7rem .8rem; }
/* Honeypot: off-screen for humans, present in the DOM for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- dashboard --------------------------------------------------------- */
.panel { margin: 2rem 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.panel h2 { margin-bottom: 1rem; }
.panel .form { margin-top: 1.25rem; }
.flash { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.flash__item {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; font-weight: 600;
}
.notice {
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .9rem; margin: 0 0 1.5rem;
}
.pill {
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--radius-pill); padding: .15rem .6rem; vertical-align: middle;
}
.row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; align-items: center; }
.row input[type="text"] {
  flex: 1 1 10rem;
  font: inherit; font-size: .93rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .5rem .9rem;
}
.item form { margin-top: .9rem; }

@media (min-width: 46rem) {
  .page { padding-top: 2rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 2rem 0 3.5rem; }
  .hero__art { margin-top: 0; }
  .cta .btn { flex: 0 0 auto; }
  .band { padding: 3rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Account: the shirt list */
.card--link { display: block; text-decoration: none; color: inherit; transition: border-color .12s ease, box-shadow .12s ease; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.card--link .code { margin: .5rem 0 0; }
.card--link h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.site-head form { margin: 0; }

/* Upsell on the scan pages: below the content, never above it. */
.upsell {
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.upsell__art { display: block; width: 100%; height: auto; }
.upsell__text { padding: 1.35rem; }
.upsell__text h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.upsell__text p { color: var(--ink-soft); margin: 0 0 .8rem; }
.upsell__text .cta { margin: 1.1rem 0 0; }
.upsell__text .btn { width: 100%; }

/* Submission form */
.field--file input[type="file"] {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: .8rem;
  width: 100%;
  background: var(--surface-sunk);
}
.limits { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .2rem; color: var(--ink-soft); font-size: .84rem; }
.fineprint { margin: 0; color: var(--ink-soft); font-size: .85rem; text-align: center; }

@media (min-width: 46rem) {
  /* Two columns only where the page is wide. The scan pages hold a 34rem
   * reading column, and splitting that squeezes the copy into a gutter. */
  .page--wide .upsell { display: grid; grid-template-columns: 16rem 1fr; align-items: center; }
  .page--wide .upsell__art { height: 100%; object-fit: cover; }
  .upsell__text { padding: 1.75rem; }
  .upsell__text .btn { width: auto; min-width: 12rem; }
}
