/* PURO Fenōfitto Rewards — rewards-programme layout (pill buttons, tinted hero, numbered steps, reward tabs)
   in PURO colours: plum from the brief, lilac tints, the pack's violet lattice on the box tiles. */

:root {
  --plum: #6A2C62;
  --plum-deep: #4E1F48;
  --violet: #A3679D;
  --violet-ink: #7B3F76;
  --violet-deep: #5F2E5B;
  --lilac: #EDE0EB;
  --lilac-soft: #F8F3F7;
  --violet-wash: #F4ECF3;
  --ink: #1F1B21;
  --graphite: #1F1B21;
  --mute: #5F5964;
  --paper: #FFFFFF;
  --silver: #F5F4F6;
  --tint: #ECEAEF;
  --line: #E3DDE2;
  --line-strong: #C3BBC2;
  --err: #B3261E;
  --err-wash: #FBEDEC;

  --display: "Lexend", "Instrument Sans", system-ui, sans-serif;
  --brand: "Lexend Exa", "Lexend", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kana: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --shadow: 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1px rgba(0, 0, 0, .24);
  --shadow-lift: 0 0 .5px rgba(0, 0, 0, .14), 0 8px 24px -8px rgba(78, 31, 72, .28);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' viewBox='0 0 20 28'%3E%3Cpath d='M0 7 10 0l10 7M0 21l10 7 10-7M10 0v28M0 7v14M20 7v14M0 7l20 14M20 7 0 21' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1'/%3E%3C/svg%3E");

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet-ink); text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow-lift);
}
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }

.eyebrow { font: 500 .74rem/1.2 var(--brand); letter-spacing: .18em; text-transform: uppercase; color: var(--violet-ink); }

/* ---------- Buttons: pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--display); letter-spacing: -.01em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--plum); color: #fff; }
.btn-solid:hover { background: var(--plum-deep); color: #fff; }
.btn-solid:disabled { background: var(--line-strong); cursor: progress; }
.btn-outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-outline:hover { background: rgba(106, 44, 98, .06); color: var(--plum-deep); }
.btn-quiet { padding-inline: 4px; background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }
.btn-quiet:hover { color: var(--violet-ink); text-decoration-color: currentColor; }
.btn-line { min-height: 44px; background: var(--paper); border-color: var(--plum); color: var(--plum); font-size: .94rem; }
.btn-line:hover { background: rgba(106, 44, 98, .06); color: var(--plum-deep); }
.btn-line:disabled { opacity: .5; cursor: not-allowed; }
.btn-wide { width: 100%; }

/* ---------- Header: white bar with a soft shadow ---------- */

.bar {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 2px 2px rgba(0, 0, 0, .06), 0 0 2px rgba(0, 0, 0, .07);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.bar-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 .98rem/1 var(--display); }
.bar-brand:hover { color: var(--ink); }
.bar-brand img { width: auto; height: 32px; }
.bar-nav { display: flex; align-items: center; gap: 6px 18px; }
.bar-link { color: var(--ink); font: 600 .94rem/1 var(--display); text-decoration: none; }
.bar-link:hover, .bar-link[aria-current="page"] { color: var(--plum); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.bar-cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--plum); color: #fff; text-decoration: none; font: 600 .9rem/1 var(--display);
}
.bar-cta:hover { background: var(--plum-deep); color: #fff; }
@media (max-width: 420px) {
  .bar-brand span { display: none; }
  .bar-nav { gap: 12px; }
}

/* ---------- Hero: tinted band, big claim, two pills ---------- */

.hero { background: var(--lilac); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; padding-block: clamp(36px, 6vw, 72px); }

.brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brandline-mark { width: 30px; height: auto; }
.brandline-kana { display: block; font: 400 .78rem/1.2 var(--kana); color: var(--mute); letter-spacing: .12em; }
.brandline-name { display: block; font: 300 1.2rem/1.2 var(--brand); color: var(--violet-ink); letter-spacing: .28em; }

.hero h1 {
  font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.04 var(--display);
  letter-spacing: -.025em; color: var(--plum-deep);
}
.lede { max-width: 30em; margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: .9rem; color: var(--mute); }
.hero-note img { width: 52px; height: auto; flex: none; border-radius: 6px; }

.hero-art { position: relative; margin: 0; }
.hero-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); transform: translate(-50%, -50%);
}
.hero-art img {
  position: relative; width: 100%; border-radius: 6px; transform: rotate(-4deg);
  box-shadow: 0 2px 4px rgba(78, 31, 72, .12), 0 30px 50px -24px rgba(78, 31, 72, .5);
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--lilac-soft); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.section-head .h2 { margin-bottom: 10px; }
.section-head p { color: var(--mute); font-size: 1.05rem; }
.section-head p + p { margin-top: 10px; }
.h2 { margin-bottom: clamp(20px, 3vw, 28px); font: 700 clamp(1.7rem, 3.8vw, 2.4rem)/1.12 var(--display); letter-spacing: -.02em; color: var(--plum-deep); }
.section-lede { margin: -12px 0 28px; color: var(--mute); }
.fineprint { max-width: 46em; margin: 24px auto 0; font-size: .85rem; color: var(--mute); text-align: center; }

/* Small steps, lasting habits: three habit cards */
.habits { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.habit { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 2px rgba(78, 31, 72, .05); }
.habit-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; background: var(--lilac); color: var(--plum); }
.habit-icon svg { width: 24px; height: 24px; }
.habit h3 { margin-bottom: 6px; font: 600 1.15rem/1.3 var(--display); color: var(--ink); }
.habit p { font-size: .95rem; color: var(--mute); }
@media (min-width: 760px) { .habits { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Getting started: three numbered circles */
.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px;
  border-radius: 50%; background: var(--plum); color: #fff; font: 700 1.6rem/1 var(--display);
}
.steps h3 { font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.steps p { max-width: 22em; color: var(--mute); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps-note { margin-top: 36px; text-align: center; font-size: .92rem; color: var(--mute); }

/* Rewards: tabs by box count, like a points-tier strip */
.rtabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.rtab {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 16px 8px 18px;
  border: 0; background: none; cursor: pointer; color: var(--mute);
  font: 600 1.05rem/1.2 var(--display);
}
.rtab b { font: 700 clamp(1.8rem, 5vw, 2.4rem)/1 var(--display); color: var(--ink); }
.rtab::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 4px; border-radius: 4px 4px 0 0;
  background: var(--plum); transform: translateX(-50%); transition: width .25s ease;
}
.rtab[aria-selected="true"] { color: var(--plum); }
.rtab[aria-selected="true"] b { color: var(--plum); }
.rtab[aria-selected="true"]::after { width: min(160px, 80%); }
.rtab:hover b { color: var(--plum); }
.rtab-tiles { display: flex; gap: 4px; }
.rtab-tiles i {
  display: block; width: clamp(11px, 3.2vw, 18px); aspect-ratio: 4 / 3; border-radius: 2px; border: 1px solid var(--line-strong);
  background: linear-gradient(to left, var(--line-strong) 0 26%, var(--paper) 26%);
}
.rtab[aria-selected="true"] .rtab-tiles i { border-color: var(--line); background: linear-gradient(to left, var(--violet) 0 26%, var(--paper) 26%); }
.rtab[aria-selected="true"] .rtab-tiles i:nth-child(n+5) { background: linear-gradient(to left, var(--violet-ink) 0 26%, var(--paper) 26%); }

.rpanel { display: grid; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 48px) 0 0; }
.rpanel[hidden] { display: none; }
.rpanel-art { display: grid; place-items: center; margin: 0; padding: 28px; border-radius: var(--radius); background: var(--lilac); }
.rpanel-art svg { width: min(240px, 70%); height: auto; }
.rpanel-photo img { width: min(340px, 82%); height: auto; }
.rpanel-art figcaption { margin-top: 10px; font-size: .78rem; color: var(--mute); }
.rpanel h3 { margin: 8px 0 12px; font: 700 clamp(1.5rem, 3.4vw, 2rem)/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }
.rpanel p { color: var(--mute); }
.ticks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
@media (min-width: 760px) { .rpanel { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* Extras */
.extras { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.extra { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; }
.extra-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--lilac); color: var(--plum); }
.extra-icon svg { width: 34px; height: 34px; }
.extra h3 { font: 600 1.1rem/1.3 var(--display); color: var(--ink); }
.extra p { font-size: .95rem; color: var(--mute); }
@media (min-width: 640px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Box tiles (form tally + My rewards) ---------- */

.tray { display: grid; gap: 18px 28px; }
.tray-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }

.box { position: relative; aspect-ratio: 4 / 3; border: 1px dashed var(--line-strong); border-radius: 6px; }
.box::before, .box::after {
  content: ""; position: absolute; opacity: 0; transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease;
}
/* pack face */
.box::before { inset: -1px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 6px 14px -8px rgba(78, 31, 72, .35); }
/* the violet lattice stripe on the pack's right edge */
.box::after { top: 0; right: 0; bottom: 0; width: 24%; border-radius: 0 5px 5px 0; background: var(--lattice) center / 100% auto repeat-y, var(--violet); }
.tray-group + .tray-group .box::after { background-color: var(--violet-ink); }
.box span { position: absolute; left: 9px; bottom: 6px; z-index: 1; font: 500 .8rem/1 var(--display); color: var(--line-strong); }
.box:nth-child(4) { outline: 2px solid var(--violet); outline-offset: 3px; }

.box.is-on::before, .box.is-on::after { opacity: 1; transform: none; }
.box.is-on span { color: var(--mute); }
/* boxes submitted but not yet verified */
.box.is-pending { border: 1px dashed var(--violet); background: var(--violet-wash); }
.box.is-pending span { color: var(--violet-ink); }

.tray-label { margin-top: 12px; font-size: .92rem; color: var(--mute); }
.tray-label b { margin-right: 8px; font: 600 .78rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
@media (min-width: 720px) { .tray { grid-template-columns: 1fr 1fr; } }

/* ---------- Reward cards (My rewards) ---------- */

.tiers { display: grid; gap: 16px; }
@media (min-width: 720px) { .tiers { grid-template-columns: 1fr 1fr; gap: 20px; } }
.tier { padding: clamp(22px, 3vw, 28px); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.tier h3 { margin: 12px 0 8px; font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.tier p:last-child { color: var(--mute); }
.tier-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 .76rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.pips { display: inline-flex; gap: 4px; }
.pips i { display: block; width: 12px; height: 9px; border-radius: 2px; background: var(--violet); }
.pips i:nth-child(n+5) { background: var(--violet-ink); }

/* ---------- Claim form ---------- */

.card { padding: clamp(20px, 4vw, 40px); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lift); }

.form-alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 10px; background: var(--err-wash); color: var(--err); font-size: .95rem; }

.fs { margin: 0 0 32px; padding: 0 0 32px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fs-last { margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }
.fs legend { padding: 0; margin-bottom: 20px; font: 700 1.15rem/1.2 var(--display); letter-spacing: -.01em; color: var(--plum-deep); }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-pair { display: grid; gap: 0 20px; margin-bottom: 18px; }
.field-pair .field { margin-bottom: 18px; }
.field-pair .field:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .field-pair .field { margin-bottom: 0; }
}

.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .94rem; color: var(--ink); }

.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235F5964' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center no-repeat; }
.field input::placeholder { color: #9A93A0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--lilac); }
[aria-invalid="true"] { border-color: var(--err) !important; }

.hint { margin-top: 6px; font-size: .86rem; color: var(--mute); }
.hint-lead { margin: -6px 0 16px; }
.err { margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--err); }
.err:empty { display: none; }

/* checkboxes */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); cursor: pointer; }
.check em { font-style: normal; color: var(--mute); }

/* receipts */
.receipts { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.receipt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.receipt.is-bad { border-color: var(--err); background: var(--err-wash); }
.receipt-file { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.receipt-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.receipt-file:focus-within .receipt-thumb { outline: 2px solid var(--plum); outline-offset: 2px; }
.receipt-thumb {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden;
  border: 1px dashed var(--violet); border-radius: 10px; background: var(--lilac-soft);
  font: 600 .62rem/1 var(--display); letter-spacing: .08em; color: var(--mute);
}
.receipt-thumb::before { content: "+"; font: 400 1.7rem/1 var(--display); color: var(--plum); }
.receipt.has-file .receipt-thumb { border-style: solid; border-color: var(--line); }
.receipt.has-file .receipt-thumb::before { content: none; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-text { display: flex; flex-direction: column; min-width: 0; }
.receipt-name { overflow: hidden; font-weight: 600; font-size: .94rem; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.receipt:not(.has-file) .receipt-name { color: var(--plum); }
.receipt-meta { font-size: .8rem; color: var(--mute); }
.receipt.is-bad .receipt-meta { color: var(--err); font-weight: 600; }
.receipt-boxes { display: flex; flex-direction: column; gap: 2px; font-size: .7rem; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.receipt-boxes select {
  min-width: 64px; min-height: 40px; padding: 6px 28px 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235F5964' stroke-width='1.6'/%3E%3C/svg%3E") right 10px center no-repeat;
  font: 600 1rem/1 var(--body); color: var(--ink);
}
.receipt-remove { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--mute); cursor: pointer; }
.receipt-remove:hover { background: var(--lilac-soft); color: var(--err); }

/* live tally */
.tally { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--lilac-soft); }
.tray-form { gap: 10px 16px; }
.tray-form .tray-row { gap: 8px; }
.tray-form .box span { left: 6px; bottom: 4px; font-size: .68rem; }
.tally-text { margin-top: 14px; font-size: .94rem; color: var(--mute); }
.tally-text b { color: var(--ink); }

.outlet-address { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--lilac-soft); font-size: .86rem; color: var(--mute); }
.outlet-address[hidden] { display: none; }

/* honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { display: grid; gap: 12px; }
.submit-row .hint { text-align: center; }
.progress { height: 4px; border-radius: 2px; background: var(--lilac); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--plum); transition: width .2s; }

/* success */
.done { text-align: center; }
.done:focus { outline: none; }
.done > p { margin-top: 10px; color: var(--mute); }
.done .done-status { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--lilac); color: var(--plum); font: 600 .8rem/1 var(--display); }
.done-title { margin-bottom: 18px; font: 700 clamp(1.6rem, 4vw, 2.1rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--plum-deep); }
.done .done-ref { margin: 6px 0 18px; font: 700 clamp(1.3rem, 5vw, 1.8rem)/1.2 var(--display); letter-spacing: .06em; color: var(--plum); user-select: all; }
.done .btn { margin-top: 24px; }
.done .btn + .hint { margin-top: 18px; }
.done #claim-again { margin-top: 14px; }

/* ---------- My rewards ---------- */

.mr { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); background: var(--lilac-soft); }
.mr-title { margin-bottom: 10px; font: 700 clamp(2rem, 5vw, 2.8rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--plum-deep); }
.mr-lede { margin-bottom: 24px; color: var(--mute); }
.mr-loading { padding: 40px 0; color: var(--mute); }
.mr-h2 { margin: 40px 0 14px; font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; color: var(--plum-deep); }

.lookup .field { margin: 0; }
.lookup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lookup-row input { flex: 1 1 220px; }
.lookup-row .btn { flex: 0 0 auto; }

.member:focus { outline: none; }
.member-card { background: var(--plum); color: #fff; box-shadow: var(--shadow-lift); }
.member-hi { font: 700 clamp(1.4rem, 4vw, 1.8rem)/1.2 var(--display); letter-spacing: -.01em; color: #fff; }
.member-mobile { margin-top: 4px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.member-count { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; }
.member-count b { font: 700 clamp(3.2rem, 11vw, 4.6rem)/1 var(--display); letter-spacing: -.03em; color: #fff; }
.member-count span { font-size: 1.05rem; color: rgba(255, 255, 255, .85); }
.member-pending { margin-top: 4px; font-weight: 600; font-size: .94rem; color: #F1D9EE; }
.tray-member { margin-top: 24px; }
.member-card .box { border-color: rgba(255, 255, 255, .45); }
.member-card .box span { color: rgba(255, 255, 255, .6); }
.member-card .box.is-on span { color: var(--mute); }
.member-card .box.is-pending { border-color: #F1D9EE; background: rgba(255, 255, 255, .14); }
.member-card .box.is-pending span { color: #fff; }
.member-card .box:nth-child(4) { outline-color: rgba(255, 255, 255, .7); }
.member-card .tray-label { color: rgba(255, 255, 255, .8); }
.member-card .tray-label b { color: #fff; }
.member-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 18px; font-size: .82rem; color: rgba(255, 255, 255, .8); }
.key { display: inline-block; width: 16px; height: 12px; border-radius: 2px; }
.key-on { background: linear-gradient(to left, var(--violet) 0 30%, var(--paper) 30%); }
.key-pending { margin-left: 8px; border: 1px dashed #F1D9EE; background: rgba(255, 255, 255, .14); }
.member-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--lilac); font-size: .92rem; color: var(--ink); }

.tier-status { color: var(--ink) !important; font-weight: 500; }
.tier-locked .tier-status { color: var(--mute) !important; font-weight: 400; }
.tier-locked .pips i { background: var(--line-strong); }
.tier-ready { box-shadow: inset 0 0 0 2px var(--plum), var(--shadow); }
.outlet-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--lilac-soft); }
.outlet-box-label { font: 600 .74rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.outlet-box-name { font-weight: 600; color: var(--ink); }
.outlet-box-addr { font-size: .86rem; color: var(--mute); }
.outlet-box-change { min-height: 36px; margin-top: 4px; }
.outlet-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 8px; }
.outlet-form[hidden] { display: none; }
.outlet-form select {
  flex: 1 1 100%; min-height: 50px; padding: 10px 40px 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235F5964' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center no-repeat;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
}
.outlet-form select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--lilac); }
.outlet-msg { font-size: .9rem; font-weight: 600; color: var(--plum); }
.outlet-msg:empty { display: none; }
.code-box { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--lilac); }
.code-box span { font: 600 .74rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.code-box b { font: 700 1.5rem/1.2 var(--display); letter-spacing: .08em; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.code-box small { font-size: .86rem; color: var(--mute); }

.claims { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.claim-item { padding: 14px 18px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.claim-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.claim-ref { font: 600 .95rem/1.2 var(--display); letter-spacing: .03em; color: var(--ink); }
.claim-pill { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.claim-pending { background: var(--lilac); color: var(--plum); }
.claim-approved { background: #E3F1E9; color: #1D6644; }
.claim-rejected { background: var(--err-wash); color: var(--err); }
.claim-meta { margin-top: 6px; font-size: .92rem; color: var(--mute); }
.claim-msg { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--violet); font-size: .92rem; white-space: pre-line; }
.member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 20px 52px 20px 4px; list-style: none; cursor: pointer;
  font: 600 1.05rem/1.35 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--plum); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { padding: 0 4px 22px; color: var(--mute); }
.faq details ul, .faq details ol { margin: 0; padding: 0 4px 16px 26px; color: var(--mute); }
.faq details li + li { margin-top: 6px; }
.faq details ul + p { margin-top: -4px; }

/* ---------- Customer progress: feature band + gallery popup ---------- */

.journey-band {
  display: grid; justify-items: center; gap: 16px;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: 28px; text-align: center;
  background:
    radial-gradient(60% 90% at 10% 85%, rgba(163, 103, 157, .16), transparent 70%),
    radial-gradient(45% 80% at 92% 10%, rgba(255, 236, 196, .7), transparent 70%),
    linear-gradient(120deg, #FBF1F6, #F8EEF5 55%, #FBF0F0);
}
.journey-band .h2 { max-width: 15em; margin: 0; }
.journey-band p { max-width: 30em; color: var(--mute); font-size: 1.05rem; }
.journey-band .btn { margin-top: 8px; box-shadow: var(--shadow-lift); }

html:has(.journey[open]) { overflow: hidden; }
.journey {
  width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: clamp(18px, 3.5vw, 32px); border: 0; border-radius: 24px;
  background: #FFFAFD; color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.journey::backdrop { background: rgba(31, 27, 33, .62); }
.journey[open] { animation: journey-in .22s ease-out; }
@keyframes journey-in { from { opacity: 0; transform: translateY(12px); } }

.journey-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.journey-head h2 { font: 600 clamp(1.25rem, 3vw, 1.75rem)/1.2 var(--display); letter-spacing: -.015em; color: var(--plum-deep); }
.journey-close {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--violet-wash); color: var(--plum-deep); cursor: pointer;
  font: 600 .82rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.journey-close:hover { background: var(--lilac); }

.journey-track { margin-top: 16px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.journey-slide { margin: 0; }
.journey-slide[hidden] { display: none; }
.journey-slide:not([hidden]) { animation: journey-fade .25s ease-out; }
@keyframes journey-fade { from { opacity: .35; } }
.journey-count { margin-bottom: 14px; font: 500 .74rem/1.2 var(--brand); letter-spacing: .18em; text-transform: uppercase; color: var(--violet-ink); }

/* Side by side on every screen size */
.journey-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 2vw, 16px); }
.journey-photo {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(12px, 2vw, 18px);
  background: var(--lilac-soft);
}
.journey-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-user-drag: none; }
.journey-photo span {
  position: absolute; left: clamp(6px, 1.5vw, 12px); top: clamp(6px, 1.5vw, 12px);
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  font: 600 clamp(.62rem, 1.6vw, .74rem)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--plum-deep);
}
.journey-photo-after span { background: var(--plum); color: #fff; }

.journey-slide figcaption {
  margin-top: 18px; text-align: center; text-transform: uppercase;
  font: 400 clamp(1rem, 2.6vw, 1.4rem)/1.3 var(--display); letter-spacing: .02em; color: var(--plum-deep);
}

.journey-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.journey-nav .btn { min-height: 44px; padding: 0 18px; }
.journey-nav .btn:disabled { border-color: var(--line); color: var(--line-strong); }
.journey-dots { display: flex; align-items: center; gap: 2px; }
.journey-dots button {
  display: grid; place-items: center; width: 22px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.journey-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .2s, background-color .2s; }
.journey-dots button[aria-current="true"] { width: 34px; }
.journey-dots button[aria-current="true"]::before { width: 26px; background: var(--plum); }
.journey-hint, .journey-note { margin-top: 10px; text-align: center; font-size: .84rem; color: var(--mute); }
.journey-note { margin-top: 4px; font-size: .78rem; }
@media (hover: hover) and (pointer: fine) { .journey-hint { display: none; } }
@media (max-width: 480px) {
  .journey-nav .btn { padding: 0 14px; font-size: .88rem; }
  .journey-dots button { width: 16px; }
  .journey-dots button[aria-current="true"] { width: 30px; }
}

/* ---------- Footer ---------- */

.foot { padding: 48px 0 40px; background: var(--plum-deep); color: rgba(255, 255, 255, .75); text-align: center; }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.foot-mark { width: 34px; filter: brightness(0) invert(1); opacity: .9; }
.foot-tag { font: 600 1.05rem/1.4 var(--display); color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: .92rem; }
.foot-links a { color: #fff; }
.foot-links a:hover { color: #F1D9EE; }
.foot-copy { font-size: .8rem; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal h1 { margin-bottom: 8px; font: 700 clamp(1.9rem, 5vw, 2.8rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--plum-deep); }
.legal .updated { margin-bottom: 32px; font-size: .9rem; color: var(--mute); }
.legal h2 { margin: 36px 0 10px; font: 700 1.15rem/1.3 var(--display); color: var(--plum-deep); }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .back { margin-top: 40px; }

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shown in place of the claim form once receipt submissions have closed */
.closed { text-align: center; }
.closed h3 { margin-bottom: 8px; font: 700 1.4rem/1.25 var(--display); color: var(--plum-deep); }
.closed p { color: var(--mute); }
.lede + .lede { margin-top: 12px; }

/* My rewards: "Claim My Rewards" on an unlocked, unclaimed tier */
.tier-claim { margin-top: 14px; }
.tier-claim .btn { width: 100%; }
.tier-claim-msg { margin-top: 8px; font-size: .88rem; color: var(--mute); }
.tier-claim-msg.is-err { color: var(--err); }
