@font-face { font-family: "Degular"; src: url("fonts/Degular-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Degular"; src: url("fonts/Degular-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Stix General"; src: url("fonts/STIXGeneralItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta"; src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta"; src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --black: #000000;
  --cream: #fff7ee;
  --muted: #8f877e;
  --faint: #4a443e;
  --line: #2b2723;
  --line-strong: #5a534c;
  --error: #f2b8a2;
  --display: "Degular", Impact, sans-serif;
  --accent: "Stix General", Georgia, serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --ui: "Plus Jakarta", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Thin progress line pinned to the very top, logo sits under it */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 3; }
.progress { height: 2px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--cream); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.logo { display: block; height: 13px; width: auto; margin: 22px 28px 0; }

main { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 96px 24px 72px; }

.screen { display: none; width: 100%; max-width: 560px; }
.screen.is-active { display: block; animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.3; }
.italic { display: block; font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--muted); }
h1 .italic { font-size: 22px; line-height: 1.3; margin-top: 4px; }
h2 .italic { font-size: 18px; line-height: 1.35; margin-top: 4px; }

.count { font-family: var(--ui); font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.lede { font-size: 15px; color: #cfc6bc; max-width: 46ch; margin: 16px 0 0; }
.muted { color: var(--muted); }
.hint { font-family: var(--ui); font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Answer field: one underlined line */
.field { margin-top: 28px; }
.field + .field { margin-top: 10px; }
.field label { display: block; font-family: var(--ui); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--cream); font-family: var(--body); font-weight: 400; font-size: 20px;
  line-height: 1.35; padding: 6px 0 8px; border-radius: 0; outline: none; resize: none;
}
.field textarea { font-size: 17px; line-height: 1.5; min-height: 3.4em; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--cream); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.error { font-family: var(--ui); font-size: 12px; color: var(--error); margin: 6px 0 0; min-height: 1.2em; }

.actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  font-family: var(--ui); font-weight: 500; font-size: 14px;
  background: var(--cream); color: var(--black); border: 1px solid var(--cream);
  padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn[disabled] { opacity: .5; cursor: wait; }
.link { font-family: var(--ui); font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--cream); }
.keys { font-family: var(--ui); font-size: 12px; color: var(--muted); }
.keys kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; }

:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

/* What happens next: a real sequence, so it is a vertical timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: -21px; width: 5px; height: 5px; border-radius: 50%; background: var(--cream); }
.timeline .when { font-family: var(--ui); font-size: 12px; color: var(--muted); }
.timeline .what { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.3; margin: 1px 0 2px; }
.timeline p { margin: 0; font-size: 14px; color: #cfc6bc; }

.booking { margin-top: 44px; }
.booking h3 { font-family: var(--display); font-weight: 500; font-size: 20px; margin: 0; line-height: 1.3; }
.booking .frame { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
/* Google's booking page has no dark mode; invert it so it sits inside an all-black page */
.booking iframe { display: block; width: 100%; height: 700px; border: 0; filter: invert(.92) hue-rotate(180deg); background: #fff; }

.screen.is-wide { max-width: 720px; }
body.is-final main { align-items: flex-start; }

@media (max-width: 600px) {
  .logo { margin: 18px 20px 0; }
  main { padding: 84px 20px 56px; align-items: flex-start; }
  h1 { font-size: 28px; }
  h1 .italic { font-size: 19px; }
  h2 { font-size: 20px; }
  .field input { font-size: 18px; }
  .booking iframe { height: 860px; }
  .keys { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
  .progress span { transition: none; }
}
