/* same palette + type as the inspiration library (course-library/site/styles.css) */
:root {
  --paper: #efebe2; --cream: #e8e4d9; --surface: #f7f5ef;
  --ink: #2c2c2c; --ink-2: #57544e; --sage: #6b7a70; --sage-soft: rgba(107,122,112,.13);
  --red: #A6342E; --line: rgba(44,44,44,.10); --line-2: rgba(44,44,44,.18);
  --shadow: 0 1px 2px rgba(44,44,44,.05), 0 8px 24px -12px rgba(44,44,44,.18);
  --r: 20px; --gutter: 16px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; padding-bottom: 72px; overflow-x: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }

.site-head { max-width: 640px; margin: 0 auto; padding: 18px var(--gutter) 6px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { position: relative; width: 26px; height: 26px; flex: none; }
.brand-mark i { position: absolute; width: 15px; height: 19px; border-radius: 5px; border: 1.8px solid var(--ink); background: var(--paper); }
.brand-mark i:nth-child(1) { inset-inline-start: 0; top: 4px; transform: rotate(-9deg); }
.brand-mark i:nth-child(2) { inset-inline-start: 5px; top: 2px; transform: rotate(3deg); }
.brand-mark i:nth-child(3) { inset-inline-start: 10px; top: 5px; transform: rotate(12deg); }
.brand-mark i:nth-child(3)::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--red); top: 3px; inset-inline-end: 3px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.hero { padding: clamp(28px, 7vw, 64px) 0 22px; }
.eyebrow { margin: 0 0 12px; color: var(--sage); font-weight: 500; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 9vw, 68px); line-height: .98; }
.hero h1 span { color: var(--sage); }
.lead { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 18px); margin: 14px 0 0; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.facts li b { color: var(--ink); font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(18px, 4vw, 28px); margin-top: 16px; }
.card h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; display: inline-grid; place-items: center; flex: none; }
.card .hint { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 0; }
.card.is-off { opacity: .55; pointer-events: none; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field input[dir="ltr"] { text-align: right; }
.row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.err { color: var(--red); font-size: 14px; margin: 6px 0 0; min-height: 0; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 14px -2px 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; border: 1px solid var(--line-2); background: #fff; border-radius: 16px; padding: 9px 14px; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.day b { display: block; font-size: 15px; }
.day small { color: var(--ink-2); font-size: 13px; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day[aria-pressed="true"] small { color: var(--cream); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.time { border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 10px 0; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.time:hover { border-color: var(--sage); }
.time[aria-pressed="true"] { background: var(--sage); color: #fff; border-color: var(--sage); }
.empty { color: var(--ink-2); margin: 14px 0 0; }

.summary { background: var(--cream); border-radius: 16px; padding: 14px 16px; margin-top: 14px; font-size: 15.5px; }
.summary div + div { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 17px; padding: 15px 22px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.small { color: var(--ink-2); font-size: 13.5px; margin: 10px 0 0; text-align: center; }
.foot { text-align: center; color: var(--ink-2); font-size: 13.5px; margin-top: 28px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cream); border-top-color: var(--sage); animation: spin 1s linear infinite; margin: 8px auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .btn:hover { transform: none; } }
