/* public/style.css — OpenSeat barber app. Phone-first. */
:root {
  --ink: #1e2a26;
  --green: #2f5d50;
  --green-soft: #e3ece8;
  --brass: #b88a3b;
  --paper: #f6f7f4;
  --card: #ffffff;
  --line: #d9ded9;
  --muted: #5f6b66;
  --alert: #b4442f;
  --alert-soft: #f7e6e2;
  --ok: #2f7a4f;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --font: "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  padding-bottom: 84px;
}
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 32px; }
h1, h2, h3 { font-stretch: 75%; font-weight: 800; line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 24px; margin-top: 28px; }
h3 { font-size: 18px; font-stretch: 90%; font-weight: 700; }
p { margin: 0 0 12px; max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* The memorable element: the chair card showing what's being promoted. */
.chair {
  background: var(--green); color: #fff; border-radius: var(--radius-lg);
  padding: 22px 20px 20px; margin: 4px 0 20px; position: relative; overflow: hidden;
}
.chair::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brass); }
.chair .day { font-size: 22px; font-weight: 700; font-stretch: 85%; margin-top: 6px; }
.chair .when { font-size: 64px; font-stretch: 62%; font-weight: 900; line-height: 0.95; margin: 2px 0 14px; letter-spacing: -0.02em; }
.chair.off .when, .chair.idle .when { font-size: 34px; }
.chair .state { font-size: 15px; opacity: 0.85; }
.chair.idle { background: var(--ink); }
.chair.off { background: #4a5551; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid var(--line); color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }

button, .button {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  background: var(--green); color: #fff; text-decoration: none; display: inline-block; min-height: 44px;
}
button.secondary, .button.secondary { background: var(--green-soft); color: var(--green); }
button.danger { background: var(--alert); }
button.link { background: none; color: var(--green); padding: 8px 0; text-decoration: underline; min-height: 0; }
button:disabled { opacity: 0.5; cursor: default; }
.chair button { background: #fff; color: var(--green); }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=time], input[type=number], select {
  font: inherit; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); }
.hint { font-size: 14px; color: var(--muted); margin-top: 4px; }

.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.pill.bad { background: var(--alert-soft); color: var(--alert); }
.pill.wait { background: #f1ead9; color: #7a5b22; }
.pill.sim { background: #e8e5f4; color: #4b3f8a; }

.notice { border-left: 4px solid var(--alert); background: var(--alert-soft); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 14px; }
.notice.info { border-color: var(--brass); background: #f6f0e3; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: crosshair; }
.photo .dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.photo button { position: absolute; right: 6px; bottom: 6px; padding: 6px 12px; min-height: 0; font-size: 13px; background: rgba(255,255,255,0.92); color: var(--alert); }

.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.previews figure { margin: 0; }
.previews img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; background: var(--line); }
.previews figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

.promo { border-top: 1px solid var(--line); padding: 14px 0; }
.promo:first-child { border-top: 0; }
.promo .when { font-weight: 800; font-stretch: 80%; font-size: 20px; }
.stage { margin-top: 8px; }
.stage-name { font-size: 14px; color: var(--muted); }
.dests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs a { text-align: center; padding: 12px 4px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
nav.tabs a.active { color: var(--green); box-shadow: inset 0 3px 0 var(--green); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; z-index: 10; }
.sim-banner { background: #e8e5f4; color: #4b3f8a; text-align: center; font-size: 14px; padding: 8px 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
