/* ===========================================================================
 * scoren.shop — the public page (built 2026-10-15 from the drawing Preyash
 * approved that day: docs/website on docs/website, version B)
 *
 * Only layout lives here. Every colour, font and radius is a token from
 * packages/ui/src/tokens.css; this file writes no raw hex.
 *
 * The idea: the counter and the pocket. The first screen shows the register
 * with the office on a phone in front of it, because that pair IS Scoren.
 * Then what a liquor store needs, in its own words and figures; then the
 * office's three phone screens; then the store; then how to write.
 * Phone first: one column, 16px sides. From 900px wide the hero is two
 * columns and the phones stand in a row.
 * =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
img, picture { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 16px; }

/* ── top line ─────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; --mark-size: 26px; }
.brand .mark-name { font-size: 15px; }
.top__links { display: flex; align-items: center; gap: 4px; }
.top__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-radius: var(--radius-control); transition: background var(--motion);
}
.top__link:hover { background: var(--surface-2); }
.theme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: background var(--motion);
}
.theme:hover { background: var(--surface-2); }
.theme svg { width: 20px; height: 20px; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-control); font: 600 var(--text-body)/1 var(--font-ui); text-decoration: none;
  cursor: pointer; transition: background var(--motion), box-shadow var(--motion);
}
.btn--primary { background: var(--accent); color: var(--surface); border: 0; }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); min-height: 44px; padding: 0 16px; }
.btn--quiet:hover { background: var(--surface-2); }

/* ── the first screen ─────────────────────────────────────────────────── */
.hero { display: grid; gap: 28px; padding-block: 20px 64px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 8.4vw, 60px); line-height: 1.06; letter-spacing: -.015em; margin: 0;
}
.lede { font-size: 17px; line-height: 1.5; color: var(--ink-soft); margin: 14px 0 22px; max-width: 32em; }

/* The register, and the office on a phone standing in front of it. */
.stage { position: relative; margin: 0; }
.frame { overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame--wide { border-radius: var(--radius-panel); }
.frame--phone { border-radius: 26px; border: 5px solid var(--surface-2); outline: 1px solid var(--line); }
.stage__phone { display: none; }
.stage figcaption { margin-top: 12px; font-size: var(--text-subline); color: var(--ink-faint); }

/* One picture per theme; the hidden one never loads (loading="lazy"). */
.shot--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot--light { display: none; }
  :root:not([data-theme="light"]) .shot--dark  { display: block; }
}
:root[data-theme="dark"] .shot--light { display: none; }
:root[data-theme="dark"] .shot--dark  { display: block; }

/* ── made for a liquor store ──────────────────────────────────────────── */
.made { padding-block: 0 72px; }
.made h2, .office h2, .contact h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 6vw, 38px); line-height: 1.12; margin: 0;
}
.made__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.made__item { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
/* The figure each point comes from, in the till's own mono, as it reads on the screen. */
.made__tag {
  justify-self: start; font: 500 13px/1.3 var(--font-data); font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: var(--radius-control);
}
.made__item h3 { margin: 6px 0 0; font-size: var(--text-title); font-weight: 600; line-height: 1.3; }
.made__item p { margin: 0; color: var(--ink-soft); max-width: 34em; }

/* ── the office on a phone ────────────────────────────────────────────── */
.office { background: var(--surface-2); padding-block: 56px 48px; }
.office__lede { margin: 10px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 34em; }
/* A phone: a swipe row, the next screen peeking so it reads as more. */
.phones {
  list-style: none; margin: 28px auto 0; padding-block: 4px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-padding-inline: 16px; scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }
.phones__item { scroll-snap-align: start; min-width: 0; }
.phones__item h3 { margin: 16px 0 0; font-size: var(--text-title); font-weight: 600; }
.phones__item p { margin: 4px 0 0; color: var(--ink-soft); }

/* ── the store ────────────────────────────────────────────────────────── */
.store { padding-block: 72px; }
.store__line {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 7vw, 52px); line-height: 1.12; letter-spacing: -.01em; max-width: 18ch;
  text-wrap: balance;
}
.store__more { margin: 18px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 32em; }

/* ── contact ──────────────────────────────────────────────────────────── */
.contact { padding-block: 8px 72px; }
.contact > p { margin: 8px 0 0; font-size: 17px; color: var(--ink-soft); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.contact__mail {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 0;
  font: 500 clamp(20px, 5.4vw, 28px)/1.2 var(--font-data); overflow-wrap: anywhere;
}

/* ── foot ─────────────────────────────────────────────────────────────── */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 72px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: var(--text-table);
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }

/* ── a computer ───────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .wrap { padding-inline: 40px; }
  .top { min-height: 80px; }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; padding-block: 40px 112px; }
  .lede { font-size: 19px; }
  /* The phone stands in front of the till, bottom left. */
  /* The till runs past the column toward the window's right edge; the phone stands in front, bottom left. */
  .stage { padding: 0 0 40px 56px; }
  .stage__till { width: 128%; }
  .stage__phone { display: block; position: absolute; left: 0; bottom: 0; width: 30%; max-width: 230px; }
  .stage figcaption { padding-left: calc(min(30%, 230px) - 32px); max-width: 44em; }
  .made { padding-block: 0 112px; }
  .made__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 0; margin-top: 40px; }
  .made__item { border-bottom: 0; border-top: 2px solid var(--ink); padding-block: 20px 0; align-content: start; }
  .office { padding-block: 96px 88px; }
  .phones { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; overflow: visible; margin-top: 48px; }
  .phones__item .frame--phone { max-width: 300px; }
  .store { padding-block: 120px; }
  .contact { padding-block: 0 120px; }
}
