/* ============================================================
   NAKHLA JET — v3, the parallel site (web/v3/)
   Mist, midnight and a window seat: one question per screen, every
   answer optional, and a way out to WhatsApp on each step.
   Midnight is sampled from @nakhlajet; the rest is the Pinterest
   board's measured palette. No beige.
   ============================================================ */

@font-face {
  font-family: "Cormorant Infant";
  src: url("../fonts/cormorant-infant-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  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: "Cormorant Infant";
  src: url("../fonts/cormorant-infant-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  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: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  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: "Jost";
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  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;
}

/* Registered so a window's sky tweens between colour stops. */
@property --s1    { syntax: "<color>"; inherits: true; initial-value: #6FA8E0; }
@property --s2    { syntax: "<color>"; inherits: true; initial-value: #A8CBEE; }
@property --s3    { syntax: "<color>"; inherits: true; initial-value: #E4F0FA; }
@property --sun   { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --glow  { syntax: "<color>"; inherits: true; initial-value: rgba(255,252,235,.9); }
@property --cloud { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.9); }

:root {
  /* The palette: midnight is sampled from @nakhlajet, the rest from the Pinterest board. */
  --midnight: #050A30;   /* Instagram navy */
  --ink:      #1B2350;   /* midnight lifted a touch for long reading */
  --mist:     #EDF0F4;
  --slate:    #5A6771;
  --sea:      #1F4A69;
  --sky:      #8AB3D6;   /* glows and ranges; text only at night (8.7:1 on midnight) */
  --dusk:     #EFB48C;   /* the one warm note */
  --on-dark:  #F2F4F8;

  /* Mist, by day. Components read only these names; Midnight below redefines them. */
  --ground:  var(--mist);
  --room-top:  #F8FAFC;                  /* the light in the room */
  --room-foot: rgba(138,179,214,.30);
  --text:    var(--ink);
  --quiet:   var(--slate);               /* 5.1:1 on mist */
  --accent:  var(--sea);                 /* focus and small accents, 8.2:1 on mist */
  --fill:    var(--midnight);            /* the button, and whatever is chosen */
  --on-fill: var(--on-dark);
  --on-fill-strong: #FFFFFF;             /* a chosen date */
  --glass:      rgba(255,255,255,.58);
  --glass-edge: rgba(255,255,255,.9);
  --line:       rgba(27,35,80,.12);
  --lift:       0 14px 30px -22px rgba(27,35,80,.45);
  --chip:        rgba(255,255,255,.45);
  --pill-strong: rgba(255,255,255,.82);  /* a pill on the window's rim */
  --ctx-shadow:  inset 0 0 0 1px rgba(27,35,80,.10), 0 10px 24px -14px rgba(27,35,80,.45);
  --option-on:   rgba(255,255,255,.82);
  --option-off:  rgba(255,255,255,.34);  /* an option not chosen, while another is */
  --raised:        #FFFFFF;              /* count buttons, a chosen way to reach, the number field */
  --raised-shadow: 0 6px 16px -10px rgba(27,35,80,.5), inset 0 0 0 1px rgba(27,35,80,.08);
  --glass-row:        rgba(255,255,255,.55);
  --glass-row-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 10px 26px -18px rgba(27,35,80,.35);
  --method:      rgba(255,255,255,.72);
  --method-edge: rgba(27,35,80,.1);
  --well:        rgba(27,35,80,.07);     /* the Depart | Return track */
  --seg-pill:    #FFFFFF;
  --seg-shadow:  0 4px 12px -6px rgba(27,35,80,.35);
  --range:       rgba(138,179,214,.32);
  --tag-bg:      rgba(138,179,214,.28);
  --tick:        rgba(27,35,80,.22);
  --faint:       rgba(27,35,80,.28);     /* days that can't be chosen */
  --placeholder: rgba(90,103,113,.8);
  --dash:        rgba(27,35,80,.35);
  --switch-off:  rgba(27,35,80,.16);
  --thumb:       #FFFFFF;
  --thumb-on:    #FFFFFF;
  --knob:      radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F3F6F9 60%, #E3E9F0 100%);
  --knob-drop: 0 10px 22px -8px rgba(27,35,80,.45);
  --knob-edge: 0 0 0 1px rgba(27,35,80,.06);
  --bezel:        linear-gradient(160deg, #FFFFFF 0%, #EEF2F6 50%, #DCE3EB 100%);
  --bezel-shadow: 0 28px 44px -22px rgba(27,35,80,.38), inset 0 2px 0 rgba(255,255,255,.95), inset 0 -3px 8px rgba(27,35,80,.07);
  --warn:      #8A3B2E;
  --error-bg:  rgba(239,180,140,.24);
  --dock:      rgba(237,240,244,.66);
  --foot-line: rgba(90,103,113,.35);
  /* Buttons (PO pick, 2026-10-19): a soft rectangle on a close shadow, with real states. */
  --radius-button:  14px;
  --lift-button:    inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(5,10,48,.18), 0 8px 18px -12px rgba(5,10,48,.5);
  --action-hover:   #0E143D;
  --action-pressed: #03061D;
  --action-muted:   rgba(27,35,80,.10);
  --action-wash:    rgba(27,35,80,.05);
  --serif: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --col: 480px;
}

/* Midnight, when the phone is in dark mode, as on the rest of the site: the ground is the
   Instagram navy, the button inverts, and whatever is chosen turns light. The window keeps
   the sky outside; only its frame darkens, like a cabin wall with the lights down. */
/* Night is off: every visitor sees Mist until night is reviewed against the new look (PO, 2026-11-05).
   To bring it back, put `(prefers-color-scheme: dark)` back in place of `not all` (and in css/tokens.css). */
@media not all {
  :root {
    color-scheme: dark;
    --ground:  var(--midnight);
    --room-top:  #0D1850;
    --room-foot: rgba(138,179,214,.16);
    --text:    var(--on-dark);             /* 17.5:1 on midnight */
    --quiet:   #A9B4C8;                    /* 9.2:1 */
    --accent:  var(--sky);                 /* 8.7:1 */
    --fill:    var(--on-dark);
    --on-fill: var(--midnight);
    --on-fill-strong: var(--midnight);
    --glass:      rgba(255,255,255,.07);
    --glass-edge: rgba(255,255,255,.14);
    --line:       rgba(255,255,255,.14);
    --lift:       0 14px 30px -22px rgba(0,0,0,.6);
    --chip:        rgba(255,255,255,.06);
    --pill-strong: rgba(13,24,80,.82);
    --ctx-shadow:  inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 24px -14px rgba(0,0,0,.6);
    --option-on:   rgba(255,255,255,.12);
    --option-off:  rgba(255,255,255,.04);
    --raised:        rgba(255,255,255,.12);
    --raised-shadow: 0 6px 16px -10px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.14);
    --glass-row:        rgba(255,255,255,.07);
    --glass-row-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 26px -18px rgba(0,0,0,.6);
    --method:      rgba(255,255,255,.07);
    --method-edge: rgba(255,255,255,.14);
    --well:        rgba(255,255,255,.06);
    --seg-pill:    rgba(255,255,255,.14);
    --seg-shadow:  0 4px 12px -6px rgba(0,0,0,.5);
    --range:       rgba(138,179,214,.18);
    --tag-bg:      rgba(138,179,214,.18);
    --tick:        rgba(255,255,255,.22);
    --faint:       rgba(242,244,248,.28);
    --placeholder: rgba(169,180,200,.8);
    --dash:        rgba(255,255,255,.35);
    --switch-off:  rgba(255,255,255,.16);
    --thumb:       var(--on-dark);
    --thumb-on:    var(--midnight);
    --knob:      radial-gradient(circle at 35% 30%, #FFFFFF 0%, #E3E8F0 60%, #C7D0DE 100%);
    --knob-drop: 0 10px 22px -8px rgba(0,0,0,.6);
    --knob-edge: 0 0 0 1px rgba(255,255,255,.1);
    --bezel:        linear-gradient(160deg, #222D60 0%, #141D52 50%, #0B1340 100%);
    --bezel-shadow: 0 28px 44px -22px rgba(0,0,0,.65), inset 0 1.5px 0 rgba(255,255,255,.16), inset 0 -3px 8px rgba(0,0,0,.35);
    --warn:      var(--dusk);              /* 10.6:1 */
    --error-bg:  rgba(239,180,140,.14);
    --dock:      rgba(5,10,48,.66);
    --foot-line: rgba(169,180,200,.35);
    --lift-button:    0 1px 2px rgba(0,0,0,.4), 0 8px 18px -12px rgba(0,0,0,.65);
    --action-hover:   #FFFFFF;
    --action-pressed: #DFE3EC;
    --action-muted:   rgba(255,255,255,.12);
    --action-wash:    rgba(255,255,255,.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* The light in the room: fixed, so it stays put while the page moves. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 0%, var(--room-top) 0%, transparent 62%),
    radial-gradient(90% 45% at 50% 108%, var(--room-foot) 0%, transparent 70%);
}
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------- frame ---------------- */
.app {
  position: relative; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  max-width: var(--col); margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.top {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  height: 56px; margin-top: env(safe-area-inset-top);
}
.icon {
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--text); padding: 0;
}
.icon:disabled { opacity: .25; cursor: default; }
.top #back { grid-column: 1; grid-row: 1; }
.mark {
  grid-column: 2; grid-row: 1; justify-self: center; font-family: var(--serif); font-weight: 500; font-size: 21px;
  letter-spacing: .01em; text-decoration: none; padding: 10px 12px;
}
.progress { height: 2px; margin: 2px 10px 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span {
  display: block; height: 100%; background: var(--text); border-radius: 2px;
  transform-origin: left center; transform: scaleX(var(--progress, 0));
  transition: transform .5s var(--ease);
}
[dir="rtl"] .progress span { transform-origin: right center; }

.stages { flex: 1; display: flex; flex-direction: column; }
.stage { flex: 1; display: flex; flex-direction: column; padding-bottom: 8px; }
.stage.enter { animation: stage-in .44s var(--ease) both; }
.stage.enter.back { animation-name: stage-back; }
@keyframes stage-in   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stage-back { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.q {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(31px, 8.4vw, 40px); line-height: 1.1; letter-spacing: -.005em;
  text-align: center; text-wrap: balance;
  margin: clamp(18px, 4svh, 40px) 4px 0; outline: none;
}

/* ---------------- the window ---------------- */
.porthole {
  --ph: clamp(168px, 27svh, 232px);
  width: calc(var(--ph) * .76); height: var(--ph); border-radius: 50%;
  margin: 18px auto 0; position: relative; flex: none;
  background: var(--bezel);
  box-shadow: var(--bezel-shadow);
}
/* On a short screen (iPhone Safari with its bars is 553 px) the window gives way, so the
   first field clears the dock. From 649 px tall it is the full size. */
.porthole--lg { --ph: clamp(104px, min(31svh, 100svh - 448px), 262px); margin-top: 22px; }
.pane {
  position: absolute; inset: 8%; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 58%, var(--s3) 100%);
  box-shadow: inset 0 9px 18px rgba(5,10,48,.34), inset 0 -3px 10px rgba(255,255,255,.22);
  transition: --s1 .9s var(--ease), --s2 .9s var(--ease), --s3 .9s var(--ease);
}
.stars {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease);
  background-image:
    radial-gradient(1px 1px at 22% 18%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 70% 12%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 38% 36%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 82% 44%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 16% 58%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 55% 62%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.7) 60%, transparent 61%),
    radial-gradient(1px 1px at 76% 76%, rgba(255,255,255,.7) 60%, transparent 61%);
}
.sun {
  position: absolute; left: var(--sx, 40%); top: var(--sy, 26%);
  /* size is a % of the pane's width; aspect-ratio keeps it round in the oval */
  width: var(--ss, 14%); height: auto; aspect-ratio: 1 / 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--sun);
  box-shadow: 0 0 22px 10px var(--glow), 0 0 70px 34px var(--glow);
  transition: left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), --sun .9s var(--ease), --glow .9s var(--ease);
}
.cloud {
  position: absolute; border-radius: 50%; background: var(--cloud); filter: blur(7px);
  transition: --cloud .9s var(--ease);
  animation: drift 26s ease-in-out infinite alternate;
}
.cloud.c1 { width: 70%; height: 11%; left: -18%; top: 64%; }
.cloud.c2 { width: 52%; height: 9%; left: 36%; top: 78%; animation-duration: 34s; animation-delay: -8s; }
.cloud.c3 { width: 40%; height: 6%; left: 12%; top: 46%; opacity: .7; animation-duration: 40s; animation-delay: -15s; }
@keyframes drift { from { transform: translateX(-12%); } to { transform: translateX(18%); } }
.glass {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 38%);
}

/* ---------------- the answer ---------------- */
.answer { text-align: center; margin-top: 20px; }
.word {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 12vw, 54px); line-height: 1.02; letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  display: inline-block; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.word.out { opacity: 0; transform: translateY(8px); }
.sub { margin: 10px 0 0; font-size: 16px; color: var(--quiet); text-align: center; letter-spacing: .01em; }

/* ---------------- text fields ---------------- */
.field { margin-top: 26px; }
.field input, .note textarea {
  width: 100%; border: 0; border-radius: 20px;
  background: var(--glass); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input { height: 64px; padding: 0 22px; font-size: 21px; text-align: center; }
.field input::placeholder, .note textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .note textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), var(--lift); }

.from {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  margin: 18px 0 0; font-size: 16px; color: var(--quiet);
}
.from input {
  width: 7ch; min-width: 4ch; max-width: 100%; padding: 6px 2px; border: 0; border-radius: 0;
  border-bottom: 1px dashed var(--dash); background: transparent;
  font-size: 16px; color: var(--text); text-align: center;
  -webkit-appearance: none; appearance: none;
}
.from input:focus { outline: none; border-bottom: 1.5px solid var(--accent); }

/* What they arrived with: an aircraft, a shortlist or a service. One pill each, resting on
   the window's lower rim like a placard. */
.context {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  position: relative; z-index: 2; margin-top: -22px;
}
.context:not([hidden]) + .q { margin-top: 16px; }
.ctx {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%;
  min-height: 44px; padding: 0 2px 0 16px; border-radius: 999px;
  background: var(--pill-strong); color: var(--text); font-size: 15px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--ctx-shadow);
}
.ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx button {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: var(--quiet); cursor: pointer; display: grid; place-items: center;
}

/* ---------------- chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chips:empty { display: none; }
#places { max-width: 360px; margin-inline: auto; }   /* six places sit 3 + 3 at any width */
.chip {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--chip); color: var(--text); font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); box-shadow: none; }

/* ---------------- when: slider ---------------- */
.when-slide { margin-top: 18px; }
.track { position: relative; height: 56px; }
.ticks {
  position: absolute; inset: 0 22px; display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.ticks i { display: block; width: 1px; height: 12px; background: var(--tick); border-radius: 1px; transition: background .25s; }
.ticks i.stop { height: 22px; width: 1.5px; }
.ticks i.on { background: var(--text); }
.knob {
  position: absolute; top: 50%; width: 44px; height: 44px; border-radius: 50%;
  left: calc(var(--p, .2) * (100% - 44px));
  transform: translateY(-50%);
  background: var(--knob);
  box-shadow: var(--knob-drop), var(--knob-edge);
  transition: left .28s var(--ease);
  pointer-events: none; display: grid; place-items: center;
}
.knob span {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(180deg, var(--s1), var(--s3));
  box-shadow: 0 0 0 3px rgba(255,255,255,.9);
  transition: --s1 .9s, --s3 .9s;
}
.track input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent;
}
.track input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 56px; }
.track input::-moz-range-thumb { width: 44px; height: 56px; border: 0; }
.track:focus-within .knob { box-shadow: var(--knob-drop), 0 0 0 2px var(--ground), 0 0 0 4px var(--accent); }
.ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--quiet); margin-top: 2px; padding: 0 4px; }

/* ---------------- switches ---------------- */
.switch-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 8px 10px 20px; margin-top: 16px;
  border-radius: 20px; cursor: pointer; font-size: 17px; line-height: 1.3;
  background: var(--glass-row);
  box-shadow: var(--glass-row-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  width: 56px; height: 34px; border-radius: 34px; position: relative; flex: none; margin-inline-end: 6px;
  background: var(--switch-off); transition: background .25s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--thumb); box-shadow: 0 3px 8px rgba(5,10,48,.25); transition: transform .25s var(--ease), background .25s var(--ease);
}
.switch-row input:checked + .switch { background: var(--fill); }
.switch-row input:checked + .switch::after { transform: translateX(22px); background: var(--thumb-on); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- when: specific dates ---------------- */
.cal { display: none; margin-top: 12px; }
.when.dates .porthole, .when.dates .when-slide { display: none; }
.when.dates .answer { margin-top: 14px; }
.when.dates .word { font-size: clamp(34px, 9.5vw, 40px); }
.when.dates .sub { margin-top: 6px; }
.when.dates .cal { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Depart | Return: the pill slides to whichever date the next tap sets. */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--well); }
.seg::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--seg-pill); box-shadow: var(--seg-shadow);
  transition: transform .34s var(--ease);
}
.seg[data-at="ret"]::before { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; height: 42px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 16px; color: var(--quiet);
  transition: color .2s, opacity .2s;
}
.seg button[aria-checked="true"] { color: var(--text); }
.seg button[aria-disabled="true"] { cursor: default; opacity: .45; }
.cal-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-top: 4px; }
.month { text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0; font-variant-numeric: lining-nums; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow { font-size: 12px; color: var(--quiet); text-align: center; margin: 4px 0 2px; }
.grid { row-gap: 2px; }
.day {
  position: relative; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 0;
  font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text);
}
.day span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background .15s, color .15s; }
.day:disabled { color: var(--faint); cursor: default; }
.day.today span::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.day.in::before { content: ""; position: absolute; inset: 2px 0; background: var(--range); }
.day.start::before { left: 50%; }
.day.end::before { right: 50%; }
.day.start.end::before { display: none; }
.day.start span, .day.end span { background: var(--fill); color: var(--on-fill-strong); }
.day.start.today span::after, .day.end.today span::after { background: var(--on-fill-strong); }

/* ---------------- who ---------------- */
.party {
  margin-top: 24px; padding: 4px 10px 4px 22px; border-radius: 24px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.party-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.party-row + .party-row { border-top: 1px solid var(--line); }
.party-row b { display: block; font-weight: 500; font-size: 18px; }
.party-row small { display: block; font-size: 14px; color: var(--quiet); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--raised); color: var(--text); display: grid; place-items: center;
  box-shadow: var(--raised-shadow);
  transition: transform .12s var(--ease), opacity .2s;
}
.stepper button:active { transform: scale(.94); }
.stepper button:disabled { opacity: .35; cursor: default; transform: none; }
/* Jost, not the serif: Cormorant's 1 reads as a capital I at this size. */
.stepper output {
  min-width: 2ch; text-align: center; font-size: 26px; font-weight: 400; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------------- cabin ---------------- */
/* Centred cards (PO, 2026-11-05): each cabin's outline stands in its own band, centred over its
   name and its line. Chosen is a 2 px ring on a brighter card, as the ways to reach show it; no
   tick, so nothing sits off-centre. A suggestion's tag sits under the line. */
.options { display: grid; gap: 10px; margin-top: 16px; }
.option {
  display: grid; justify-items: center; align-content: center;
  width: 100%; min-height: 76px; padding: 18px 16px;
  border: 0; border-radius: 22px; cursor: pointer; text-align: center;
  background: var(--glass); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.option b { font-weight: 500; font-size: 18px; }
.option small { margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: var(--quiet); text-wrap: balance; }
.option .tag { margin-top: 10px; }
.option[aria-checked="true"] { background: var(--option-on); box-shadow: inset 0 0 0 2px var(--fill), var(--lift); }
/* The others step back (PO, 2026-11-05): a fainter card, a touch smaller, the name and outline in
   quiet ink, so the one chosen reads at a glance and the rest read as "tap to choose". The words
   keep their contrast (quiet text 5.3:1 or more by day, 7.2:1 at night); the tag keeps its colour.
   Only once the guest has chosen (.is-picked, set by app.js): the default "Let us suggest" alone
   leaves all four cards equal, so the aircraft never look switched off on arrival (PO, 2026-11-05). */
.options.is-picked .option:not([aria-checked="true"]) {
  background: var(--option-off); color: var(--quiet); transform: scale(.97);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.options.is-picked .option:not([aria-checked="true"]) .outline { color: var(--quiet); opacity: .7; }
@media (hover: hover) {
  .options.is-picked .option:not([aria-checked="true"]):hover { color: var(--text); transform: none; }
}
.tag {
  font-size: 12.5px; font-weight: 400; letter-spacing: .02em; color: var(--accent);
  padding: 3px 10px; border-radius: 999px; background: var(--tag-bg);
}
.nb { white-space: nowrap; }
/* The three sizes at one scale, 7.8 px per metre: the lengths compare at a glance. Each stands
   on the band's floor, so the wheels share a line. */
.option--cabin { padding: 24px 16px 20px; }
.option--cabin .outline {
  display: flex; align-items: flex-end; justify-content: center; height: 64px; margin-bottom: 14px;
  color: var(--text); transition: color .2s var(--ease), opacity .2s var(--ease);
}
.option--cabin .outline svg { display: block; }

/* ---------------- anything else ---------------- */
.chips--prefs { justify-content: flex-start; margin-top: 24px; }
.note { margin-top: 18px; }
.note textarea { display: block; min-height: 124px; padding: 18px 20px; font-size: 18px; line-height: 1.45; resize: none; }
.count { margin: 6px 6px 0; font-size: 13px; color: var(--quiet); text-align: end; min-height: 1.4em; }

/* ---------------- review ---------------- */
.summary {
  margin-top: 22px; padding: 4px 0; border-radius: 24px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px;
  width: 100%; min-height: 60px; padding: 10px 16px 10px 22px;
  border: 0; background: transparent; cursor: pointer; text-align: start; color: var(--text);
}
.row + .row { border-top: 1px solid var(--line); }
.row small { display: block; font-size: 13px; color: var(--quiet); }
.row span { display: block; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.row span.unset { color: var(--quiet); }
.row svg { color: var(--quiet); }
.estimate { margin: 14px 8px 0; font-size: 14.5px; line-height: 1.5; color: var(--quiet); text-align: center; }
.ref { margin: 14px 0 0; font-size: 14px; color: var(--quiet); text-align: center; letter-spacing: .02em; }
.ref b { font-weight: 500; color: var(--text); letter-spacing: .06em; }
.channels { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* ---------------- how to reach you ---------------- */
.contact {
  margin-top: 22px; padding: 10px; border-radius: 26px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
/* Three across at every width, icon over label: side by side needs ~140px a column,
   which the 480px column only gives on desktop, and "Phone call" would wrap. */
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 76px; padding: 10px 6px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--method); color: var(--text); font-size: 15.5px; line-height: 1.2; text-align: center;
  box-shadow: inset 0 0 0 1px var(--method-edge);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.method svg { flex: none; color: var(--accent); transition: color .2s var(--ease); }
/* Chosen = a ring, like the cabin options; the panel's own button carries the weight. */
.method[aria-checked="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 2px var(--fill); }
.method[aria-checked="true"] svg { color: var(--fill); }
.reach-field { padding: 16px 6px 6px; animation: rise .3s var(--ease); }
.reach-field label { display: block; margin: 0 4px 8px; font-size: 15px; color: var(--quiet); }
.reach-field input {
  width: 100%; height: 60px; padding: 0 18px; border: 0; border-radius: 16px;
  background: var(--raised); color: var(--text); font-size: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-appearance: none; appearance: none;
}
.reach-field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.reach-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--warn); }
.hint { margin: 10px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--quiet); }
.hint.warn { color: var(--warn); }
.hint a, .send-error a { color: var(--accent); }
.send-error {
  margin: 14px 2px 0; padding: 14px 18px; border-radius: 18px;
  background: var(--error-bg); color: var(--text); font-size: 15px; line-height: 1.5;
}

/* ---------------- buttons ---------------- */
/* Tailored (PO pick, 2026-10-19): the same 58 px and full width as before, with a soft 14 px
   corner, a medium label and a close shadow in place of the pill, the light tracked label and the
   wide glow. Hover is for pointers only; pressing darkens and settles; disabled is a muted fill. */
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 0 24px; border: 0; border-radius: var(--radius-button);
  cursor: pointer; text-decoration: none; text-align: center; font-size: 17px; font-weight: 500;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.primary svg, .secondary svg { flex: none; width: 18px; height: 18px; }
.primary { background: var(--fill); color: var(--on-fill); box-shadow: var(--lift-button); }
.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--fill); }
@media (hover: hover) {
  .primary:not([aria-disabled="true"]):hover { background: var(--action-hover); }
  .secondary:not([aria-disabled="true"]):hover { background: var(--action-wash); }
}
.primary:not([aria-disabled="true"]):active { background: var(--action-pressed); transform: scale(.985); }
.secondary:not([aria-disabled="true"]):active { background: var(--action-wash); transform: scale(.985); }
.primary[aria-disabled="true"] { background: var(--action-muted); color: var(--quiet); box-shadow: none; cursor: default; }
.secondary[aria-disabled="true"] { box-shadow: inset 0 0 0 1px var(--action-muted); color: var(--quiet); cursor: default; }
.primary[aria-busy="true"], .secondary[aria-busy="true"] { cursor: progress; }
.primary span { display: inline-block; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.primary span.out { opacity: 0; transform: translateY(4px); }
.exit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--radius-button); background: transparent; cursor: pointer;
  color: var(--quiet); font-size: 16px; text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color .2s var(--ease);
}
@media (hover: hover) { .exit:hover { color: var(--text); text-decoration-line: underline; } }

/* ---------------- dock: the thumb zone ---------------- */
.dock {
  position: sticky; bottom: 0; z-index: 5; isolation: isolate;
  display: grid; gap: 2px;
  margin: 0 -20px; padding: 22px 20px calc(8px + env(safe-area-inset-bottom));
}
/* Frosted, full-bleed, and fading in from the top, so it never reads as a box. */
.dock::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--dock);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
}
.ts:empty { display: none; }
.ts { margin-bottom: 8px; }
.dock .secondary { margin-top: 8px; }
/* "Or have your concierge message you" open: the panel joins the page instead of
   riding a sticky dock taller than the screen. (Relative, not static, so the
   frosted ::before stays the dock's own size.) */
.dock.is-reaching { position: relative; padding-bottom: calc(8px + env(safe-area-inset-bottom) + var(--kb, 0px)); }
/* A phone on its side (375 px tall) has no room for a dock over the question, so it
   comes after it. */
@media (max-height: 480px) { .dock { position: relative; } }
.dock .contact { margin-top: 6px; text-align: start; }
.contact-h { margin: 6px 8px 12px; font-size: 15px; color: var(--quiet); }
.contact .secondary { margin-top: 12px; }
/* Once there's a way to reach them, "Ask … to message me" fills: the action leads. */
.contact .secondary:not([aria-disabled="true"]) { background: var(--fill); color: var(--on-fill); box-shadow: var(--lift-button); }
@media (hover: hover) { .contact .secondary:not([aria-disabled="true"]):hover { background: var(--action-hover); } }
.contact .secondary:not([aria-disabled="true"]):active { background: var(--action-pressed); }

/* ---------------- sent ---------------- */
.stage[data-stage="sent"] .q { font-size: clamp(44px, 12vw, 56px); font-weight: 400; margin-top: 22px; }
.sent-line { margin: 10px 12px 0; font-size: 17px; line-height: 1.5; color: var(--text); text-align: center; text-wrap: balance; }

/* ---------------- who we are + questions (first screen only, under the dock) ----------------
   A quiet reading surface: one paragraph, one title, and the questions as one glass group of
   rows that open in place. Nothing above the title; the answers are there on request. */
.more { padding: 34px 4px 8px; }
.more-about { margin: 0 4px; font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.more-h {
  font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15;
  margin: 38px 4px 14px; text-align: start;
}
.faq {
  border-radius: 20px; background: var(--glass-row); box-shadow: var(--glass-row-shadow);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 14px 18px 14px 20px; cursor: pointer;
  font-size: 17px; line-height: 1.35; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
/* A chevron that turns to face down when the answer is open. */
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 3px 0;
  border-right: 1.6px solid var(--quiet); border-bottom: 1.6px solid var(--quiet);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 20px; }
.faq p { margin: -2px 20px 0; padding-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.faq p a { text-decoration-color: var(--foot-line); text-underline-offset: 3px; }

/* ---------------- footer (first screen only) ---------------- */
.foot { margin: 6px 0 0; padding: 12px 8px 22px; font-size: 13.5px; line-height: 1.7; color: var(--quiet); text-align: center; }
/* Inline links, but with a full-height tap area (negative margins keep the line). */
.foot a {
  display: inline-block; padding: 12px 4px; margin: -12px 0;
  text-decoration: none; background: linear-gradient(var(--foot-line), var(--foot-line)) no-repeat 4px calc(100% - 13px) / calc(100% - 8px) 1px;
}


@media (min-width: 720px) {
  :root { --col: 520px; }
  .q { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
