

[hidden] { display: none !important; }


:root {
  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --ui:      'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}


:root {
  --paper:      #F5F1EF;   
  --card:       #FFFFFF;   
  --sunk:       #EDE8DE;   
  --hairline:   #E7DFDA;   

  --ink:        #171310;   
  --ink-soft:   #5A514B;   
  --ink-faint:  #6E625C;   

  --ember:      #C6402B;
  --ember-deep: #A6321F;   
  --ember-tint: #FBEFEC;   
  --on-ember:   #FFFFFF;

  --good:       #1F5A3C;
  --good-tint:  #E8F1EB;
  --warn:       #8A5A11;
  --warn-tint:  #FBF1E0;
  --bad:        #A6321F;
  --bad-tint:   #FBEAE6;


  --schedule-bright: #FF5A48;
  --connect-bright:  #F59E2E;
  --reserve-bright:  #FF478B;
  --consult-bright:  #0F766E;

  --schedule:   #C6402B;   
  --connect:    #A8600C;   
  --reserve:    #A8306B;   
  --consult:    #0F766E;   

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --lift: 0 1px 2px rgba(23,19,16,.06), 0 4px 12px rgba(23,19,16,.05);

  --quick: 120ms cubic-bezier(.2,0,.2,1);
  --calm:  200ms cubic-bezier(.2,0,.2,1);
}



[data-product="schedule"], .p-schedule { --ember: var(--schedule); --ember-deep: #A6321F; --ember-tint: #FBEFEC; }
[data-product="connect"],  .p-connect  { --ember: var(--connect);  --ember-deep: #8A4E09; --ember-tint: #FBF3E6; }
[data-product="reserve"],  .p-reserve  { --ember: var(--reserve);  --ember-deep: #8A2758; --ember-tint: #FBEAF2; }
[data-product="consult"],  .p-consult  { --ember: var(--consult);  --ember-deep: #0B5B55; --ember-tint: #E6F2F1; }

*, *::before, *::after { box-sizing: border-box; }

:root { color-scheme: only light; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

::selection { background: var(--ember-tint); color: var(--ink); }


.s-display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 40px); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 var(--s3);
}
.s-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.18;
  letter-spacing: -.015em; margin: 0 0 var(--s2);
}
.s-heading { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0 0 var(--s2); }
.s-body    { font-size: 15px; line-height: 1.6; }
.s-support { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.s-fine    { font-size: 13px; line-height: 1.5; color: var(--ink-faint); }

.s-eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--s2);
}
.s-eyebrow--ember { color: var(--ember-deep); }

.s-figure {
  font-family: var(--display); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.s-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }


:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}


.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 44px;                 
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--ui); font-size: 15px; font-weight: 700;
  line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background var(--quick), border-color var(--quick), color var(--quick);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.btn--primary   { background: var(--ember); color: var(--on-ember); }
.btn--primary:hover:not(:disabled)  { background: var(--ember-deep); }

.btn--secondary { background: var(--card); border-color: var(--hairline); }
.btn--secondary:hover:not(:disabled) { border-color: var(--ink); }

.btn--ghost     { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover:not(:disabled)     { color: var(--ink); background: var(--sunk); }

.btn--danger    { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn--danger:hover:not(:disabled)    { background: var(--bad-tint); }

.btn--sm  { min-height: 36px; padding: 0 var(--s4); font-size: 14px; }
.btn--lg  { min-height: 52px; padding: 0 var(--s6); font-size: 16px; }
.btn--wide{ width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }


.field { display: block; margin-bottom: var(--s4); }

.field > label {
  display: block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);          
  margin-bottom: var(--s2);
}

.field input:not([type=checkbox]):not([type=radio]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--ui); font-size: 16px;   
  transition: border-color var(--quick);
}
.field textarea { min-height: 96px; resize: vertical; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 1px;
}

.field ::placeholder { color: var(--ink-faint); opacity: 1; }

.field-help  { margin: var(--s2) 0 0; font-size: 13px; color: var(--ink-soft); }

.field-error { margin: var(--s2) 0 0; font-size: 13px; font-weight: 600; color: var(--bad); }
.field-error::before { content: "! "; font-family: var(--mono); }
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea { border-color: var(--bad); background: var(--bad-tint); }

.field-consequence {
  margin: var(--s2) 0 0; padding: var(--s3);
  background: var(--sunk); border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-soft);
}
.field-consequence strong { color: var(--ink); font-weight: 700; }


.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.card--flat  { box-shadow: none; }
.card--lift  { box-shadow: var(--lift); }
.card--sunk  { background: var(--sunk); border-style: dashed; }

.card[data-product]  { border-left-width: 3px; }
.card[data-product="schedule"] { border-left-color: var(--schedule); }
.card[data-product="connect"]  { border-left-color: var(--connect); }
.card[data-product="reserve"]  { border-left-color: var(--reserve); }
.card[data-product="consult"]  { border-left-color: var(--consult); }

.row {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 64px;
  padding: var(--s3) var(--s4);
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
  text-align: left; width: 100%;
  border-left: 0; border-right: 0; border-top: 0;
  font-family: var(--ui); color: var(--ink);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--sunk); }
.row-main   { flex: 1 1 auto; min-width: 0; }
.row-title, .row-support {
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-title  { font-weight: 700; font-size: 15px; }
.row-support{ font-size: 13px; color: var(--ink-soft); }
.row-trail  { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s3); }

.row-mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--hairline); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; line-height: 1;
}
.row-mark[data-state="done"]    { border-color: var(--good); background: var(--good); color: #fff; }
.row-mark[data-state="done"]::after    { content: "."; font-weight: 800; position: relative; top: -4px; }
.row-mark[data-state="now"]     { border-color: var(--ember); background: var(--ember-tint); }
.row-mark[data-state="waiting"] { border-style: dashed; }


.status {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 3px var(--s3);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.status--good    { background: var(--good-tint); color: var(--good); border-color: var(--good); }
.status--warn    { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.status--bad     { background: var(--bad-tint);  color: var(--bad);  border-color: var(--bad); }
.status--neutral { background: var(--sunk); color: var(--ink-soft); border-color: var(--hairline); }


.notice {
  display: flex; gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: var(--card);
  font-size: 14px;
}
.notice-title { font-weight: 700; margin: 0 0 var(--s1); }
.notice-body  { margin: 0; color: var(--ink-soft); }
.notice--good { border-left-color: var(--good); background: var(--good-tint); }
.notice--warn { border-left-color: var(--warn); background: var(--warn-tint); }
.notice--bad  { border-left-color: var(--bad);  background: var(--bad-tint); }


.state {
  padding: var(--s7) var(--s5);
  text-align: center;
  background: var(--sunk);
  border: 1px dashed var(--hairline);
  border-radius: var(--r-lg);
}
.state-title { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 0 0 var(--s2); }
.state-body  { margin: 0 auto var(--s4); max-width: 46ch; color: var(--ink-soft); font-size: 14px; }

.state--loading { background: transparent; border-style: solid; border-color: transparent; }
.skeleton {
  background: linear-gradient(90deg, var(--sunk) 25%, #F3EEE8 37%, var(--sunk) 63%);
  background-size: 400% 100%;
  animation: sondu-shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
  height: 14px; margin-bottom: var(--s2);
}
@keyframes sondu-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.state--offline { border-color: var(--warn); background: var(--warn-tint); }


.switch {
  display: flex; flex-wrap: wrap;          
  gap: var(--s2);
  padding: var(--s2);
  background: var(--sunk);
  border-radius: var(--r-pill);
}
.switch button, .switch a {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 36px; padding: 0 var(--s4);
  border: 0; background: transparent; border-radius: var(--r-pill);
  font-family: var(--ui); font-size: 14px; font-weight: 700;
  color: var(--ink-soft); text-decoration: none; cursor: pointer;
}
.switch [aria-selected="true"], .switch .is-on {
  background: var(--card); color: var(--ink); box-shadow: var(--lift);
}
.switch [data-product]::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: currentColor;
}
.switch [data-product="schedule"]::before { background: var(--schedule); }
.switch [data-product="connect"]::before  { background: var(--connect); }
.switch [data-product="reserve"]::before  { background: var(--reserve); }
.switch [data-product="consult"]::before  { background: var(--consult); }

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroller::after {
  content: ""; position: sticky; right: 0; float: right;
  width: 28px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--paper));
  pointer-events: none;
}


.progress { display: flex; align-items: center; gap: var(--s3); }
.progress-text { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.progress-track { flex: 1 1 auto; height: 6px; background: var(--sunk); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill  { height: 100%; background: var(--ember); border-radius: var(--r-pill); transition: width var(--calm); }


.shell {
  max-width: 1080px; margin: 0 auto; padding: var(--s6) var(--s5);
  background: var(--paper);
  color: var(--ink);
}
.shell--narrow { max-width: 640px; }
.stack > * + * { margin-top: var(--s4); }
.stack--tight > * + * { margin-top: var(--s2); }
.stack--loose > * + * { margin-top: var(--s6); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--hairline);
}
.table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--hairline); }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }


@media (max-width: 1024px) {
  .shell { padding: var(--s5) var(--s4); }
}

@media (max-width: 768px) {
  .shell { padding: var(--s5) var(--s4); }
  .btn-row .btn { flex: 1 1 auto; }

  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack thead { display: none; }
  .table--stack tr { border-bottom: 1px solid var(--hairline); padding: var(--s3) 0; }
  .table--stack td { border: 0; padding: var(--s1) 0; display: flex; justify-content: space-between; gap: var(--s4); }
  .table--stack td::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  }
  .table--stack .num { text-align: left; }
}

@media (max-width: 480px) {
  .shell { padding: var(--s4) var(--s3); }

  .dock {
    position: sticky; bottom: 0; z-index: 20;
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--hairline);
  }
  .dock .btn { width: 100%; }

  .switch { gap: var(--s1); padding: var(--s1); }
  .switch button, .switch a { padding: 0 var(--s3); font-size: 13px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton { animation: none; background: var(--sunk); }
}


.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s4); top: -60px;
  padding: var(--s3) var(--s4);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm); z-index: 100;
  transition: top var(--quick);
}
.skip:focus { top: var(--s4); }

.done-mark { color: var(--ember); font-weight: 800; }
.done-mark::after { content: "."; }
