/* Hallmark · macrostructure: Split Host + Panel (app surface, not a marketing page)
 * genre: modern-minimal · theme: studied-DNA (source: new2.techtice.com still frame)
 * contrast: pass (40-41) · nav: none (single page, no destinations) · footer: none
 * slop: pass with three declared exceptions, all user-directed: the display face is
 * Inter Tight (gate 1, design.md locks it); the ground is new2's own bowl frame
 * (gates 2/29, Rashan: "the entire background" of new2.techtice.com); and the
 * duration tiles sit inside the booking panel (gate 4) because they are the form's
 * first field, not nested decoration. Checked and clean this run: 34 (320-1920,
 * overflow-x clip), 39 (error line holds 1lh, 0px shift measured), 40-41 (every
 * text pair computed), 49 (no wrapped affordance at 320/390/1440), 50-51.
 * mobile: pass (34, 49, 50-57) · pre-emit critique: P4 H5 E4 S5 R5 V3 */

/* ==========================================================================
   meet-rashan, v2 skin. Source of truth: design.md "Active card, v2".
   Every colour, type size, radius, shadow and duration below is on that card.
   No other file may introduce one.

   Layout in one breath: a still frame of new2's gradient ground, then a
   two-column stage. Left is new2's blue host card (portrait, name, two ways to
   reach him); right is the booking panel. One screen at 1440x900 and 390x844.
   ========================================================================== */

:root {
  /* palette (design.md, active card) */
  --paper: #ffffff;
  --ink: #0b1d3a;
  --ink-2: #1d2f4f;
  --ink-3: rgba(11, 29, 58, 0.7);
  --accent: #4059cf;
  --dot: #2fe0d0;
  --flood: #8fd5f1;
  --mint-fill: #9ff2e8;
  --err: #a3172b;
  --ink-rgb: 11, 29, 58;
  --dot-rgb: 47, 224, 208;

  /* new2's calendar fills, the two the booking tiles wear */
  --fill-1: #d2daff;  /* new2 wall-2 */
  --fill-2: var(--mint-fill);  /* new2 booked-4 */

  /* spacing scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --gut: clamp(20px, 5.7vw, 82px);

  /* rules, radii, shadows */
  --rule: 2px solid rgba(var(--ink-rgb), 0.3);
  --r-card: 14px;
  --r-in: 10px;
  --shadow-plate: 0 20px 44px -30px rgba(var(--ink-rgb), 0.45);

  /* motion */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --btn-t: 1.1s;
  --btn-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* type ladder, Inter Tight only */
  --t-h2: clamp(34px, min(5.62vw, 9vh), 81px);
  --t-item: clamp(26px, min(3.4vw, 5.4vh), 48px);
  --t-name: clamp(22px, 1.6vw, 24px);
  --t-step: clamp(24px, min(2.1vw, 3.4vh), 30px);
  --t-body: clamp(17px, 2.25vh, 20px);
  --t-small: clamp(16px, 1.9vh, 18px);
  --t-micro: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--paper); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* form controls do not inherit type: without this every <button> renders Arial */
button, input, select, textarea { font: inherit; }
a, button, [role="button"] { touch-action: manipulation; }
img { max-width: 100%; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- the ground: new2's bowl, one still frame ---------- */
.atmo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-color: var(--paper);
}
#bg { display: block; width: 100%; height: 100%; }

/* ---------- shell ---------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-xl) var(--gut) var(--space-xl);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute; left: var(--gut); top: 0;
  z-index: 100; display: flex; align-items: center;
  height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--paper);
  border-radius: 0 0 10px 10px;
  font-size: 14px; text-decoration: none;
  translate: 0 -100%;
}
.skip:focus { translate: 0 0; }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- stage ---------- */
.stage {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-content: center;
  flex: 1;
}
.host { align-self: center; }

/* ---------- the host block: no card, nothing behind it ---------- */
.host-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.host-face { position: relative; margin: 0; }
.host-face .bust {
  display: block; width: 100%; height: auto;
  aspect-ratio: 479 / 788;
  /* No drop-shadow. At 128px wide the 16px blur smeared the silhouette into a
     soft rectangle behind the head (Rashan, 2026-11-13: "it looks like theres an
     rectangle shadow behind its head"). The cut-out separates itself. */
}
/* The swap is a display change, not a crossfade: a 240ms opacity transition on
   the same beat as a step change was not reliably visible. */
.host-face .shock { display: none; }
.host-face.shocked .calm { display: none; }
.host-face.shocked .shock { display: block; }
.host-face [hidden] { display: none; }

/* Rashan, 2026-11-13: the name and the line under it are centred against the
   copy column. The two contact buttons keep their own width, so the block still
   reads as one column and not as centred-everything. */
.host-copy { text-align: center; }

.host-copy h1 {
  font-size: var(--t-name); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 600;
  margin-bottom: var(--space-xs);
  text-wrap: balance;
  overflow-wrap: anywhere; min-width: 0;
}
.host-copy .bio {
  font-size: var(--t-body); line-height: 1.45;
  color: var(--ink); margin-bottom: var(--space-sm);
  text-wrap: pretty;
}

.host-links { display: grid; gap: var(--space-xs); }
/* Outline, not solid: the one filled pill on the page is the booking CTA. */
.btn.social {
  height: 42px; padding: 0 12px;
  justify-content: center; gap: var(--space-xs);
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(var(--ink-rgb), 0.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn.social:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
.btn.social svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn.social::after, .btn.social::before { content: none; }

/* ---------- the panel ---------- */
.sheet {
  background: var(--paper);
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-plate);
  padding: clamp(20px, 3vw, 32px);
}
.sheet[hidden] { display: none; }

/* entrance reveal: every direct child rises, six steps of stagger, then flat */
.sheet > * {
  opacity: 0; translate: 0 12px;
  animation: fu 0.9s var(--ease) forwards;
}
.sheet > *:nth-child(1) { animation-delay: 0.05s; }
.sheet > *:nth-child(2) { animation-delay: 0.14s; }
.sheet > *:nth-child(3) { animation-delay: 0.23s; }
.sheet > *:nth-child(4) { animation-delay: 0.32s; }
.sheet > *:nth-child(5) { animation-delay: 0.41s; }
.sheet > *:nth-child(n + 6) { animation-delay: 0.5s; }
@keyframes fu { to { opacity: 1; translate: 0 0; } }

.sheet h2 {
  font-size: var(--t-step); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 600;
  max-width: 22ch; margin-bottom: var(--space-md);
  text-wrap: balance;
  overflow-wrap: anywhere; min-width: 0;
}

/* ---------- duration cards ---------- */
.sizes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.size {
  position: relative; display: grid; gap: var(--space-sm);
  padding: var(--space-md);
  overflow: hidden;
  text-align: left; cursor: pointer;
  border: 2px solid rgba(var(--ink-rgb), 0.34); border-radius: var(--r-in);
  background: var(--own, var(--paper)); color: var(--ink);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.size.fill-1 { --own: var(--fill-1); }
.size.fill-2 { --own: var(--fill-2); }
/* The fill names the option; the border and the tick name the choice. */
.size:hover { border-color: rgba(var(--ink-rgb), 0.55); }
.size[aria-pressed="true"] { border-color: var(--ink); }
.size[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 18px; right: 18px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  rotate: 45deg;
}
.size .band { display: block; }
.size .ttl {
  display: block;
  font-size: var(--t-step); font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.size .mins {
  display: block; margin-top: var(--space-2xs);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.size .nm { display: block; font-size: var(--t-body); font-weight: 600; }
.size .ds { display: block; font-size: 15px; color: var(--ink-2); margin-top: var(--space-2xs); }

/* ---------- buttons ---------- */
.actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
/* the panel's own action, not the tile's */
.actions .btn { min-width: 208px; justify-content: center; }
.actions .btn:only-child { flex: 1 1 100%; }
.btn {
  position: relative;
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 46px 0 20px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer;
  transition: scale 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.btn::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  translate: 0 -50%;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--dot);
  box-shadow: 0 0 10px rgba(var(--dot-rgb), 0.7);
  z-index: 0;
  transition: scale var(--btn-t) var(--btn-ease), box-shadow var(--btn-t) var(--btn-ease);
}
.btn::before {
  content: ""; position: absolute; right: 16.5px; top: 50%;
  translate: 0 -50%;
  width: 9px; height: 9px;
  border-top: 3px solid var(--ink); border-right: 3px solid var(--ink);
  rotate: 45deg; opacity: 0; scale: 0.4; z-index: 1;
  transition: opacity var(--btn-t) var(--btn-ease), scale var(--btn-t) var(--btn-ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after { scale: 3.2; box-shadow: 0 0 0 rgba(var(--dot-rgb), 0); }
  .btn:hover::before { opacity: 1; scale: 1; }
  .btn:active { scale: 0.96; }
}
.btn:disabled {
  background: rgba(var(--ink-rgb), 0.14);
  color: var(--ink);
  cursor: not-allowed;
}
.btn:disabled::after { opacity: 0.4; box-shadow: none; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: var(--rule); padding: 0 20px;
}
.btn.ghost::after, .btn.ghost::before { content: none; }
.btn.ghost:disabled { background: transparent; color: var(--ink-3); border-color: rgba(var(--ink-rgb), 0.15); }
.btn[aria-busy="true"] { transition: none; }

.links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); }
.links button {
  min-height: 44px; padding: 0; border: 0;
  background: none; color: var(--accent);
  font: 500 15px "Inter Tight", system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

.fine { font-size: 15px; color: var(--ink-3); margin-top: var(--space-md); max-width: 62ch; text-wrap: pretty; }

/* ---------- alerts ---------- */
.alert {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md); padding: 12px 14px;
  border: 2px solid var(--err); border-radius: var(--r-in);
  background: var(--paper); color: var(--ink);
  font-size: 15px; text-wrap: pretty;
}
.alert[hidden] { display: none; }
.alert .reset { color: var(--err); }

/* ---------- timezone bar ---------- */
.tzbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  /* The open picker has to sit above the calendar and the legend: both come
     later in the DOM and are positioned, so without this lift the list is
     visually on top but the page underneath still takes the clicks. */
  position: relative; z-index: 6;
}
.tzbar .lbl {
  width: 100%;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.tzpick { position: relative; }
.tzfield {
  display: flex; align-items: center;
  width: 320px; max-width: 100%; height: 44px;
  padding: 0 34px 0 12px;
  border: var(--rule); border-radius: var(--r-in);
  background-color: var(--paper); color: var(--ink);
  font: 500 15px "Inter Tight", system-ui, sans-serif;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230b1d3a' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.tzfield:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* The panel: a search row, then the scrolling list. The border, radius and
   shadow belong to the panel so the search sits inside the menu, not on top. */
.tzmenu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  width: 100%; min-width: 260px;
  display: flex; flex-direction: column;
  max-height: 400px;
  background: var(--paper);
  border: var(--rule); border-radius: var(--r-card);
  box-shadow: 0 2px 0 rgba(var(--ink-rgb), .06), 0 18px 40px -20px rgba(var(--ink-rgb), .5);
  overflow: hidden;
}
.tzmenu[hidden] { display: none; }
/* No magnifier: the placeholder says what it is, and without an icon column the
   typed text starts on the same left edge as every city name below it. */
.tzsearch {
  padding: 10px 12px;
  border-bottom: 1.5px solid rgba(var(--ink-rgb), .14);
  color: var(--ink-3);
}
.tzsearch:focus-within {
  background: rgba(var(--ink-rgb), .03);
  color: var(--ink);
  /* The hairline turns accent instead of gaining a second line under it, and the
     focus still survives greyscale. */
  border-bottom-color: var(--accent);
}
.tzsearch input {
  display: block; width: 100%;
  height: 24px; padding: 0; border: 0; background: none;
  font: 500 15px "Inter Tight", system-ui, sans-serif;
  color: var(--ink);
  appearance: none;
}
.tzsearch input::placeholder { color: var(--ink-3); font-weight: 400; }
.tzsearch input:focus { outline: none; }
.tzsearch input::-webkit-search-cancel-button { cursor: pointer; }
/* An offset heading, then that band's cities. The gap between bands is more
   than twice the gap inside one, so grouping is carried by space alone. */
.tzgroup {
  padding: 22px 10px 4px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tzgroup:first-child { padding-top: 4px; }
.tzlist {
  /* 10px row radius + 4px padding = the panel's 14px, so the nesting is even. */
  margin: 0; padding: 6px 4px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.tzrow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--r-in);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tzrow .tzname {
  font-size: 15px; line-height: 1.3; font-weight: 500;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tzrow .tzgmt {
  flex: none;
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tzrow.on .tzgmt { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .tzrow:hover { background: var(--fill-1); } }
/* A finger needs 44px, a cursor does not. */
@media (pointer: coarse) { .tzrow { min-height: 44px; } }
.tzrow.on { background: var(--fill-1); }
.tzrow[aria-selected="true"] .tzname { font-weight: 600; }
.tznone {
  padding: 14px 10px;
  font-size: 14px;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .tzpick { flex: 1 1 100%; }
  .tzfield { width: 100%; }
  /* iOS zooms the whole page when a focused input is under 16px. */
  .tzsearch input { font-size: 16px; }
}
.chip {
  display: inline-flex; align-items: center; height: 28px;
  padding: 0 10px; border-radius: 999px;
  border: 1.5px solid rgba(var(--ink-rgb), 0.28);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
}
.chip.manual { border-color: var(--accent); color: var(--accent); }
.reset {
  min-height: 44px; padding: 0 2px; border: 0;
  background: none; color: var(--accent);
  font: 500 14px "Inter Tight", system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- the 14-day grid ---------- */
.railhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.railhead h3 {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.loading { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* minmax(0, 1fr), not 1fr: with a bare 1fr the square cells take their
   min-content width and the seventh column is clipped off a 390 phone. */
.days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: var(--rule); border-right: var(--rule);
}
.day {
  position: relative;
  min-height: 46px; aspect-ratio: 1;
  display: grid; align-content: start; gap: var(--space-2xs);
  padding: 6px;
  border-left: var(--rule); border-bottom: var(--rule);
  background: var(--paper); color: var(--ink);
  text-align: left; cursor: pointer;
  transition: background-color 0.24s var(--ease);
}
.day[aria-pressed="true"] {
  background: var(--flood);
  outline: 2px solid var(--accent); outline-offset: -2px;
  z-index: 1;
}
.day:disabled {
  background: rgba(var(--ink-rgb), 0.035);
  color: var(--ink-3); cursor: default;
}
.day .dw {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.day .dn { font-size: 18px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.day .dc { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legend {
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-sm);
  font-size: 13px; color: var(--ink-3);
}
.legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend i { display: block; width: 12px; height: 12px; border-radius: 4px; background: var(--ink-3); }

.part { margin-top: var(--space-md); }
.part h4 {
  margin-bottom: var(--space-xs); padding-bottom: var(--space-xs);
  border-bottom: 1.5px solid rgba(var(--ink-rgb), 0.16);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-xs); }
.slot {
  min-height: 46px;
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  border: var(--rule); border-radius: var(--r-in);
  background: var(--paper); color: var(--ink);
  font: 500 15px "Inter Tight", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.slot:hover:not(:disabled) { border-color: rgba(var(--ink-rgb), 0.55); }
.slot[aria-pressed="true"] { background: var(--flood); border-color: var(--accent); }
.slot:disabled {
  /* Unavailable is carried by the strike and the thin border, not by making the
     time unreadable: you still have to be able to see that 11:00 is gone. */
  color: rgba(var(--ink-rgb), 0.65);
  border-color: rgba(var(--ink-rgb), 0.2);
  background: rgba(var(--ink-rgb), 0.05);
  text-decoration: line-through;
  cursor: default;
}
.tick { display: none; }

.empty {
  margin-top: var(--space-lg); padding: 14px;
  border: 1.5px dashed rgba(var(--ink-rgb), 0.25); border-radius: var(--r-in);
  font-size: 15px; color: var(--ink-2);
}

/* ---------- summary plate ---------- */
.summary {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md); padding: 14px 16px;
  border: 1.5px solid rgba(var(--ink-rgb), 0.16);
  border-radius: var(--r-in);
  background: rgba(var(--ink-rgb), 0.04);
}
.summary .what {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.summary .when { flex: 1; display: grid; gap: var(--space-2xs); font-size: var(--t-body); }
.summary .when b { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .when .meta { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.summary button {
  min-height: 44px; padding: 0 6px; border: 0;
  background: none; color: var(--ink);
  font: 500 14px "Inter Tight", system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- form ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.field .opt { font-weight: 500; letter-spacing: 0.02em; }
input, textarea {
  width: 100%; height: 46px;
  padding: 0 var(--space-md);
  border: var(--rule); border-radius: var(--r-in);
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.4 "Inter Tight", system-ui, sans-serif;
}
textarea { height: auto; min-height: 96px; padding: var(--space-sm) var(--space-md); resize: vertical; }
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
/* the error line always holds its height, so turning it on never moves the form */
.err { min-height: 1lh; margin: 0; }
.err[hidden] { display: block; visibility: hidden; }
.err { font-size: 14px; color: var(--err); }
.err[hidden] { display: none; }

/* ---------- booked ---------- */
.done h2 { font-size: var(--t-item); max-width: 18ch; }
.stamp {
  display: inline-flex; align-items: center; height: 26px;
  padding: 0 10px; margin-bottom: var(--space-sm);
  border-radius: 999px; background: var(--mint-fill); color: var(--ink);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.range {
  margin: var(--space-xs) 0 4px;
  font-size: var(--t-step); font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.zone {
  margin-bottom: var(--space-md);
  font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.note { font-size: var(--t-small); color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.joinline { margin-top: var(--space-lg); }

/* ---------- narrow screens ---------- */
@media (max-width: 820px) {
  :root { --rule: 1.5px solid rgba(11, 29, 58, 0.3); }
  .wrap { padding: var(--space-md) var(--gut) var(--space-lg); }
  .stage {
    /* minmax(0, 1fr), never 1fr: the day strip's min-content is wider than a
       phone, and a bare 1fr track takes that minimum, so the whole column (and
       the host block beside it) stretched to 420px at 390. */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }
  /* Rashan, 2026-11-13: on a phone the booking panel comes first and the host
     block sits under it. */
  .host { order: 2; }
  .sheet-wrap { order: 1; }
  .host-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: var(--space-sm);
  }
  .host-copy h1 { font-size: 20px; }
  .host-copy .bio { font-size: 16px; line-height: 1.4; }
  .host-links { display: flex; gap: var(--space-xs); justify-content: center; }
  .btn.social { width: 44px; height: 44px; padding: 0; flex: 0 0 auto; }
  .btn.social span { display: none; }
  .sheet { padding: 16px; border-radius: 12px; }
  .sheet h2 { margin-bottom: var(--space-sm); }
  .sizes { grid-template-columns: 1fr; gap: var(--space-xs); margin-bottom: var(--space-xs); }
  .size { padding: var(--space-sm); gap: var(--space-xs); }
  .actions { margin-top: var(--space-md); }
  .actions .btn { width: 100%; justify-content: center; }
  .fields { grid-template-columns: 1fr; }
  .day .dc { display: none; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* 320-wide phones: the page was 8px over one screen, trim the two loose gaps */
@media (max-width: 360px) {
  .stage { gap: var(--space-sm); }
  .sizes { margin-bottom: var(--space-2xs); }
  .actions { margin-top: var(--space-sm); }
}
@media (max-width: 380px) {
  .host-links { display: grid; }
  .btn.social { flex: none; }
}

@media (max-width: 420px) {
  .day { min-height: 44px; padding: 4px; gap: 1px; }
  .day .dw { font-size: 10px; letter-spacing: 0.02em; }
  .day .dn { font-size: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sheet > * { opacity: 1; translate: 0 0; animation: none; }
  .size, .day, .slot { transition: none; }
  .btn, .btn::after, .btn::before { transition: none; }
  .btn:hover::after { scale: 1; }
  .btn:hover::before { opacity: 0; }
  .btn:active { scale: 1; }
}
