/* Sobi Être member website (home, Join form, member card). Mobile first.
   Être Essentiel palette: sage #BCCECC, pistachio #C6D1A0 (+ deeper tones from the visual elements). */
@font-face {
  font-family: "Grosvenor";
  src: url("../assets/fonts/grosvenor-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --sage: #BCCECC;
  --sage-deep: #9BB8BA;
  --sage-soft: #E4ECEB;
  --sage-text: #4F6E70;
  --pistachio: #C6D1A0;
  --olive: #ACB77D;
  --pistachio-soft: #EBEFDC;
  --olive-text: #5D6634;
  --lily: #E6DFC8;
  --ink: #3E3E37;
  --ink-2: #57574D;
  --cream: #F8F6F0;
  --canvas: #F3F1EA;
  --line: #E4E2D8;
  --line-strong: #CFCDC0;
  --muted: #727166;
  --good: #3F6B4F;
  --bad: #8E2F2B;
  --bad-soft: #F5DFDD;
  --display: "Grosvenor", "Snell Roundhand", "Apple Chancery", cursive;
  --ui: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Subheadline font (customer name). Degular Demo is for testing only, so Figtree stands in;
     after buying the Degular webfont licence, add its @font-face and put "Degular" first here. */
  --sub: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
.page { max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--cream); display: flex; flex-direction: column; }
.page.card-page { background: var(--canvas); }
.program { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: 0; }

/* Hero */
.hero { position: relative; height: 176px; overflow: hidden; flex-shrink: 0; background: var(--sage); }
.hero .wm { position: absolute; left: 20px; top: 26px; width: min(240px, 62%); height: auto; }
.hero .lily-a { position: absolute; right: -18px; top: 14px; height: 196px; }
.hero .lily-b { position: absolute; right: 88px; top: 70px; height: 128px; opacity: 0.9; }
.hero .tag { position: absolute; left: 20px; bottom: 18px; font-family: var(--ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-text); font-weight: 600; }
/* Front Page Visual: uploaded photos (1–3, a carousel when more than one) replace the sage + lilies */
.hero.photo { animation: hero-in .4s ease; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hero.photo .lily-a, .hero.photo .lily-b { display: none; }
.hero .slides { position: absolute; inset: 0; overflow: hidden; }
.hero .slides-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.hero .slide { flex: 0 0 100%; height: 100%; background-size: cover; background-repeat: no-repeat; }
.hero .wm, .hero .tag, .hero a { z-index: 1; }
.hero .wm, .hero .tag { transition: filter .4s ease, color .4s ease; }
.hero.light .wm { filter: brightness(0) invert(1); }
.hero.light .tag { color: #F8F6F0; }
.hero-dots { position: absolute; right: 20px; bottom: 20px; z-index: 1; display: flex; gap: 6px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; color: var(--ink); transition: opacity .3s ease, width .3s ease; }
.hero-dots i.on { opacity: .9; width: 16px; border-radius: 3px; }
.hero.light .hero-dots i { color: #F8F6F0; }
@keyframes hero-in { from { opacity: .4; } to { opacity: 1; } }

main { flex: 1; padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.intro .program { font-size: 64px; color: var(--ink); margin: 0; }
h1 { font-family: var(--ui); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 10px 0 0; letter-spacing: -0.01em; }
.lead { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 8px 0 0; }

/* Form */
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input, .select {
  height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px;
  font-family: var(--font); font-weight: 400; font-size: 16px; color: var(--ink); background: #FFFFFF; width: 100%; min-width: 0;
}
.input:focus, .select:focus, .chip:focus-visible, .btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.phone-row { display: flex; gap: 8px; }
.phone-row .select { flex: 0 0 116px; padding: 0 8px; }
.saved { font-size: 12px; font-weight: 500; color: var(--good); }
.saved b { font-weight: 700; }
.warn { font-size: 12px; font-weight: 600; color: var(--olive-text); }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 4px 0 0; min-width: 0; }
legend { padding: 0; width: 100%; font-family: var(--ui); font-size: 15px; font-weight: 600; color: var(--ink); }
legend .tag { float: right; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--sage-text); letter-spacing: 0.08em; text-transform: uppercase; }
legend .tag.opt { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 15px; border-radius: 999px; font-family: var(--ui); font-weight: 500; font-size: 13px; cursor: pointer;
  background: #FFFFFF; color: var(--ink-2); border: 1px solid var(--line-strong);
}
.chip[aria-pressed="true"] { background: var(--sage); color: var(--ink); border-color: var(--sage-deep); font-weight: 600; }
.other { margin-top: 10px; border-color: var(--sage-deep); }
.ingr { display: flex; flex-direction: column; gap: 8px; }
.ingr label { display: flex; align-items: center; gap: 10px; }
.ingr .n { width: 26px; height: 26px; border-radius: 50%; background: var(--pistachio-soft); color: var(--olive-text); font-family: var(--ui); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sage-text); flex-shrink: 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.btn {
  height: 52px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); font-family: var(--ui); font-weight: 600; font-size: 15px;
  cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; letter-spacing: 0.01em;
}
.btn:disabled { background: var(--line-strong); color: var(--ink-2); cursor: default; }
.btn.light { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line-strong); }
.missing { text-align: center; font-size: 12px; color: var(--olive-text); font-weight: 600; min-height: 16px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; background: var(--bad-soft); color: var(--bad); }

/* Done / message screens */
.done { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding-top: 24px; }
.done .lily { height: 96px; width: auto; }
.done .program { font-size: 52px; }
.done h1 { margin: 0; }
.done p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 340px; }
.done .no { font-family: var(--ui); font-weight: 600; font-size: 22px; letter-spacing: 0.08em; }

/* Member card page */
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 2px; }
.card-top img { height: 22px; width: auto; }
.card-top .program { font-size: 30px; color: var(--ink); }
.mcard { position: relative; height: 218px; border-radius: 22px; overflow: hidden; background: var(--sage); color: var(--ink); box-shadow: 0 18px 40px rgba(62, 62, 55, 0.16); }
.mcard.gold { background: var(--pistachio); }
.mcard.platinum { background: var(--ink); color: var(--cream); box-shadow: 0 18px 40px rgba(62, 62, 55, 0.32); }
.mcard .lily { position: absolute; right: -14px; bottom: -22px; height: 210px; opacity: 0.95; }
.mcard .in { position: absolute; inset: 0; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.mcard .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard .row1 .program { font-size: 34px; }
.tier-chip { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; padding: 6px 11px; border-radius: 999px; text-transform: uppercase; background: rgba(255,255,255,0.7); color: var(--ink); }
.mcard.platinum .tier-chip { background: var(--cream); color: var(--ink); }
/* The tier chip gently grows and shrinks (a still chip for people who turn animations off) */
.mcard .tier-chip { display: inline-block; transform-origin: center; animation: tier-breathe 2.4s ease-in-out infinite; will-change: transform; }
@keyframes tier-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .mcard .tier-chip { animation: none; } }
.card-tip { margin: -6px 4px 0; text-align: center; font-family: var(--ui); font-size: 12px; line-height: 1.45; color: var(--muted); }
.mcard .who { font-family: var(--sub); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; max-width: 78%; overflow-wrap: anywhere; }
.mcard .since { font-family: var(--ui); font-size: 12px; margin-top: 6px; letter-spacing: 0.04em; color: rgba(62, 62, 55, 0.78); }
.mcard.platinum .since { color: rgba(248, 246, 240, 0.75); }
.box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.box h2 { margin: 0 0 10px; font-family: var(--ui); font-size: 15px; font-weight: 600; }
.cashier { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cashier .k { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cashier .v { font-family: var(--ui); font-weight: 600; font-size: 21px; margin-top: 4px; letter-spacing: 0.03em; }
.cashier .d { text-align: right; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.prog-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.prog-h b { font-family: var(--ui); font-weight: 600; }
.prog-h span { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: #ECEADF; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage-deep), var(--olive)); }
.prog-t { font-size: 13px; margin-top: 10px; line-height: 1.45; color: var(--ink-2); }
.perk { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EEECE4; font-size: 14px; }
.perk:last-child { border-bottom: 0; }
.perk .new { margin-left: auto; font-family: var(--ui); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--pistachio-soft); color: var(--olive-text); }
.tiers-list .t { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEECE4; }
.tiers-list .t:last-child { border-bottom: 0; }
.tiers-list .t .c { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.tiers-list .t .h { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.tiers-list .t .h b { font-family: var(--ui); font-weight: 600; }
.tiers-list .t .h span { font-size: 12px; color: var(--muted); font-weight: 500; }
.tiers-list .t .p { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.you { font-family: var(--ui); font-size: 11px; font-weight: 700; color: var(--sage-text); margin-left: 6px; letter-spacing: 0.06em; }
.tagline { text-align: center; font-family: var(--ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-text); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shared bits ---------- */
.small { font-size: 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.btn.sm { height: 40px; width: auto; padding: 0 18px; font-size: 13px; flex-shrink: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-family: var(--ui); font-weight: 600; color: var(--sage-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.box .linkish { font-size: 13px; margin-top: 12px; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- Home ---------- */
.welcome-back { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--pistachio-soft); border: 1px solid var(--pistachio); }
.welcome-back b { display: block; font-family: var(--ui); font-size: 15px; }
.welcome-back span { font-size: 12px; color: var(--olive-text); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.find { display: flex; flex-direction: column; gap: 14px; }
.find h2 { margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; font-size: 14px; line-height: 1.45; }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-text); font-family: var(--ui); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps b { font-family: var(--ui); font-weight: 600; }
.steps span { font-size: 13px; color: var(--ink-2); }
.already-link { align-self: flex-end; font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--sage-text); text-decoration: none; margin-bottom: -6px; }
.consent .req { color: #B5523B; font-weight: 600; margin-left: 2px; }

/* ---------- Member card: top bar, tabs ---------- */
.card-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.card-top a { display: flex; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; cursor: pointer; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: var(--ui); font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tab-h { display: flex; align-items: center; gap: 6px; }
.tab-h h1 { margin: 0; font-size: 26px; font-weight: 600; }
.back { width: 36px; height: 36px; margin-left: -8px; display: flex; align-items: center; justify-content: center; color: var(--ink); border-radius: 50%; }
.back svg, .stamp-tile .chev { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Perks with icons */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--sage-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.perk .pt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.perk .pt b { font-family: var(--ui); font-weight: 600; }
.perk .pt span { font-size: 12px; color: var(--muted); }
.box > .perk:first-child { padding-top: 2px; }
.box > .perk:last-child { padding-bottom: 2px; }

/* Rewards ready */
.ready { background: var(--pistachio-soft); border-color: var(--pistachio); display: flex; flex-direction: column; gap: 10px; }
.ready .k { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-text); }
.ready-r { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ready-r b { font-family: var(--ui); font-weight: 600; }
.ready-r .ic { stroke: var(--olive-text); margin-top: 1px; }

/* Stamp tile on the Card tab */
.stamp-tile { position: relative; display: block; background: var(--ink); border-color: var(--ink); color: var(--cream); text-decoration: none; padding-right: 44px; }
.stamp-tile .st-h { font-family: var(--ui); font-weight: 600; font-size: 14px; }
.stamp-tile .dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.stamp-tile .dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(248, 246, 240, 0.55); }
.stamp-tile .dots i.rw { border-color: var(--pistachio); }
.stamp-tile .dots i.on { background: var(--pistachio); border-color: var(--pistachio); }
.stamp-tile .st-t { font-size: 13px; color: rgba(248, 246, 240, 0.8); }
.stamp-tile .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--cream); }

/* ---------- The stamp card (like the printed card) ---------- */
.scard { background: var(--olive); color: var(--ink); border-radius: 20px; padding: 22px 18px 18px; box-shadow: 0 14px 34px rgba(62, 62, 55, 0.14); }
/* one line: être letters = Studio Sable capital height, shared baseline */
.scard-brands { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.scard-brands .etre { height: 28px; width: auto; }
.scard-brands .sable { height: 22px; width: auto; }
.scard-h { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; text-align: center; margin: 14px 0 4px; }
.scard-s { font-family: var(--ui); font-size: 13px; text-align: center; margin: 0 0 16px; color: #3E3E37; }
.scard-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; container-type: inline-size; }
.slot { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1.6px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 11%; gap: 1cqw; }
/* Everything inside a circle is sized from the stamp grid's width (cqw), so the card keeps the same
   proportions on a phone, an iPad and a desktop. Pixel values first are the fallback for older browsers. */
.slot .rt { font-family: var(--ui); font-weight: 400; font-size: 12px; font-size: 4cqw; line-height: 1.18; }
.slot .rt.long { font-size: 10px; font-size: 3.2cqw; }
.slot .sd { font-family: var(--ui); font-size: 10px; font-size: 3.3cqw; font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; }
/* A stamp: the circle fills with ink and shows the brand it was earned with (ê or SS).
   Both marks have the same height in every circle; the width follows each logo's own shape. */
.mk { display: block; flex: none; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; height: 22px; height: 7.5cqw; }
.mk-e { -webkit-mask-image: url("../assets/mark-e.png"); mask-image: url("../assets/mark-e.png"); aspect-ratio: 150 / 208; }
.mk-ss { -webkit-mask-image: url("../assets/mark-ss.png"); mask-image: url("../assets/mark-ss.png"); aspect-ratio: 173 / 208; transform: scale(0.92); } /* the SS monogram is wider, so it reads a touch smaller to match the ê */
.slot.on { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(248, 246, 240, 0.55); }
.slot.reward.on { gap: 0.7cqw; }
.slot.reward.on .rt { font-size: 11px; font-size: 3.6cqw; }
.slot.reward.on .rt.long { font-size: 9px; font-size: 2.95cqw; }
/* ✅ redeemed / 🎁 ready: a round sticker on the circle's edge (top-right, at 45°), sized from the circle */
.slot .badge-e { position: absolute; top: 0; right: 0; width: 28%; height: 28%; padding: 0; border-radius: 50%; background: var(--cream);
  box-shadow: 0 0 0 1.5px var(--ink), 0 2px 6px rgba(62, 62, 55, 0.2);
  display: grid; place-items: center; font-size: 15px; font-size: 5cqw; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.slot .badge-e.is-ready { animation: gift-pulse 1.4s ease-in-out infinite; }
@keyframes gift-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .slot .badge-e.is-ready { animation: none; } }
.scard-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1.5px solid rgba(62, 62, 55, 0.6); }
.scard-foot span { display: block; font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(62, 62, 55, 0.75); }
.scard-foot b { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.scard-foot div:last-child { text-align: right; }

/* Rewards list */
.rw-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #EEECE4; }
.box h2 + .rw-row { border-top: 0; padding-top: 2px; }
.rw-row .n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--muted); font-family: var(--ui); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rw-row.reached .n { background: var(--olive); border-color: var(--olive); color: var(--ink); }
.rw-row .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.rw-row .rt b { font-family: var(--ui); font-weight: 600; }
.rw-row .rt span { font-size: 12px; color: var(--muted); }
.chip-s { font-family: var(--ui); font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #F1EFE8; color: var(--muted); white-space: nowrap; }
.chip-s.ready { background: var(--pistachio-soft); color: var(--olive-text); }
.chip-s.done { background: var(--sage-soft); color: var(--sage-text); }
.past { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-top: 1px solid #EEECE4; }
.box h2 + .past { border-top: 0; }
.bul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

/* Bottom sheet (terms, account) */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 460px; max-height: 86vh; border-radius: 22px 22px 0 0; background: var(--cream); color: var(--ink); }
.sheet::backdrop { background: rgba(62, 62, 55, 0.45); }
.sheet-in { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font-family: var(--ui); font-size: 18px; font-weight: 600; }
.sheet h3 { margin: 10px 0 0; font-family: var(--ui); font-size: 14px; font-weight: 600; }
.sheet ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sheet p { margin: 0; }
.sheet .btn { margin-top: 10px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #ECEADF; font-size: 22px; line-height: 1; cursor: pointer; }

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .page { border-radius: 28px; overflow: hidden; min-height: calc(100vh - 48px); box-shadow: 0 10px 40px rgba(62, 62, 55, 0.08); }
  .tabbar { bottom: 24px; border-radius: 0 0 28px 28px; }
}
@media (max-width: 360px) {
  .scard-h { font-size: 28px; }
}
.sheet a { color: var(--sage-text); font-weight: 600; text-underline-offset: 2px; }

/* Live preview inside the dashboard (Front Page Visual): flash the text being edited */
.is-preview .pv-flash { animation: pv-flash 1.2s ease; border-radius: 6px; }
@keyframes pv-flash { 0%, 40% { background: rgba(201, 214, 120, 0.45); box-shadow: 0 0 0 4px rgba(201, 214, 120, 0.45); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .is-preview .pv-flash { animation: none; } }
