/* campIQ discovery call — campIQ design system values (see the "Best of desktop" design reference) */
@font-face { font-family: "Fredoka"; src: url("/call/fonts/Fredoka-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/call/fonts/Nunito-Variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --ink: #00061c; --ink-muted: #4a4f5c; --ink-subtle: #5f6472; --canvas: #f7f7f9; --surface: #ffffff; --subtle: #f1f2f4;
  --line: #e7e8e9; --line-control: #8c919d; --violet: #725ac1; --violet-strong: #5b45a6; --violet-tint: #e9e1fb;
  --danger: #b42318; --ok: #1b5e20; --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #725ac1;
  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif; --font-text: "Nunito", ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font: 400 16px/24px var(--font-text); }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--ink-muted); }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* page */
.top, .layout, .foot { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.top { height: 80px; flex-shrink: 0; display: flex; align-items: center; }
.logo { height: 28px; width: auto; display: block; }
.layout { flex: 1; padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 600px; grid-template-areas: "intro card" "cover card" ". card"; grid-template-rows: auto auto 1fr; column-gap: 80px; align-items: start; }
.intro { grid-area: intro; padding-top: 8px; }
.cover { grid-area: cover; }
.card { grid-area: card; }

/* intro */
h1 { margin: 0; font: 450 40px/48px var(--font-display); letter-spacing: -.01em; }
h1 span { color: var(--violet); }
.lead { margin: 16px 0 0; max-width: 440px; color: var(--ink-muted); }
.host { margin-top: 32px; display: flex; align-items: center; gap: 16px; }
.host img { width: 56px; height: 56px; border-radius: 9999px; object-fit: cover; }
.host b { display: block; font-weight: 700; }
.host span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cover h2 { margin: 40px 0 4px; font-size: 16px; line-height: 24px; font-weight: 700; }
.cover ul { margin: 8px 0 0; padding: 0; list-style: none; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.cover li { position: relative; padding-left: 32px; }
.cover li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 9999px; background: var(--violet-tint); }
.cover li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 8px; border-radius: 9999px; background: var(--violet); }

/* card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.card h2 { margin: 0; font: 500 20px/28px var(--font-display); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weeknav { display: flex; align-items: center; gap: 8px; }
.weeknav span { min-width: 88px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; }
.icon-btn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:disabled { border-color: var(--line); color: var(--line-control); cursor: default; }
.notice { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #fde2e1; color: #8b1a1a; font-size: 14px; line-height: 20px; }

.days { margin-top: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); cursor: pointer; }
.day .dow { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.day .date { font-size: 16px; line-height: 24px; font-weight: 700; }
.day .short { display: none; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { border-color: var(--violet-strong); background: var(--violet-tint); color: var(--violet-strong); }
.day[aria-pressed="true"] .dow { color: var(--violet-strong); }
.day:disabled { border-color: var(--line); color: var(--line-control); cursor: default; }
.day:disabled .dow { color: var(--line-control); }
.day:not(:disabled):not([aria-pressed="true"]):hover, .slot:not([aria-pressed="true"]):hover { border-color: var(--violet); }

.times { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { height: 44px; border-radius: 8px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.times .none { grid-column: 1 / -1; margin: 0; padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.tz { margin: 8px 0 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-subtle); }

.fields { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; }
.fields label.wide { grid-column: 1 / -1; }
.fields label em { display: block; font-style: normal; font-weight: 400; color: var(--ink-subtle); }
input, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-control); background: var(--surface); font-size: 14px; line-height: 20px; color: var(--ink); }
textarea { height: 80px; padding: 10px 12px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: var(--focus-ring); }
input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 16px 0 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--danger); }

.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { border: 0; background: var(--violet); color: #ffffff; }
.btn-primary:hover { background: var(--violet-strong); color: #ffffff; }
.btn-primary:disabled { background: var(--violet-tint); color: var(--violet-strong); cursor: default; }
.btn-secondary { height: 40px; padding: 0 16px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
#submit { width: 100%; height: 48px; margin-top: 24px; }

/* booked / failed */
.state { display: flex; flex-direction: column; align-items: flex-start; }
.state .ok { width: 32px; height: 32px; color: var(--ok); margin-bottom: 16px; }
.booked { margin: 16px 0 0; width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 10px; background: var(--subtle); }
.booked img { width: 44px; height: 44px; border-radius: 9999px; object-fit: cover; }
.booked b { display: block; font-weight: 700; }
.booked span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.state > p { margin: 20px 0 20px; color: var(--ink-muted); }
.empty { margin-top: 24px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; border-radius: 10px; background: var(--subtle); }
.empty svg { width: 32px; height: 32px; color: var(--ink-muted); margin-bottom: 8px; }
.empty p { margin: 0; max-width: 380px; color: var(--ink-muted); }
.empty p a { color: var(--violet); font-weight: 700; text-decoration: none; }
.empty .row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.empty .btn-primary { height: 40px; padding: 0 16px; }

/* footer */
.foot { height: 96px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.foot img { height: 20px; width: auto; display: block; }
.foot nav { display: flex; gap: 24px; font-size: 12px; line-height: 16px; font-weight: 600; }
.foot nav a { text-decoration: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: 48px; }
}
@media (max-width: 860px) {
  .top, .layout, .foot { padding-left: 16px; padding-right: 16px; }
  .top { height: 64px; }
  .layout { padding-top: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "cover"; grid-template-rows: auto; }
  h1 { font-size: 32px; line-height: 40px; }
  .host { margin-top: 24px; margin-bottom: 24px; }
  .card { padding: 20px; }
  .days { gap: 6px; }
  .day .long { display: none; }
  .day .short { display: inline; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fields label.wide { grid-column: auto; }
  .cover h2 { margin-top: 32px; }
  .foot { height: 80px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
