/* ==========================================================================
   Post My Silver - PPC landing (Phase 1)
   Mobile-first vertical card deck: full-screen cards that snap one at a time.
   Desktop/tablet: the same deck, centred, over an ambient blurred backdrop.
   Palette: warm silver - near-white to near-black, pewter/ivory bias,
   aged gold reserved for rating stars.
   ========================================================================== */

/* ---------- Font (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #13110F;
  --ink-2: #1F1B18;
  --paper: #EFEBE5;
  --cream: #F8F4EE;
  --on-dark: #F8F4EE;
  --on-dark-2: rgba(248, 244, 238, .80);
  --on-light: #1B1815;
  --on-light-2: #5F5850;
  --line-light: rgba(27, 24, 21, .12);
  --line-dark: rgba(248, 244, 238, .24);
  --gold: #D2AE74;
  --gold-on-light: #B48C4E;
  --glass: rgba(242, 234, 222, .14);
  --glass-line: rgba(255, 247, 234, .28);
  --metal: linear-gradient(180deg, #FFFDF9 0%, #EDE6DB 50%, #CDC3B4 100%);
  --surface: #FFFCF8;
  --field: #F7F2EB;
  --field-line: #7A746C;
  --error: #B03A0B;
  --scrim: 20, 16, 12;
  --light-grad: linear-gradient(180deg, #FAF7F2 0%, #EEE8E0 55%, #DDD4C8 100%);
  --btn-dark: linear-gradient(180deg, #332D27 0%, #16120F 100%);
  --img-tone: sepia(.2) saturate(1.15) brightness(1.02);
  --tcard-bg: linear-gradient(180deg, rgba(251, 248, 242, .93) 0%, rgba(238, 230, 218, .9) 100%);
  --tcard-line: rgba(255, 249, 238, .7);
  --dot-bg: linear-gradient(180deg, #FFFDF9 0%, #EDE6DB 50%, #CDC3B4 100%);
  --dot-fg: #2A241F;
  --dot-line: rgba(255, 249, 238, .6);
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 5px #1B1815; }
.light :focus-visible, .sheet :focus-visible { outline-color: #1B1815; box-shadow: 0 0 0 5px #FFFFFF; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Deck shell ---------- */
.deck {
  position: relative;
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  container-type: size;
  container-name: deck;
}
/* Tablet and desktop: centre the phone-shaped deck over a blurred copy of the hero photo */
@media (min-width: 600px) {
  body { display: grid; place-items: center; }
  body::before {
    content: ""; position: fixed; inset: -10%; z-index: -1;
    background: url("../img/hero-bg-720.jpg") center / cover;
    background: image-set(url("../img/hero-bg-720.webp") type("image/webp"), url("../img/hero-bg-720.jpg") type("image/jpeg")) center / cover;
    filter: blur(48px) brightness(.32) sepia(.25);
  }
  .deck {
    width: min(500px, 58dvh, 100%);
    box-shadow: 0 0 0 1px rgba(255, 247, 234, .08), 0 30px 90px rgba(0, 0, 0, .6);
  }
}

/* ---------- Header ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  color: var(--on-dark);
  transition: color .35s;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
[data-tone="light"] .topbar { color: var(--on-light); }
.logo { display: flex; align-items: center; line-height: 0; min-width: 0; }
.logo .lw { position: relative; display: block; height: 40px; }
.logo img { height: 100%; width: auto; display: block; transition: opacity .35s; }
.logo img.on-dark { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }
.logo img.on-light { position: absolute; left: 0; top: 0; opacity: 0; }
[data-tone="light"] .logo img.on-dark { opacity: 0; }
[data-tone="light"] .logo img.on-light { opacity: .86; }
/* Logo artwork is reversed (silver on dark); on light surfaces it renders as solid ink */
img.ink { filter: brightness(0); opacity: .86; }
.hbtns { display: flex; gap: 6px; }
.ph {
  position: relative; appearance: none; cursor: pointer; padding: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: inherit; text-decoration: none; font-size: 18px;
}
[data-tone="light"] .ph { border-color: var(--line-light); background: rgba(255, 255, 255, .5); }
.ph .live { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #6FCF8B; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }

/* ---------- Feed ---------- */
.feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.sheet-open .feed { overflow: hidden; }

.card {
  position: relative; min-height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
  padding: calc(74px + env(safe-area-inset-top, 0px)) 22px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow: hidden; isolation: isolate;
}
.card.light { background: var(--light-grad); color: var(--on-light); }

/* Photo + depth-of-field blur + legibility scrim */
.card > .bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-repeat: no-repeat;
  filter: var(--img-tone);
  transform: scale(1.06); transition: transform 2.4s var(--ease);
}
.card.in > .bg { transform: scale(1); }
.card > .bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(5px) saturate(.85); backdrop-filter: blur(5px) saturate(.85);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 var(--dof, 34%), transparent calc(var(--dof, 34%) + 24%));
          mask-image: linear-gradient(180deg, #000 0%, #000 var(--dof, 34%), transparent calc(var(--dof, 34%) + 24%));
}
.card > .scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Responsive photo sources: 720w by default, 1080w on dense or wide screens */
.hero > .bg {
  background-position: 50% 100%;
  background-image: url("../img/hero-bg-720.jpg");
  background-image: image-set(url("../img/hero-bg-720.webp") type("image/webp"), url("../img/hero-bg-720.jpg") type("image/jpeg"));
}
.process > .bg {
  background-position: 60% 50%;
  background-image: url("../img/process-bg-720.jpg");
  background-image: image-set(url("../img/process-bg-720.webp") type("image/webp"), url("../img/process-bg-720.jpg") type("image/jpeg"));
}
.reviews > .bg {
  background-position: 50% 60%;
  background-image: url("../img/cta-bg-720.jpg");
  background-image: image-set(url("../img/cta-bg-720.webp") type("image/webp"), url("../img/cta-bg-720.jpg") type("image/jpeg"));
}
@media (min-resolution: 1.5dppx) {
  .hero > .bg {
    background-image: url("../img/hero-bg.jpg");
    background-image: image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  }
  .process > .bg {
    background-image: url("../img/process-bg.jpg");
    background-image: image-set(url("../img/process-bg.webp") type("image/webp"), url("../img/process-bg.jpg") type("image/jpeg"));
  }
  .reviews > .bg {
    background-image: url("../img/cta-bg.jpg");
    background-image: image-set(url("../img/cta-bg.webp") type("image/webp"), url("../img/cta-bg.jpg") type("image/jpeg"));
  }
}

/* ---------- Type ---------- */
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .9; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
h1, h2 { letter-spacing: -.025em; line-height: 1.02; }
h1 { font-size: clamp(40px, min(13.4cqw, 7.6cqh), 58px); }
h2 { font-size: clamp(29px, min(9.8cqw, 5.2cqh), 42px); }
h3 { letter-spacing: -.02em; line-height: 1.05; font-size: clamp(27px, min(8.8cqw, 4.6cqh), 38px); }
.sub { margin: 0; font-size: clamp(15px, min(4.3cqw, 2.3cqh), 18px); color: var(--on-dark); max-width: 32ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.light .sub { color: var(--on-light-2); text-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  transition: transform .15s var(--ease), filter .15s, opacity .15s;
  align-self: flex-start;
}
.btn svg.i { font-size: 18px; stroke-width: 2.2; }
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.04); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.cream { background: var(--metal); color: var(--on-light); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .18), 0 10px 24px rgba(0, 0, 0, .3); }
.btn.dark { background: var(--btn-dark); color: var(--on-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn.wide { align-self: stretch; }

/* ---------- Progress ---------- */
.dashes { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.dashes i { width: 32px; height: 4px; border-radius: 2px; background: currentColor; opacity: .3; }
.dashes i.on { opacity: 1; }
.pull-hint {
  display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 10px; line-height: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.pull-hint svg { font-size: 16px; transform: rotate(180deg); }
.card.in .pull-hint svg { animation: lift 1.6s ease-in-out 3; }
@keyframes lift { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(4px); } }

/* ---------- Entrance animations ---------- */
.anim .card [data-a] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.anim .card.in [data-a] { opacity: 1; transform: none; }
.card.hero [data-a] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.anim .card.hero [data-a] { opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 01 Hero ---------- */
.hero { --dof: 22%; }
.hero .scrim { background: linear-gradient(180deg, rgba(var(--scrim), .82) 0%, rgba(var(--scrim), .74) 38%, rgba(var(--scrim), .55) 54%, rgba(var(--scrim), .36) 64%, rgba(var(--scrim), .58) 74%, rgba(var(--scrim), .88) 92%, rgba(var(--scrim), .92) 100%); }
.hero .top { display: flex; flex-direction: column; gap: clamp(12px, 2.2cqh, 20px); padding-top: clamp(10px, 2.4cqh, 26px); }
.hero .eyebrow { word-spacing: .5em; }
.hero .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-usps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.4cqh, 12px); min-width: 0; }
.hero-usps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.hu-i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: var(--dot-bg); color: var(--dot-fg); border: 1px solid var(--dot-line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.hero-usps li > span:last-child { font-size: 12.5px; color: var(--on-dark); line-height: 1.3; text-shadow: 0 1px 10px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .4); }
.hero-usps b { display: block; font-size: clamp(14.5px, 2cqh, 16px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.down {
  appearance: none; cursor: pointer; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line);
  display: grid; place-items: center; color: var(--on-dark); font-size: 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.down svg { animation: nudge 1.6s ease-in-out 3; }
.scrolled .down svg { animation: none; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- 02 How it works ---------- */
.process { --dof: 26%; }
.process .scrim { background: linear-gradient(180deg, rgba(var(--scrim), .80) 0%, rgba(var(--scrim), .55) 45%, rgba(var(--scrim), .30) 70%, rgba(var(--scrim), .72) 100%), linear-gradient(90deg, rgba(var(--scrim), .8) 0%, rgba(var(--scrim), .7) 55%, rgba(var(--scrim), .4) 76%, rgba(var(--scrim), 0) 94%); }
.process .body { display: flex; flex-direction: column; gap: clamp(10px, 1.8cqh, 16px); padding-top: clamp(8px, 1.8cqh, 18px); }
.steps { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; --dot: clamp(46px, 7.2cqh, 62px); }
.steps li { position: relative; flex: 1 1 0; min-height: auto; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); gap: 16px; align-items: center; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0; left: calc(var(--dot) / 2 - .5px); top: calc(50% + var(--dot) / 2 + 4px); height: calc(100% - var(--dot) - 8px); width: 1px;
  background: rgba(246, 247, 248, .4);
}
.steps li > * { position: relative; z-index: 1; }
.steps .dot {
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--dot-bg); color: var(--dot-fg); border: 1px solid var(--dot-line);
  display: grid; place-items: center; font-size: calc(var(--dot) * .44);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.steps b { display: block; font-size: clamp(17px, 2.5cqh, 20px); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.steps span:not(.dot) { display: block; max-width: 21ch; text-wrap: pretty; font-size: clamp(13.5px, 1.9cqh, 15px); margin-top: 2px; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.process .cta-zone { display: flex; flex-direction: column; padding-top: 12px; }

/* ---------- 03 What we buy ---------- */
.buy .body { display: flex; flex-direction: column; gap: clamp(8px, 1.4cqh, 12px); padding-top: clamp(6px, 1.4cqh, 14px); }
.tiles {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(64px, 1fr));
  gap: 9px; margin-top: clamp(10px, 1.8cqh, 16px);
}
.tile {
  appearance: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--surface); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 6px 16px rgba(18, 19, 20, .10);
  color: var(--on-light); min-width: 0;
  transition: transform .15s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile .ti { min-height: 0; background-color: #DADCDE; background-position: 50% 66%; background-size: 118%; background-repeat: no-repeat; filter: var(--img-tone); }
.tile .tl { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: clamp(12.5px, 1.75cqh, 14px); font-weight: 600; line-height: 1.2; }
.tile .tl svg { font-size: 14px; stroke-width: 2; opacity: .7; }
.ti-antique { background-image: url("../img/buy-antique.jpg"); background-image: image-set(url("../img/buy-antique.webp") type("image/webp"), url("../img/buy-antique.jpg") type("image/jpeg")); }
.ti-sterling { background-image: url("../img/buy-sterling.jpg"); background-image: image-set(url("../img/buy-sterling.webp") type("image/webp"), url("../img/buy-sterling.jpg") type("image/jpeg")); }
.ti-jewellery { background-image: url("../img/buy-jewellery.jpg"); background-image: image-set(url("../img/buy-jewellery.webp") type("image/webp"), url("../img/buy-jewellery.jpg") type("image/jpeg")); }
.ti-flatware { background-image: url("../img/buy-flatware.jpg"); background-image: image-set(url("../img/buy-flatware.webp") type("image/webp"), url("../img/buy-flatware.jpg") type("image/jpeg")); }
.ti-teasets { background-image: url("../img/buy-teasets.jpg"); background-image: image-set(url("../img/buy-teasets.webp") type("image/webp"), url("../img/buy-teasets.jpg") type("image/jpeg")); }
.ti-candlesticks { background-image: url("../img/buy-candlesticks.jpg"); background-image: image-set(url("../img/buy-candlesticks.webp") type("image/webp"), url("../img/buy-candlesticks.jpg") type("image/jpeg")); }
.usps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: 12px; margin-top: 10px;
  box-shadow: 0 6px 16px rgba(18, 19, 20, .10);
}
.usps div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: clamp(8px, 1.4cqh, 12px) 4px; text-align: center; font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.usps div + div { border-left: 1px solid var(--line-light); }
.usps svg { font-size: 22px; }
.usps .nw { white-space: nowrap; letter-spacing: -.01em; }
.buy .btn { margin-top: 10px; }
.buy .dashes { color: var(--on-light); }

/* ---------- 04 Reviews + close ---------- */
.reviews { --dof: 34%; }
.reviews .scrim { background: linear-gradient(180deg, rgba(var(--scrim), .84) 0%, rgba(var(--scrim), .7) 40%, rgba(var(--scrim), .6) 56%, rgba(var(--scrim), .62) 68%, rgba(var(--scrim), .88) 100%); }
.reviews .body { display: flex; flex-direction: column; gap: clamp(8px, 1.4cqh, 12px); padding-top: clamp(6px, 1.4cqh, 14px); }
.tcard {
  display: grid; grid-template-columns: minmax(0, 1fr) 30%;
  background: var(--tcard-bg); color: var(--on-light);
  border: 1px solid var(--tcard-line);
  border-radius: 12px; overflow: hidden; margin: 4px 0 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.tcard blockquote { margin: 0; padding: 12px 12px 11px 14px; display: flex; flex-direction: column; gap: 8px; }
.tcard p { margin: 0; font-size: clamp(13px, 1.85cqh, 15px); line-height: 1.35; }
.tcard footer { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--on-light-2); }
.tcard .stars { color: var(--gold-on-light); }
.tphoto {
  min-height: 100%; background-position: 50% 45%; background-size: cover; background-repeat: no-repeat; filter: var(--img-tone);
  background-image: url("../img/review-photo.jpg");
  background-image: image-set(url("../img/review-photo.webp") type("image/webp"), url("../img/review-photo.jpg") type("image/jpeg"));
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 15px; }
.stars svg { fill: currentColor; stroke: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 6px; text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); }
.stats div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; }
.stats div + div { border-left: 1px solid var(--line-dark); }
.stats b { font-size: clamp(20px, 3cqh, 25px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; }
.stats .stars { font-size: 12px; margin-top: 2px; }
.reviews .close { margin-top: auto; display: flex; flex-direction: column; gap: clamp(8px, 1.4cqh, 12px); }
.reviews .close .sub { max-width: 26ch; }
.reviews .close h3 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.trust div { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.25; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.trust svg { font-size: 22px; }

/* Short phones (iPhone SE etc.): tighten the densest cards */
@container deck (max-height: 780px) {
  .reviews .close .sub { display: none; }
}
@container deck (max-height: 700px) {
  .reviews .body > .sub, .process .body > .sub, .buy .body > .sub { display: none; }
  .tcard p { font-size: 13px; }
  .usps div { font-size: 10.5px; }
  .usps svg { font-size: 19px; }
  .btn { height: 50px; }
}

/* ---------- Apply drawer ---------- */
.shade {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(10, 9, 8, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sheet-open .shade { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; inset: auto 0 0 0; z-index: 21; max-height: 90%;
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--on-light); color-scheme: light;
  border-radius: 22px 22px 0 0;
  transform: translateY(102%); transition: transform .42s var(--ease);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .4);
}
.sheet-open .sheet { transform: none; }
.sheet-head { padding: 10px 20px 14px; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.grab { grid-column: 1 / -1; justify-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D6CFC5; margin-bottom: 8px; }
.sheet-head h2 { font-size: 23px; letter-spacing: -.02em; line-height: 1.1; }
.sheet-head p { grid-column: 1; margin: 0; font-size: 13.5px; color: var(--on-light-2); }
.x { grid-row: 2; grid-column: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F3EDE5; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.sheet-body { overflow-y: auto; padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-size: 13px; font-weight: 600; }
.field input {
  width: 100%; height: 48px; padding: 0 12px;
  background: var(--field); border: 1px solid var(--field-line); border-radius: 10px;
  font-size: 16px; color: var(--on-light);
}
.field input::placeholder { color: #6E675E; }
.field input:focus { outline: none; border-color: var(--on-light); background: #fff; box-shadow: 0 0 0 2px var(--on-light); }
.field.bad input { border-color: var(--error); }
.err { font-size: 13px; color: var(--error); }
.err:empty { display: none; }
legend { padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 12px 14px; line-height: 1.2; font-size: 13.5px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--field); transition: background .15s, color .15s; }
.chips input:checked + span { background: var(--on-light); color: #fff; border-color: var(--on-light); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid #1B1815; outline-offset: 2px; }
.optin { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--on-light-2); cursor: pointer; }
.optin input { width: 22px; height: 22px; margin: 0; accent-color: var(--on-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12px; color: var(--on-light-2); margin: 0; }
.fine a { color: var(--on-light); text-underline-offset: 2px; }
.done { display: flex; flex-direction: column; gap: 14px; padding-block: 6px 4px; }
.done-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.done-brand img { height: 40px; width: auto; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--on-light); color: #fff; display: grid; place-items: center; font-size: 26px; }
.done h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.done p { margin: 0; color: var(--on-light-2); }
.done ol { margin: 0; padding-left: 20px; color: var(--on-light-2); font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.ghost { appearance: none; cursor: pointer; background: transparent; border: 1px solid var(--field-line); border-radius: 999px; height: 48px; font-weight: 600; }
.legal { margin: 0; padding-top: 4px; border-top: 1px solid var(--line-light); font-size: 11.5px; color: var(--on-light-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim .card [data-a] { opacity: 1; transform: none; }
  .card > .bg { transform: none; }
}
