/* Club Creyente — black + cream, Luis's wordmark (same palette as print/impresos.html). Mobile first. */
/* Fonts are self-hosted (OFL, licenses next to the files) so no visitor IP goes to Google. */
@font-face { font-family: Fraunces; src: url(/assets/fraunces-latin.woff2) format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/assets/fraunces-latin-italic.woff2) format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/inter-latin-wght.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --cream: #F6EFE4; --cream-2: #EFE4D2; --ink: #141210; --ink-2: #4A433B; --line: #DCCFBB;
  --accent: #B5532A; --accent-ink: #fff; --ok: #2F6B3A; --warn: #9A5B00; --bad: #A12A1F;
  --radius: 18px; --shadow: 0 10px 30px rgba(20, 18, 16, .08);
  --serif: Fraunces, Georgia, 'Times New Roman', serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 9vw, 4rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(520px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.top .logo img { height: 34px; width: auto; }
.top nav a { font-weight: 600; text-decoration: none; font-size: .95rem; }
.draft { background: var(--ink); color: var(--cream); font-size: .8rem; text-align: center; padding: 6px 12px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--cream); font: 600 1.02rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn.alt { background: transparent; color: var(--ink); }
.btn.wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small-btn { min-height: 44px; width: auto; padding: 10px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; flex: none; }
.stack { display: grid; gap: 12px; }

/* hero */
.hero { padding: 28px 0 40px; display: grid; gap: 28px; }
.hero .kicker { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--accent); margin-bottom: 10px; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); }
.hero .art { border-radius: 28px; background: var(--ink); color: var(--cream); padding: 28px; position: relative; overflow: hidden; min-height: 240px; display: grid; align-content: end; }
.hero .art::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, #B5532A 0, transparent 70%); opacity: .55; }
.hero .art .big { font: 700 4.5rem/1 var(--serif); position: relative; }
.hero .art p { position: relative; margin: 0; color: #E9DCC7; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px 0 72px; } }

/* sections */
section { padding: 40px 0; }
section.alt { background: var(--cream-2); }
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 28px; height: 28px; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 700; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 400; }
details[open] summary::after { content: '–'; }
footer { padding: 32px 0 48px; font-size: .9rem; color: var(--ink-2); }
footer a { margin-right: 14px; }

/* forms */
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input:not([type]), textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 400 1.05rem var(--sans); color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 1.6rem !important; font-weight: 700 !important; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.msg { padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.msg.err { background: #FBE7E4; color: var(--bad); }
.msg.ok { background: #E4F1E6; color: var(--ok); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--cream-2); padding: 6px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.tabs button[aria-selected=true] { background: #fff; box-shadow: var(--shadow); }
.panel { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 16px 0 32px; }
.success { text-align: center; padding: 10px 0; }
.success .big { font: 700 3.2rem/1 var(--serif); }

/* portal */
.app-nav { position: sticky; bottom: 0; background: var(--ink); display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.app-nav a { color: #CFC2AE; text-decoration: none; font-size: .68rem; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; text-align: center; }
.app-nav a[aria-current=page] { color: #fff; background: rgba(255, 255, 255, .1); }
.app-nav svg { width: 22px; height: 22px; }
@media (min-width: 760px) { .app-nav { position: static; border-radius: 999px; margin: 10px auto 0; width: min(720px, 100% - 32px); font-size: .8rem; } }
.qr { background: #fff; border-radius: 18px; padding: 14px; width: min(280px, 100%); margin: 16px auto; }
.cups { display: flex; gap: 10px; margin: 8px 0 12px; }
.cup { width: 54px; height: 54px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; }
.cup.on { border: 2px solid var(--ink); background: var(--cream); }
.cup svg { width: 30px; height: 30px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.progress span { height: 12px; border-radius: 999px; background: var(--cream-2); }
.progress span.on { background: var(--accent); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.pill.Bloqueado { background: var(--cream-2); color: var(--ink-2); }
.pill.Disponible { background: #E4F1E6; color: var(--ok); }
.pill.Canjeado { background: #EDE7DD; color: var(--ink-2); text-decoration: line-through; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.stat { font: 700 2.4rem/1 var(--serif); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* staff */
.staff-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: 16px; margin: 12px 0; }
.staff-bar .daycode { font: 700 1.8rem var(--sans); letter-spacing: .25em; }
.results button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font: 500 1rem var(--sans); cursor: pointer; }
.big-status { font: 700 1.4rem var(--serif); }
.status-ok { color: var(--ok); } .status-bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
dialog { border: 0; border-radius: 20px; padding: 24px; width: min(420px, 100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20, 18, 16, .5); }
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade .5s ease both; }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- landing (club.html) ---------- */
.landing h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); letter-spacing: -.025em; }
.landing h1 em { font-style: italic; color: var(--accent); }
.landing h2 { font-size: clamp(1.8rem, 6.5vw, 2.8rem); }
.landing section { padding: 56px 0; }
.kicker { font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--accent); margin: 0 0 10px; }
.nav-pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; min-height: 48px; }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.l-hero { display: grid; gap: 28px; padding: 12px 0 40px !important; }
.l-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.l-ctas { max-width: 420px; margin: 22px 0 10px; }
.l-hero-art { margin: 0; position: relative; }
.l-hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--cream-2); }
.l-badge { position: absolute; left: 16px; bottom: -18px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream); border-radius: 18px; padding: 10px 18px 10px 12px; box-shadow: 0 14px 30px rgba(20, 18, 16, .25); font-size: .9rem; line-height: 1.25; }
.l-badge-num { font: 700 2.4rem/1 var(--serif); color: #F3C9A9; }
@media (min-width: 900px) {
  .l-hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; padding: 40px 0 72px !important; }
  .l-hero-art img { aspect-ratio: 4 / 3.4; }
}
.l-band { background: var(--cream-2); }
.l-feature { display: grid; gap: 22px; align-items: center; margin-top: 36px; }
.l-feature-img { width: 100%; height: auto; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; background: var(--cream); box-shadow: var(--shadow); }
.l-feature h3 { font-size: clamp(1.5rem, 5vw, 2rem); }
.l-step { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
@media (min-width: 820px) {
  .l-feature { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
  .l-feature.flip .l-feature-img { order: 2; }
}
.l-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.l-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.l-steps h3 { margin-top: 14px; }
.l-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 1.2rem var(--serif); }
@media (min-width: 820px) { .l-steps { grid-template-columns: repeat(3, 1fr); } }
.l-dark { background: var(--ink); color: var(--cream); }
.l-dark p { color: #D9CDBB; }
.l-dark .kicker { color: #F3C9A9; }
.l-card-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .l-card-row { grid-template-columns: 1fr 1fr; } }
.l-phone { background: var(--cream); color: var(--ink); border-radius: 34px; padding: 18px; max-width: 340px; width: 100%; margin-inline: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 8px solid #2A2622; }
.l-phone-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 10px; font-weight: 600; font-size: .92rem; }
.l-cups { display: flex; gap: 6px; }
.l-cups i { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.l-final { text-align: center; }
.l-final .l-ctas { margin-inline: auto; }
.center { text-align: center; }
/* scroll reveal: only hides content once JS has marked the page, and never for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- app screens (Mi Club, registro, entrar, caja, admin): same language as the landing ---------- */
.page-title { font-size: clamp(2.2rem, 9vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 18px; }
.page-title em, .panel h2 em { font-style: italic; color: var(--accent); }
.app main { padding-bottom: 32px; }
.app section[data-view] { padding: 8px 0 24px; }

/* member card: black, white wordmark, terracotta sun, faint dot pattern */
.mcard { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.586; max-width: 440px; width: 100%; margin: 0 0 20px;
  border-radius: 24px; padding: 22px 22px 20px; color: var(--cream); display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(circle at 88% 8%, #D46A3A 0, #B5532A 22%, transparent 48%), linear-gradient(150deg, #1E1A17 0%, #141210 60%, #0B0A09 100%);
  box-shadow: 0 22px 44px rgba(20, 18, 16, .28), inset 0 0 0 1px rgba(246, 239, 228, .14); }
.mcard::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(rgba(246, 239, 228, .9) 1px, transparent 1.2px); background-size: 14px 14px;
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); }
.mcard::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 64px; height: 1px; background: rgba(246, 239, 228, .18); }
.mcard-top { display: flex; justify-content: space-between; align-items: center; }
.mcard-logo { height: 26px; width: auto; filter: invert(1) brightness(1.1); opacity: .95; }
.mcard-tag { font: 600 .72rem var(--sans); letter-spacing: .28em; text-transform: uppercase; border: 1px solid rgba(246, 239, 228, .5); border-radius: 999px; padding: 5px 12px; }
.mcard-name { align-self: center; font: italic 700 clamp(1.9rem, 8vw, 2.4rem)/1.05 var(--serif); letter-spacing: -.01em; }
.mcard-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: .9rem; }
.mcard-foot small { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #CFC2AE; margin-bottom: 2px; }
.mcard-code { font: 600 1rem var(--sans); letter-spacing: .24em; }

/* tiles: illustration or big number + text */
.tiles { gap: 14px; }
.tile { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.tile h3 { font-size: 1.25rem; margin: 0 0 8px; }
.tile .kicker { margin-bottom: 4px; font-size: .7rem; }
.tile .cups { margin: 4px 0 8px; }
.tile .cup { width: 44px; height: 44px; border-radius: 13px; }
.tile .cup svg { width: 24px; height: 24px; }
.tile-art { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.tile-num { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-content: center; text-align: center; }
.tile-num b { font: 700 2.1rem/1 var(--serif); color: #F3C9A9; }
.tile-num span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.tile-body > :last-child { margin-bottom: 0; }

/* QR ticket */
.ticket { background: #fff; border-radius: 22px; padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); transform: translateY(-50%); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket .qr { margin: 0 auto 10px; padding: 0; box-shadow: none; width: min(240px, 100%); }
.ticket-code { font: 700 1.3rem var(--sans); letter-spacing: .3em; margin-bottom: 6px; }

/* bottom nav: softer, terracotta active state */
.app-nav { border-top: 1px solid rgba(246, 239, 228, .08); }
.app-nav a { font-weight: 500; }
.app-nav a[aria-current=page] { color: #F3C9A9; background: rgba(181, 83, 42, .22); }

/* page header with a round illustration (registro, entrar) */
.page-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin: 4px 0 6px; }
.page-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.page-head .page-title { margin: 0; }
.panel { border-radius: 26px; }
.panel h2 { font-size: 1.7rem; }

/* cashier + admin: same type system */
.staff-bar { border-radius: 22px; padding: 16px 20px; background: radial-gradient(circle at 92% 0%, #B5532A 0, transparent 45%), var(--ink); }
.staff-bar .daycode { font-family: var(--serif); letter-spacing: .3em; color: #F3C9A9; font-size: 2.2rem; }
#member .big-status { font-size: 1.6rem; }
#member h3 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.results button { border-radius: 16px; }

/* ---------- review round 1 fixes ---------- */
:root { --accent-text: #9C4421; } /* terracotta dark enough for small text on cream (≈5.5:1) */
.kicker { color: var(--accent-text); font-size: .8rem; }
.tile .kicker { font-size: .75rem; }
.tile-num span, .mcard-foot small { font-size: .75rem; }
.page-title { text-wrap: balance; }
body.app { min-height: 100dvh; display: flex; flex-direction: column; }
body.app > main { flex: 1 0 auto; }
body[data-page=mi] > main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.nav-pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; text-decoration: none; font-weight: 600; }
.nav-pill.quiet { border-color: var(--line); background: #fff; }
.pills { display: flex; gap: 10px; }
footer a { display: inline-block; padding: 12px 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::after { float: none; flex: none; font-size: 1.3rem; }
.row > :last-child:not(:first-child) { text-align: right; }

/* bottom nav: fixed, only the visible tabs share the width, bigger labels */
.app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.app-nav a { font-size: .75rem; font-weight: 600; min-height: 56px; align-content: center; border-radius: 14px; }
@media (min-width: 760px) { .app-nav { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: min(640px, 100% - 32px); border-radius: 22px; margin: 0; } }

/* member card polish: sheen + terracotta hairline + tabular code */
.mcard { background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, transparent 38%), radial-gradient(circle at 88% 8%, #D46A3A 0, #B5532A 22%, transparent 48%), linear-gradient(150deg, #1E1A17 0%, #141210 60%, #0B0A09 100%);
  box-shadow: 0 22px 44px rgba(20, 18, 16, .28), inset 0 0 0 1px rgba(212, 106, 58, .45); }
.mcard-code { font-variant-numeric: tabular-nums; }
.ctas { margin: 0 0 16px; }

/* lists, ladder, tags */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.list li:last-child { border-bottom: 0; }
.li-icon { display: inline-flex; align-items: center; gap: 10px; }
.li-icon svg { width: 18px; height: 18px; color: var(--accent-text); }
.tag { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.ladder { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.ladder li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.ladder li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.ladder .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px dashed var(--line); background: #fff; }
.ladder .step-done .dot { background: var(--ink); color: var(--cream); border: 0; }
.ladder .step-ready .dot { background: var(--accent); color: #fff; border: 0; }
.ladder p { margin: 2px 0 0; }
.danger-zone { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn.danger { color: var(--bad); }

/* forms: hint under inputs, optional tag, legal details, success art */
.hint { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.opt { font-weight: 500; font-size: .75rem; color: var(--ink-2); background: var(--cream-2); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.check { font-size: .95rem; min-height: 44px; align-items: center; }
.check input { width: 24px; height: 24px; }
details.legal { background: var(--cream); border: 0; padding: 0 14px; margin: -4px 0 0; font-size: .88rem; }
details.legal summary { padding: 10px 0; font-weight: 600; color: var(--ink-2); }
.greet { font-size: 1.2rem; margin-bottom: 16px; }
.success-art { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; box-shadow: var(--shadow); }
.page-head.sm img { width: 72px; height: 72px; }
.code-input::placeholder { color: #C9BBA6; letter-spacing: .3em; }

/* cashier member view */
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-head h2 { margin: 0; font-size: 1.8rem; }
.status { font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.status.ok { background: #E4F1E6; color: var(--ok); }
.status.bad { background: #FBE7E4; color: var(--bad); }
.m-sec { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.m-sec h3 { margin: 0; font-size: 1.25rem; border: 0 !important; padding: 0 !important; }
.m-sec .kicker { margin: 0; }
.m-sec .cup { width: 56px; height: 56px; }
.m-item { display: grid; gap: 10px; }
#member { padding-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); z-index: 50; animation: toast 2.6s ease both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* admin */
#adm .page-title { margin-bottom: 10px; }
.chips { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--cream); margin-bottom: 8px; }
.chips a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
#adm section { scroll-margin-top: 64px; }
.kpis { margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.kpi .stat { font-size: 2.2rem; }
.kpi p { margin: 4px 0 0; }
.panel.tight { padding: 18px; margin: 0 0 14px; }
.panel.tight h3 { margin-bottom: 8px; }
th { background: var(--cream-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td, th { font-size: .9rem; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.edit-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.edit-row:first-child { border-top: 1px solid var(--line); }

/* ---------- review round 2 fixes ---------- */
/* card inside the landing phone mockup is narrower: scale its type down so nothing wraps */
.l-phone .mcard { padding: 16px; }
.l-phone .mcard-logo { height: 20px; }
.l-phone .mcard-name { font-size: 1.6rem; }
.l-phone .mcard-code { font-size: .85rem; letter-spacing: .16em; }
.l-phone .mcard-foot small, .l-phone .mcard-code { white-space: nowrap; }
.l-phone .mcard::after { bottom: 52px; left: 16px; right: 16px; }
.mcard-foot small, .mcard-code { white-space: nowrap; }
.opt { justify-self: start; }
.check { align-items: start; }
.check input { margin-top: 2px; }
.chips { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips a { min-height: 44px; }
#adm #a-res { padding-top: 8px; }
.qr { background: var(--cream-2); min-height: 200px; }
.nav-pill.quiet { background: transparent; border-color: var(--ink); }

/* ---------- review round 3 fixes ---------- */
/* hairline belongs to the card foot, so it can never cross the label */
.mcard::after { display: none; }
.mcard-foot { padding-top: 10px; border-top: 1px solid rgba(246, 239, 228, .18); }
.grid2 { align-items: start; }
.m-sec { gap: 8px; }
