/* Schedora interface. Tokens follow PRODUCT_DESIGN.md; logo artwork is never recolored. */
:root {
  color-scheme: light;
  --canvas: #f6f7f2; --surface: #ffffff; --surface-2: #eef2ea; --ink: #182e28; --muted: #53675e; --line: #d4dfd7; --line-strong: #8fa59a;
  --meet: #225c43; --forms: #6541a5; --flow: #9a461d;
  --meet-tint: #e3efe2; --forms-tint: #eee7fa; --flow-tint: #f8e9df;
  --on-accent: #ffffff; --focus: #986000;
  --ok: #1f6b3f; --ok-tint: #e1f1e5; --warn: #8a5300; --warn-tint: #fbefd9; --bad: #b3261e; --bad-tint: #fbe5e3;
  --shadow: 0 12px 40px #173b2314; --radius: 14px; --radius-sm: 9px;
  --accent: var(--meet); --accent-tint: var(--meet-tint);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #101d18; --surface: #192b23; --surface-2: #213629; --ink: #edf5ed; --muted: #b3c8ba; --line: #3d5548; --line-strong: #6f8a7b;
    --meet: #a6d5a8; --forms: #d4b9ff; --flow: #ffc49e;
    --meet-tint: #24402f; --forms-tint: #33294a; --flow-tint: #46301f;
    --on-accent: #13271b; --focus: #ffd277;
    --ok: #9fdcb0; --ok-tint: #1d3a28; --warn: #ffd08a; --warn-tint: #43351a; --bad: #ffb4ab; --bad-tint: #4a2420;
    --shadow: 0 12px 40px #0004;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101d18; --surface: #192b23; --surface-2: #213629; --ink: #edf5ed; --muted: #b3c8ba; --line: #3d5548; --line-strong: #6f8a7b;
  --meet: #a6d5a8; --forms: #d4b9ff; --flow: #ffc49e;
  --meet-tint: #24402f; --forms-tint: #33294a; --flow-tint: #46301f;
  --on-accent: #13271b; --focus: #ffd277;
  --ok: #9fdcb0; --ok-tint: #1d3a28; --warn: #ffd08a; --warn-tint: #43351a; --bad: #ffb4ab; --bad-tint: #4a2420;
  --shadow: 0 12px 40px #0004;
}
body[data-product="forms"] { --accent: var(--forms); --accent-tint: var(--forms-tint); }
body[data-product="flow"] { --accent: var(--flow); --accent-tint: var(--flow-tint); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 680; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; }
.muted, small { color: var(--muted); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 40px; padding-bottom: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -100px; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm); z-index: 50; }
.skip-link:focus { top: 12px; }

/* Header and brand lockup */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.lockup img { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.lockup-name { font-size: 20px; font-weight: 720; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.lockup-name small { display: block; font-size: 10px; font-weight: 450; letter-spacing: .02em; margin-top: 3px; }
.lockup-lg img { width: 40px; height: 40px; flex-basis: 40px; }
.lockup-lg .lockup-name { font-size: 24px; }
.site-nav { display: flex; gap: 4px 18px; justify-content: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-tools select { width: auto; max-width: 180px; min-height: 40px; padding: 6px 10px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 8px 4px; text-decoration: underline; min-height: 36px; font-weight: 600; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* Cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-plain { box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tag { display: inline-block; background: var(--accent-tint); color: var(--accent); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 650; letter-spacing: .03em; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Forms */
label, .label { display: block; font-weight: 600; margin: 18px 0 6px; }
label:first-child { margin-top: 0; }
.hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 10px 0; min-height: 32px; cursor: pointer; }
.choice-list { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-list .check { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; }
.choice-list .check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.required-mark { color: var(--bad); font-weight: 700; }
[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field-error { display: flex; gap: 6px; color: var(--bad); font-size: 14px; font-weight: 600; margin-top: 6px; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: var(--surface); font-size: 12px; flex: none; }
.inline-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }

/* Status */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; border: 1px solid; }
.notice > :last-child { margin-bottom: 0; }
.notice-info { background: var(--accent-tint); border-color: var(--accent); }
.notice-ok { background: var(--ok-tint); border-color: var(--ok); }
.notice-warn { background: var(--warn-tint); border-color: var(--warn); }
.notice-bad { background: var(--bad-tint); border-color: var(--bad); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); } .badge-warn { color: var(--warn); } .badge-bad { color: var(--bad); } .badge-neutral { color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px 0; }
.loading::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 40; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--canvas); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Tabs and lists */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0; overflow-x: auto; scrollbar-width: thin; }
.tabs a, .tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; min-height: 44px; font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.list > li { padding: 16px 20px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list-title { font-weight: 650; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--accent); }

/* Home */
.hero { padding: 56px 0 8px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--card-accent); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .15s; }
.product-card:hover { transform: translateY(-3px); }
.product-card.meet { --card-accent: var(--meet); } .product-card.forms { --card-accent: var(--forms); } .product-card.flow { --card-accent: var(--flow); }
.product-card p { color: var(--muted); margin: 16px 0 20px; }
.product-card .go { margin-top: auto; font-weight: 650; color: var(--card-accent); }

/* Meet booking */
.booking-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.booking-summary { padding: 28px; border-right: 1px solid var(--line); }
.booking-main { padding: 28px; min-width: 0; }
.summary-facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; color: var(--muted); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar .dow { text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; display: grid; place-items: center; padding: 0; }
.day[data-available] { background: var(--accent-tint); color: var(--accent); font-weight: 700; cursor: pointer; }
.day[data-available]:hover { outline: 2px solid var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.day[disabled] { cursor: default; opacity: .55; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 12px 0; }
.slot { min-height: 44px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: var(--radius-sm); font: inherit; font-weight: 650; cursor: pointer; }
.slot:hover { background: var(--accent-tint); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.slot[aria-pressed="true"]::after { content: " ✓"; }
.confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; }
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { margin: 0; font-weight: 600; }

/* Availability editor */
.week-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.week-row:first-child { border-top: 0; }
.range { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.range input[type="time"] { width: 130px; }
.range input[type="date"] { width: 170px; }

/* Forms builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.builder-preview { position: sticky; top: 16px; }
.field-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; background: var(--surface); }
.field-editor.page-break { background: var(--surface-2); border-style: dashed; }
.field-editor-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.mobile-switch { display: none; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.public-form { max-width: 680px; margin: 0 auto; }
.conversational { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.conversational .question-number { color: var(--accent); font-weight: 700; }
.conversational .q-label { font-size: clamp(22px, 3vw, 28px); font-weight: 650; line-height: 1.3; }
.kbd-hint { font-size: 13px; color: var(--muted); }
.embed-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 70px; }

/* Flow */
.flow-steps { display: grid; gap: 0; }
.flow-step { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.flow-connector { width: 2px; height: 24px; background: var(--line-strong); margin-left: 28px; }
.flow-step h3 { display: flex; gap: 10px; align-items: center; }
.step-number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; }
pre.preview { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 8px 0 0; }

/* Footer and consent */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.footer-links a, .footer-links button { color: var(--muted); font-size: 14px; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; z-index: 30; max-height: 70vh; overflow: auto; }
.cookie-banner h2 { font-size: 18px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 19px; }

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .builder[data-view="edit"] .builder-preview, .builder[data-view="preview"] .builder-edit { display: none; }
  .mobile-switch { display: flex; }
  .grid-3, .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 8px; padding-bottom: 4px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page { padding-top: 24px; }
  .card, .booking-summary, .booking-main { padding: 20px; }
  .lockup-name { font-size: 18px; }
  .header-tools .theme-label { display: none; }
  .header-tools select { max-width: 120px; }
  .list > li { padding: 14px 16px; }
  .range input[type="time"], .range input[type="date"] { width: 100%; flex: 1 1 120px; }
  .calendar { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.home-connect { margin-top: 40px; }
body[data-embed] .site-header, body[data-embed] .site-footer, body[data-embed] .cookie-banner { display: none; }
dialog.card { max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: #0008; }
.key-input { width: 170px; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.day { width: 100%; max-width: 46px; justify-self: center; }
.builder-preview h1 { font-size: 26px; }
.question + .question { margin-top: 10px; }
.conversational .question + .question { margin-top: 0; }
