/* ===========================================================================
   preview.css — the public, share-by-hash marketing preview at /p/<token>.
   This is the page a customer texts to their spouse, so it has to hold up on a
   phone in a driveway and on a laptop at the kitchen table. Same palette and
   fonts as the designer; its own stylesheet because the designer's shell (tool
   rails, canvas, pickers) has nothing to do with a page that only presents.
   Plain CSS, no build step, no framework — see CLAUDE.md.
   =========================================================================== */

:root {
  --accent: #dd2034;
  --accent-hover: #b81a2b;
  --accent-soft: #fef2f2;
  --deep: #1a0608;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --paper: #fafafa;
  --line: #e5e7eb;
  --white: #fff;

  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shell: 1100px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26, 6, 8, .04), 0 12px 32px -12px rgba(26, 6, 8, .14);
  --shadow-lift: 0 2px 4px rgba(26, 6, 8, .05), 0 28px 60px -20px rgba(26, 6, 8, .22);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ── masthead ────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: .65rem;
}

.masthead__logo img { width: clamp(150px, 34vw, 212px); }

.masthead__call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.masthead__call:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }
/* On a narrow phone the pill is the handset icon alone. :not(.sr-only) matters:
   display:none on the visually-hidden span too would take the link's accessible
   name away with it, leaving a screen reader an unlabelled button. */
.masthead__call span:not(.sr-only) { display: none; }

@media (min-width: 560px) {
  .masthead__call span:not(.sr-only) { display: inline; }
}

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft) 0%, transparent 62%),
    var(--white);
}

.eyebrow {
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 4.6rem);
  line-height: .96;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: #413b3b;
  max-width: 56ch;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }

.btn--dark { background: var(--deep); color: var(--white); }
.btn--dark:hover { background: #2b0d10; color: var(--white); }

.btn--ghost { background: var(--white); color: var(--deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--deep); color: var(--deep); }

/* ── trust strip ─────────────────────────────────────────────────────────── */

.trust {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.trust__in {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1rem, 4vw, 2.75rem);
  padding-block: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: #3f3a3a;
}

.trust__item { display: inline-flex; align-items: center; gap: .45rem; }
.trust__item b { color: var(--deep); }

.stars { color: var(--accent); letter-spacing: .08em; }

/* ── door cards ──────────────────────────────────────────────────────────── */

.picks { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-head { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 .4rem;
}

.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow-lift); }
.card:last-child { margin-bottom: 0; }

.card__figure {
  position: relative;
  margin: 0;
  background: #f1efef;
  border-bottom: 1px solid var(--line);
}

.card__figure img { width: 100%; }

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(26, 6, 8, .82);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card__figcaption {
  padding: .7rem 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.card__missing {
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.card__body {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

@media (min-width: 760px) {
  .card__body { grid-template-columns: 1fr minmax(180px, 230px); align-items: start; }
}

.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 2.3rem);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 .25rem;
}

.card__sub {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1.25rem;
}

.card__desc {
  margin: 1.1rem 0 0;
  color: #413b3b;
  font-size: .97rem;
}

.specs {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.specs dt {
  grid-column: 1;
  padding: .6rem 1.25rem .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.specs dd {
  grid-column: 2;
  margin: 0;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.swatch {
  display: inline-block;
  width: .85em;
  height: .85em;
  border-radius: 3px;
  border: 1px solid rgba(26, 6, 8, .22);
  margin-right: .45rem;
  vertical-align: -.08em;
}

.card__product figcaption {
  margin-top: .5rem;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__product img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.note {
  margin: 1.25rem 0 0;
  padding: .9rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: .95rem;
}

.note b {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .2rem;
}

/* ── empty state ─────────────────────────────────────────────────────────── */

.empty {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.empty__box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}

.empty__box h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 .5rem;
}

.empty__box p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.6rem; }

/* ── about ───────────────────────────────────────────────────────────────── */

.about {
  background: var(--deep);
  color: #f6eeee;
  padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.about h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.about p { color: #ddcfd0; max-width: 62ch; margin: 0 0 1rem; }
.about p:last-of-type { margin-bottom: 0; }
.about a { color: #ffb3bd; }
.about a:hover { color: var(--white); }

.pillars {
  display: grid;
  gap: 1rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillars li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.pillars b {
  display: block;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: .25rem;
}

.pillars span { font-size: .88rem; color: #cbbcbd; line-height: 1.55; }

/* ── cta ─────────────────────────────────────────────────────────────────── */

.cta { padding: clamp(2.75rem, 7vw, 5rem) 0; text-align: center; }

.cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 .75rem;
}

.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.9rem; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem 0 2.5rem;
  font-size: .85rem;
  color: var(--muted);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
  align-items: center;
  justify-content: space-between;
}

.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* ── 404 / apology ───────────────────────────────────────────────────────── */

.standalone {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 8vw, 5rem) 0;
}

.standalone__box { max-width: 54ch; }

.standalone h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 .75rem;
}

.standalone p { color: #413b3b; margin: 0 0 1rem; }
.standalone .btn { margin-top: .75rem; }

/* ── print ───────────────────────────────────────────────────────────────── */

@media print {
  .masthead { position: static; background: none; backdrop-filter: none; }
  .masthead__call,
  .hero__actions,
  .cta__actions,
  .empty__box .btn { display: none !important; }

  body { font-size: 11pt; background: #fff; }

  .about { background: #fff; color: var(--ink); }
  .about h2 { color: var(--deep); }
  .about p { color: #333; }
  .about a { color: var(--ink); }
  .pillars li { background: #fff; border-color: #ccc; }
  .pillars b { color: var(--deep); }
  .pillars span { color: #444; }

  .card,
  .pillars li,
  .empty__box { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }

  .hero, .picks, .about, .cta { padding-block: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover, .masthead__call:hover { transform: none; }
}
