/* All blue, phone first. White tiles carry the survey's clip art; motion answers every touch. */
:root {
  --blue: #005893; --blue-deep: #003f6b; --red: #bf2326; --sky: #8cc4ec;
  --white: #f7fbfe; /* text and lines on blue, tinted toward it */
  --tile: #fdfeff; --ink: #14212b; --muted: #55636e;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --col: 520px;
  --pad: max(16px, calc((100% - var(--col)) / 2));
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bezel: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 6px rgba(255, 255, 255, .09); /* tray around each white tile */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--blue-deep); overflow-x: clip; }
body { overflow-x: clip; margin: 0; min-height: 100dvh; color: var(--white); font: 17px/1.45 var(--body);
  background: radial-gradient(120% 60% at 50% 0%, #0a6aab 0%, var(--blue) 45%, var(--blue-deep) 100%) fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1 { margin: 0; font: 700 34px/1.04 var(--display); text-wrap: balance; }
h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.screen { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* header: same blue as the page, no band */
.top { padding: env(safe-area-inset-top, 0px) var(--pad) 4px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { width: 150px; height: auto; margin-right: auto; }
/* past step 1 the logo sits small between Back and Call, so every screen says whose site it is */
.logo.small { width: 96px; margin: 0 auto; }
.back, .quick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 22px; border: 0;
  background: rgba(255, 255, 255, .14); color: var(--white); font: 600 16px var(--body); cursor: pointer;
  transition: background-color .15s, transform .15s var(--spring); }
.back { margin-left: -8px; padding: 0 16px 0 8px; }
.quick { padding: 0 16px 0 12px; }
/* on a computer the number is text, not a button */
span.quick { background: none; cursor: auto; padding: 0; font-variant-numeric: tabular-nums; }
.back:active, a.quick:active { transform: scale(.92); background: rgba(255, 255, 255, .26); }
.back svg, .quick svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.q { padding-top: 12px; display: grid; gap: 8px; }
.q > * { animation: rise .32s var(--ease) both; }
.q h1 { animation-delay: .04s; }
.q .trail { animation-delay: .08s; }
.step { margin: 0; font: 600 15px/1 var(--body); color: var(--sky); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* where you are: plain text, not buttons, so nothing looks tappable that isn't */
.trail { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font: 600 15px/1.3 var(--body); color: var(--sky); }
.trail li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .4); }

.prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.prog i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.prog i::after { content: ""; display: block; height: 100%; border-radius: 3px; background: var(--white); transform-origin: left; transform: scaleX(0); }
.prog i.on::after { transform: scaleX(1); }
.prog i.now::after { animation: fill .45s var(--ease) both; background: linear-gradient(90deg, var(--white), var(--sky)); }
@keyframes fill { from { transform: scaleX(0); } }

.fleet { width: 100%; height: auto; margin-top: 20px; border-radius: 14px; animation: rise .4s .1s var(--ease) both; }

/* option tiles */
.opts { padding: 16px var(--pad) 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; overflow: hidden; isolation: isolate; padding: 16px 12px; border-radius: 18px;
  background: var(--tile); color: var(--ink); box-shadow: var(--bezel), 0 6px 18px rgba(0, 20, 40, .28);
  display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; cursor: pointer;
  animation: pop .42s calc(var(--i) * 55ms + 60ms) var(--spring) both;
  transition: transform .22s var(--spring), box-shadow .22s var(--ease); }
.opt img { width: 84px; height: 84px; object-fit: contain; transition: transform .3s var(--spring); }
.opt .txt { display: grid; gap: 4px; }
.opt b { font: 700 20px/1.05 var(--display); overflow-wrap: anywhere; }
.opt small { font-size: 14px; line-height: 1.25; color: var(--muted); }
.opt:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 16px; padding: 12px 16px; }
.opt:last-child:nth-child(odd) img { width: 64px; height: 64px; }
.opt.num-only b { font-size: 30px; font-variant-numeric: tabular-nums; }

/* press: ripple from the finger, tile sinks, art bounces */
.opt::after, .btn::after { content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: rgba(0, 88, 147, .16); transform: scale(0); opacity: 0; pointer-events: none; }
.opt.ripple::after, .btn.ripple::after { animation: ripple .55s var(--ease); }
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(28); opacity: 0; } }
.opt:active { transform: scale(.95); box-shadow: var(--bezel), 0 2px 8px rgba(0, 20, 40, .3); }
.opt:active img { transform: scale(.9); }
.opt.picked { transform: scale(1.03); box-shadow: 0 0 0 4px var(--sky), 0 10px 26px rgba(0, 20, 40, .35); }
.opt.picked img { animation: bounce .4s var(--spring); }
@keyframes bounce { 40% { transform: scale(1.18) rotate(-4deg); } }

/* thumb scrolling past: the tile in the middle of the screen lifts */
.opt.live { transform: translateY(-3px) scale(1.02); box-shadow: var(--bezel), 0 12px 26px rgba(0, 20, 40, .36); }
.opt.live img { transform: scale(1.08) rotate(-3deg); }
@media (hover: hover) {
  .opt:hover { transform: translateY(-4px); box-shadow: var(--bezel), 0 14px 30px rgba(0, 20, 40, .38); }
  .opt:hover img { transform: scale(1.1) rotate(-4deg); }
  .back:hover, a.quick:hover { background: rgba(255, 255, 255, .22); }
}

/* step 4: Book Online leads */
.opts.help .opt.lead { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 16px; padding: 16px 20px;
  box-shadow: 0 0 0 3px var(--sky), 0 10px 26px rgba(0, 20, 40, .35); }
.opts.help .opt.lead img { width: 76px; height: 76px; }
.opts.help .opt.lead b { font-size: 25px; color: var(--blue); }
.opts.help .opt:last-child:nth-child(odd) { grid-column: auto; grid-template-columns: none; justify-items: center; text-align: center; gap: 12px; padding: 16px 12px; }
.opts.help .opt:last-child:nth-child(odd) img { width: 84px; height: 84px; }
.opts.help .opt:last-child:nth-child(even):not(.lead) { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 16px; padding: 12px 16px; }
.opts.help .opt:last-child:nth-child(even):not(.lead) img { width: 64px; height: 64px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* calendar */
.cal { position: relative; margin: 16px auto 24px; width: min(100% - 16px, var(--col)); border-radius: 18px; overflow: hidden; box-shadow: var(--bezel); background: var(--tile); color: var(--ink);
  animation: rise .35s .08s var(--ease) both; }
.cal-frame { display: block; width: 100%; height: 760px; border: 0; background: var(--tile); }
.cal-ph { position: absolute; inset: 0; z-index: 1; background: var(--tile); padding: 24px 20px; display: grid; align-content: start; justify-items: center; gap: 16px; color: var(--muted); }
.cal-ph[data-state="ready"] { display: none; }
.cal-ph[data-state="failed"] { position: static; text-align: center; padding: 28px 16px; }
.cal-ph[data-state="failed"] b { font: 700 22px var(--display); color: var(--ink); }
.skel { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: 100%; }
.skel i { aspect-ratio: 1; border-radius: 50%; background: #e8eef3; animation: pulse 1s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * 1ms); }
.skel i:nth-child(-n+7) { aspect-ratio: auto; height: 12px; border-radius: 4px; background: #d5dee5; animation: none; }
@keyframes pulse { to { opacity: .4; } }

/* call and text screens, and the failed calendar */
.end { padding: 16px var(--pad) 28px; display: grid; gap: 16px; animation: rise .35s .08s var(--ease) both; }
.card { background: var(--tile); color: var(--ink); border-radius: 18px; padding: 20px 16px; display: grid; gap: 16px; box-shadow: var(--bezel), 0 6px 18px rgba(0, 20, 40, .28); }
.card b { font: 700 24px var(--display); }
.card p, .cal-ph p { margin: 0; }
.num { font: 800 46px/1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.demo { font-size: 15px; color: var(--muted); }
.qr { width: 200px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e8eef3; }
.qr svg { width: 100%; height: 100%; }
.btn { position: relative; overflow: hidden; isolation: isolate; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--blue);
  background: var(--tile); color: var(--blue); display: flex; align-items: center; justify-content: center; gap: 12px; font: 700 18px var(--body);
  transition: transform .2s var(--spring); }
.btn.primary { background: var(--blue); color: var(--white); }
.btn.primary::after { background: rgba(255, 255, 255, .3); }
.btn:active { transform: scale(.96); }
.btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.restart { min-height: 48px; display: grid; place-items: center; color: var(--white); font: 600 16px var(--body); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
#preload { position: absolute; width: 0; height: 0; overflow: hidden; }
#preload iframe { width: 0; height: 0; border: 0; }
