/* Page chrome = the RunTheChair platform. The phone = the barber's brand (CSS variables set per barber by app.js). */
:root {
  --page-bg: #101014; --page-text: #F2F1EE; --page-muted: #9B9AA3; --page-line: #26262D; --page-accent: #E8C15A;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #22222b 0%, var(--page-bg) 60%) fixed, var(--page-bg);
  color: var(--page-text); font-family: 'Inter', system-ui, sans-serif; min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }

.stage { display: grid; grid-template-columns: minmax(300px, 460px) auto; gap: 64px; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 32px; }
.pitch h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin: 18px 0 14px; font-weight: 700; }
.pitch h1 span { color: var(--page-accent); }
.lede { color: var(--page-muted); font-size: 16px; line-height: 1.55; margin: 0 0 22px; }
.brandmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.02em; }
.brandmark em { font-style: normal; font-weight: 500; color: var(--page-muted); border: 1px solid var(--page-line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.brandmark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--page-accent); box-shadow: 0 0 0 4px rgba(232,193,90,.18); }

.switch { display: grid; gap: 10px; margin-bottom: 14px; }
.sw { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--page-line); background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.sw:hover { border-color: #3a3a44; }
.sw[aria-selected="true"] { border-color: var(--page-accent); background: rgba(232,193,90,.07); }
.sw .thumb { width: 48px; height: 48px; border-radius: 10px; background-size: cover; background-position: center; }
.sw b { display: block; font-size: 15px; }
.sw small { color: var(--page-muted); font-size: 13px; }
.sw .chip { font-size: 11px; color: var(--page-muted); border: 1px solid var(--page-line); border-radius: 999px; padding: 2px 8px; }
.sw .swatches { display: flex; gap: 4px; margin-top: 4px; }
.sw .swatches i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.15); }

.pitch-row { display: flex; gap: 10px; margin-bottom: 22px; }
.lang, .reset { background: transparent; border: 1px solid var(--page-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--page-text); }
.lang:hover, .reset:hover { border-color: #44444f; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; color: var(--page-muted); font-size: 14px; }
.facts b { color: var(--page-text); }
.fine { color: #6e6d76; font-size: 12px; margin: 0; }

/* Device */
.device-wrap { display: flex; justify-content: center; }
.device { position: relative; width: 390px; height: 820px; border-radius: 54px; padding: 12px; background: #050506; box-shadow: 0 0 0 2px #2a2a31, 0 40px 120px rgba(0,0,0,.6); }
.notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #050506; border-radius: 20px; z-index: 30; }
.app { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--body); display: flex; flex-direction: column; }

/* ===== Barber app (themed) ===== */
.app h1, .app h2, .app h3, .app .head { font-family: var(--head); text-transform: var(--head-tt); letter-spacing: var(--head-ls); margin: 0; font-weight: 700; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-bottom: 24px; }
.scroll::-webkit-scrollbar { display: none; }
.statusbar { height: 50px; flex: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 30px 8px; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--text); pointer-events: none; }
.statusbar.light { color: #fff; }
.pad { padding: 0 20px; }
.topbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 58px 16px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar h2 { font-size: 20px; flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 18px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: var(--btn-radius); background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 16px; padding: 15px 18px; font-family: var(--body); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.dark { background: #000; color: #fff; }
.btn.small { width: auto; padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dark-theme .link { color: var(--primary); }

.section { margin-top: 26px; }
.section > .h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px; margin-bottom: 12px; }
.section > .h h3 { font-size: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Heroes */
.hero-full { position: relative; height: 430px; background-size: cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; }
.hero-full::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, var(--bg) 100%); }
.hero-full > * { position: relative; }
.hero-full h1 { font-size: 46px; line-height: .95; color: #fff; }
.hero-full .tag { margin: 8px 0 14px; font-size: 15px; color: #e6e6e6; }
.hero-full .meta { display: flex; gap: 10px; font-size: 13px; color: #fff; margin-bottom: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-full .meta b { color: var(--primary); }

.hero-calm { padding: 60px 20px 0; text-align: center; }
.hero-calm .wordmark { font-family: var(--head); font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.hero-calm .est { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.hero-calm .photo { height: 250px; border-radius: 28px; background-size: cover; margin: 18px 0 18px; }
.hero-calm .greet { font-family: var(--head); font-size: 28px; line-height: 1.1; }
.hero-calm .tag { color: var(--muted); margin: 6px 0 16px; }

.hero-banner .photo { height: 210px; background-size: cover; position: relative; }
.hero-banner .photo::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.hero-banner .id { display: flex; gap: 14px; align-items: flex-end; padding: 0 20px; margin-top: -34px; position: relative; }
.hero-banner .avatar { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--bg); background-size: cover; background-position: 50% 25%; flex: none; }
.hero-banner h1 { font-size: 22px; line-height: 1.1; padding-bottom: 2px; }
.hero-banner .sub { padding: 10px 20px 0; color: var(--muted); }
.hero-banner .cta { padding: 16px 20px 0; }
.pole { display: inline-block; width: 8px; height: 22px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--primary) 0 5px, #fff 5px 10px, var(--accent) 10px 15px, #fff 15px 20px); vertical-align: middle; margin-right: 6px; border: 1px solid var(--line); }

/* Sections */
.walkin { display: flex; align-items: center; gap: 14px; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,46,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,77,46,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,46,0); } }
.next .when { font-family: var(--head); font-size: 22px; margin: 4px 0; }
.nudge { border-left: 4px solid var(--primary); }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 20px; }
.pf-grid .tile { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: var(--radius); position: relative; overflow: hidden; }
.pf-grid .tile span, .pf-car .tile span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; }
.pf-car { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pf-car::-webkit-scrollbar { display: none; }
.pf-car .tile { flex: 0 0 72%; aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: var(--radius); scroll-snap-align: start; position: relative; }

.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }
.svc-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 128px; color: var(--text); }
.svc-card .n { font-family: var(--head); text-transform: var(--head-tt); font-size: 15px; line-height: 1.15; }
.svc-card .p { font-size: 26px; font-weight: 800; color: var(--primary); margin-top: auto; }
.svc-card small { color: var(--muted); }
.svc-menu { padding: 0 20px; }
.svc-menu button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; text-align: left; color: var(--text); }
.svc-menu .t { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); font-size: 21px; }
.svc-menu .t .dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-5px); }
.svc-menu small { color: var(--muted); }
.svc-list { padding: 0 20px; display: grid; gap: 8px; }
.svc-list .item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.svc-list .item b { font-family: var(--head); font-size: 17px; }

.member { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 18px; margin: 0 20px; position: relative; overflow: hidden; }
.member h3 { font-size: 22px; color: var(--on-primary); }
.member .amt { font-size: 30px; font-weight: 800; }
.member .btn { background: var(--on-primary); color: var(--primary); margin-top: 12px; }
.member::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.12); }

.quotes { display: grid; gap: 10px; padding: 0 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.quote .q { font-family: var(--head); text-transform: var(--head-tt); font-size: 18px; line-height: 1.25; }
.quote .q::before { content: '“'; color: var(--primary); font-size: 34px; line-height: 0; vertical-align: -12px; margin-right: 4px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.map { height: 120px; border-radius: var(--radius); margin-top: 10px; background:
  linear-gradient(90deg, transparent 48%, var(--line) 48% 52%, transparent 52%) 0 0 / 60px 60px,
  linear-gradient(0deg, transparent 48%, var(--line) 48% 52%, transparent 52%) 0 0 / 60px 60px, var(--surface2); position: relative; }
.map::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--primary); transform: translate(-50%,-70%) rotate(-45deg); box-shadow: 0 0 0 4px rgba(0,0,0,.08); }

/* Flow */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chipbtn { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.chipbtn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); margin-bottom: 8px; }
.opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.opt .box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.opt.check .box { border-radius: 6px; }
.opt[aria-pressed="true"] .box { border-color: var(--primary); background: var(--primary); }
.opt[aria-pressed="true"] .box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--on-primary); }
.opt.check[aria-pressed="true"] .box::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid var(--on-primary); border-bottom: 2px solid var(--on-primary); transform: rotate(-45deg) translate(1px, -1px); }
.opt b { font-family: var(--head); text-transform: var(--head-tt); font-size: 16px; display: block; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 58px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 10px 0; text-align: center; }
.day small { display: block; font-size: 12px; color: var(--muted); }
.day b { font-size: 20px; }
.day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.day[aria-pressed="true"] small { color: var(--on-primary); opacity: .8; }
.day[disabled] { opacity: .35; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--btn-radius); padding: 12px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sticky { flex: none; padding: 12px 20px 26px; border-top: 1px solid var(--line); background: var(--bg); }
.sticky .sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sticky .sum b { color: var(--text); }
.lines { display: grid; gap: 8px; font-size: 15px; }
.lines .l { display: flex; justify-content: space-between; gap: 10px; }
.lines .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.policy { background: var(--surface2); border-radius: var(--radius); padding: 14px; font-size: 14px; line-height: 1.5; margin-top: 14px; }
.policy b { display: block; margin-bottom: 4px; }
.tipnote { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.toast { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }

.confirm { text-align: center; padding: 90px 24px 10px; }
.bigcheck { width: 86px; height: 86px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; margin: 0 auto 18px; font-size: 42px; font-weight: 800; }
.confirm h1 { font-size: 30px; line-height: 1.05; }
.confirm .when { font-size: 17px; margin: 10px 0 4px; font-weight: 600; }

.cut-photo { height: 240px; border-radius: var(--radius); background-size: cover; background-position: center; }
.hist { display: grid; gap: 8px; }
.powered { text-align: center; font-size: 11px; color: var(--muted); margin: 26px 0 0; opacity: .8; }

/* Tab bar */
.tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--bg); padding: 8px 8px 24px; }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--primary); }
.dark-theme .tab[aria-current="page"] { color: var(--primary); }
.fab { background: var(--primary); color: var(--on-primary); border-radius: var(--btn-radius); margin: -2px 10px 0; padding: 8px 0; }
.tab.fab[aria-current="page"] { color: var(--on-primary); }

/* Phones: drop the device frame, the app fills the screen */
@media (max-width: 900px) {
  .stage { display: flex; flex-direction: column; align-items: stretch; height: 100vh; height: 100dvh; min-height: 0; padding: 0; gap: 0; }
  .pitch { flex: none; }
  .device-wrap { flex: 1; min-height: 0; display: block; }
  .pitch { padding: 16px 16px 10px; }
  .pitch h1 { font-size: 26px; margin: 10px 0 8px; }
  .lede, .facts, .fine { display: none; }
  .switch { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
  .sw { grid-template-columns: 1fr; padding: 8px; text-align: center; gap: 4px; }
  .sw .thumb { width: 100%; height: 44px; }
  .sw small, .sw .chip, .sw .swatches { display: none; }
  .sw b { font-size: 12px; }
  .pitch-row { margin-bottom: 8px; }
  .lang, .reset { padding: 6px 12px; font-size: 13px; }
  .device { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
  .notch { display: none; }
  .app { border-radius: 0; }
  .statusbar { display: none; }
  .topbar { padding-top: 14px; }
  .hero-calm { padding-top: 24px; }
  .confirm { padding-top: 48px; }
}
