/* ==========================================================================
   StayDirect — design system + motion
   Mobile-first. One stylesheet, no framework.
   Motion principles: every animation explains *where* something came from
   or *what* changed (navigation direction, shared hero, sheet origin,
   selection feedback). All motion is disabled under prefers-reduced-motion.
   ========================================================================== */

/* EB Garamond (SIL OFL, self-hosted: no third-party font requests). Headings only;
   each subset downloads only if a character in its range is used. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(/fonts/eb-garamond-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Palette: Paris — Haussmann navy, limestone ("Pierre"), bordeaux door, brass.
   Navy is structure, bordeaux is the accent that pops, brass is jewellery
   (hairlines, badges) — never large areas. */
:root {
  --bg: #f4f3f0;            /* Pierre: limestone */
  --surface: #fdfcfa;
  --surface-2: #ebe8e2;
  --ink: #17213a;           /* navy-black text */
  --ink-2: #545c6e;
  --ink-3: #959aa6;
  --line: rgba(20, 33, 61, .10);
  --accent: #14213d;        /* Haussmann navy */
  --accent-ink: #f7f4ee;
  --accent-soft: #e1e5ee;
  --rouge: #7a1f30;         /* bordeaux */
  --warm: #b8914a;          /* brass */
  --hairline: color-mix(in srgb, var(--warm) 45%, transparent);
  --danger: #b4483c;
  --ok: #2f7a55;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 -8px 40px rgba(0,0,0,.14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", ui-serif, Georgia, serif;

  --ease: cubic-bezier(.2, .8, .2, 1);        /* iOS-like decelerate */
  --spring: cubic-bezier(.34, 1.36, .64, 1);  /* gentle overshoot for "landing" */
  --t: .38s;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: calc(58px + var(--safe-b));
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Nuit bleue: midnight navy instead of black; brass takes the lead. */
    --bg: #0c1527; --surface: #131e35; --surface-2: #1a2742;
    --ink: #f1ece2; --ink-2: #a3abbd; --ink-3: #6c7590; --line: rgba(241,236,226,.09);
    --accent: #d4b06a; --accent-ink: #0c1527; --accent-soft: #222f4b;
    --rouge: #e07484; --warm: #d4b06a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none; touch-action: manipulation;
  overflow-x: clip; /* full-bleed rails and heroes must never cause sideways scrolling */
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; line-height: 1.12; margin: 0; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
p { margin: 0; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); font-size: .85rem; }
.hidden { display: none !important; }

#outlet { padding-bottom: calc(var(--tabbar-h) + 24px); }
.page { max-width: 720px; margin: 0 auto; padding: calc(var(--safe-t) + 16px) 20px 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-t) + 8px) 12px 8px; margin: calc(-1 * (var(--safe-t) + 16px)) -20px 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.topbar .title { font-weight: 600; flex: 1; text-align: center; margin-right: 40px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease), opacity .2s, background .2s;
}
.btn:active { transform: scale(.96); }               /* press feedback */
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.busy { pointer-events: none; }
.btn.busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s var(--ease);
}
.icon-btn:active { transform: scale(.9); }
.icon-btn.glass { background: rgba(255,255,255,.75); color: #1b1d1c; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- forms */
.field { display: block; }
.field > span { display: block; font-size: .85rem; color: var(--ink-2); margin: 0 0 6px 4px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { min-height: 110px; resize: vertical; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-2); position: relative; cursor: pointer; transition: background .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(20px); }

/* --------------------------------------------------------------- cards */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 .5px var(--hairline); padding: 18px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warm) 22%, transparent); color: #8a5a26; }
.pill.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* listing cards — the image is the shared element for the hero morph */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
.listing { display: block; text-decoration: none; }
.listing .ph { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); position: relative; }
.listing .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing:active .ph img { transform: scale(1.03); }
.listing .ph .pill { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); color: #1b1d1c; }
.listing .meta { padding: 10px 2px 0; }
.listing .meta strong { font-weight: 600; }
.price { font-variant-numeric: tabular-nums; }

/* horizontal rail (network cross-sell) */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 620px) { .rail > * { flex-basis: 40%; } }

/* ------------------------------------------------------------ property */
.hero { position: relative; margin: calc(-1 * (var(--safe-t) + 16px)) -20px 0; }
.gallery { width: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4/3; max-height: 62vh; background: var(--surface-2); }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.hero .nav { position: absolute; top: calc(var(--safe-t) + 12px); left: 16px; right: 16px; display: flex; justify-content: space-between; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 18px; background: #fff; }
.sheet-top { position: relative; margin: -24px -20px 0; padding: 24px 20px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg); }
/* The sheet lifts off the photo: a soft shade on the photo just above the
   sheet's edge only — no shadow on the sides or bottom of the content. */
.sheet-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -32px; height: 32px; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 21, 39, .22), rgba(12, 21, 39, 0));
}
.host-chip { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.prose { white-space: pre-line; color: var(--ink-2); }

/* bottom booking bar */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 20;
  display: flex; align-items: center; gap: 12px;
  /* contents line up with the 720px page column on wide screens */
  padding: 12px max(20px, calc((100vw - 720px) / 2 + 20px));
  background: color-mix(in srgb, var(--surface) 90%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  view-transition-name: bookbar;
}
.bookbar .grow strong { font-size: 1.1rem; }

/* ------------------------------------------------------------ calendar */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--serif); font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-grid .dow { text-align: center; font-size: .72rem; color: var(--ink-3); padding-bottom: 6px; }
.day {
  position: relative; aspect-ratio: 1; border: 0; background: none; border-radius: 0; cursor: pointer;
  font-variant-numeric: tabular-nums; font-size: .95rem; z-index: 0;
}
.day::before { /* selection pill, scales in on select */
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .28s var(--spring); z-index: -1;
}
.day.in-range { background: var(--accent-soft); }
.day.sel { color: var(--accent-ink); }
.day.sel::before { transform: scale(1); }
.day.sel.start { background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%); }
.day.sel.end { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.day.sel.start.end { background: none; }
.day:disabled { color: var(--ink-3); cursor: default; }
.day.blocked { text-decoration: line-through; }
.cal-grid.slide-next { animation: cal-next .32s var(--ease); }
.cal-grid.slide-prev { animation: cal-prev .32s var(--ease); }
@keyframes cal-next { from { opacity: 0; transform: translateX(24px); } }
@keyframes cal-prev { from { opacity: 0; transform: translateX(-24px); } }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.stepper output { min-width: 1.5ch; text-align: center; font-weight: 600; }

/* --------------------------------------------------------- price lines */
.lines { display: grid; gap: 10px; }
.lines .row { justify-content: space-between; }
.lines .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.tick { display: inline-block; animation: tick .35s var(--ease); } /* draws the eye to a changed total */
@keyframes tick { from { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------- tabs */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabbar-h);
  display: flex; padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  view-transition-name: tabbar; /* stays put while pages slide */
}
.tabbar a { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .68rem; font-weight: 600; transition: color .2s; }
.tabbar a svg { transition: transform .3s var(--spring); }
.tabbar a.on { color: var(--accent); }
.tabbar a.on svg { transform: translateY(-1px) scale(1.08); }

/* --------------------------------------------------------- bottom sheet */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); animation: fade .3s var(--ease); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92dvh; overflow: auto;
  max-width: 560px; margin: 0 auto; padding: 10px 20px calc(24px + var(--safe-b));
  background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg);
  animation: sheet-in .42s var(--ease); touch-action: pan-y;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--ink-3); opacity: .5; margin: 0 auto 16px; }
.sheet.out { animation: sheet-out .26s ease-in forwards; }
.scrim.out { animation: fade .26s reverse forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px); z-index: 60; transform: translateX(-50%);
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-size: .92rem; box-shadow: var(--shadow); animation: toast-in .35s var(--spring);
}
.toast.out { animation: fade .25s reverse forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

/* ------------------------------------------------------- loading states */
.skel { background: linear-gradient(90deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 100; background: var(--accent); width: 0; opacity: 0; transition: width 2s var(--ease), opacity .3s; }
.progress.on { width: 80%; opacity: 1; }

/* success check — confirms payment visually */
.check-anim { width: 76px; height: 76px; margin: 8px auto 4px; }
.check-anim circle { stroke: var(--ok); stroke-width: 3; fill: none; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw .6s var(--ease) forwards; }
.check-anim path { stroke: var(--ok); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* misc */
.brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.empty { text-align: center; padding: 48px 12px; color: var(--ink-2); }
.empty svg.i { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--ink-3); }
.disclaimer { margin-top: 36px; text-align: center; font-size: .75rem; color: var(--ink-3); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.qr svg { width: 100%; height: auto; max-width: 240px; margin: 0 auto; display: block; background: #fff; border-radius: var(--r-sm); }
.stat { text-align: center; } .stat b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list-item:last-child { border-bottom: 0; }
.list-item img, .list-item .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 44px; border-radius: 99px; }

/* ===================================================== page transitions
   Driven by the View Transitions API (router sets html[data-nav]).
   forward: new page slides in from the right, old recedes left (iOS push)
   back:    reverse
   tab:     quick cross-fade with a slight lift (peer pages, no direction) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t); animation-timing-function: var(--ease); }
html[data-nav="forward"]::view-transition-old(root) { animation-name: vt-out-left; }
html[data-nav="forward"]::view-transition-new(root) { animation-name: vt-in-right; }
html[data-nav="back"]::view-transition-old(root) { animation-name: vt-out-right; z-index: 2; }
html[data-nav="back"]::view-transition-new(root) { animation-name: vt-in-left; }
html[data-nav="tab"]::view-transition-old(root) { animation: vt-fade-out .18s ease-in both; }
html[data-nav="tab"]::view-transition-new(root) { animation: vt-fade-up .3s var(--ease) both; }
::view-transition-group(hero) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(hero), ::view-transition-new(hero) { height: 100%; object-fit: cover; }
::view-transition-group(tabbar) { animation: none; }
@keyframes vt-in-right { from { transform: translateX(100%); } }
@keyframes vt-out-left { to { transform: translateX(-28%); opacity: .6; } }
@keyframes vt-in-left { from { transform: translateX(-28%); opacity: .6; } }
@keyframes vt-out-right { to { transform: translateX(100%); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-up { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important;
  }
}

/* ================================================================ landing
   The host pitch. Sections rise in as they enter the viewport (.reveal)
   so the argument lands one idea at a time. */
body.no-tabs #outlet { padding-bottom: 32px; }
.landing .hero-pitch { padding-top: 8px; }
.display { font-size: clamp(2.5rem, 11vw, 3.6rem); line-height: 1.02; margin: 28px 0 16px; }
.accent-text { color: var(--rouge); font-style: italic; }
.lede { font-size: 1.12rem; color: var(--ink-2); margin-bottom: 24px; }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rouge); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--warm); }   /* brass rule */
.badge-members { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--warm); border: 1px solid var(--hairline); border-radius: 99px; padding: 5px 10px; }
.price-tag { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rouge); }
.landing .section { margin-top: 48px; }
.landing .section > h2 { font-size: 1.6rem; margin-bottom: 18px; }
/* "What stays yours": compact cards (like the plan cards), 2-up on phones, 3-up wider. */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.pillar { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow), inset 0 0 0 .5px var(--hairline); display: grid; align-content: start; gap: 4px; }
.pillar-mark { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; color: var(--rouge); white-space: nowrap; letter-spacing: -.01em; min-height: 26px; }
.pillar-mark svg { width: 22px; height: 22px; color: var(--rouge); }
.pillar strong { font-size: 1rem; }
.pillar p { margin: 0; font-size: .85rem; line-height: 1.4; }
/* How the channel grows: a numbered loop on a brass line, ending with the host. */
.loop { list-style: none; counter-reset: loop; margin: 18px 0 0; padding: 0 0 0 8px; }
.loop li { counter-increment: loop; position: relative; padding: 0 0 18px 34px; display: grid; gap: 2px; }
.loop li::before { content: counter(loop); position: absolute; left: -8px; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 600 .85rem var(--serif); }
.loop li::after { content: ""; position: absolute; left: 4.5px; top: 28px; bottom: 2px; width: 1px; background: var(--warm); }
.loop li:last-child { padding-bottom: 0; }
.loop li:last-child::after { display: none; }
.loop li:last-child::before { background: var(--rouge); color: #f7f4ee; }
.loop strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.loop span { color: var(--ink-2); font-size: .95rem; }
.loop-close { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--rouge); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================ ratings */
.stars { display: inline-flex; gap: 2px; color: var(--warm); }
.stars svg { width: 16px; height: 16px; }
.star-input { display: flex; gap: 6px; }
.star-input button { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--ink-3); transition: transform .25s var(--spring), color .15s; }
.star-input button.on { color: var(--warm); }
.star-input button:active { transform: scale(1.25); } /* tap feedback */
.star-input svg { width: 30px; height: 30px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.score-big { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.score-bars { display: grid; gap: 6px; flex: 1; }
.score-bar { display: grid; grid-template-columns: 7.5em 1fr 2em; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.score-bar i { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.score-bar i b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.review { padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.reply { margin: 10px 0 0 14px; padding-left: 12px; border-left: 2px solid var(--line); font-size: .93rem; }
.private-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warm) 14%, transparent); font-size: .92rem; }
.locked { text-align: center; padding: 28px 20px; border-radius: var(--r); border: 1.5px dashed var(--line); }

/* ------------------------------------------------- membership plans
   Two cards, read at a glance: "Link your site" (light) vs "Book & earn"
   (navy, fixed colours in both themes — it's the premium option). */
.plans { display: grid; gap: 12px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow), inset 0 0 0 .5px var(--hairline); display: flex; flex-direction: column; }
.plan.dark { background: #14213d; color: #f7f4ee; box-shadow: var(--shadow), inset 0 0 0 1px rgba(212, 176, 106, .55); }
.plan.chosen { outline: 2px solid var(--warm); outline-offset: 2px; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--serif); }
.plan-head strong { font-size: 1.45rem; font-weight: 600; }
.plan-price { font-size: 1.2rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.plan.dark .plan-price { color: #d4b06a; }
.plan-lede { margin: 4px 0 12px; color: var(--ink-2); font-size: .95rem; }
.plan.dark .plan-lede { color: #c3c9d6; }
.plan-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .93rem; flex: 1; }
.plan-list li::before { content: "✓"; display: inline-block; width: 1.4em; font-weight: 700; color: var(--ok); }
.plan.dark .plan-list li::before { color: #d4b06a; }
.plan-list li.no { color: var(--ink-3); } .plan-list li.no::before { content: "✗"; color: var(--ink-3); }
.plan-list li.give { color: var(--rouge); } .plan-list li.give::before { content: "↺"; color: var(--rouge); }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.gold { background: #d4b06a; color: #0c1527; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .9rem; cursor: pointer; justify-self: start; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--warm); border-radius: inherit; transition: width .6s var(--ease); }
.card.notice { border-left: 2px solid var(--rouge); border-radius: 0 var(--r) var(--r) 0; }

/* --------------------------------------------- QR welcome + network teaser
   A guest who scans the QR code must see, at a glance: you're staying here,
   rate it, reach your host, and save next time. */
.welcome { background: #14213d; color: #f7f4ee; border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(212, 176, 106, .55); }
.welcome .kicker { color: #e8a0ab; }
.welcome .kicker::before { background: #d4b06a; }
.welcome h2 { font-size: 1.6rem; line-height: 1.1; }
.welcome-list { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 12px; }
.welcome-list li { display: flex; gap: 12px; align-items: flex-start; }
.welcome-list li > svg { flex: none; width: 22px; height: 22px; color: #d4b06a; margin-top: 2px; }
.welcome-list strong { display: block; font-weight: 600; }
.welcome-list span { color: #c3c9d6; font-size: .92rem; }
.welcome-done { display: flex; gap: 8px; align-items: center; color: #d4b06a; font-weight: 600; margin: 0; }
.welcome-done svg { width: 20px; height: 20px; }
.welcome-foot { text-align: center; margin: 10px 0 0; color: #9aa3b6; }
.teaser { margin-top: 12px; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 .5px var(--hairline); }
.teaser-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 120px; }
.teaser-photos figure { margin: 0; position: relative; overflow: hidden; }
.teaser-photos img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.1); transform: scale(1.08); }
.teaser-photos figcaption { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: .75rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.teaser-body { padding: 18px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.teaser-body > svg { width: 22px; height: 22px; color: var(--warm); }
.teaser-body strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.teaser-body .stack { width: 100%; }
.badge-verified { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--rouge); }
.badge-verified svg { width: 14px; height: 14px; }
/* Landing hero: where the booking happens is the host's call. */
.loop-tag { margin-left: 8px; vertical-align: middle; font: 700 .62rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--warm); border: 1px solid var(--hairline); border-radius: 99px; padding: 3px 7px; }
.choose { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.35rem; }

/* ------------------------------------------------------------ ironwork
   Haussmann balcony ironwork (an ogee between two scrolls, from the brand's
   Paris prototype) as a ~1.4 KB tile behind the landing hero: faint, fading
   out before the content, drifting slowly. Static under reduced motion. */
:root { --ironwork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='79.2' height='89' viewBox='0 0 79.2 89'%3E%3Cpath d='M39.6 86.5 34.4 83.9 29.7 81 25.4 77.9 21.6 74.7 18.2 71.3 15.3 67.7 12.8 64 10.8 60.3 9.2 56.4 8.1 52.5 7.4 48.5 7.2 44.5 7.4 40.5 8.1 36.6 9.2 32.6 10.8 28.8 12.8 25 15.3 21.3 18.2 17.8 21.6 14.3 25.4 11.1 29.7 8 34.4 5.2 39.6 2.5 M39.6 86.5 44.8 83.9 49.5 81 53.8 77.9 57.6 74.7 61 71.3 63.9 67.7 66.4 64 68.4 60.3 70 56.4 71.1 52.5 71.8 48.5 72 44.5 71.8 40.5 71.1 36.6 70 32.6 68.4 28.8 66.4 25 63.9 21.3 61 17.8 57.6 14.3 53.8 11.1 49.5 8 44.8 5.2 39.6 2.5 M9.6 69.7 10.3 72.8 11.7 75.6 13.8 77.8 16.3 79.3 19.1 80.1 21.9 80.2 24.6 79.5 26.9 78.1 28.8 76.2 30 74 30.6 71.6 30.5 69.2 29.8 66.9 28.5 65 26.9 63.5 25 62.6 22.9 62.2 20.9 62.4 19.1 63.1 17.6 64.2 16.5 65.6 15.8 67.2 15.6 68.9 15.8 70.4 16.5 71.8 17.4 73 18.6 73.7 19.8 74.2 21.1 74.2 22.3 73.9 23.2 73.4 24 72.6 24.5 71.7 24.6 70.8 24.6 70 24.3 69.2 23.8 68.6 23.2 68.3 22.7 68.1 22.1 68.1 M69.6 69.7 68.9 66.6 67.5 63.9 65.4 61.7 62.9 60.1 60.1 59.3 57.3 59.3 54.6 60 52.3 61.3 50.4 63.2 49.2 65.4 48.6 67.9 48.7 70.3 49.4 72.5 50.7 74.4 52.3 75.9 54.2 76.8 56.3 77.2 58.3 77 60.1 76.4 61.6 75.3 62.7 73.8 63.4 72.2 63.6 70.6 63.4 69 62.7 67.6 61.8 66.5 60.6 65.7 59.4 65.3 58.1 65.2 56.9 65.5 56 66.1 55.2 66.8 54.7 67.7 54.6 68.6 54.6 69.5 54.9 70.2 55.4 70.8 56 71.2 56.5 71.3 57.1 71.3 M39.6 96.6 39.6 -7.6' fill='none' stroke='%237a1f30' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E"); --ironwork-opacity: .13; }
@media (prefers-color-scheme: dark) { :root { --ironwork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='79.2' height='89' viewBox='0 0 79.2 89'%3E%3Cpath d='M39.6 86.5 34.4 83.9 29.7 81 25.4 77.9 21.6 74.7 18.2 71.3 15.3 67.7 12.8 64 10.8 60.3 9.2 56.4 8.1 52.5 7.4 48.5 7.2 44.5 7.4 40.5 8.1 36.6 9.2 32.6 10.8 28.8 12.8 25 15.3 21.3 18.2 17.8 21.6 14.3 25.4 11.1 29.7 8 34.4 5.2 39.6 2.5 M39.6 86.5 44.8 83.9 49.5 81 53.8 77.9 57.6 74.7 61 71.3 63.9 67.7 66.4 64 68.4 60.3 70 56.4 71.1 52.5 71.8 48.5 72 44.5 71.8 40.5 71.1 36.6 70 32.6 68.4 28.8 66.4 25 63.9 21.3 61 17.8 57.6 14.3 53.8 11.1 49.5 8 44.8 5.2 39.6 2.5 M9.6 69.7 10.3 72.8 11.7 75.6 13.8 77.8 16.3 79.3 19.1 80.1 21.9 80.2 24.6 79.5 26.9 78.1 28.8 76.2 30 74 30.6 71.6 30.5 69.2 29.8 66.9 28.5 65 26.9 63.5 25 62.6 22.9 62.2 20.9 62.4 19.1 63.1 17.6 64.2 16.5 65.6 15.8 67.2 15.6 68.9 15.8 70.4 16.5 71.8 17.4 73 18.6 73.7 19.8 74.2 21.1 74.2 22.3 73.9 23.2 73.4 24 72.6 24.5 71.7 24.6 70.8 24.6 70 24.3 69.2 23.8 68.6 23.2 68.3 22.7 68.1 22.1 68.1 M69.6 69.7 68.9 66.6 67.5 63.9 65.4 61.7 62.9 60.1 60.1 59.3 57.3 59.3 54.6 60 52.3 61.3 50.4 63.2 49.2 65.4 48.6 67.9 48.7 70.3 49.4 72.5 50.7 74.4 52.3 75.9 54.2 76.8 56.3 77.2 58.3 77 60.1 76.4 61.6 75.3 62.7 73.8 63.4 72.2 63.6 70.6 63.4 69 62.7 67.6 61.8 66.5 60.6 65.7 59.4 65.3 58.1 65.2 56.9 65.5 56 66.1 55.2 66.8 54.7 67.7 54.6 68.6 54.6 69.5 54.9 70.2 55.4 70.8 56 71.2 56.5 71.3 57.1 71.3 M39.6 96.6 39.6 -7.6' fill='none' stroke='%23d4b06a' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E"); --ironwork-opacity: .10; } }
.hero-pitch { position: relative; isolation: isolate; }
.hero-pitch::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * (var(--safe-t) + 16px)); bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--ironwork) 0 0 / 79.2px 89px repeat;
  opacity: var(--ironwork-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%);
  animation: ironwork-drift 120s linear infinite;
}
@keyframes ironwork-drift { to { background-position: 79.2px 89px; } }
@media (prefers-reduced-motion: reduce) { .hero-pitch::before { animation: none; } }
/* The same ironwork as a parallax band between sections, and fading up behind the footer. */
.ironwork-band {
  height: 72px; margin: 20px 0 -28px; position: relative; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--ironwork) 0 0 / 79.2px 89px repeat; opacity: var(--ironwork-opacity);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.ironwork-foot { position: relative; isolation: isolate; margin-top: 8px; padding: 36px 0 24px; }
.ironwork-foot::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%);
  background: var(--ironwork) 0 0 / 79.2px 89px repeat; opacity: var(--ironwork-opacity); pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
}
/* Host payouts card */
.payout-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payout-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.payout-stats strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.payout-line { padding: 6px 0; border-top: 1px solid var(--line); font-size: .93rem; gap: 10px; }
