/* Alterra Meetings, in the alterra.studio look: warm white canvas, hairlines instead of shadows, small radii, one orange accent,
   Inter for text, Geist Mono for survey-style labels. */
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #fafaf9; --surface: #f1f1ef; --card: #fff; --ink: #0f1012; --muted: #5b5d63; --faint: #6f7176;
  --line: rgb(15 16 18 / .09); --line-strong: rgb(15 16 18 / .16); --accent: #ff3701; --accent-ink: #d92e00;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --r: 8px; --r-lg: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, sans-serif; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgb(255 55 1 / .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.frame { max-width: 1180px; margin: 0 auto; padding: 0 40px; min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.mark, .k { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark i { width: 14px; height: 1px; background: var(--accent); display: inline-block; }
main { flex: 1; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 32px; border-top: 1px solid var(--line); margin-top: 72px;
  font: 400 12px/1.4 var(--mono); color: var(--faint); letter-spacing: .02em; text-transform: uppercase; }

/* reveal */
.in > * { animation: rise .7s var(--ease-out) both; }
.in > *:nth-child(2) { animation-delay: .06s; } .in > *:nth-child(3) { animation-delay: .12s; } .in > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .in > * { animation: none; } }

/* ---------- profile */
.hero { position: relative; isolation: isolate; padding: 64px 0 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero h1 { font: 600 64px/1 Inter; letter-spacing: -.04em; margin: 22px 0 18px; max-width: 12ch; }
.hero p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.contour { position: absolute; inset: -30px -40px auto auto; width: 620px; height: 360px; pointer-events: none; z-index: -1; opacity: .9;
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }
.contour path { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.contour path.hot { stroke: var(--accent); opacity: .55; }
.host { display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.host img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.host b { display: block; font-weight: 600; letter-spacing: -.02em; } .host span { color: var(--muted); font-size: 14px; }
.types { border-top: 1px solid var(--line-strong); }
.type { display: grid; grid-template-columns: 56px 1fr auto 44px; gap: 24px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .4s var(--ease-out); border-radius: 2px; }
.type:hover { background: var(--card); padding-left: 16px; }
.type .n { font: 500 12px var(--mono); color: var(--faint); }
.type h3 { font: 600 24px/1.2 Inter; letter-spacing: -.025em; }
.type p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 10px; white-space: nowrap; }
.go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.type:hover .go { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.empty { padding: 120px 0; max-width: 520px; } .empty h1 { font: 600 44px/1.05 Inter; letter-spacing: -.035em; margin: 18px 0 12px; } .empty p { color: var(--muted); }

/* ---------- booker */
.booker { margin-top: 28px; display: grid; grid-template-columns: 300px 1fr 280px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--card); min-height: 560px; }
.booker.form-step { grid-template-columns: 300px 1fr; }
.side { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.side .who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.side .who img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.side h2 { font: 600 30px/1.1 Inter; letter-spacing: -.03em; }
.side .desc { color: var(--muted); font-size: 15px; white-space: pre-line; }
.facts { display: grid; gap: 10px; margin-top: 4px; }
.fact { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); }
.fact svg { flex: none; color: var(--faint); }
.fact select { border: 0; background: none; padding: 0; max-width: 220px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.when { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.when b { display: block; font-weight: 600; letter-spacing: -.02em; }
.month { padding: 26px 28px; }
.mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mhead h3 { font: 600 18px Inter; letter-spacing: -.02em; } .mhead h3 span { color: var(--faint); font-weight: 500; }
.nav { display: flex; gap: 6px; }
.nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.nav button:hover:not(:disabled) { border-color: var(--ink); } .nav button:disabled { opacity: .3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.grid .wd { font: 500 11px var(--mono); color: var(--faint); text-align: center; padding: 6px 0 8px; letter-spacing: .06em; }
.day { aspect-ratio: 1; border-radius: var(--r); display: grid; place-items: center; font-size: 15px; color: var(--faint); position: relative; font-variant-numeric: tabular-nums; }
.day.open { background: var(--surface); color: var(--ink); font-weight: 600; transition: background .2s, box-shadow .2s; }
.day.open:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.day.on { background: var(--ink); color: #fff; }
.day.today::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.day.loading { animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .45; } }
.times { border-left: 1px solid var(--line); padding: 26px 20px; display: flex; flex-direction: column; min-height: 0; }
.thead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.thead b { font-weight: 600; letter-spacing: -.02em; } .thead b span { color: var(--faint); font-weight: 500; }
.toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px; }
.toggle button { font: 500 11px var(--mono); padding: 5px 8px; border-radius: 99px; color: var(--muted); } .toggle button.on { background: var(--ink); color: #fff; }
.list { display: grid; gap: 8px; overflow-y: auto; max-height: 470px; padding: 0 4px 0 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; align-content: start; }
.slot { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 11px 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center;
  transition: border-color .2s, background .2s, color .2s, transform .3s var(--ease-out); animation: rise .5s var(--ease-out) both; }
.slot:hover { border-color: var(--ink); } .slot:active { transform: scale(.98); }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.none { color: var(--muted); font-size: 14px; padding: 6px 0; }
.form { padding: 28px; display: grid; gap: 16px; align-content: start; max-width: 560px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; } .form label em { color: var(--accent-ink); font-style: normal; }
.form input, .form textarea { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; background: var(--card); outline: none; transition: border-color .2s; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-ink); color: #fff; border-radius: 99px; padding: 13px 22px; font-weight: 500; transition: background .2s, transform .3s var(--ease-out); }
.btn:hover { background: #c02800; } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line-strong); } .btn.ghost:hover { border-color: var(--ink); background: none; }
.link { color: var(--muted); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; } .link:hover { color: var(--ink); }
.err { color: var(--accent-ink); font-size: 14px; }

/* ---------- confirmation / manage */
.done { max-width: 640px; margin: 48px auto 0; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-ink); display: grid; place-items: center; color: #fff; }
.tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease-out) forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font: 600 52px/1.02 Inter; letter-spacing: -.04em; margin: 26px 0 12px; }
.done > p { color: var(--muted); font-size: 17px; }
.sheet { margin: 32px 0 26px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--card); }
.sheet .r { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: baseline; }
.sheet .r:first-child { border-top: 0; } .sheet .r a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; word-break: break-all; }
.status-x { text-decoration: line-through; color: var(--faint); }
.keep { margin-top: 26px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
.keep code { font: 12px var(--mono); color: var(--ink); word-break: break-all; }

#note { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; border-radius: 99px; padding: 10px 18px; font-size: 14px;
  transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; z-index: 9; }
#note.show { opacity: 1; transform: translate(-50%, 0); }

/* embed: the page inside an iframe on alterra.studio */
body.embed, body.embed html { background: transparent; } body.embed .top, body.embed .foot { display: none; } body.embed .frame { padding: 0; min-height: 0; } body.embed .booker { margin-top: 0; }

@media (max-width: 1100px) { .booker { grid-template-columns: 260px 1fr; } .times { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } .list { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: none; } }
@media (max-width: 809.98px) {
  .frame { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 36px 0 36px; gap: 26px; } .hero h1 { font-size: 44px; } .hero p { font-size: 16px; }
  .contour { width: 420px; height: 300px; right: -120px; top: -20px; }
  .type { grid-template-columns: 1fr 36px; gap: 14px; padding: 22px 4px; } .type .n { display: none; } .type .chips { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .type .go { grid-column: 2; grid-row: 1 / 3; width: 36px; height: 36px; } .type h3 { font-size: 20px; } .type:hover { padding-left: 4px; }
  .booker, .booker.form-step { grid-template-columns: 1fr; margin-top: 8px; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; gap: 14px; } .side h2 { font-size: 26px; } .when { display: none; }
  .month { padding: 20px 14px; } .grid { gap: 4px; } .times { padding: 20px; } .form { padding: 22px 20px; }
  .done { margin-top: 24px; } .done h1 { font-size: 38px; } .sheet .r { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; margin-top: 48px; }
}
