/* Prestige customer app. Brand from the house kit: cream ground, navy type,
   gold accent; Playfair for headings, Inter for reading.
   Layout: one phone-width column, one task per screen, the main action at the bottom. */
:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #12264C;
  --text: #2A3142;
  --muted: #6B7182;
  --line: #E7E2D8;
  --gold: #C9A253;
  --gold-ink: #8A6A24;
  --gold-soft: #F4ECDB;
  --ok: #2F7D5B;
  --ok-soft: #E3F1EA;
  --warn: #9A5B12;
  --warn-soft: #FBEEDC;
  --danger: #B3403B;
  --on-ink: #FFFFFF;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1626; --surface: #16213A; --ink: #EAE4D6; --text: #D5D9E2; --muted: #98A0B3;
    --line: #26324D; --gold: #D6B36A; --gold-ink: #E2C27E; --gold-soft: #2A2716;
    --ok: #6CC79E; --ok-soft: #173327; --warn: #E8B067; --warn-soft: #33260F; --danger: #EE8A84; --on-ink: #0E1626;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1626; --surface: #16213A; --ink: #EAE4D6; --text: #D5D9E2; --muted: #98A0B3;
  --line: #26324D; --gold: #D6B36A; --gold-ink: #E2C27E; --gold-soft: #2A2716;
  --ok: #6CC79E; --ok-soft: #173327; --warn: #E8B067; --warn-soft: #33260F; --danger: #EE8A84; --on-ink: #0E1626;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.wrap { max-width: 480px; margin: 0 auto; padding-inline: 18px; padding-block: max(14px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-bottom, 0px)); min-height: 100vh; display: flex; flex-direction: column; gap: 18px; }

h1:focus, h2:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); font-variant-numeric: lining-nums; color: var(--ink); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: 1.85rem; line-height: 1.2; }
h2 { font-size: 1.4rem; line-height: 1.25; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.top .logo { height: 34px; width: auto; }
.top .back { background: none; border: 0; color: var(--ink); font: 500 .95rem var(--body); padding: 8px 4px; cursor: pointer; }
.demo-flag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--warn); background: var(--warn-soft); padding: 3px 8px; border-radius: 99px; }

/* buttons */
.btn { appearance: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 1rem var(--body); padding: 14px 18px; border-radius: var(--r); width: 100%; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1B1405; }
.btn.link { border: 0; padding: 10px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .choice:focus-visible, input:focus-visible, .slot:focus-visible, .day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.soft { background: var(--gold-soft); border-color: transparent; }
.hero { padding-block: 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.hero .logo-big { width: 190px; height: auto; }

/* quiz */
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .25s; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 500 1rem var(--body); cursor: pointer; }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; color: transparent; }
.choice.multi .tick { border-radius: 6px; }
.choice[aria-pressed="true"] { border-color: var(--ink); }
.choice[aria-pressed="true"] .tick { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* recommendation */
.rec { display: flex; flex-direction: column; gap: 10px; }
.rec .price { font-variant-numeric: lining-nums; font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1; }
.rec .price small { font-family: var(--body); font-size: .85rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }
.alt { border-top: 1px solid var(--line); padding-top: 10px; }

/* booking */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.day { flex: none; width: 58px; padding: 8px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); text-align: center; cursor: pointer; font: 500 .8rem var(--body); }
.day b { display: block; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.day[aria-pressed="true"] b { color: var(--on-ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
input[type=text], input[type=tel], input[type=file] { width: 100%; font: 400 1.05rem var(--body); padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.otp { font: 600 1.6rem var(--body) !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.err { color: var(--danger); font-size: .9rem; }

/* dashboard */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.points .n { font-variant-numeric: lining-nums tabular-nums; font-family: var(--display); font-size: 1.9rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 2px; }
.item .big { font-variant-numeric: lining-nums; font-family: var(--display); font-size: 1.5rem; color: var(--ink); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.date { flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--gold-soft); padding: 6px 0; color: var(--gold-ink); font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.date b { font-variant-numeric: lining-nums; display: block; font-size: 1.3rem; color: var(--ink); font-family: var(--display); }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--text); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.empty { color: var(--muted); font-size: .95rem; padding: 4px 0; }
.qr { display: block; margin: 0 auto; width: 220px; max-width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface); object-fit: contain; }
.code { font: 600 1.25rem var(--body); letter-spacing: .04em; color: var(--ink); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: sp 0.8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } .progress i { transition: none; } }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; font-size: .9rem; max-width: calc(100% - 32px); z-index: 9; }
