/* ============================================================
   ECOMLINK — "Book a walkthrough"
   One question per screen. Black on white. Nothing else.
   ============================================================ */

body.funnel { background: #fff; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* progress line */
.bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease-out); }

/* top */
.top { height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.top-r { display: flex; align-items: center; gap: 18px; }
.count { font-family: var(--mono); font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.close { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: background-color .15s, color .15s; }
.close:hover { background: var(--surface); color: var(--ink); }
.close .i { width: 18px; height: 18px; }
@media (max-width: 560px) { .top { padding: 0 16px; height: 64px; } }

/* column */
.wrap { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 9vh 24px 80px; }
@media (max-width: 560px) { .wrap { padding: 4vh 16px 56px; } }

.back {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 22px -6px; padding: 6px 8px 6px 4px;
  border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background-color .15s;
}
.back:hover { color: var(--ink); background: var(--surface); }
.back .i { width: 16px; height: 16px; }
.back[hidden] { display: inline-flex !important; visibility: hidden; }

/* steps */
.step { display: flex; flex-direction: column; }
.step.in-fwd  { animation: inF .32s var(--ease-out); }
.step.in-back { animation: inB .32s var(--ease-out); }
@keyframes inF { from { opacity: 0; transform: translateY(10px); } }
@keyframes inB { from { opacity: 0; transform: translateY(-10px); } }
.step h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.08; outline: none; margin-bottom: 32px; }
.sub { margin: -18px 0 28px; font-size: 16px; color: var(--muted); }
.sub b { color: var(--ink); font-weight: 600; }

/* fields */
.fields { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 500; color: var(--ink); }
.input {
  width: 100%; height: 58px; padding: 0 18px;
  border: 1.5px solid #E3E1E8; border-radius: 12px; outline: 0; background: #fff;
  font-size: 18px; color: var(--ink);
  transition: border-color .15s;
}
.input::placeholder { color: #B5B1BE; }
.input:hover { border-color: #CFCBD6; }
.input:focus { border-color: var(--ink); }
.err { display: none; font-size: 14px; color: #C4283A; }
.field.invalid .err { display: block; }
.field.invalid .input { border-color: #C4283A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* single-choice list */
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 18px; border: 1.5px solid #E3E1E8; border-radius: 12px;
  font-size: 18px; font-weight: 500; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background-color .15s, color .15s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--ink); }
.choice kbd {
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #E3E1E8;
  transition: color .15s, border-color .15s;
}
.choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice:has(input:checked) kbd { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .3); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.invalid .choice { border-color: #F0C3CA; }
@media (hover: none) { .choice kbd { display: none; } }

/* actions */
.actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.actions .btn { min-width: 160px; }
.enter { font-size: 13px; color: var(--muted-2); }
@media (hover: none) { .enter { display: none; } }
@media (max-width: 560px) { .actions .btn { width: 100%; } }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted-2); }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
#book-error { color: #C4283A; }

/* time zone picker inline in the sentence */
.tz { position: relative; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--ink); font-weight: 600; cursor: pointer; }
.tz-text { text-decoration: underline; text-decoration-color: #CFCBD6; text-underline-offset: 3px; }
.tz .i { width: 14px; height: 14px; }
.tz:hover .tz-text { text-decoration-color: var(--ink); }
.tz select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tz:has(select:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* days + times */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day {
  height: 68px; border: 1.5px solid #E3E1E8; border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); transition: border-color .15s, background-color .15s, color .15s;
}
.day small { font-size: 12.5px; color: var(--muted); font-weight: 500; transition: color .15s; }
.day b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] small { color: rgba(255, 255, 255, .65); }
.more-days { align-self: flex-start; margin-top: 2px; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #CFCBD6; }
.more-days:hover { color: var(--ink); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.time {
  height: 48px; border: 1.5px solid #E3E1E8; border-radius: 10px; background: #fff;
  font-size: 15.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color .15s, background-color .15s, color .15s;
}
.time:hover { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.times-empty { grid-column: 1 / -1; font-size: 15px; color: var(--muted); padding: 8px 0; }
@media (max-width: 560px) {
  .days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .day { height: 60px; }
  .day b { font-size: 17px; }
  .times { grid-template-columns: repeat(3, 1fr); }
}

/* done */
.done h1 { margin-bottom: 18px; }
.when { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; font-size: 18px; }
.when b { font-weight: 600; color: var(--ink); }
.when span { color: var(--muted); }
.done .sub { margin: 0 0 26px; }
.done-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 40px; }
.link { padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer; }
.link:hover { text-decoration-color: var(--violet); }
.done .btn { align-self: flex-start; }
