/* WYK Pass, light & airy. bg #FAF8F5, cards #FFF/#EDE8E3 r16, burgundy #8E2A4D as a 5% accent. */
:root {
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --line: #EDE8E3;
  --ink: #1F1A17;
  --mut: #6B625C;
  --brand: #8E2A4D;
  --brand-dark: #6E1F3B;
  --brand-soft: #F6EBEF;
  --tile-a: #F6E7ED;   /* rose */
  --tile-b: #F1E6DF;   /* warm clay */
  --tile-c: #F3DFE7;   /* dusty rose */
  --shadow: 0 6px 20px rgba(90,60,72,.09);
  --shadow-lg: 0 14px 32px rgba(110,31,59,.20);
  --r: 18px;
  --r-lg: 24px;
  --disp: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}
/* warm halo behind the top of the page so the hero has an anchor */
body.home-bg {
  background:
    radial-gradient(130% 52% at 50% -6%, #F7E7EC 0%, rgba(247,231,236,0) 60%),
    var(--bg);
  background-attachment: fixed;
}
body.fadein { animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 20px 40px; }
a { color: inherit; text-decoration: none; }
.ic { width: 22px; height: 22px; flex: none; }

/* buttons + cards share the one tap motion */
button, .chip, .cat-card, .link-card, .wide-card, .call-btn, .st-btn, .ans-link, .backlink {
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
button:active, .chip:active, .cat-card:active, .link-card:active,
.wide-card:active, .call-btn:active, .st-btn:active { transform: scale(.97); }

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.backlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mut); font-size: 15px; }
.backlink .ic { width: 19px; height: 19px; }
.topbrand { font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--mut); }
.topbrand b { color: var(--brand); font-weight: 700; }

/* ---------------- home ---------------- */
/* full-bleed symbolic hero photo */
.hero-photo {
  position: relative; width: 100%; min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%; z-index: -2;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,30,55,.28) 0%, rgba(20,30,55,0) 30%),
    linear-gradient(180deg, rgba(110,31,59,0) 46%, rgba(110,31,59,.45) 76%, rgba(84,20,44,.94) 100%);
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 0; padding-top: calc(16px + env(safe-area-inset-top));
}
.hero-top .brand { background: rgba(255,255,255,.92); color: var(--brand); }
.hero-top .acct-link { background: rgba(255,255,255,.92); color: var(--brand-dark); box-shadow: none; }
.hero-body { padding: 0 20px 22px; }
.hero-body h1 {
  font-family: var(--disp); font-size: 46px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.02; color: #fff;
  text-shadow: 0 2px 18px rgba(30,8,16,.35);
}
.hero-body .promise { color: rgba(255,255,255,.92); margin-top: 10px; font-size: 16.5px; font-weight: 500; }
.home-photo-bg .wrap.home { padding-top: 22px; }

.home-head { padding: 26px 0 8px; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-link {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 13.5px; font-weight: 600; color: var(--brand-dark);
  background: var(--card); border-radius: 999px; padding: 8px 15px;
  box-shadow: var(--shadow);
}
.acct-link .ic { width: 15px; height: 15px; color: var(--brand); }
.brand {
  font-family: var(--disp); font-size: 13px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .14em;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
}
.brand b { color: var(--brand); font-weight: 800; }
.home-head h1 {
  font-family: var(--disp); font-size: 44px; font-weight: 780;
  letter-spacing: -.03em; line-height: 1.04; margin-top: 18px;
  background: linear-gradient(120deg, var(--ink) 40%, var(--brand) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promise { color: var(--mut); margin-top: 12px; font-size: 16.5px; font-weight: 450; }

.sec-title {
  font-family: var(--disp); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink);
  margin: 32px 0 14px; display: flex; align-items: center; gap: 9px;
}
.sec-title::before {
  content: ""; width: 16px; height: 4px; border-radius: 2px;
  background: var(--brand); flex: none;
}

/* Right Now emergency row */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px 6px 13px; font-family: var(--body); font-size: 12.5px; font-weight: 700;
  color: var(--ink); cursor: pointer; text-align: center; line-height: 1.2;
  transition: box-shadow .15s ease;
}
.chip .ic {
  color: var(--brand); width: 20px; height: 20px;
  padding: 9px; box-sizing: content-box; border-radius: 12px; background: var(--tile-a);
}
.chip[aria-expanded="true"] { background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.chip[aria-expanded="true"] .ic { color: #fff; background: rgba(255,255,255,.18); }

.answer {
  margin-top: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  animation: fade .12s ease-out;
}
.answer h3 { font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.mini-steps { margin: 10px 0 0 0; padding-left: 20px; color: var(--ink); }
.mini-steps li { margin-bottom: 6px; font-size: 15px; }
.mini-st { margin-top: 14px; background: var(--bg); border-radius: 12px; padding: 14px; }
.ans-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  border-radius: 999px; padding: 10px 18px;
}
.call-btn .ic { width: 17px; height: 17px; }
.ans-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--brand); }
.ans-link .ic { width: 16px; height: 16px; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 18px 16px 17px;
}
.cat-card .ic {
  width: 24px; height: 24px; color: #fff; margin-bottom: 9px; stroke-width: 2;
  padding: 12px; box-sizing: content-box; border-radius: 16px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 7px 15px rgba(142,42,77,.26);
}
.cat-card:nth-child(3n+2) .ic { background: linear-gradient(140deg, #A6375C 0%, #7A2242 100%); }
.cat-card:nth-child(3n) .ic { background: linear-gradient(140deg, #B14A6E 0%, var(--brand) 100%); }
.cat-card b { font-family: var(--disp); font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.cat-card small { color: var(--mut); font-size: 13.5px; line-height: 1.4; }

/* wide cards (season, picks) */
.wide-card {
  display: flex; align-items: center; gap: 15px; margin-top: 14px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 17px 18px;
}
.wc-ic {
  width: 50px; height: 50px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff;
  box-shadow: 0 7px 15px rgba(142,42,77,.26);
}
.wc-ic .ic { width: 24px; height: 24px; stroke-width: 2; }
.wc-pick { background: linear-gradient(140deg, #B14A6E 0%, var(--brand) 100%); color: #fff; }
.wc-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wc-txt b { font-family: var(--disp); font-size: 17.5px; font-weight: 750; letter-spacing: -.01em; }
.wc-txt small { color: var(--mut); font-size: 13.5px; }
.lc-chev { color: var(--mut); flex: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; font-weight: 800; color: var(--mut); }

/* Discover = the killer feature, rendered as a burgundy hero anchor */
.wide-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; box-shadow: var(--shadow-lg); padding: 20px 20px;
}
.wide-hero .wc-ic { background: rgba(255,255,255,.16); color: #fff; }
.wide-hero .wc-txt b { color: #fff; font-size: 19px; }
.wide-hero .wc-txt small { color: rgba(255,255,255,.82); }
.wide-hero .eyebrow, .wide-hero .eyebrow-pick { color: #F4C9D6 !important; }
.wide-hero .lc-chev { color: rgba(255,255,255,.85); }
.eyebrow-pick { color: var(--brand); }
.lc-chev { width: 18px; height: 18px; color: var(--mut); flex: none; }

/* ---------------- shared page hero ---------------- */
.hero { padding: 26px 0 6px; }
.hero-ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.hero-ic .ic { width: 24px; height: 24px; }
.hero h1 { font-family: var(--disp); font-size: 32px; font-weight: 750; letter-spacing: -.02em; line-height: 1.12; }
.hero .sub { color: var(--mut); margin-top: 10px; font-size: 16px; }
.stamp {
  display: inline-block; margin-top: 14px;
  font-size: 12.5px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 12px;
}

/* ---------------- guide sections ---------------- */
.g-sec { margin-top: 30px; }
.g-sec h2 { font-family: var(--disp); font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.callout {
  margin-top: 26px; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--r); padding: 18px;
}
.callout h3 { font-family: var(--disp); font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.callout p { color: var(--ink); font-size: 15px; }

.steps { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  counter-increment: st; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 16px 56px;
}
.steps li::before {
  content: counter(st);
  position: absolute; left: 16px; top: 17px;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--disp); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-family: var(--disp); font-size: 16.5px; font-weight: 700; }
.steps p { color: var(--mut); font-size: 14.5px; margin-top: 4px; }

.dots { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dots li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px 12px 30px; font-size: 14.5px; position: relative;
}
.dots li::before {
  content: ""; position: absolute; left: 14px; top: 19px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand);
}

/* show this blocks */
.st-card, .mini-st { border: 1px solid var(--line); border-radius: var(--r); }
.st-card { background: var(--card); padding: 20px; }
.ko { font-size: 24px; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.rom { color: var(--brand); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.en { color: var(--mut); font-size: 15px; margin-top: 6px; }
.st-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; font-family: var(--body); font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.st-btn .ic { width: 16px; height: 16px; }

/* checklists (settle) */
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks label { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks .box {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--bg); flex: none; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.checks .box .ic { width: 15px; height: 15px; }
.checks input:checked + .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.checks input:checked ~ .ck-txt { opacity: .55; }
.ck-txt { display: flex; flex-direction: column; gap: 2px; }
.ck-txt b { font-size: 15.5px; }
.ck-txt small { color: var(--mut); font-size: 13.5px; line-height: 1.45; }

.sources { margin-top: 34px; color: var(--mut); font-size: 13px; }
.sources summary { cursor: pointer; font-weight: 600; }
.sources ul { margin: 10px 0 0 18px; }
.sources a { text-decoration: underline; }

/* ---------------- phrase pages ---------------- */
.phrase {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; margin-top: 16px;
}
.note { margin-top: 10px; font-size: 13.5px; color: var(--mut); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.replies { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.replies h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--mut); font-weight: 700; margin-bottom: 10px;
}
.reply { margin-bottom: 10px; }
.r-ko { font-size: 15.5px; font-weight: 600; word-break: keep-all; }
.r-rom { font-size: 12px; color: var(--brand); font-weight: 600; margin-left: 6px; }
.r-en { font-size: 13.5px; color: var(--mut); margin-top: 1px; }

/* ---------------- link lists (category pages) ---------------- */
.link-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.link-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
}
.lc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lc-txt b { font-family: var(--disp); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.lc-txt small { color: var(--mut); font-size: 13.5px; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--mut); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; flex: none;
}
.badge-now { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

/* ---------------- picks ---------------- */
.legend { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 10px; }
.lg-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.legend b { font-family: var(--disp); font-size: 15.5px; }
.legend small { display: block; color: var(--mut); font-size: 13.5px; margin-top: 2px; }
.pick-skeleton { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.sk-img { height: 110px; border-radius: 12px; background: linear-gradient(100deg, #F3EFEA 40%, #FAF8F5 50%, #F3EFEA 60%); background-size: 200% 100%; animation: shim 1.8s infinite linear; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 12px; background: #F3EFEA; }
.w60 { width: 60%; } .w40 { width: 40%; } .w80 { width: 80%; }
@keyframes shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-img { animation: none; } body.fadein { animation: none; } }

/* ---------------- show this overlay ---------------- */
.st-overlay[hidden] { display: none; }
.st-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  animation: slideup .2s ease-out;
}
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.st-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.st-close .ic { width: 20px; height: 20px; }
.st-ko { font-size: clamp(34px, 9vw, 56px); font-weight: 800; line-height: 1.3; word-break: keep-all; }
.st-rom { color: var(--brand); font-weight: 600; font-size: 17px; margin-top: 16px; }
.st-en { color: var(--mut); font-size: 18px; margin-top: 10px; }
.st-hint { position: absolute; bottom: 26px; left: 0; right: 0; color: var(--mut); font-size: 13px; }

/* ---------------- footer ---------------- */
.foot { max-width: 640px; margin: 0 auto; padding: 30px 20px 44px; border-top: 1px solid var(--line); text-align: center; }
.foot-promise { font-family: var(--disp); font-weight: 600; font-size: 14.5px; color: var(--mut); }
.foot-class { margin-top: 12px; font-size: 13.5px; color: var(--mut); }
.foot-class a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.foot-brand { margin-top: 14px; font-size: 12px; color: #A39A93; }

/* ---------------- account / sign in ---------------- */
.auth { max-width: 480px; }
.auth .hero { padding-top: 18px; }
.auth-val { color: var(--mut); margin-top: 10px; font-size: 16px; }

.inapp-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--brand-soft); border: 1px solid transparent;
  border-radius: var(--r); padding: 14px 16px; margin-top: 18px;
}
.inapp-note[hidden] { display: none; }
.inapp-note .ic { color: var(--brand); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.inapp-note b { font-family: var(--disp); font-size: 14.5px; }
.inapp-note small { display: block; color: var(--mut); font-size: 13px; margin-top: 2px; }

.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; margin-top: 20px;
}
.auth-card[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--mut); }
.field label b { color: var(--ink); }
.field input {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
.field input:focus { outline: none; border-color: var(--brand); }
.field-year { max-width: 150px; }

.btn-primary {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 14px 18px;
  font-family: var(--body); font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: default; }

.hint { color: var(--mut); font-size: 13px; margin-top: 12px; text-align: center; }
.hint a { color: var(--brand); font-weight: 600; }

.auth-or {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 16px;
  color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.provider-row { display: flex; flex-direction: column; gap: 10px; }
/* social providers ship hidden until configured (display rules above would
   otherwise beat the UA [hidden] default) */
.auth-or[hidden], .provider-row[hidden] { display: none; }
.btn-ghost {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font-family: var(--body); font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-ghost .ic { width: 18px; height: 18px; }

/* ---------------- signed-in account panel ---------------- */
.acct-panel[hidden] { display: none; }
.acct-email { color: var(--mut); font-size: 14.5px; margin-bottom: 16px; text-align: center; }
.acct-email b { color: var(--ink); word-break: break-all; }
.acct-signout { margin-top: 10px; }
.acct-danger { margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 18px; }
.btn-danger {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: #B4453C; border: 1px solid #EDD5D2; border-radius: 999px;
  padding: 12px 18px; font-family: var(--body); font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-danger:disabled { opacity: .6; cursor: default; }
.acct-danger-hint { margin-top: 10px; }

.guest-wrap { text-align: center; margin-top: 22px; }
.guest-wrap[hidden] { display: none; }
.guest-btn {
  background: none; border: 0; color: var(--mut); font-family: var(--body);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.otp-input { text-align: center; letter-spacing: .4em; font-size: 26px; font-weight: 700; font-family: var(--disp); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 18px; border-radius: 999px; max-width: 90vw; text-align: center;
  transition: transform .18s ease, opacity .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .18s ease; } }

/* ---------------- privacy consent (account sign-up) ---------------- */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 2px 0 16px; font-size: 13.5px; line-height: 1.5;
  color: var(--mut); cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex: none;
  accent-color: var(--brand); cursor: pointer;
}
.consent a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent-req { font-style: normal; font-size: 12px; color: #A39A93; }

/* ---------------- legal footer line (injected by pass.js on every page) ------ */
.foot-legal { margin-top: 16px; font-size: 11.5px; line-height: 1.75; color: #A39A93; }
.foot-legal a { color: var(--mut); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- legal pages (privacy.html) ---------------- */
.legal section { margin-top: 30px; }
.legal h2 {
  font-family: var(--disp); font-size: 19px; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 10px;
}
.legal h3 {
  font-family: var(--disp); font-size: 15.5px; font-weight: 700;
  letter-spacing: -.01em; margin: 18px 0 8px; color: var(--brand);
}
.legal p { margin-bottom: 10px; font-size: 15px; color: var(--ink); }
.legal ul, .legal ol { padding-left: 20px; margin: 8px 0 10px; }
.legal li { margin-bottom: 8px; font-size: 15px; }
.legal a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-meta {
  margin-top: 14px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 13.5px; color: var(--mut);
}
.legal-table {
  width: 100%; border-collapse: collapse; margin: 10px 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; font-size: 13.5px;
}
.legal-table th, .legal-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; line-height: 1.5;
}
.legal-table th {
  font-family: var(--disp); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--mut);
  background: var(--bg);
}
.legal-table tr:last-child td { border-bottom: none; }
/* 폰에서는 4열이 가로로 넘친다. 행을 카드로 접고 th 이름을 셀 위에 붙인다. */
@media (max-width: 620px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
  .legal-table tr:last-child { border-bottom: none; }
  .legal-table td { border-bottom: none; padding: 6px 12px; }
  .legal-table td::before {
    content: attr(data-l);
    display: block; margin-bottom: 2px;
    font-family: var(--disp); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--mut);
  }
}
.legal-ko-note { font-size: 13.5px; color: var(--mut); }
.legal-biz ul { list-style: none; padding-left: 0; }
.legal-biz li { font-size: 14px; color: var(--mut); margin-bottom: 6px; }

/* ------------- global bottom tab bar (injected by pass.js on every page) ---- */
/* 08 Warm Card Stack: floating white pill, warm shadow, brand active. Sits
   BELOW the discover route bar (z 70) so "Plan route" stays on top. */
.wyk-tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  width: calc(100% - 32px); max-width: 560px; height: 72px;
  background: #fff; border-radius: 28px; box-shadow: 0 10px 26px rgba(90,60,72,.16);
  display: flex; align-items: center; justify-content: space-around; padding: 0 8px;
}
.wyk-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 62px; padding: 4px 0; color: #B9AAB0; text-decoration: none;
  font-family: var(--body); font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 14px; transition: transform .12s ease, color .12s ease;
}
.wyk-tab:active { transform: scale(.94); }
.wyk-tab .ic { width: 24px; height: 24px; }
.wyk-tab.active { color: var(--brand); }
/* clear the bar so page content and the footer never hide behind it */
body.has-wyktabbar { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
/* floating helpers lift above the bar */
body.has-wyktabbar .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
body.has-wyktabbar .a2hs { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------------- A2HS banner ---------------- */
.a2hs {
  position: fixed; left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60; display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 20px; padding: 13px 14px 13px 18px;
  box-shadow: 0 14px 34px rgba(60,25,40,.22);
  animation: a2hs-up .25s ease-out;
  max-width: 610px; margin: 0 auto;
}
@keyframes a2hs-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.a2hs-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.a2hs-txt b { font-family: var(--disp); font-size: 15.5px; font-weight: 750; color: var(--ink); }
.a2hs-txt small { color: var(--mut); font-size: 12.5px; }
.a2hs-go {
  flex: none; border: 0; cursor: pointer; font: inherit;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; font-weight: 800; font-size: 13.5px;
  border-radius: 14px; padding: 10px 18px;
}
.a2hs-x {
  flex: none; border: 0; cursor: pointer; width: 32px; height: 32px;
  border-radius: 50%; background: var(--bg); color: var(--mut); font-size: 13px;
}

/* ---------------- desktop ---------------- */
@media (min-width: 720px) {
  .home-head h1 { font-size: 52px; }
  .chips { gap: 12px; }
  .chip { font-size: 13.5px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
