/* ==========================================================================
   Fidus v2 — the booking assistant (/call)
   A glass panel floating over the living sky. The day in the sky moves forward
   with every answer; the four steps sit at the top of the panel.

   One system for everything a visitor can choose:
     .key    a raised key: tile, chip, first times, day, time.
             Chosen = ink key, paper text, amber tick on its corner. Nothing else.
     .well   the square that holds an icon (same size, corner and stroke everywhere)
     .lbl    the label above a group or a field
   Two corners (--r-lg, --r-sm), two heights (--h-key, --h-field), one rhythm (--gap).
   Logical properties throughout, and --dir for anything that moves sideways:
   the page reads the same right-to-left. Nothing has a fixed width that a
   longer word could break.
   ========================================================================== */

@property --f  { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --tf { syntax: '<number>'; inherits: true; initial-value: 0; }

.page-call {
  --panel: 672px;
  --pad: 28px;              /* panel, left and right */
  --gap: 18px;              /* between the blocks of a step */
  --r-lg: 16px;             /* tiles, first times, fields */
  --r-sm: 12px;             /* chips, days, times, icon wells */
  --h-key: 44px;            /* chips, times */
  --h-field: 52px;          /* fields and the two buttons of the last row */
  --well: 40px;
  --dir: 1;

  --p-soft: rgb(14 17 22 / .68);
  --p-faint: rgb(14 17 22 / .46);
  --p-hair: rgb(14 17 22 / .11);
  --p-hair-strong: rgb(14 17 22 / .24);
  --key-bg: rgb(255 255 255 / .62);
  --key-sheen: linear-gradient(180deg, rgb(255 255 255 / .6), rgb(255 255 255 / 0));
  --key-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(14 17 22 / .1), 0 1px 2px rgb(14 17 22 / .05), 0 12px 22px -16px rgb(14 17 22 / .42);
  --key-shadow-up: inset 0 1px 0 #fff, 0 0 0 1px rgb(14 17 22 / .3), 0 1px 2px rgb(14 17 22 / .05), 0 16px 24px -16px rgb(14 17 22 / .5);
  --key-shadow-on: 0 0 0 1px var(--ink), 0 14px 24px -14px rgb(14 17 22 / .85);
  --err: #A63A1E;
  --ok: #3F9A5E;
}
[dir="rtl"] .page-call { --dir: -1; }

/* ---- navigation: logo and a way to write instead ---------------------------- */
.page-call .nav .lang { margin-inline-start: auto; }
.page-call .nav-cta { margin-inline-start: 0; gap: 8px; height: 44px; }
.page-call .nav-cta svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 700px) {
  /* nothing fixed on a phone: the keyboard needs the whole screen */
  .page-call .nav { position: absolute; }
}

/* ---- page ----------------------------------------------------------------- */
.call {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(84px, 10.6vh, 120px) clamp(14px, 4.4vw, 64px) 34px;
  padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  overflow-x: clip;
}
/* golden hour: amber on amber does not read, the accents turn to ink */
.page-call .d-m em { transition: color 1.4s; }
.page-call.is-done { --accent: var(--ink); }
.call-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(20px, 3.1vh, 34px); max-width: 100%; }
.call-head h1 { overflow-wrap: anywhere; }
/* while the script measures and sets sizes (long words in other languages), nothing in here animates */
html .fitting, html .fitting * { transition: none !important; }
.call-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.call-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: 999px;
  font: 500 .66rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft);
  background: var(--glass); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.call-chips li::before { content: ''; width: 5px; height: 5px; background: var(--accent); flex: none; }

.call-alt { margin-top: clamp(30px, 5vh, 46px); text-align: center; font-size: .96rem; color: var(--fg-soft); line-height: 1.9; }
.call-alt a { color: var(--fg); padding: 10px 2px; white-space: nowrap; }
.call-alt .sep { margin: 0 .7em; }
.call-legal {
  margin-top: auto; padding-top: 34px; text-align: center;
  font: 500 .64rem/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.call-legal a { text-decoration: none; padding: 10px 2px; }
@media (hover: hover) { .call-legal a:hover { color: var(--fg); } }

/* ---- the assistant ---------------------------------------------------------- */
.asst {
  position: relative; isolation: isolate; width: 100%; max-width: var(--panel);
  border-radius: 30px; color: var(--ink);
}
.asst::before { /* the glass */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / .8) 0%, rgb(250 247 241 / .8) 24%, rgb(250 247 241 / .9) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .95),
    inset 0 0 0 1px rgb(255 255 255 / .5),
    0 0 0 1px rgb(14 17 22 / .07),
    0 1px 2px rgb(14 17 22 / .06),
    0 22px 44px -22px rgb(14 17 22 / .36),
    0 70px 110px -52px rgb(110 54 8 / .55);
}
.asst::after { /* the warm shade it throws on the clouds below: the panel floats.
                   A gradient, not filter: blur() — WebKit paints a black box when a blurred layer sits under an animated one */
  content: ''; position: absolute; z-index: -2; inset-inline: 4%; bottom: -36px; height: 78px;
  background: radial-gradient(closest-side, rgb(154 78 10 / .36), rgb(154 78 10 / .12) 60%, rgb(154 78 10 / 0));
}
.js .asst { animation: asstIn .95s var(--ease-out) .12s both; }
@keyframes asstIn { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.965); } }

/* ---- the four steps -----------------------------------------------------------
   to do: an outlined circle with the step's icon · now: ink circle in a soft capsule
   · done: amber circle with a tick, and a way back to that step                  */
.steps {
  position: relative; display: flex; align-items: center; min-height: 68px;
  padding: 16px var(--pad) 15px;
}
.steps::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-hair) 10%, var(--p-hair) 90%, transparent);
}
.step { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.step + .step { flex: 1 1 auto; }
.step-line { flex: 1 1 18px; min-width: 12px; height: 2px; margin-inline: 10px; border-radius: 2px; background: rgb(14 17 22 / .13); overflow: hidden; }
.step-line i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
[dir="rtl"] .step-line i { transform-origin: 100% 50%; }
.step.is-done > .step-line i, .step.is-cur > .step-line i { transform: scaleX(1); }
.step-btn {
  position: relative; display: inline-flex; align-items: center; min-width: 0; padding: 3px; padding-inline-end: 3px;
  border-radius: 999px; color: rgb(14 17 22 / .56); cursor: default; text-align: start;
  transition: background-color .5s, padding .6s var(--ease-out), color .45s;
  -webkit-tap-highlight-color: transparent;
}
.step-btn::after { content: ''; position: absolute; inset: -6px -3px; border-radius: 999px; } /* a finger-sized target */
.step-btn:not(:disabled) { cursor: pointer; }
.step-dot {
  position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1.5px rgb(14 17 22 / .2); color: var(--p-faint);
  transition: background-color .45s, color .45s, box-shadow .45s;
}
.step-dot svg { grid-area: 1 / 1; transition: opacity .3s, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.step-ok { opacity: 0; transform: scale(.4); }
.step-lbl {
  min-width: 0; margin-inline-start: 9px; font: 500 .84rem/1.15 var(--sans); letter-spacing: -.006em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .45s;
}
.step.is-cur .step-btn { color: var(--ink); background: rgb(14 17 22 / .07); padding-inline-end: 14px; }
.step.is-cur .step-dot { background: var(--ink); color: var(--paper); box-shadow: 0 8px 14px -8px rgb(14 17 22 / .8); animation: stepNow .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.step.is-cur .step-lbl { font-weight: 600; }
@keyframes stepNow { from { transform: scale(.72); } }
.step.is-done .step-btn { color: var(--ink); }
.step.is-done .step-dot { background: var(--amber); color: #fff; box-shadow: 0 6px 12px -6px rgb(154 78 10 / .8); }
.step.is-done .step-ic { opacity: 0; transform: scale(.4); }
.step.is-done .step-ok { opacity: 1; transform: none; }
/* no room for four names (a phone, or a language with long words): only the current step keeps its name.
   call.js puts .is-tight on the row when a name would be cut */
.steps.is-tight .step-lbl { margin-inline-start: 0; max-inline-size: 0; opacity: 0; transition: max-inline-size .6s var(--ease-out), margin .6s var(--ease-out), opacity .35s, color .45s; }
.steps.is-tight .step.is-cur .step-lbl { margin-inline-start: 9px; max-inline-size: 16em; opacity: 1; }
/* in a tight row the other steps give way first: the lines shrink to a stub before the current name is cut */
.steps.is-tight .step:not(.is-cur) { flex-shrink: 0; }
.steps.is-tight .step-line { flex-basis: 6px; min-width: 6px; }
@media (hover: hover) {
  .step-btn:not(:disabled):hover .step-dot { background: var(--amber-deep); }
  .step-btn:not(:disabled):hover .step-lbl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
}

/* who is talking */
.asst-head { display: flex; align-items: center; gap: 12px; padding: 16px var(--pad) 0; }
.who { position: relative; flex: none; display: grid; }
.who .avatar { width: 44px; height: 44px; font-size: 1.45rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--amber); }
.who-on { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px #fff; }
.who-on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.who-tx { display: grid; gap: 4px; min-width: 0; }
.who-tx b { font: 600 .98rem/1.15 var(--sans); letter-spacing: -.012em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-tx span { font: 400 .82rem/1.15 var(--sans); color: var(--p-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.who-tx span.is-typing { color: var(--amber-deep); }

/* ---- a step ----------------------------------------------------------------- */
.asst-screen { padding: 18px var(--pad) 26px; }
.asst-screen.is-anim { overflow: hidden; transition: height .42s var(--ease-out); }
.view { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.view.is-out { opacity: 0; transform: translate3d(calc(var(--dir) * -14px), 0, 0); transition: opacity .16s ease-in, transform .18s ease-in; }
.view.is-out.is-back { transform: translate3d(calc(var(--dir) * 14px), 0, 0); }
.view.is-in > * { --dx: calc(var(--dir) * 16px); animation: stepIn .52s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 55ms); }
.view.is-in.is-back > * { --dx: calc(var(--dir) * -16px); }
.view.is-in > :nth-child(2) { --n: 1; } .view.is-in > :nth-child(3) { --n: 2; }
.view.is-in > :nth-child(4) { --n: 3; } .view.is-in > :nth-child(5) { --n: 4; }
.view.is-in > :nth-child(6) { --n: 5; } .view.is-in > :nth-child(7) { --n: 6; }
.view.is-in > :nth-child(n+8) { --n: 7; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(var(--dx), 5px, 0); } }

.view h2 { font: 400 clamp(1.6rem, 2.3vw, 1.9rem)/1.08 var(--serif); letter-spacing: -.02em; outline: none; margin-top: 2px; overflow-wrap: anywhere; }

/* what Radman says, typed */
.bubble {
  justify-self: start; max-width: 100%; padding: 12px 16px 13px; border-radius: 18px; border-start-start-radius: 6px;
  background: rgb(14 17 22 / .06); font-size: 1rem; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere;
}
.bubble .off { opacity: 0; }
.bubble .proof { font-weight: 600; }
.bubble.is-typing .cur::after {
  content: ''; display: inline-block; width: 0; height: 1.05em; vertical-align: -.17em;
  border-inline-start: 2px solid var(--amber); margin-inline-end: -2px; animation: blink .85s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- the key: every choice is one of these ----------------------------------- */
.key {
  position: relative; min-width: 0; color: var(--ink);
  background-color: var(--key-bg); background-image: var(--key-sheen); box-shadow: var(--key-shadow);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .5s var(--ease-out), --tf .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.key[aria-pressed="true"] { --tf: 1; background-color: var(--ink); background-image: none; color: var(--paper); box-shadow: var(--key-shadow-on); }
@media (hover: hover) {
  .key:not([aria-pressed="true"]):hover { --tf: 1; transform: translate3d(0, -2px, 0); box-shadow: var(--key-shadow-up); }
}
.key:active { transform: scale(.98); }
/* the one tick */
.tick {
  position: absolute; inset-inline-end: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: #fff; pointer-events: none;
  box-shadow: 0 0 0 2.5px #fff, 0 6px 12px -4px rgb(154 78 10 / .75);
  transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
[aria-pressed="true"] > .tick { transform: scale(1); }
/* the icon well: ink, and it fills with amber dots when its key is under the pointer or chosen */
.well {
  position: relative; flex: none; display: grid; place-items: center; width: var(--well); height: var(--well); border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper); overflow: hidden; transition: color .3s;
}
.well::before {
  content: ''; position: absolute; inset: 0; background: var(--amber);
  opacity: min(1, calc(var(--tf, 0) * 6));
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(var(--tf, 0) * 150%), transparent calc(var(--tf, 0) * 150% + 14%));
          mask-image: radial-gradient(circle closest-side, #000 calc(var(--tf, 0) * 150%), transparent calc(var(--tf, 0) * 150% + 14%));
  -webkit-mask-size: 4px 4px; mask-size: 4px 4px;
}
.well svg { position: relative; }
.key[aria-pressed="true"] .well { color: var(--ink); }
@media (hover: hover) { .key:hover .well { color: var(--ink); } }

/* tiles: icon, name, one line of help */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 12px; text-align: start;
  min-height: 64px; padding-block: 11px; padding-inline: 11px 12px; border-radius: var(--r-lg);
}
.view.is-in .tile { animation: tileIn .6s var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); } }
.tile-tx { display: grid; gap: 3px; min-width: 0; }
.tile-tx b { font: 600 .95rem/1.2 var(--sans); letter-spacing: -.014em; text-wrap: balance; }
.tile-tx small { font: 400 .81rem/1.3 var(--sans); letter-spacing: -.008em; color: var(--p-soft); text-wrap: balance; transition: color .3s; }
.tile[aria-pressed="true"] .tile-tx small { color: rgb(250 247 241 / .72); }
/* long words (German, Finnish) break where a word may break, never out of the key */
.tile-tx b, .tile-tx small, .chip span, .s-day, .s-date, .lbl, .step-lbl {
  overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;
  -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 11 4 4;
}

/* labels and fields */
.grp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.lbl { font: 500 .84rem/1.25 var(--sans); color: var(--p-soft); }
.opt { font-weight: 400; color: var(--p-faint); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; height: var(--h-field); padding: 0 16px; border: 0; border-radius: var(--r-lg); margin: 0;
  font: 400 1rem/1.4 var(--sans); letter-spacing: -.006em; color: var(--ink);
  background: rgb(255 255 255 / .74);
  box-shadow: inset 0 0 0 1px var(--p-hair-strong), inset 0 2px 3px rgb(14 17 22 / .05);
  transition: box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 112px; padding: 14px 16px; resize: vertical; display: block; }
.field input::placeholder, .field textarea::placeholder { color: rgb(14 17 22 / .38); }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--amber-deep), 0 0 0 4px rgb(200 120 42 / .2);
}
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--err), 0 0 0 4px rgb(166 58 30 / .12); }
[dir="rtl"] .field input[dir="ltr"] { text-align: end; }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* chips: a short answer out of a few */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  min-height: var(--h-key); padding: 6px 10px; border-radius: var(--r-sm);
  font: 500 .9rem/1.2 var(--sans); letter-spacing: -.008em; text-align: center; text-wrap: balance;
}

.hint { font-size: .84rem; line-height: 1.5; color: var(--p-soft); }
.hint a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.err { display: flex; align-items: baseline; gap: 8px; font: 500 .86rem/1.4 var(--sans); color: var(--err); }
.err::before { content: ''; flex: none; width: 5px; height: 5px; background: currentColor; transform: translateY(-2px); }
.err:empty { display: none; }
.err.shake { animation: nudge .4s var(--ease-out); }
@keyframes nudge { 0% { transform: translateX(-6px); } 40% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

/* the way forward, with the reason to take it */
.go { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.go-back {
  flex: none; display: grid; place-items: center; width: var(--h-field); height: var(--h-field); border-radius: 50%; color: var(--ink); text-decoration: none;
  background: rgb(255 255 255 / .62); box-shadow: inset 0 0 0 1px var(--p-hair-strong);
  transition: background-color .3s, transform .45s var(--ease-out); -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .go-back:hover { background: #fff; transform: translate3d(calc(var(--dir) * -2px), 0, 0); } }
.proofline { flex: 1 1 0; min-width: 0; text-align: end; font: 400 .8rem/1.35 var(--sans); color: var(--p-soft); text-wrap: balance; }
.asst .btn { height: var(--h-field); flex: none; }
.asst .go .btn { flex: 0 1 auto; min-width: 0; height: auto; min-height: var(--h-field); padding-block: 8px; white-space: normal; text-align: center; line-height: 1.15; text-wrap: balance; }
.asst .btn-solid {
  background: var(--ink); color: var(--paper);
  transition: transform .6s var(--ease-out), color .35s, box-shadow .5s, opacity .3s, --f .42s var(--ease-out);
}
.asst .btn-glass { background: rgb(255 255 255 / .7); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--p-hair-strong); }
.asst .btn svg { width: 17px; height: 17px; flex: none; }
.asst .btn[aria-disabled="true"] { opacity: .5; box-shadow: none; }
.asst .btn[aria-disabled="true"] .arr { display: none; }
.asst .btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
@media (hover: hover) {
  .asst .btn-solid:hover { --f: 1; }
  .asst .btn-solid[aria-disabled="true"]:hover { --f: 0; color: var(--paper); }
  .asst .btn-glass:hover { background: #fff; }
}
/* arrows point the way the text runs (the arrow inside .btn is turned by base.css) */
[dir="rtl"] .go-back svg { scale: -1 1; }

/* ---- how and when ------------------------------------------------------------- */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot {
  display: grid; gap: 6px; justify-items: start; align-content: start; text-align: start;
  min-height: 94px; padding: 13px 13px 12px; border-radius: var(--r-lg);
}
.s-day { font: 500 .62rem/1.15 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--amber-deep); transition: color .3s; }
.s-time { font: 400 2rem/.95 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s-date { font: 400 .8rem/1.15 var(--sans); color: var(--p-soft); transition: color .3s; }
.slot[aria-pressed="true"] .s-day { color: var(--amber-bright); }
.slot[aria-pressed="true"] .s-date { color: rgb(250 247 241 / .72); }
.slot.ghost {
  pointer-events: none; box-shadow: 0 0 0 1px var(--p-hair);
  background: linear-gradient(100deg, rgb(255 255 255 / .35) 30%, rgb(255 255 255 / .8) 50%, rgb(255 255 255 / .35) 70%) 0 0 / 300% 100%; animation: sheen 1.5s linear infinite;
}
@keyframes sheen { to { background-position: -300% 0; } }

.more {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: var(--h-key); padding: 0 2px; max-width: 100%;
  font: 500 .93rem/1.2 var(--sans); color: var(--ink); text-align: start; -webkit-tap-highlight-color: transparent;
}
.more svg { flex: none; }
.more span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; text-decoration-color: var(--p-hair-strong); transition: text-decoration-color .3s; }
.more .chev { transition: transform .45s var(--ease-out); color: var(--p-faint); }
.more[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (hover: hover) { .more:hover span { text-decoration-color: var(--amber-deep); } }

/* other days: three weeks of days, then the free times of the chosen one */
.cal {
  --cal-pad: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: var(--cal-pad) var(--cal-pad) 18px; border-radius: 20px;
  background: rgb(255 255 255 / .46); box-shadow: inset 0 0 0 1px var(--p-hair);
}
.cal.is-new { animation: calIn .5s var(--ease-out) both; }
@keyframes calIn { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
.cal-title { font: italic 400 1.4rem/1.1 var(--serif); letter-spacing: -.01em; }
.cal-title::first-letter { text-transform: uppercase; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 4px;
  min-height: 60px; padding: 7px 2px; border-radius: var(--r-sm);
}
.day b { font: 500 1.08rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.day-wd, .day-mo { font: 500 .56rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; max-width: 100%; overflow: hidden; white-space: nowrap; }
.day-wd { color: var(--amber-deep); transition: color .3s; }
.day-mo { color: var(--p-faint); transition: color .3s; }
.day[aria-pressed="true"] .day-wd { color: var(--amber-bright); }
.day[aria-pressed="true"] .day-mo { color: rgb(250 247 241 / .72); }
.day.off { color: rgb(14 17 22 / .3); }
.day.off .day-wd, .day.off .day-mo { color: inherit; }
.day.off b { font-weight: 400; }
.day.pad { visibility: hidden; }
.cal-times { margin-top: 6px; }
.cal-times::first-letter { text-transform: uppercase; }
#times { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time { display: grid; place-items: center; height: var(--h-key); border-radius: var(--r-sm); font: 500 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; }

.summary {
  position: relative; padding: 12px 14px; padding-inline-start: 30px; border-radius: var(--r-lg); font-size: .93rem; line-height: 1.45;
  background: rgb(200 120 42 / .13); animation: calIn .45s var(--ease-out) both; overflow-wrap: anywhere;
}
.summary::before { content: ''; position: absolute; inset-inline-start: 14px; top: 1.32em; width: 6px; height: 6px; background: var(--amber); }
.summary b { font-weight: 600; }
.summary[hidden] { display: none; }

/* ---- done: golden hour ---------------------------------------------------------- */
.done { justify-items: center; text-align: center; gap: 14px; padding: 10px 0 4px; }
.seal {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #F2BE82, var(--amber) 64%); color: #fff;
  box-shadow: 0 0 0 6px rgb(200 120 42 / .16), 0 16px 30px -12px rgb(154 78 10 / .75);
}
.view.is-in > .seal { animation: sealIn .8s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes sealIn { from { opacity: 0; transform: scale(.4); } }
.seal::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--amber); animation: ring 1.4s var(--ease-out) .35s both; }
@keyframes ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.view.done h2 { font: 500 .7rem/1.3 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-deep); margin-top: 6px; }
.done-when { font: 400 clamp(2.15rem, 6.2vw, 3.35rem)/1 var(--serif); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.done-when em { display: block; font-style: italic; color: var(--amber-deep); letter-spacing: -.03em; margin-top: .06em; }
.done-sub { font: 500 .68rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-soft); }
.done-lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; width: 100%; padding: 14px 0 2px; border-top: 1px solid var(--p-hair); margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--p-soft); overflow-wrap: anywhere; }
.done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; max-width: 100%; }
.done-btns .btn { min-width: 0; height: auto; min-height: var(--h-field); padding-block: 8px; white-space: normal; text-align: center; line-height: 1.15; }
.done-move { font-size: .86rem; line-height: 1.5; color: var(--p-soft); max-width: 34em; text-wrap: balance; }
.done-move a, .done-home { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.done-home { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.done-note { font-size: .84rem; color: var(--amber-deep); }
.done-note[hidden] { display: none; }
.demo-tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 6px 12px; border-radius: 999px;
  font: 500 .6rem/1.35 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--p-soft); text-align: start;
  box-shadow: inset 0 0 0 1px var(--p-hair-strong);
}
.demo-tag::before { content: ''; flex: none; width: 5px; height: 5px; background: var(--amber); }

.asst noscript p { padding: 4px 0 2px; }
/* the ring follows each control's own corner: no radius is changed on focus */
.asst :focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; }
.asst h2:focus-visible { outline: none; }

/* scripts where spaced capitals do not exist or break the joins */
:is(:lang(ar), :lang(fa), :lang(he), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(zh), :lang(ja), :lang(ko)) :is(.call-chips li, .call-legal, .s-day, .day-wd, .day-mo, .done h2, .done-sub, .demo-tag) { letter-spacing: 0; }
:is(:lang(ar), :lang(fa), :lang(he), :lang(ur), :lang(hi), :lang(bn), :lang(th)) :is(.s-day, .day-wd, .day-mo) { font-size: .68rem; }
/* scripts with marks above and below the line: a one-line label that hides its overflow needs the room */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(vi)) :is(.step-lbl, .who-tx b, .who-tx span, .day-wd, .day-mo) { line-height: 1.5; }
:is(:lang(ar), :lang(fa), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(vi)) :is(.view h2, .done-when, .s-time) { line-height: 1.25; }

/* ---- short laptop screens: the first step and its button fit without scrolling ------ */
@media (min-width: 601px) and (max-height: 860px) {
  .page-call { --gap: 14px; }
  .call { padding-top: 72px; }
  .call-head { margin-bottom: 14px; }
  .call-chips { margin-top: 10px; }
  .steps { min-height: 0; padding-block: 12px 11px; }
  .asst-head { padding-top: 12px; }
  .asst-screen { padding-block: 14px 20px; }
}

/* ---- phones ----------------------------------------------------------------------
   Sizes that decide whether the first step fits are tied to the SMALL viewport (svh):
   what is left when Safari shows both of its bars. Every such line has a plain
   fallback before it.                                                              */
@media (max-width: 600px) {
  .page-call { --pad: 16px; --well: 34px; --gap: 14px; --h-field: 50px; }
  /* a custom property is not checked when it is read: without @supports an old browser would get no gap at all */
  @supports (height: 1svh) { .page-call { --gap: clamp(10px, 1.9svh, 16px); --h-field: clamp(48px, 8.8svh, 52px); } }
  .page-call .nav { padding-top: 10px; }
  .page-call .nav-cta { height: 42px; }
  .call { padding: 70px 12px 28px; }
  .call-head { margin-bottom: 12px; margin-bottom: clamp(9px, 1.9svh, 18px); }
  .call-head h1 { font-size: 1.8rem; font-size: clamp(1.62rem, 4.5svh, 2.05rem); }
  /* the three promises show when the screen has the room; the same words sit under the button */
  .call-chips { gap: 6px; overflow: hidden; margin-top: 0; max-height: 0; }
  @supports (height: 1svh) {
    .call-chips { margin-top: clamp(0px, calc((100svh - 740px) * 999), 12px); max-height: clamp(0px, calc((100svh - 740px) * 999), 120px); }
  }
  .call-chips li { min-height: 28px; padding: 3px 9px; gap: 6px; font-size: .6rem; letter-spacing: .1em; }
  .asst { border-radius: 24px; }

  /* steps: smaller circles; only the current one keeps its name (.is-tight, always on at this width) */
  .steps { min-height: 0; padding: 8px var(--pad) 7px; }
  .step-dot { width: 30px; height: 30px; }
  .step-dot .step-ic { width: 16px; height: 16px; }
  .step-line { margin-inline: 4px; }
  .steps.is-tight .step-line { flex-basis: 4px; min-width: 4px; }
  .step-btn { padding: 2px; padding-inline-end: 2px; }
  .step.is-cur .step-btn { padding-inline-end: 12px; }
  .steps.is-tight .step.is-cur .step-lbl { margin-inline-start: 8px; }

  .asst-head { padding: 11px var(--pad) 0; gap: 10px; }
  .who .avatar { width: 38px; height: 38px; font-size: 1.25rem; }
  @supports (height: 1svh) { .who .avatar { width: clamp(34px, 6.2svh, 42px); height: clamp(34px, 6.2svh, 42px); } }
  .who-on { width: 11px; height: 11px; }
  .who-tx { gap: 3px; }
  .who-tx b { font-size: .94rem; }
  .who-tx span { font-size: .8rem; }
  .asst-screen { padding: 11px var(--pad) 16px; }
  .view:not(.done) h2 { font-size: 1.5rem; font-size: clamp(1.4rem, 3.9svh, 1.72rem); margin-top: 0; }
  .bubble { padding: 9px 13px 10px; font-size: .94rem; line-height: 1.42; text-wrap: wrap; }

  /* the six kinds of project: two columns of short keys, the name only */
  .tiles { gap: 8px; }
  .needs { gap: 7px; }
  .needs .tile { min-height: 50px; padding-block: 6px; padding-inline: 7px 9px; gap: 9px; border-radius: 14px; }
  /* --sq: pixels the script takes back from each row when the button would end under the screen (longer languages) */
  .needs .tile { padding-block: max(3px, calc(6px - var(--sq, 0px) / 2)); }
  @supports (height: 1svh) { .needs .tile { min-height: calc(clamp(46px, calc((100svh - 440px) / 3), 62px) - var(--sq, 0px)); } }
  .needs .tile-tx b { font-size: .86rem; line-height: 1.15; }
  .needs .tile-tx small { display: none; }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .channels .tile { min-height: 58px; padding-block: 9px; padding-inline: 10px 14px; }
  .well { border-radius: 10px; }
  .well svg { width: 18px; height: 18px; }

  .fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .chip { font-size: .88rem; }

  .go { flex-wrap: wrap; gap: 0 10px; margin-top: 2px; }
  .asst .go .btn { flex: 1 1 0; padding-inline: 16px; }
  .proofline { order: 3; flex: 1 1 100%; text-align: center; margin-top: 10px; }
  @supports (height: 1svh) {
    .proofline { overflow: hidden; margin-top: clamp(0px, calc((100svh - 600px) * 999), 10px); max-height: clamp(0px, calc((100svh - 600px) * 999), 6em); }
  }

  .slots { gap: 7px; }
  .slot { padding: 11px 10px 10px; min-height: 88px; gap: 5px; }
  .s-time { font-size: 1.72rem; }
  .s-date { font-size: .76rem; }

  /* other days: the same weeks as on a wide screen, seven days across, so no day is cut at the edge of the panel.
     The month is written only where it starts (.has-mo): the title above already says the whole range. */
  .cal { --cal-pad: 12px; padding-bottom: 14px; gap: 10px; }
  .cal-title { font-size: 1.3rem; }
  /* the days take a little of the box's own margin: a day is 38 px wide on a 360 px phone, 42 on a 390 px one */
  .days { gap: 5px 3px; margin-inline: -6px; }
  .day { min-height: 60px; padding: 15px 0; gap: 4px; border-radius: 12px; }
  :is(:lang(ar), :lang(fa), :lang(he), :lang(ur), :lang(hi), :lang(bn), :lang(th), :lang(vi)) .day { padding-block: 17px; }
  .day b { font-size: 1.02rem; }
  .day-wd, .day-mo { font-size: .52rem; letter-spacing: .03em; }
  /* the month hangs under the number without moving it, so every number of a week sits on one line */
  .day .day-mo { position: absolute; inset-inline: 0; bottom: 4px; text-align: center; line-height: 1; }
  .day:not(.has-mo) .day-mo { display: none; }
  .day > .tick { width: 16px; height: 16px; inset-inline-end: -4px; top: -5px; box-shadow: 0 0 0 2px #fff, 0 4px 8px -3px rgb(154 78 10 / .75); }
  .day > .tick svg { width: 10px; height: 10px; }
  .times { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }

  .done-btns .btn { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  .page-call { --pad: 14px; }
  .call { padding-inline: 10px; }
  .call-chips li { letter-spacing: .08em; padding-inline: 8px; }
  .step-dot { width: 28px; height: 28px; }
  .step-line { margin-inline: 3px; }
  .step-lbl { font-size: .8rem; }
  .step.is-cur .step-btn { padding-inline-end: 8px; }
  .steps.is-tight .step.is-cur .step-lbl { margin-inline-start: 6px; }
  .needs .tile { padding-inline: 6px 7px; gap: 7px; }
  .needs .well { width: 30px; height: 30px; }
  .needs .well svg { width: 16px; height: 16px; }
  .needs .tile-tx b { font-size: .8rem; }
  .s-day { font-size: .56rem; letter-spacing: .06em; }
  .s-time { font-size: 1.5rem; }
  .s-date { font-size: .7rem; }
  .slot { padding-inline: 8px; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-tag { letter-spacing: .1em; }
  .done-sub { letter-spacing: .1em; }
}

/* reduced motion: `rm` on <html> comes from the inline head script */
.rm.js .asst, .rm .view.is-in > *, .rm .view.is-in .tile, .rm .step.is-cur .step-dot, .rm .cal.is-new, .rm .summary { animation: none; }
.rm .step-line i, .rm .step-btn, .rm .step-lbl, .rm .step-dot, .rm .step-dot svg { transition: none; }
.rm .who-on::after, .rm .seal::after { display: none; }
/* once the call is booked the three promises have done their job */
.page-call.is-done .call-chips { display: none; }

/* ---- before call.js has built the assistant ------------------------------------------
   Its empty box, and what sits under it, stay out of sight: nothing is seen half built and nothing jumps when
   it fills. Without JavaScript, or if our scripts never arrive (`late`), everything shows as it is. */
.js:not(.call-ready):not(.late) .call :is(.asst, .call-alt, .call-legal) { visibility: hidden; }
