/* BYOC booking page. Tokens from beyourownceo DESIGN.md.
   Font: Inter, self-hosted from public/calendar/fonts/ (SIL OFL, licence
   alongside), so the page still makes no third-party request. */
@font-face {
  font-family: 'Inter';
  src: url('/calendar/fonts/InterVariable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-card: #111118;
  --bg-card-alt: #0f0f16;
  --accent: #e2e8f0;
  --text-primary: #f1f5f9;
  --text-secondary: #b8b4c0;
  --border: rgba(226, 232, 240, 0.08);
  --border-hover: rgba(226, 232, 240, 0.15);
  --bitcoin: #f7931a;
  --money: #22c55e;
  --ai: #38bdf8;
  --negative: #f87171;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.bar {
  position: sticky; top: 0; z-index: 5;
  height: 52px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bar-in { width: 100%; max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 15px; color: var(--text-primary); }
.brand .c { color: var(--money); }
.brand .e { color: var(--ai); }
.brand .o { color: var(--bitcoin); }

main { max-width: 640px; margin: 0 auto; padding: 40px 16px 24px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--money);
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 34px; line-height: 1.15; }
.c-green { color: var(--money); }
.lead { color: var(--text-secondary); margin: 12px 0 28px; max-width: 34em; }
.demo {
  border-left: 3px solid var(--bitcoin);
  background: rgba(247, 147, 26, 0.10);
  border-radius: 0 8px 8px 0;
  padding: 8px 14px; font-size: 13px; margin: -12px 0 24px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #f7931a 0%, #38bdf8 50%, #22c55e 100%);
  border-radius: 12px 12px 0 0; opacity: 0.8;
}
.step-title { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border-hover); font-size: 12px; color: var(--text-secondary);
}

.lengths { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border-hover); color: var(--accent); font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s, color .15s;
}
.pill input:checked + span { border-color: var(--money); color: var(--money); background: rgba(34, 197, 94, 0.10); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.30); }

.tz { font-size: 13px; color: var(--text-secondary); margin: -4px 0 14px; }
.status { font-size: 14px; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.status-info { color: var(--text-secondary); padding-left: 0; }
.status-error { border-left: 3px solid var(--negative); background: rgba(248, 113, 113, 0.10); border-radius: 0 8px 8px 0; }

.days { display: grid; gap: 10px; }
.day {
  background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.day-name { font-size: 14px; font-weight: 600; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot {
  font: 600 14px/1 var(--font); color: var(--accent);
  background: transparent; border: 1px solid var(--border-hover); border-radius: 8px;
  padding: 9px 14px; cursor: pointer; min-width: 72px;
  transition: border-color .15s, background .15s, color .15s;
}
.slot:hover { border-color: var(--money); color: var(--money); }
.slot:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.30); }
.slot.is-selected { border-color: var(--money); color: var(--money); background: rgba(34, 197, 94, 0.10); }
.empty { color: var(--text-secondary); margin: 0; }
.more {
  margin-top: 14px; background: none; border: none; padding: 6px 0; cursor: pointer;
  font: 600 14px var(--font); color: var(--ai);
}
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* "More options": every other valid time, visually secondary to the preferred ones. */
.others { margin-top: 18px; }
.others-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0 0 10px; outline: none; }
.days-other { gap: 8px; }
.day-other { background: transparent; padding: 10px 14px; }
.day-other .day-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin: 0; }
.day-other .slots { gap: 6px; }
.slot-other { font-weight: 500; font-size: 13px; color: var(--text-secondary); padding: 7px 10px; min-width: 60px; }

.chosen { font-weight: 600; margin: -4px 0 18px; color: var(--money); }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field.sub { margin: 12px 0 0 26px; }
label, legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--accent); }
legend { padding: 0; }
.opt { font-weight: 400; color: var(--text-secondary); margin-left: 4px; }
input[type="text"], input:not([type]), input[type="email"], input[type="url"], textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--text-primary);
  background: var(--bg); border: 1px solid var(--border-hover); border-radius: 8px; padding: 10px 12px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--money); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20); }
[aria-invalid="true"] { border-color: var(--negative) !important; }
.choice { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 15px; margin: 0 0 8px; cursor: pointer; }
.choice input { accent-color: var(--money); width: 16px; height: 16px; margin: 4px 0 0; flex: none; }
.hint.mode-hint { margin: -2px 0 12px; }
.hint { font-size: 13px; color: var(--text-secondary); margin: 6px 0 0; }
.field-error { font-size: 13px; color: var(--negative); margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.primary {
  width: 100%; margin-top: 4px; padding: 13px 18px; border-radius: 10px; cursor: pointer;
  font: 700 15px var(--font); color: #06210f; background: var(--money); border: none;
  transition: filter .15s;
}
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .6; cursor: wait; }

.done h2 { font-size: 26px; margin-bottom: 12px; }
.done-when { font-size: 17px; font-weight: 600; }
.done p { margin: 0 0 10px; }
.muted { color: var(--text-secondary); font-size: 14px; }
.done:focus { outline: none; }

.foot {
  max-width: 640px; margin: 24px auto 0; padding: 24px 16px 40px;
  border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-secondary);
}

/* Language pill in the header: EN | NL */
.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.lang-sep { color: var(--text-secondary); opacity: .5; }
.lang-btn {
  font: 600 12px/1 var(--font); letter-spacing: 0.06em; color: var(--text-secondary);
  background: none; border: 1px solid transparent; border-radius: 999px; padding: 5px 9px; cursor: pointer;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn[aria-pressed="true"] { color: var(--money); border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.10); }
.lang-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.30); }

/* Portrait beside the headline */
.intro { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.intro-text { min-width: 0; }
.intro .lead { margin-bottom: 0; }
.intro .demo { margin: 14px 0 0; }
.portrait {
  flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(34, 197, 94, 0.55); background: var(--bg-card);
}

/* Own link, none pasted: the one step left, on the confirmation screen */
.send-invite {
  margin: 18px 0; padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(247, 147, 26, 0.55); background: rgba(247, 147, 26, 0.08);
}
.done .send-invite-title {
  margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bitcoin);
}
.done .send-invite-text { font-size: 17px; font-weight: 500; line-height: 1.5; margin: 0 0 12px; }
.send-invite-text strong { color: var(--text-primary); font-weight: 700; overflow-wrap: anywhere; }
.copy {
  font: 600 14px/1 var(--font); color: #1f1300; background: var(--bitcoin); border: none;
  border-radius: 8px; padding: 10px 14px; cursor: pointer;
}
.copy:hover { filter: brightness(1.08); }
.copy:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.35); }
.copied { margin-left: 10px; font-size: 13px; color: var(--text-secondary); }
.done .send-invite-note { margin: 12px 0 0; font-size: 13px; color: var(--text-secondary); }

@media (max-width: 520px) {
  .intro { gap: 16px; align-items: flex-start; }
  .portrait { width: 88px; height: 88px; }
  h1 { font-size: 28px; }
  .card { padding: 18px 16px; }
  .day { flex-direction: column; align-items: flex-start; }
}
