:root {
  --tile: #eef3f0;
  --paper: #fbfcfb;
  --ink: #14212b;
  --ink-soft: #46555f;
  --teal: #1d6b66;
  --teal-pale: #d7e7e3;
  --red: #b8322a;
  --blue: #1d4f7a;
  --chrome: #c9d3d0;
  --display: "Avenir Next Condensed", "Helvetica Neue Condensed", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Segoe UI", "Helvetica Neue", Roboto, "Liberation Sans", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--tile);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: condensed; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Demo banner: deliberately plain, outside the shop's own identity */
.demo-banner {
  margin: 0;
  padding: 8px var(--gutter);
  background: #ffffff;
  border-bottom: 1px solid #d5d9db;
  color: #3a3f44;
  font: 0.8125rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}
.demo-banner a { color: #1d4f7a; font-weight: 600; margin-left: 6px; white-space: nowrap; }

/* Header */
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand-mark { width: 40px; height: 40px; color: var(--ink); flex: none; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn-quiet { background: var(--paper); color: var(--ink); }
.text-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.sign {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 12.5vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.sign-line { display: block; }
.sign-line-2 {
  color: var(--teal);
}
.hero-lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-meta { margin-top: 22px; color: var(--ink-soft); font-size: 0.95rem; }

.hero-pole { width: clamp(110px, 13vw, 170px); }
.hero-pole svg { display: block; width: 100%; height: auto; }
.pole-stripes { animation: pole-turn 3.2s linear infinite; }
@keyframes pole-turn { from { transform: translateY(0); } to { transform: translateY(-80px); } }

/* Checker floor strip */
.floor {
  height: 36px;
  background-color: var(--paper);
  background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  background-size: 36px 36px;
  border-block: 3px solid var(--ink);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}
.section-intro { max-width: 36em; margin-bottom: 32px; }
.section-intro h2, .hours h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; }
.section-intro p { margin-top: 10px; color: var(--ink-soft); }

/* Price board */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.price-board {
  list-style: none;
  margin: 0;
  padding: 12px clamp(20px, 3vw, 36px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  border: 6px solid #2c3a44;
  box-shadow: inset 0 0 0 2px #0e1820;
}
.price-board li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 18px 0;
  border-bottom: 1px dashed #3e4d58;
}
.price-board li:last-child { border-bottom: 0; }
.pb-name { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.pb-lead { border-bottom: 2px dotted #6a7a85; transform: translateY(-6px); }
.pb-price { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: #f2c14e; font-variant-numeric: tabular-nums; }
.pb-note { grid-column: 1 / -1; color: #b7c3c9; font-size: 0.95rem; }

/* Barbers */
.chair-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.chair { border-top: 3px solid var(--ink); padding-top: 24px; }
.monogram {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 8px var(--ink);
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 900;
  font-size: 3.1rem;
  line-height: 1;
  color: var(--paper);
}
.monogram-red { background: var(--red); }
.monogram-blue { background: var(--blue); }
.monogram-teal { background: var(--teal); }
.chair h3 { margin-top: 18px; font-size: 2rem; font-weight: 900; }
.chair p { margin-top: 8px; max-width: 30em; }
.chair .chair-days { margin-top: 12px; font-weight: 700; color: var(--teal); font-size: 0.95rem; }

/* Booking widget */
.widget {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}
.widget-steps { padding: clamp(18px, 3vw, 36px); display: grid; gap: 28px; min-width: 0; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.35rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.85rem/1 var(--body);
}

.choice-grid { display: grid; gap: 10px; }
.choice-grid-services { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice-grid-barbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--chrome);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choice:hover { border-color: var(--ink-soft); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--teal-pale); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-main { font-weight: 700; font-size: 0.98rem; }
.choice-sub { font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.choice-barber { flex-direction: row; align-items: center; gap: 10px; }
.mini-mono {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font: 800 0.95rem/1 var(--display);
  font-stretch: condensed;
}
.mini-mono-any { background: #fff; color: var(--ink); border: 2px dashed var(--ink-soft); }

.day-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 72px;
  padding: 8px 4px;
  border: 2px solid var(--chrome);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.day:hover { border-color: var(--ink-soft); }
.day[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.day-name { font-size: 0.82rem; font-weight: 600; }
.day-num { font: 800 1.6rem/1.1 var(--display); font-stretch: condensed; font-variant-numeric: tabular-nums; }
.day-flag { font-size: 0.72rem; font-weight: 700; color: var(--red); }
.day[aria-pressed="true"] .day-flag { color: #f2c14e; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  min-height: 44px;
  border: 2px solid var(--chrome);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 700 0.98rem/1 var(--body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.slot:hover { border-color: var(--teal); }
.slot[aria-pressed="true"] { background: var(--teal); border-color: var(--ink); color: #fff; }
.slot:disabled { cursor: not-allowed; color: #9aa7ad; background: repeating-linear-gradient(-45deg, #f1f4f3 0 6px, #e6ebe9 6px 12px); border-color: #e0e6e4; text-decoration: line-through; }
.slot-hint { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }

.full-day {
  padding: 18px;
  border: 2px dashed var(--red);
  border-radius: 12px;
  background: #fbefee;
}
.full-day-title { font-weight: 800; color: var(--red); font-size: 1.05rem; }
.full-day p + p { margin-top: 6px; }
.full-day .btn { margin-top: 14px; }
.full-day-done { margin-top: 12px; font-weight: 700; color: var(--teal); }

.widget-summary {
  padding: clamp(18px, 3vw, 36px);
  background: var(--teal-pale);
  border-left: 3px solid var(--ink);
  min-width: 0;
}
.summary-title { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.summary-empty p:not(.summary-title) { color: var(--ink-soft); }

.summary-full { animation: panel-in .25s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ticket {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 18px 20px;
}
.ticket dl { margin: 0; display: grid; gap: 8px; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3e9e7; padding-bottom: 8px; }
.ticket dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ticket dt { color: var(--ink-soft); font-size: 0.92rem; }
.ticket dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ticket-total dd { font-size: 1.15rem; }

.reminder-head { margin-top: 22px; font-weight: 700; }
.reminder-text { margin-top: 4px; font-size: 0.95rem; }
.bubble {
  margin-top: 12px;
  max-width: 320px;
  padding: 12px 14px 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px 16px 16px 4px;
  font-size: 0.93rem;
}
.bubble-from { font-size: 0.78rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.bubble-actions { display: flex; gap: 8px; margin-top: 10px; }
.bubble-actions button {
  flex: 1;
  min-height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.9rem/1 var(--body);
  cursor: pointer;
}
.bubble-actions button:first-child { background: var(--teal); color: #fff; }
.bubble-reply { margin-top: 8px; font-size: 0.85rem; font-weight: 700; color: var(--teal); }

.summary-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.summary-done { margin-top: 14px; font-weight: 700; }
.summary-done small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }

/* Hours and rebooking */
.hours {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hours-list { margin: 24px 0 0; padding: 0; max-width: 420px; }
.hours-list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--chrome); }
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours-note { margin-top: 20px; color: var(--ink-soft); }
.hours-note a { color: var(--ink); font-weight: 700; }

.rebook-block {
  align-self: start;
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  border-top: 14px solid var(--teal);
}
.rebook-block h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.rebook-lede { margin-top: 12px; font-size: 1.2rem; font-weight: 700; }
.rebook-block p + p { margin-top: 12px; }

/* Footer */
.site-foot {
  background: var(--ink);
  color: #cdd6da;
  padding: 36px var(--gutter);
  border-top: 3px solid var(--ink);
}
.site-foot > * { max-width: var(--max); margin-inline: auto; }
.foot-brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; }
.foot-name { font: 900 1.6rem/1 var(--display); font-stretch: condensed; color: #fff; }
.foot-demo { margin-top: 18px; font-size: 0.88rem; color: #93a2aa; }
.site-foot a { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .services, .hours { grid-template-columns: 1fr; }
  .widget { grid-template-columns: 1fr; }
  .widget-summary { border-left: 0; border-top: 3px solid var(--ink); }
  .chair-list { grid-template-columns: 1fr; gap: 0; }
  .chair { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; padding: 22px 0; }
  .chair .monogram { grid-row: 1 / span 3; width: 76px; height: 76px; font-size: 2.4rem; }
  .chair h3 { margin-top: 0; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-head .btn-small { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr) 40px; gap: 16px 12px; align-items: end; }
  .hero-pole { width: 40px; grid-column: 2; grid-row: 1; }
  .sign { font-size: 14vw; }
  .hero-copy { display: contents; }
  .sign { grid-column: 1; grid-row: 1; }
  .hero-lede, .hero-actions, .hero-meta { grid-column: 1 / -1; }
  .hero-lede { margin-top: 8px; }
  .hero-actions { margin-top: 0; }
  .hero-meta { margin-top: 0; }
  .choice-grid-barbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-board li { grid-template-columns: auto 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pole-stripes, .summary-full { animation: none; }
  .btn { transition: none; }
}
