/* Public entrepreneur booking.
 *
 * Deliberately self-contained: no font CDN, no icon library, no framework. This
 * page asks an entrepreneur for their name and email, so every byte it loads is
 * served from the same origin and its CSP can stay strict. The "premium" here
 * comes from spacing, type scale and restraint rather than from downloads.
 *
 * Palette is Notre Dame navy and gold, with neutrals biased slightly toward the
 * navy so greys read as chosen rather than inherited.
 */

:root {
  --navy-900: #08182c;
  --navy-800: #0c2340;   /* Notre Dame blue */
  --navy-600: #1d3f66;
  --gold-600: #ae8200;
  --gold-500: #c99700;   /* Notre Dame gold */
  --gold-100: #f6ecd2;

  --ink:      #14202e;
  --ink-soft: #4a5a6d;
  --ink-mute: #6d7c8c;
  --line:     #dde3ea;
  --line-soft:#eef2f6;
  --ground:   #fbfcfd;
  --card:     #ffffff;
  --danger:   #8c2f22;
  --ok:       #1d5c43;

  --measure: 34rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(12, 35, 64, .05), 0 12px 32px -18px rgba(12, 35, 64, .35);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--navy-800); color: #fff; padding: .75rem 1rem;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- structure -- */

.masthead {
  padding: 1.75rem clamp(1.25rem, 5vw, 3rem) 0;
}
.mark { display: block; height: 32px; width: auto; }

#main {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  flex: 1 0 auto;
}

.footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  color: var(--ink-mute);
  font-size: .8125rem;
}
.footer p { margin: 0 0 .25rem; }
.footer .fine { color: var(--ink-mute); }

/* -------------------------------------------------------------- progress -- */
/* A thin rule that fills, not a row of numbered pills: the entrepreneur is
   moving through one short task, and a heavy stepper would imply bureaucracy. */

.rail { display: flex; gap: .375rem; margin: 0 0 2.5rem; }
.rail span {
  height: 3px; flex: 1 1 0; background: var(--line);
  border-radius: 2px; transition: background .25s ease;
}
.rail span.done { background: var(--gold-500); }
.rail span.here { background: var(--navy-800); }

/* ------------------------------------------------------------ typography -- */

h1 {
  font: 600 clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem)/1.15 var(--serif);
  letter-spacing: -.015em;
  margin: 0 0 .875rem;
  text-wrap: balance;
  color: var(--navy-900);
}
h2 {
  font: 600 clamp(1.375rem, 1rem + 1.4vw, 1.75rem)/1.25 var(--serif);
  letter-spacing: -.01em;
  margin: 0 0 .625rem;
  text-wrap: balance;
  color: var(--navy-900);
}
.lede {
  margin: 0 0 2rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold-600);
  margin: 0 0 .625rem;
}

/* ----------------------------------------------------------------- forms -- */

.field { margin: 0 0 1.25rem; max-width: var(--measure); }
.field label {
  display: block; font-weight: 600; font-size: .9375rem;
  margin: 0 0 .375rem; color: var(--ink);
}
.field .hint { display: block; font-weight: 400; color: var(--ink-mute); font-size: .875rem; margin-top: .125rem; }

input[type="email"], input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8125rem .875rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:hover, textarea:hover { border-color: #c3ccd7; }
input:focus-visible, textarea:focus-visible, button:focus-visible, [role="radio"]:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
  border-color: var(--navy-600);
}

/* --------------------------------------------------------------- choices -- */

.choices { display: grid; gap: .625rem; margin: 0 0 2rem; max-width: var(--measure); }

.choice {
  display: flex; align-items: flex-start; gap: .875rem;
  width: 100%; text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--navy-600); }
.choice[aria-checked="true"] { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); }
.choice .dot {
  flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin-top: .1875rem;
  border: 1px solid #b9c3cf; border-radius: 50%; background: var(--card);
}
.choice[aria-checked="true"] .dot { border: 5px solid var(--navy-800); }
.choice .body { min-width: 0; }
.choice .t { display: block; font-weight: 600; }
.choice .d { display: block; color: var(--ink-mute); font-size: .875rem; margin-top: .125rem; }
.choice .tag {
  display: inline-block; margin-top: .375rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-600); background: var(--gold-100);
  padding: .1875rem .4375rem; border-radius: 4px;
}

/* --------------------------------------------------------------- topics -- */

.topic-group { margin: 0 0 1.75rem; }
.topic-group h3 {
  font: 600 .8125rem/1.4 var(--sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 .625rem;
}
.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic {
  font: inherit; font-size: .9375rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .9375rem; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  /* 44px minimum touch target. inline-flex + centring rather than extra padding:
     these pills wrap, and padding alone left them at 42px while also making the
     wide ones look inflated. */
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.topic:hover { border-color: var(--navy-600); }
.topic[aria-checked="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------------------------------------------------------------- times -- */

.daylist { display: grid; gap: 1.5rem; margin: 0 0 2rem; }
.day h3 {
  font: 600 1rem/1.4 var(--sans);
  margin: 0 0 .625rem; color: var(--navy-900);
}
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; }
.time {
  font: inherit; font-variant-numeric: tabular-nums;
  background: var(--card); color: var(--navy-800); font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .75rem .5rem; cursor: pointer; text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.time:hover { border-color: var(--navy-800); }
.time[aria-checked="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.tz {
  margin: -.75rem 0 1.75rem;
  color: var(--ink-mute); font-size: .875rem;
}

/* --------------------------------------------------------------- summary -- */

.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 0 0 2rem;
  max-width: var(--measure);
}
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .625rem 1.25rem; margin: 0; }
.summary dt { color: var(--ink-mute); font-size: .875rem; }
.summary dd { margin: 0; font-weight: 600; }

/* --------------------------------------------------------------- notices -- */

.notice {
  border-left: 3px solid var(--line);
  padding: .875rem 0 .875rem 1rem;
  margin: 0 0 1.75rem;
  max-width: var(--measure);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.notice.warn { border-left-color: var(--gold-500); }
.notice.bad  { border-left-color: var(--danger); color: var(--danger); }
.notice.good { border-left-color: var(--ok); }
.notice strong { color: var(--ink); display: block; margin-bottom: .1875rem; }
.notice.bad strong { color: var(--danger); }

/* --------------------------------------------------------------- actions -- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }

.btn {
  font: inherit; font-weight: 600;
  border-radius: var(--radius);
  padding: .8125rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-900); }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: transparent; padding-left: .25rem; padding-right: .25rem; }
.btn-quiet:hover:not(:disabled) { color: var(--navy-800); }
.btn:disabled { opacity: .5; cursor: default; }

/* --------------------------------------------------------------- loading -- */

.loading { color: var(--ink-mute); display: flex; align-items: center; gap: .625rem; margin: 0 0 1.5rem; }
.spinner {
  width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--navy-800);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  * { transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- mobile -- */

@media (max-width: 30rem) {
  .times { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .summary dl { grid-template-columns: 1fr; gap: .25rem 0; }
  .summary dt { margin-top: .5rem; }
}
