/* IRL, In Real Life. Design system: Charte graphique v1.1, 27 September 2026 (rounded symbol points).
   Every value below comes from part C of the charte. A value that is not here does not exist.
   Three brand colours (apricot, nuit, Live Gold) on paper; danger is functional only.
   No shadow, no gradient, no transparency. Logical properties throughout, so RTL works later. */

@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/readex-pro-latin-400-normal.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: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/readex-pro-latin-700-normal.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: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/readex-pro-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/readex-pro-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (C·1, C·3) ---------- */
:root {
  --apricot: #F0906A; --nuit: #18274A; --gold: #FFC22E; --papier: #FFF6F1; --white: #FFFFFF;
  --nuit-raised: #213360; --ink-muted-day: #4F5A78; --ink-muted-night: #B8C1D9;
  --danger-day: #B3261E; --danger-night: #FF9C8F; --line-day: #F1D5C7;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-full: 999px;
  --ease-arrive: cubic-bezier(.2, .9, .25, 1.15);
  --ease-touch: cubic-bezier(.2, .8, .2, 1);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: var(--space-5);
}

/* ---------- Two states, never a third (A·3) ---------- */
.day, .night { background: var(--surface); color: var(--ink); }
.day {
  --surface: var(--papier); --ink: var(--nuit); --ink-muted: var(--ink-muted-day);
  --focus: var(--nuit); --danger: var(--danger-day); --link: var(--nuit);
  --btn-bg: var(--apricot); --btn-ink: var(--nuit);
}
.night {
  --surface: var(--nuit); --ink: var(--papier); --ink-muted: var(--ink-muted-night);
  --focus: var(--gold); --danger: var(--danger-night); --link: var(--apricot);
  --btn-bg: var(--apricot); --btn-ink: var(--nuit);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--nuit); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 26px; color: var(--papier); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type styles (C·2) ---------- */
.display { font-size: 44px; line-height: 48px; letter-spacing: -0.02em; font-weight: 700; }
.title   { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; font-weight: 700; }
.heading { font-size: 21px; line-height: 28px; font-weight: 700; }
.body    { font-size: 17px; line-height: 26px; }
.label   { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.caption { font-size: 13px; line-height: 18px; }
.muted   { color: var(--ink-muted); }
@media (min-width: 900px) { .display { font-size: 64px; line-height: 70px; } }

/* ---------- Buttons: round, at least 44 px, one primary gesture per screen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; padding: 0 var(--space-8); border: 0; border-radius: var(--radius-full);
  background: var(--btn-bg); color: var(--btn-ink); font-size: 17px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease-touch);
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-text {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2);
  background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn[disabled] { cursor: progress; }

/* ---------- The app shell: one screen at a time ---------- */
.app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.screen-inner {
  flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 480px; margin-inline: auto;
  padding: var(--space-5) var(--gutter) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.bar .wordmark { width: 36px; }
.back { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); margin-inline-start: calc(-1 * var(--space-3)); }
.back svg { width: 24px; height: 24px; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
.push { flex: 1; }
.enter { animation: enter 700ms cubic-bezier(.65, 0, .35, 1) both; }
@keyframes enter { from { transform: translateY(16px); } to { transform: none; } }

/* Screen 1, the door */
.door { position: relative; overflow: hidden; }
.door .screen-inner { position: relative; z-index: 1; }
.door-symbol { position: absolute; inset-block-start: -8vh; inset-inline-end: -22vw; width: min(92vw, 560px); pointer-events: none; }
@media (min-width: 900px) { .door-symbol { inset-inline-end: 4vw; inset-block-start: 10vh; width: 44vw; max-width: 620px; } .door .screen-inner { max-width: 1120px; } .door-copy { max-width: 520px; } }
[dir="rtl"] .door-symbol { inset-inline-end: auto; inset-inline-start: auto; right: -22vw; } /* the symbol never mirrors */
.door-wordmark { width: 104px; margin-block-end: var(--space-6); }
.door .label { color: var(--apricot); margin-block-end: var(--space-3); }
.door .display { margin-block-end: var(--space-4); }
.door .body { color: var(--ink-muted); margin-block-end: var(--space-8); }
.door .caption { color: var(--ink-muted); margin-block-start: var(--space-3); }
.door-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); max-width: 400px; }
.door-actions .btn-text { align-self: center; }

/* Symbol motion (E·2): the space opens, the dot lands, one pulse */
.sym-dot, .sym-dot-inner { transform-box: fill-box; transform-origin: center; }
.js .arrive .sym-dot { transform: translate(60%, -60%) scale(0.2); }
.js .arrive.is-live .sym-dot { transform: none; transition: transform 800ms var(--ease-arrive) 250ms; }
.js .arrive.is-live .sym-dot-inner { animation: pulse 1000ms ease-out 1050ms 1 both; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Screen 2, intention */
.ask { margin-block: var(--space-12) var(--space-8); }
.intents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.intent {
  width: 100%; min-height: 64px; border-radius: var(--radius-full); border: 2px solid var(--nuit);
  background: transparent; color: var(--nuit); font-weight: 700; font-size: 17px; cursor: pointer;
  transition: transform 180ms var(--ease-touch);
}
.intent:active { transform: scale(0.97); }
.intent.is-surprise { background: var(--nuit); color: var(--papier); }

/* Screen 3, the proposal */
.card { background: var(--white); color: var(--nuit); border-radius: var(--radius-lg); overflow: hidden; margin-block-start: var(--space-3); }
.photo { position: relative; background: var(--nuit); aspect-ratio: 4 / 3; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .window { position: absolute; width: 62%; inset-inline-end: 8%; inset-block-end: -26%; }
[dir="rtl"] .photo .window { inset-inline-end: auto; right: 8%; }
.photo.has-img .window { display: none; }
.card-body { padding: var(--space-5) var(--space-5) var(--space-6); }
.card-kicker { color: var(--ink-muted-day); }
.card .title { margin-block: var(--space-1) var(--space-2); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-3); color: var(--ink-muted-day); }
.facts li + li::before { content: "·"; margin-inline-end: var(--space-3); }
.card-line { margin-block: var(--space-4) var(--space-5); }
.host-pill { display: inline-flex; align-items: center; gap: var(--space-3); background: var(--nuit); color: var(--papier); border-radius: var(--radius-full); padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); min-height: 44px; }
.host-pill svg { width: 32px; height: 32px; flex: none; }
.host-pill .pill-name { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }
.host-pill .caption { display: block; color: var(--ink-muted-night); }
.propose-actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-block-start: var(--space-6); }
.flag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 2px solid var(--nuit); font-size: 13px; line-height: 18px; font-weight: 700; }

/* Screen 4, hold my spot / done */
.hold .symbol { width: 96px; margin-block: var(--space-12) var(--space-8); overflow: visible; }
.hold .body { color: var(--ink-muted); margin-block-start: var(--space-3); }
.field { display: grid; gap: var(--space-2); margin-block-start: var(--space-8); }
.field label { font-size: 15px; line-height: 20px; font-weight: 700; }
.input { width: 100%; min-height: 56px; padding: 0 var(--space-5); border-radius: var(--radius-full); border: 2px solid var(--papier); background: var(--nuit-raised); color: var(--papier); font-size: 17px; }
.input::placeholder { color: var(--ink-muted-night); }
.hold .btn { margin-block-start: var(--space-4); }
.hold .fine { color: var(--ink-muted); margin-block-start: var(--space-4); }
.error { display: none; align-items: flex-start; gap: var(--space-2); margin-block-start: var(--space-3); color: var(--danger); font-weight: 700; }
.error.is-shown { display: flex; }
.error svg { flex: none; width: 24px; height: 24px; }
.hp { position: absolute; inset-inline-start: -10000px; }
.hold .signoff { color: var(--ink); font-weight: 700; margin-block-start: var(--space-6); }

/* Footer line, quiet */
.foot { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin-block-start: var(--space-8); }
.foot a, .foot button { color: var(--ink-muted); font-size: 13px; line-height: 18px; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }


/* ---------- V2 additions ---------- */
.btn-quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.optional { font-weight: 400; }
.back svg { width: 24px; height: 24px; }

/* WHEN chips */
.whens { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-6); }
.when { min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-full); border: 2px solid var(--nuit); background: transparent; color: var(--nuit); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 180ms var(--ease-touch); }
.when[aria-pressed="true"] { background: var(--nuit); color: var(--papier); }
.when:disabled { border-color: var(--ink-muted-day); color: var(--ink-muted-day); border-style: dashed; cursor: default; }
.whens + .ask { margin-block-start: var(--space-8); }

/* Proposal */
.seats { font-weight: 700; margin-block-start: var(--space-2); }
.propose-actions .caption { text-align: center; }

/* Hold / you're in */
.stack-actions { display: grid; gap: var(--space-3); margin-block-start: var(--space-8); }
.hold .btn-quiet { color: var(--papier); border-color: var(--papier); }
.textarea { min-height: 112px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-lg); resize: vertical; font-family: inherit; line-height: 26px; }

/* My plan */
.plan-title { margin-block: var(--space-1) var(--space-2); }
.plan-facts { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-3) var(--space-4); margin: var(--space-8) 0; }
.plan-facts dt { color: var(--ink-muted); padding-block-start: 4px; }
.plan-facts dd { margin: 0; }
.arrival { border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); margin-block-start: var(--space-6); display: grid; gap: var(--space-3); }
.arrival .body { color: var(--ink-muted-night); }
#plan-page > .btn-block { margin-block-start: var(--space-6); }
.host-card { margin-block-start: var(--space-8); }
.host-line { margin-block-start: var(--space-3); }
.cancel { margin-block-start: var(--space-8); padding-block-start: var(--space-5); border-block-start: 2px solid var(--line-day); }

/* After */
.after-q { margin-block-start: var(--space-8); }
.yesno { display: flex; gap: var(--space-3); margin-block: var(--space-4) var(--space-2); }
.yesno .btn { flex: 1; }
.yesno .btn[aria-pressed="false"] { background: transparent; color: var(--papier); border: 2px solid var(--papier); }
.yesno .btn[aria-pressed="true"] { background: var(--apricot); color: var(--nuit); border: 0; }
#after-send { margin-block-start: var(--space-6); }
.hold .btn-text { color: var(--papier); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { max-width: calc(40em + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-8) var(--gutter) var(--space-16); }
.page .bar { margin-block-end: var(--space-8); }
.page h1 { margin-block: var(--space-4) var(--space-6); }
.page h2 { font-size: 21px; line-height: 28px; margin-block: var(--space-12) var(--space-3); }
.page p + p, .page ul { margin-block-start: var(--space-3); }
.page ul { padding-inline-start: var(--space-6); margin-block-end: 0; }
.page li + li { margin-block-start: var(--space-2); }
.todo { background: var(--apricot); color: var(--nuit); border-radius: var(--radius-sm); padding: 0 var(--space-1); }

/* Reduced motion: everything cuts (B·4) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .arrive .sym-dot { transform: none !important; }
}
