/* TABLO — visual language after qoves.com:
   paper ground, deep-teal ink and dark bands, hairlines, thin display serif with italics,
   wide-tracked mono annotations, pill buttons. Fonts are OFL stand-ins for Denton /
   PP Neue Montreal / F37 Zagma (Fraunces, Hanken Grotesk, DM Mono). */
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,300;0,9..144,400;1,9..144,200;1,9..144,300&family=Hanken+Grotesk:wght@300;400;500;600&display=swap");

:root {
  --paper: #f2f5f5;
  --card: #ffffff;
  --ink: #233137;
  --ink-2: #515255;
  --steel: #758084;
  --mist: #9aaeb5;
  --frost: #cddbe1;
  --ice: #d1ebf2;
  --line: #e3e7e8;
  --line-2: #eef1f1;
  --deep: #233137;
  --deep-2: #2d3b41;
  --deep-line: rgba(242, 245, 245, .12);
  --on-deep: #f2f5f5;
  --on-deep-2: rgba(242, 245, 245, .62);

  /* table states */
  --free: #0c6826;
  --free-bg: #e6f2ea;
  --seated: #233137;
  --seated-bg: #e3eef2;
  --waiting: #c96d06;
  --waiting-bg: #fbefdf;
  --dirty: #bb3030;
  --dirty-bg: #f8e9e9;
  /* the same states, bright enough to sit on video / deep teal */
  --free-l: #7fd69b;
  --seated-l: #d1ebf2;
  --waiting-l: #f5a54a;
  --dirty-l: #ef8a8a;

  --shadow: 0 1px 2px rgba(35, 49, 55, .04), 0 8px 28px -12px rgba(35, 49, 55, .14);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --radius: 18px;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
  min-height: 100dvh; overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ice); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif); font-weight: 200; font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em; line-height: 1;
}
.display em { font-style: italic; font-weight: 200; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); line-height: 1.3; font-weight: 400;
}
.on-deep .eyebrow { color: var(--on-deep-2); }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  height: 68px; padding: 0 var(--gutter); background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .3s var(--quart), color .3s; }
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-links a.on { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); flex: none; }
.dot.live { background: var(--free); box-shadow: 0 0 0 3px color-mix(in srgb, var(--free) 20%, transparent); animation: breathe 2.4s var(--quart) infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--free) 0%, transparent); } }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.band { background: var(--deep); color: var(--on-deep); }
.band.on-deep { --line: var(--deep-line); }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }

.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "opsz" 144; }
.section-head h2 em { font-style: italic; }
.idx { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mist); display: block; margin-bottom: 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .35s var(--quart), border-color .35s var(--quart), transform .35s var(--expo);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.btn.solid:hover { background: var(--deep-2); }
.btn.light { background: var(--on-deep); border-color: var(--on-deep); color: var(--deep); }
.btn.ghost-deep { background: transparent; border-color: rgba(242, 245, 245, .3); color: var(--on-deep); }
.btn.ghost-deep:hover { border-color: var(--on-deep); }
.btn.sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn.danger:hover { border-color: var(--dirty); color: var(--dirty); }
.btn:disabled { opacity: .4; cursor: default; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.field small { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--mist); font-size: 12.5px; }
input, select {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 15px; transition: border-color .3s, box-shadow .3s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23758084' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line-2); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--deep); }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-free { color: var(--free); }
.st-seated { color: var(--seated); }
.st-waiting { color: var(--waiting); }
.st-dirty { color: var(--dirty); }

.empty { padding: 40px 20px; text-align: center; color: var(--steel); font-size: 14.5px; }
.empty a { color: var(--ink); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: grid; gap: 4px; background: var(--deep); color: var(--on-deep); padding: 16px 18px; border-radius: 16px;
  box-shadow: 0 20px 50px -18px rgba(35, 49, 55, .6); animation: toast-in .6s var(--expo) both;
}
.toast .eyebrow { color: var(--waiting-l); }
.toast.dirty .eyebrow { color: var(--dirty-l); }
.toast.info .eyebrow { color: var(--free-l); }
.toast b { font-weight: 500; font-size: 15px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.reveal { animation: rise .8s var(--expo) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.demo-flag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ice); color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

.foot { padding: 64px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .nav { height: auto; flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 10px; }
  .nav-links { order: 3; width: 100%; margin: 0 -4px; }
  .nav-links a { padding: 7px 12px; }
  .section { padding-top: 44px; }
  .toasts { right: 16px; bottom: 16px; }
}
