/* ============================================================
   MONEA Guest — mobile-first, editorial luxury guest app.
   Design bar: Aman / Six Senses / Belmond in-stay apps.

   Brand rules (strict):
   · Cream #F5F3E9 base — NEVER #FFF.
   · Warm black #1D1D1B — NEVER #000.
   · Inter (UI) / Libre Caslon Text (editorial) /
     Cormorant Garamond Italic (accents).
   · One restrained accent (aged brass) — used sparingly.
   · English, guest-facing. No stars. No invented data.
   ============================================================ */

:root {
  /* --- Surfaces --- */
  --cream:      #F5F3E9;   /* base */
  --cream-warm: #F1EEE1;   /* warmer panels */
  --cream-deep: #EAE6D6;   /* recessed panels */
  --cream-line: #E1DCCB;   /* hairlines */
  --cream-line-soft: #EBE7D8;

  /* --- Ink --- */
  --black:     #1D1D1B;    /* warm black */
  --ink:       #2A2A26;
  --ink-soft:  #5C5C54;    /* body */
  --ink-faint: #8C8A7E;    /* captions / meta */

  /* --- Accent (aged brass, used sparingly) --- */
  --brass:      #9A7B45;
  --brass-deep: #7E6437;
  --brass-soft: rgba(154, 123, 69, 0.12);

  /* --- Feedback (muted, on-brand) --- */
  --disabled:  #B7B4A6;
  --sage:      #6E7A5E;    /* success / operational */

  /* --- Shadows: whisper-soft, layered --- */
  --sh-1: 0 1px 2px rgba(29,29,27,.04);
  --sh-2: 0 2px 8px rgba(29,29,27,.05), 0 12px 28px rgba(29,29,27,.05);
  --sh-3: 0 8px 24px rgba(29,29,27,.07), 0 28px 60px rgba(29,29,27,.10);
  --sh-sheet: 0 -8px 24px rgba(29,29,27,.08), 0 -24px 70px rgba(29,29,27,.16);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --maxw: 620px;
  --tabbar-h: 68px;

  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --accent:'Cormorant Garamond', Georgia, serif;

  --ease-lux: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--brass-soft); color: var(--black); }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; min-height: 100vh; }

/* Subtle grain-free warm vignette behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, #FBFAF3 0%, var(--cream) 46%, #F0ECDD 100%);
  pointer-events: none;
}

img, svg { max-width: 100%; }

/* ============================================================
   Type helpers
   ============================================================ */
.accent {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.eyebrow {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

/* ============================================================
   App shell + views
   ============================================================ */
.app-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}
.view {
  display: none;
  padding: 0 22px calc(var(--tabbar-h) + 40px);
  animation: viewIn .5s var(--ease-lux) both;
}
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children of an active view */
.view.active .stagger > * { animation: rise .55s var(--ease-lux) both; }
.view.active .stagger > *:nth-child(1){ animation-delay:.02s }
.view.active .stagger > *:nth-child(2){ animation-delay:.08s }
.view.active .stagger > *:nth-child(3){ animation-delay:.14s }
.view.active .stagger > *:nth-child(4){ animation-delay:.20s }
.view.active .stagger > *:nth-child(5){ animation-delay:.26s }
.view.active .stagger > *:nth-child(6){ animation-delay:.32s }
.view.active .stagger > *:nth-child(7){ animation-delay:.38s }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Top brand bar
   ============================================================ */
.topbar {
  position: sticky; top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(245,243,233,.96), rgba(245,243,233,.82));
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--cream-line-soft);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 22px 11px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.topbar .logo { width: 104px; }
.topbar .logo svg { width: 100%; height: auto; display: block; }
.topbar .room-chip {
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-faint);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  background: var(--cream);
  white-space: nowrap;
}

/* ============================================================
   HERO — the arrival moment
   ============================================================ */
.hero {
  position: relative;
  margin: 0 -22px 4px;
  padding: 54px 30px 46px;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(140% 120% at 50% 0%, #34332C 0%, #26251F 40%, #1D1D1B 100%);
}
/* faint brass horizon line + soft glow */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 55% at 50% 8%, rgba(154,123,69,.20) 0%, transparent 60%),
    radial-gradient(60% 40% at 50% 100%, rgba(154,123,69,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero .hotel-tag {
  font-weight: 500;
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(245,243,233,.62);
  margin: 0 0 22px;
}
.hero .welcome-kicker {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: .02em;
  color: rgba(245,243,233,.72);
  margin: 0 0 4px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 10vw, 50px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--cream);
}
.hero .accent-line {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 5.6vw, 25px);
  color: #D9BC87;
  margin: 16px 0 0;
  letter-spacing: .01em;
}
.hero .divider {
  width: 44px; height: 1px;
  background: rgba(217,188,135,.55);
  margin: 26px auto 24px;
}
/* Stay facts inside hero */
.stay-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.stay-facts .fact {
  padding: 4px 6px;
  position: relative;
}
.stay-facts .fact + .fact::before {
  content: '';
  position: absolute; left: 0; top: 14%;
  height: 72%; width: 1px;
  background: rgba(245,243,233,.16);
}
.stay-facts .k {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,243,233,.5);
  margin-bottom: 7px;
}
.stay-facts .v {
  font-family: var(--serif);
  font-size: 15.5px; line-height: 1.25;
  color: var(--cream);
}
.stay-facts .v small { display:block; font-family: var(--sans); font-size: 11px; color: rgba(245,243,233,.55); margin-top: 3px; letter-spacing:.02em; }
.hero .room-line {
  margin: 24px auto 0;
  max-width: 420px;
  padding-top: 18px;
  border-top: 1px solid rgba(245,243,233,.14);
  font-size: 13px; letter-spacing: .02em;
  color: rgba(245,243,233,.78);
}
.hero .room-line strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section-head { margin: 40px 0 20px; }
.view > .stagger > .section-head:first-child { margin-top: 34px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 7vw, 31px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 2px 0 0;
}
.section-head .sub {
  font-family: var(--accent);
  font-style: italic;
  font-size: 17px;
  color: var(--brass);
  margin-top: 5px;
}

/* ============================================================
   Registration notice
   ============================================================ */
.reg-notice {
  margin: 24px 0 0;
  background: var(--cream-warm);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.reg-notice::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brass);
}
.reg-notice .reg-title {
  font-weight: 500; color: var(--black);
  font-size: 14px; letter-spacing: .01em;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.reg-notice p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.reg-notice .btn-row { display: flex; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--cream);
  cursor: pointer;
  transition: transform .18s var(--ease-lux), box-shadow .2s ease, opacity .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px) scale(.995); opacity: .92; }
.btn.full { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--black);
  border-color: var(--cream-line);
}
.btn.ghost:hover { border-color: var(--black); box-shadow: none; }
.btn.small { font-size: 11.5px; padding: 11px 18px; }
.btn .btn-arrow { width: 15px; height: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefit {
  background: var(--cream-warm);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 24px 22px;
  margin-bottom: 18px;
  transition: box-shadow .25s ease, transform .25s var(--ease-lux);
}
.benefit:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.benefit.used { opacity: .74; }
.benefit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.benefit h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px; line-height: 1.26;
  margin: 0;
}
.status-pill {
  flex: none;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--cream-line);
  color: var(--ink-faint);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.status-pill.available { color: var(--brass-deep); border-color: rgba(154,123,69,.4); background: var(--brass-soft); }
.status-pill.available .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.benefit p.desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.58; margin: 12px 0 0; }

.benefit-code {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px dashed var(--cream-line);
  display: flex; align-items: center; gap: 18px;
}
.qr-frame {
  flex: none;
  width: 118px; height: 118px;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-sm);
  padding: 9px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(245,243,233,.6), var(--sh-1);
}
/* tiny corner ticks — framed like a boarding pass */
.qr-frame::before, .qr-frame::after {
  content: ''; position: absolute;
  width: 9px; height: 9px;
  border: 1.5px solid var(--brass);
}
.qr-frame::before { top: 4px; left: 4px; border-right: none; border-bottom: none; border-radius: 2px 0 0 0; }
.qr-frame::after  { bottom: 4px; right: 4px; border-left: none; border-top: none; border-radius: 0 0 2px 0; }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.benefit.used .qr-frame { filter: grayscale(.3); }
.benefit.used .qr-frame > .stamp {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  color: var(--black);
  background: rgba(245,243,233,.66);
  transform: rotate(-9deg);
  border: 2px solid rgba(29,29,27,.5);
  border-radius: var(--r-sm);
  margin: 12px;
}
.code-meta { flex: 1; min-width: 0; }
.code-meta .code-label {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 7px;
}
.code-meta .code-value {
  font-family: var(--sans); font-weight: 600;
  font-size: 21px; letter-spacing: .16em;
  color: var(--black);
}
.benefit.used .code-value { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-soft); }
.code-meta .code-hint { font-size: 12px; color: var(--ink-soft); margin-top: 9px; line-height: 1.5; }

/* ============================================================
   RESORT — aerial map with interactive pins
   ============================================================ */
.resort-map {
  margin: 0 0 8px;
  padding: 0;
}
.rm-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;               /* matches viewBox 1500×1000 */
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--cream-line);
  background: var(--cream-deep);
  box-shadow: var(--sh-2);
}
/* warm inner frame + subtle top vignette so pins read on any photo */
.rm-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245,243,233,.5);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(29,29,27,.16) 0%, transparent 42%);
  pointer-events: none;
}
.rm-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rm-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}

/* --- Pins --- */
.mp-pin {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.mp-halo {
  fill: rgba(245,243,233,.18);
  opacity: 0;
  transform: scale(.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity .28s var(--ease-lux), transform .28s var(--ease-lux);
}
.mp-disc {
  fill: #1D1D1B;
  stroke: #F5F3E9;
  stroke-width: 5;
  filter: drop-shadow(0 3px 6px rgba(29,29,27,.45));
  transition: fill .2s ease, transform .28s var(--ease-lux);
  transform-box: fill-box;
  transform-origin: center;
}
.mp-glyph {
  color: #F5F3E9;
  fill: none;
  stroke: #F5F3E9;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: color .2s ease;
}
/* hover / focus lift */
.mp-pin:hover .mp-disc,
.mp-pin:focus-visible .mp-disc { transform: scale(1.12); }
.mp-pin:hover .mp-halo,
.mp-pin:focus-visible .mp-halo { opacity: 1; transform: scale(1); }

/* selected pin — brass ring + halo held open */
.mp-pin.active .mp-disc {
  stroke: var(--brass);
  stroke-width: 6;
  transform: scale(1.16);
}
.mp-pin.active .mp-halo {
  opacity: 1; transform: scale(1);
  fill: rgba(154,123,69,.22);
}

/* inactive facilities (coming soon / closed) read muted */
.mp-pin.inactive { cursor: default; }
.mp-pin.inactive .mp-disc { fill: #6E6C63; stroke: rgba(245,243,233,.7); }
.mp-pin.inactive .mp-glyph { color: rgba(245,243,233,.75); stroke: rgba(245,243,233,.75); }

/* --- Tooltip / caption below the map --- */
.rm-tip {
  margin: 15px 2px 0;
  padding: 15px 18px;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  background: var(--cream-warm);
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
/* brass edge appears once a pin is active */
.rm-tip::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brass);
  opacity: 0;
  transition: opacity .3s ease;
}
.rm-tip.show { box-shadow: var(--sh-2); }
.rm-tip.show::before { opacity: 1; }
/* resting hint before any pin is tapped */
.rm-tip:not(.show) .rm-tip-name,
.rm-tip:not(.show) .rm-tip-desc { display: none; }
.rm-tip:not(.show)::after {
  content: 'Tap a pin to explore each spot of the resort.';
  display: block;
  font-family: var(--accent); font-style: italic;
  font-size: 16px; color: var(--ink-faint);
  text-align: center;
}
.rm-tip-name {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  color: var(--black);
}
.rm-tip-desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 5px;
}
/* directory rows that also sit on the map get a faint affordance */
.zone.on-map { cursor: pointer; }
.zone.on-map:hover { background: var(--cream-deep); }

/* ============================================================
   RESORT — directory + experiences
   ============================================================ */
.zone-list {
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-warm);
  box-shadow: var(--sh-1);
}
.zone {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 17px 18px;
  border-bottom: 1px solid var(--cream-line-soft);
  transition: background .2s ease;
}
.zone:last-child { border-bottom: none; }
.zone .dot {
  flex: none; width: 9px; height: 9px; margin-top: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(110,122,94,.14);
}
.zone.inactive .dot { background: var(--disabled); box-shadow: 0 0 0 4px rgba(183,180,166,.16); }
.zone .z-body { flex: 1; min-width: 0; }
.zone h4 {
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  margin: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  color: var(--black);
}
.zone.inactive h4 { color: var(--disabled); }
.z-tag {
  font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--disabled); color: var(--disabled);
}
.zone p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 5px 0 0; }
.zone.inactive p { color: var(--disabled); }

.exp {
  background: var(--cream-warm);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
  transition: box-shadow .25s ease, transform .25s var(--ease-lux);
}
.exp:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.exp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.exp h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 0; }
.exp .cat {
  flex: none;
  font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); white-space: nowrap;
}
.exp p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 9px 0 0; }
.exp-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
}
.exp .meta { font-size: 12px; color: var(--ink-faint); }
.exp .meta .price { color: var(--black); font-weight: 500; }
.exp .book-btn {
  flex: none;
  font-family: var(--sans); font-weight: 500;
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--black);
  background: transparent; color: var(--black);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .18s var(--ease-lux);
  -webkit-tap-highlight-color: transparent;
}
.exp .book-btn:hover { background: var(--black); color: var(--cream); }
.exp .book-btn:active { transform: translateY(1px); }

/* ============================================================
   GUIDE accordion
   ============================================================ */
.guide-list {
  border-top: 1px solid var(--cream-line);
}
.guide-item { border-bottom: 1px solid var(--cream-line); }
.guide-btn {
  width: 100%; background: none; border: none;
  padding: 21px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; text-align: left;
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  color: var(--black);
  -webkit-tap-highlight-color: transparent;
}
.guide-idx {
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: .1em;
  color: var(--brass);
  margin-right: 2px;
}
.guide-btn .label { flex: 1; }
.guide-btn .chev {
  flex: none; width: 20px; height: 20px;
  transition: transform .3s var(--ease-lux);
  color: var(--brass);
}
.guide-item.open .guide-btn .chev { transform: rotate(45deg); }
.guide-panel { max-height: 0; overflow: hidden; transition: max-height .34s var(--ease-lux); }
.guide-panel-inner {
  padding: 0 4px 24px;
  font-family: var(--serif);
  font-size: 15px; line-height: 1.72;
  color: var(--ink-soft);
}

/* ============================================================
   ASSIST view (Need anything) — action cards
   ============================================================ */
.assist-intro {
  text-align: center;
  padding: 34px 8px 8px;
}
.assist-intro .accent-big {
  font-family: var(--accent); font-style: italic;
  font-size: 26px; color: var(--brass);
  margin: 0 0 6px;
}
.assist-intro p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
  max-width: 340px; margin: 8px auto 0;
}
.action-grid { display: grid; gap: 13px; margin-top: 26px; }
.action-card {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  background: var(--cream-warm);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: box-shadow .25s ease, transform .22s var(--ease-lux), border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sans);
}
.action-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--cream-line); }
.action-card:active { transform: translateY(0); }
.action-card .ac-icon {
  flex: none; width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  color: var(--brass-deep);
}
.action-card .ac-icon svg { width: 22px; height: 22px; }
.action-card .ac-body { flex: 1; min-width: 0; }
.action-card .ac-title {
  font-weight: 500; font-size: 15px; color: var(--black); margin: 0;
}
.action-card .ac-sub { font-size: 12.5px; color: var(--ink-faint); margin: 3px 0 0; line-height: 1.4; }
.action-card .ac-chev { flex: none; width: 18px; height: 18px; color: var(--ink-faint); transition: transform .2s var(--ease-lux); }
.action-card:hover .ac-chev { transform: translateX(3px); color: var(--brass); }

/* ============================================================
   TAB BAR (bottom nav)
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: linear-gradient(to top, rgba(245,243,233,.98), rgba(245,243,233,.9));
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-top: 1px solid var(--cream-line-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.tab {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 6px 2px;
  color: var(--ink-faint);
  font-family: var(--sans);
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab svg { width: 22px; height: 22px; stroke-width: 1.5; transition: transform .25s var(--ease-lux); }
.tab .tab-label {
  font-size: 9.5px; letter-spacing: .04em; font-weight: 500;
  text-transform: uppercase;
}
.tab.active { color: var(--black); }
.tab.active svg { transform: translateY(-1px); }
.tab.active::after {
  content: ''; position: absolute; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass);
}
.tab.tab-assist.active { color: var(--brass-deep); }

/* ============================================================
   BOTTOM SHEET (action forms)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(29,29,27,.44);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(1px);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 61;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--cream);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-top: 1px solid var(--cream-line);
  padding: 8px 24px calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateY(104%);
  transition: transform .42s var(--ease-lux);
  box-shadow: var(--sh-sheet);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet.open { transform: translateY(0); }
.sheet .grabber {
  width: 42px; height: 4px; border-radius: var(--r-pill);
  background: var(--cream-line);
  margin: 8px auto 18px;
}
.sheet-head { margin-bottom: 20px; }
.sheet-head .eyebrow { margin-bottom: 8px; }
.sheet-head h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 0; line-height: 1.12; }
.sheet-head .sheet-sub {
  font-family: var(--accent); font-style: italic;
  color: var(--brass); font-size: 17px; margin: 5px 0 0;
}

/* Form fields */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-faint);
  margin-bottom: 8px;
}
.field .req-mark { color: var(--brass); }
.input, .textarea, .select {
  width: 100%;
  font-family: var(--sans); font-size: 15px;
  color: var(--black);
  background: var(--cream-warm);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none; appearance: none;
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.field.invalid .input, .field.invalid .textarea, .field.invalid .select {
  border-color: #B45B46;
  box-shadow: 0 0 0 3px rgba(180,91,70,.1);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 15px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  pointer-events: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* number stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--cream-line); border-radius: var(--r-sm); overflow: hidden; background: var(--cream-warm); }
.stepper button {
  width: 46px; height: 46px; border: none; background: none;
  font-size: 20px; color: var(--black); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.stepper button:hover { background: var(--cream-deep); }
.stepper button:active { background: var(--cream-line); }
.stepper .count { min-width: 44px; text-align: center; font-weight: 500; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13px;
  padding: 10px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--cream-line);
  background: var(--cream-warm); color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s var(--ease-lux);
  -webkit-tap-highlight-color: transparent;
}
.chip.sel { border-color: var(--black); background: var(--black); color: var(--cream); }

.sheet .btn { margin-top: 8px; }
.sheet-foot-note {
  font-size: 11.5px; color: var(--ink-faint); text-align: center;
  margin: 14px 0 0; line-height: 1.5;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 22px;
}
.toast {
  display: inline-flex; align-items: center; gap: 11px;
  max-width: 100%;
  background: var(--black);
  color: var(--cream);
  font-size: 13.5px; letter-spacing: .01em; line-height: 1.4;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .34s var(--ease-lux), transform .34s var(--ease-lux);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast .check {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brass);
  display: flex; align-items: center; justify-content: center;
}
.toast .check svg { width: 12px; height: 12px; stroke: var(--cream); stroke-width: 2.4; fill: none; }

/* ============================================================
   Footer + empty states
   ============================================================ */
.footer {
  margin: 44px -22px 0;
  padding: 40px 22px 34px;
  text-align: center;
  border-top: 1px solid var(--cream-line);
  background: var(--cream-warm);
}
.footer .foot-logo { width: 82px; margin: 0 auto 16px; opacity: .9; }
.footer .foot-logo svg { width: 100%; height: auto; }
.footer .foot-accent {
  font-family: var(--accent); font-style: italic;
  color: var(--brass); font-size: 16px; margin: 0 0 12px;
}
.footer p { font-size: 11.5px; color: var(--ink-faint); line-height: 1.7; margin: 3px 0; letter-spacing: .02em; }

.empty {
  text-align: center; padding: 34px 20px;
  font-family: var(--accent); font-style: italic;
  font-size: 18px; color: var(--ink-faint);
}

/* ============================================================
   Loading + error screens
   ============================================================ */
.center-screen {
  min-height: 86vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 34px;
  animation: viewIn .5s var(--ease-lux) both;
}
.center-screen .cs-logo { width: 122px; margin-bottom: 30px; opacity: .92; }
.center-screen .cs-logo svg { width: 100%; height: auto; }
.spinner {
  width: 30px; height: 30px;
  border: 2px solid var(--cream-line);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-screen .cs-accent {
  font-family: var(--accent); font-style: italic;
  color: var(--brass); font-size: 19px; margin: 0 0 4px;
}
.center-screen h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 27px; margin: 20px 0 10px;
}
.center-screen p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.62; max-width: 330px; margin: 0;
}
.center-screen .cs-icon {
  width: 40px; height: 40px; color: var(--brass); margin-bottom: 6px;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .view.active .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Small phones */
@media (max-width: 360px) {
  .view { padding-left: 18px; padding-right: 18px; }
  .hero { margin-left: -18px; margin-right: -18px; padding-left: 22px; padding-right: 22px; }
  .benefit-code { flex-direction: column; align-items: flex-start; gap: 16px; }
  .qr-frame { width: 140px; height: 140px; }
}
