/* Hallmark · shape: Index-First · genre: playful · theme: Sticker (deal 3/3, seed qreate-dynamic-codes-saas-ece8·ee4d5870·2026-11-28·r0) · job: sign up · draw: f65057
 * hero: Settled · nav: banner over a retracting bar · footer: letter close · imagery: the product (live QR demo) · signature: a working QR generator in the hero · sticker: sheet
 * axes: light/display-heavy/chromatic-magenta · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: E, first pass leaked dashes, a low-contrast footer line and a 375px overflow; fixed across two sloplint rounds */
/* Hallmark · waive 39b · the QR input stands 48px in CSS and reads 58px only through the parent card's 2deg die-cut tilt · the tilt is the theme's sticker physics, the control itself is in range */
/* Hallmark · waive 59 · the 108px seam lets "one wrong link" read straight into "print it on anything" · the finish review asked the reprint problem and the how cards to argue as one, and the page's own words carry that */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- shared pieces ---------- */
.diecut {
  border: 6px solid var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-paper-3);
}

.tag {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-press);
}
.tag--lime { background: var(--color-accent-2); color: var(--color-ink); }
.tag--pink { background: var(--color-accent); color: var(--color-accent-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--color-ink);
  transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.btn:disabled, .btn[aria-disabled="true"] { background: var(--color-paper-2); color: var(--color-muted); box-shadow: inset 0 0 0 2px var(--color-rule); cursor: not-allowed; }
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 0 0 5px var(--color-white), 5px 6px 0 var(--color-ink);
}
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--primary:active { translate: 4px 5px; box-shadow: 0 0 0 5px var(--color-white), var(--shadow-press); }
.btn--ghost:hover { background: var(--color-paper-3); }

/* ---------- banner ---------- */
.banner {
  background: var(--color-ink);
  color: var(--color-paper);
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- nav (retracting bar) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-bar) dashed var(--color-rule);
  transition: transform var(--dur-short) var(--ease-out);
}
.nav--hidden { transform: translateY(-100%); }
.nav__row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-sm);
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  letter-spacing: var(--tracking-display);
}
.nav__links {
  display: flex;
  gap: var(--space-lg);
  margin-inline-start: auto;
}
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.nav__actions { display: flex; gap: var(--space-sm); }
.nav__actions .btn { height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: center;
  align-content: center;
  min-height: min(860px, calc(100svh - 130px));
  padding-block: var(--space-2xl);
}
.hero h1 { font-size: min(var(--text-display), 4.5rem); }
.hero .lead { margin-block: var(--space-lg); }
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.qr-card {
  position: relative;
  padding: var(--space-lg);
  rotate: 2deg;
  width: 100%;
  max-width: 470px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.qr-card .tag { position: absolute; top: calc(-1 * var(--space-md)); left: var(--space-lg); rotate: -3deg; }
.qr-card__label { font-weight: 700; font-size: var(--text-sm); color: var(--color-muted); }
.qr-card input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
  background: var(--color-white);
  font-size: var(--text-md);
}
.qr-card input:disabled { background: var(--color-paper-2); color: var(--color-muted); border-color: var(--color-rule); cursor: not-allowed; }
.qr-card__code {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: grid;
  place-items: center;
}
.qr-card__code canvas, .qr-card__code img { width: min(320px, 100%); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-card__hint { font-size: var(--text-sm); color: var(--color-muted); text-align: center; }

/* ---------- index ---------- */
.index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-columns);
  padding-block: var(--space-xl);
  border-top: var(--rule-bar) dashed var(--color-rule);
  border-bottom: var(--rule-bar) dashed var(--color-rule);
}
.index a {
  text-decoration: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.index a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.index__num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); }

/* ---------- problem + how (koblet argument) ---------- */
.problem { padding-block: var(--section-gap-s) 0; }
.problem__statement {
  position: relative;
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.problem__statement p { margin: var(--space-lg) auto 0; max-width: 52ch; }
.problem__tag { position: absolute; top: calc(-1 * var(--space-lg)); right: 0; rotate: 3deg; }

/* ---------- how it works (pinned run, stuck-down cards) ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-columns);
  padding-block: var(--section-gap-s);
}
.how__pinned { position: relative; }
.qr-card--small {
  position: sticky;
  top: calc(var(--space-3xl) + 60px);
  rotate: -2deg;
  max-width: 340px;
}
.qr-card__code--small canvas, .qr-card__code--small img { width: 180px; height: 180px; }
.how__dest, .how__scans { text-align: center; font-size: var(--text-sm); }
.how__dest strong { font-weight: 700; }
.how__scans span { font-family: var(--font-display); font-size: var(--text-xl); }
.how__panels { display: flex; flex-direction: column; gap: var(--space-xl); }
.how__panel {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  background: var(--color-white);
  border: 6px solid var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}
.how__panel:nth-child(odd) { rotate: -1deg; }
.how__panel:nth-child(even) { rotate: 1.2deg; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-2);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-press);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

/* ---------- features ---------- */
.features { padding-block: var(--section-gap-s); }
.features__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
}
.fill {
  border: 6px solid var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}
.fill--pink { background: var(--color-accent); color: var(--color-accent-ink); rotate: -1.5deg; }
.fill--lime { background: var(--color-accent-2); color: var(--color-ink); rotate: 1deg; }
.fill--white { background: var(--color-white); color: var(--color-ink); rotate: -0.5deg; }
.fill h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }

/* ---------- pricing ---------- */
.pricing { padding-block: var(--section-gap-s); text-align: center; }
.pricing h2 { margin-inline: auto; }
.price-table {
  width: 100%;
  max-width: 60rem;
  margin: var(--space-2xl) auto var(--space-xl);
  border-collapse: collapse;
  text-align: left;
}
.price-table th {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-bar) dashed var(--color-rule);
}
.price-table td {
  padding: var(--space-md);
  border-bottom: var(--rule-bar) dashed var(--color-rule);
  font-size: var(--text-lg);
}
.price-table td:first-child { font-weight: 700; }
.price-table__price { font-family: var(--font-display); font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.price-table__price span { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
.pricing__note { margin: 0 auto var(--space-xl); max-width: 52ch; color: var(--color-muted); }

/* ---------- closing (paper-2 band) ---------- */
.closing {
  background: var(--color-paper-2);
  border-block: var(--rule-bar) dashed var(--color-rule);
  padding-block: var(--section-gap-s);
}
.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}
.closing h2 { max-width: 22ch; }

/* ---------- footer (letter close) ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-block: var(--space-3xl) var(--space-2xl);
}
.footer__word {
  font-family: var(--font-display);
  font-size: min(var(--text-display), 4.5rem);
  line-height: 1.02;
}
.footer__line { margin-block: var(--space-md) var(--space-xl); font-size: var(--text-lead); }
.footer__links { display: flex; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; }
.footer__small { font-size: var(--text-sm); color: var(--color-rule); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--space-2xl) var(--section-gap-s); }
  .qr-card { justify-self: start; max-width: 100%; }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .qr-card--small { position: static; margin-bottom: var(--space-xl); }
  .how__panel { min-height: 0; }
  .features__row { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 40rem) {
  .qr-card { rotate: 0deg; }
  .qr-card--small { rotate: 0deg; }
  .nav__actions .btn--ghost { display: none; }
  .fill--pink, .fill--lime, .fill--white { rotate: 0deg; }
  .how__panel:nth-child(odd), .how__panel:nth-child(even) { rotate: 0deg; }
}
