/* ============ Sayze — shared styles (mobile first) ============ */
:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --line: #2A2A2A;
  --text: #F5F5F4;
  --muted: #A3A3A3;
  --orange: #FF6A13;
  --orange-soft: rgba(255, 106, 19, 0.12);
  --orange-line: rgba(255, 106, 19, 0.35);
  --ok: #3DDC84;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--orange); }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .3px; }
.logo { width: 36px; height: 36px; flex: none; }
.header-links { display: flex; align-items: center; gap: 8px; }
.header-links .text-link { display: none; text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 10px; }
.header-links .text-link:hover { color: var(--text); }
.header-links .text-link.always { display: inline-block; padding: 8px 6px; }
.hide-sm { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #0B0B0B; }
.btn-primary:hover { background: #FF7D33; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange-line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid #161616; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--orange);
  background: var(--orange-soft); border: 1px solid var(--orange-line);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h2 { font-size: 30px; margin-bottom: 12px; }
h3 { font-size: 20px; }
.section-lead { color: var(--muted); max-width: 620px; margin-bottom: 32px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,106,19,.22), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { font-size: 38px; font-weight: 900; margin-bottom: 18px; letter-spacing: -.5px; }
.hero p.lead { font-size: 19px; color: #D4D4D4; max-width: 560px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.hero-proof span::before { content: "✓"; color: var(--orange); font-weight: 800; margin-left: 6px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); margin-bottom: 14px; font-size: 22px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* problems */
.problem .stat { font-size: 15px; font-weight: 700; color: var(--orange); margin-top: 12px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 22px; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #0B0B0B; font-weight: 900; margin-bottom: 12px;
}

/* ---------- calculator ---------- */
.calc { display: grid; gap: 14px; }
.calc-inputs { display: grid; gap: 22px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.field-label output { color: var(--orange); font-size: 22px; font-weight: 800; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px;
  background: linear-gradient(to left, var(--orange) var(--fill, 50%), #333 var(--fill, 50%));
  outline-offset: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--orange); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--orange); cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #0B0B0B; }

.calc-result { background: linear-gradient(160deg, #1d1006, var(--surface) 60%); border-color: var(--orange-line); }
.result-big { font-size: 46px; font-weight: 900; color: var(--orange); line-height: 1.1; margin: 4px 0 6px; }
.result-rows { display: grid; gap: 10px; margin: 18px 0 22px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.result-row b { white-space: nowrap; }
.result-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- features ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .icon-badge { flex: none; margin-bottom: 0; }

/* ---------- chat demo ---------- */
.demo-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.grid > *, .calc > *, .demo-wrap > * { min-width: 0; }
.phone {
  width: 100%; max-width: 380px; margin: 0 auto;
  background: #000; border: 1px solid #2f2f2f; border-radius: 34px; padding: 10px;
  box-shadow: 0 30px 80px rgba(255,106,19,.10);
}
.phone-screen { background: #0f0f0f; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #171717; border-bottom: 1px solid #222; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; font-weight: 900; }
.chat-head .who { line-height: 1.25; }
.chat-head .who b { display: block; font-size: 16px; }
.chat-head .who small { color: var(--ok); font-size: 12.5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-line; animation: pop .2s ease; }
.msg.bot { background: #1F1F1F; align-self: flex-start; border-top-right-radius: 4px; }
.msg.user { background: var(--orange); color: #0B0B0B; align-self: flex-end; border-top-left-radius: 4px; font-weight: 500; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #777; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-chips { padding: 10px; border-top: 1px solid #222; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips .chip { flex: none; min-height: 38px; font-size: 14px; }
.chat-chips .chip:disabled { opacity: .45; cursor: default; }
.demo-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- founders CTA ---------- */
.founders { text-align: center; }
.founders .card {
  padding: 40px 22px; border-color: var(--orange-line);
  background: radial-gradient(circle at 50% 0%, rgba(255,106,19,.18), var(--surface) 70%);
}
.founders h2 { font-size: 32px; }
.founders p { color: #D4D4D4; max-width: 520px; margin: 0 auto 24px; }
.founders ul { list-style: none; display: grid; gap: 8px; max-width: 420px; margin: 0 auto 28px; text-align: right; }
.founders li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-left: 10px; }
.founders .hero-ctas { max-width: 420px; margin: 0 auto; }
.spots { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.spots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.6s infinite; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 110px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-me { font-size: 14px; color: var(--muted); }
.footer-me a { color: var(--orange); text-decoration: none; }

/* floating WhatsApp (mobile) */
.wa-float {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.wa-float svg { width: 30px; height: 30px; }

/* ============ forms (/join) ============ */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.page-head p { color: var(--muted); }
.form-section { padding: 24px 0; border: 0; }
.form-card { display: grid; gap: 18px; }
.form-card h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.form-card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #0B0B0B; font-size: 15px; display: grid; place-items: center; flex: none; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: 16px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; /* prevents iOS zoom */
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.input:user-invalid, .select:user-invalid { border-color: #ff4d4d; }
.row-2 { display: grid; gap: 14px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-grid .field label { font-size: 14px; color: var(--muted); font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; cursor: pointer;
}
.radio-chips input:checked + span { background: var(--orange); border-color: var(--orange); color: #0B0B0B; }
.radio-chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.terms-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-size: 15px; color: #D4D4D4; }
.terms-box ul { padding-right: 18px; display: grid; gap: 6px; margin-top: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.check input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; margin-top: 2px; }
.check a { color: var(--orange); }

.success { display: none; text-align: center; padding: 40px 22px; }
.success.show { display: block; }
.success .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; font-size: 38px; font-weight: 900; margin: 0 auto 18px; }
.success h2 { margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 22px; }

/* ============ legal (/terms) ============ */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal .draft { background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; display: flex; gap: 10px; }
.legal h2 .n { color: var(--orange); }
.legal p, .legal li { color: #D4D4D4; margin-bottom: 8px; }
.legal ul { padding-right: 20px; }
.legal .key { background: var(--surface); border-right: 3px solid var(--orange); padding: 14px 16px; border-radius: 8px; margin: 12px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--orange-line); }

/* ============ utilities ============ */
[hidden] { display: none !important; }
.ltr { direction: ltr; text-align: right; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; padding: 0; }

/* ============ join: alerts, handle, result links ============ */
.form-alert { border-color: #ff4d4d; background: rgba(255,77,77,.08); color: #ffb3b3; margin: 8px 0 0; padding: 14px 18px; font-weight: 600; }
.input.invalid, .textarea.invalid { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.15); }
.handle-wrap { display: flex; align-items: stretch; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.handle-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.handle-prefix { flex: none; display: flex; align-items: center; padding: 0 0 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.handle-wrap .input { border: 0; box-shadow: none; padding-left: 2px; min-width: 0; direction: ltr; text-align: left; }
.success .link-box { text-align: right; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; }
.success .link-box.secret { border-color: var(--orange-line); }
.link-label { font-weight: 800; margin-bottom: 8px; }
.link-value { background: #0f0f0f; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; word-break: break-all; color: var(--text); user-select: all; }
.link-warn { font-size: 14px; color: #ffc9a6 !important; margin: 0 0 10px !important; }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ============ join: weekly hours table ============ */
.hours-table { display: grid; gap: 6px; border-radius: var(--radius-sm); }
.hours-table.invalid { outline: 2px solid #ff4d4d; outline-offset: 4px; }
.hours-row {
  display: grid; grid-template-columns: 58px 52px 1fr; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; min-height: 58px;
}
.hours-row.bad { border-color: #ff4d4d; }
.hours-day { font-weight: 700; font-size: 15.5px; }
.hours-times { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hours-times .dash { color: var(--muted); font-size: 14px; }
.input.time {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding: 6px 4px; flex: 1; min-width: 0;
  text-align: center; text-align-last: center; background: #141414; color-scheme: dark; cursor: pointer;
  font-variant-numeric: tabular-nums; font-size: 16px;
}
.hours-closed { display: none; color: var(--muted); font-size: 15px; }
.hours-row.closed .hours-times { display: none; }
.hours-row.closed .hours-closed { display: block; }
.hours-row.closed .hours-day { color: var(--muted); }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; background: #3a3a3a; border-radius: 99px; transition: background .2s; }
.switch .slider::before {
  content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.switch input:checked + .slider { background: var(--orange); }
.switch input:checked + .slider::before { transform: translateX(-20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--orange); outline-offset: 2px; }

.hours-copy { justify-self: start; margin-top: 4px; }
.hours-preview { font-size: 14px; color: var(--muted); background: #141414; border-radius: 10px; padding: 10px 12px; }
.hours-preview.warn { color: #ffb3b3; background: rgba(255,77,77,.08); }

/* ============ join: step-by-step wizard ============ */
.join-main { max-width: 760px; }
.join-page .page-head { padding-bottom: 16px; }
.wiz-head {
  position: sticky; top: 64px; z-index: 30; margin: 0 calc(var(--gutter) * -1);
  padding: 12px var(--gutter) 10px; background: rgba(11,11,11,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1c1c1c;
}
.wiz-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wiz-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.wiz-title { font-size: 18px; font-weight: 800; }
.wiz-bar { height: 6px; background: #222; border-radius: 99px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8b47, var(--orange)); border-radius: 99px; transition: width .35s ease; margin-inline-start: 0; }
.wiz-dots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.wiz-dots::-webkit-scrollbar { display: none; }
.wiz-dot {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.wiz-dot .dot-icon { font-size: 15px; }
.wiz-dot.done { color: var(--text); border-color: #333; }
.wiz-dot[aria-selected="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--text); }
.wiz-dot:disabled { opacity: .45; cursor: default; }
.wiz-step { margin-top: 16px; animation: pop .25s ease; }
.step-lead { color: var(--muted); font-size: 15.5px; margin-top: -4px; }
.wiz-nav {
  position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; margin: 16px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(11,11,11,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid #1c1c1c;
}
.wiz-nav .btn { flex: 1; }
.wiz-nav #wiz-prev { flex: 0 0 auto; }
.wiz-nav .btn:disabled { opacity: .4; cursor: default; }
.join-page .form-alert { margin-top: 14px; }

/* services table */
.services-table { display: grid; gap: 6px; border-radius: var(--radius-sm); }
.services-table.invalid { outline: 2px solid #ff4d4d; outline-offset: 4px; }
.service-row {
  display: grid; grid-template-columns: 1fr 104px 40px; grid-template-areas: "name name del" "price min min"; gap: 8px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
}
.service-row.bad { border-color: #ff4d4d; }
.service-row .s-name { grid-area: name; min-height: 44px; background: #141414; }
.service-row .s-price-wrap { grid-area: price; position: relative; }
.service-row .s-price { min-height: 44px; background: #141414; padding-left: 30px; text-align: center; }
.service-row .s-price-wrap .unit { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.service-row .s-min { grid-area: min; min-height: 44px; }
.service-row .s-remove { grid-area: del; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.service-row .s-remove:hover { color: #ff8a8a; border-color: rgba(255,77,77,.45); }
.add-service { justify-self: start; margin-top: 4px; }
@media (min-width: 560px) {
  .service-row { grid-template-columns: 1fr 110px 120px 40px; grid-template-areas: "name price min del"; }
}

/* head shapes */
.shape-grid { display: grid; gap: 10px; }
.shape-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.shape-card:focus-within { border-color: var(--orange-line); }
.shape-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.shape-icon { width: 38px; height: 38px; flex: none; fill: rgba(255,106,19,.12); stroke: var(--orange); stroke-width: 3.5; stroke-linejoin: round; }
.shape-card .textarea { min-height: 64px; background: #141414; }

/* hair care */
.care-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.care-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.care-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); display: grid; place-items: center; font-size: 19px; flex: none; }
.care-card .textarea { background: #141414; }

/* products */
.product-grid { display: grid; gap: 8px; }
.product-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 4px 4px; transition: border-color .15s; }
.product-card.on { border-color: var(--orange); background: linear-gradient(160deg, rgba(255,106,19,.08), var(--surface-2) 60%); }
.product-toggle { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; cursor: pointer; font-weight: 700; }
.product-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.product-icon { font-size: 20px; }
.product-name { flex: 1; }
.product-check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #444; display: grid; place-items: center; }
.product-card.on .product-check { background: var(--orange); border-color: var(--orange); }
.product-card.on .product-check::after { content: "✓"; color: #0B0B0B; font-weight: 900; font-size: 14px; }
.product-toggle input:focus-visible ~ .product-check { outline: 2px solid var(--orange); outline-offset: 2px; }
.product-card .textarea { margin: 0 6px 8px; width: calc(100% - 12px); min-height: 60px; background: #141414; }

@media (min-width: 700px) {
  .shape-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card.on { grid-column: span 1; }
}

/* ============ twin chat page (/b/<slug>) ============ */
body.twin-page { overflow: hidden; }
.twin-app {
  height: 100vh; height: 100dvh; max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; background: #0f0f0f;
  border-inline: 1px solid #1a1a1a;
}
.twin-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: #151515; border-bottom: 1px solid #222;
}
.twin-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.twin-who { flex: 1; min-width: 0; line-height: 1.3; }
.twin-who b { display: block; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twin-who small { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.twin-actions { display: flex; gap: 6px; }
.twin-action { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #222; color: var(--text); }
.twin-action:hover { background: #2c2c2c; color: var(--orange); }
.twin-action svg { width: 19px; height: 19px; }
.twin-info { font-size: 13px; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid #1c1c1c; background: #121212; }
.twin-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.twin-body .msg { font-size: 15.5px; max-width: 86%; }
.msg.error { background: rgba(255,77,77,.12); color: #ffb3b3; border: 1px solid rgba(255,77,77,.3); }
.twin-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.twin-chips::-webkit-scrollbar { display: none; }
.twin-chips .chip { flex: none; min-height: 40px; font-size: 14.5px; }
.twin-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #222; background: #151515; }
.twin-input textarea {
  flex: 1; resize: none; max-height: 120px; min-height: 46px; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; font-size: 16px; line-height: 1.45;
}
.twin-input textarea:focus { outline: none; border-color: var(--orange); }
.twin-input button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; cursor: pointer; }
.twin-input button:disabled { opacity: .5; cursor: default; }
.twin-input button svg { width: 22px; height: 22px; }
.twin-foot { font-size: 12px; color: #7a7a7a; text-align: center; padding: 6px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #151515; }
.twin-foot a { color: inherit; }
.twin-missing { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; gap: 8px; }
.twin-missing .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; font-size: 38px; font-weight: 900; margin: 0 auto 10px; }
.twin-missing p { color: var(--muted); }

/* ============ sign-in (welcome screen, gates) ============ */
.welcome { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 18px; padding: 24px 16px; position: relative; overflow: hidden; }
.welcome::before { content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%); width: min(1000px, 160vw); height: 640px; background: radial-gradient(closest-side, rgba(255,106,19,.22), transparent); pointer-events: none; }
.welcome-card { position: relative; width: 100%; max-width: 420px; text-align: center; display: grid; gap: 14px; padding: 32px 22px; }
.welcome-logo { width: 64px; height: 64px; margin: 0 auto 4px; }
.welcome-card h1 { font-size: 30px; font-weight: 900; }
.welcome-lead { color: #d4d4d4; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.login-error { color: #ff8a8a; min-height: 1.2em; font-size: 15px; }
.welcome-legal { font-size: 13px; color: var(--muted); }
.welcome-legal a { color: var(--orange); }
.welcome-back { position: relative; text-align: center; color: var(--muted); text-decoration: none; font-size: 15px; }
.me-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.me-chip img { width: 32px; height: 32px; border-radius: 50%; }
.me-chip.small { font-size: 14px; font-weight: 500; }
.me-chip.small img { width: 26px; height: 26px; }
.dev-login { display: grid; gap: 8px; width: 100%; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 4px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-login { display: grid; gap: 10px; text-align: right; }
.email-note { font-size: 14.5px; color: #d4d4d4; }
.code-input { text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.email-back { justify-self: center; color: var(--muted); font-size: 14px; }

.twin-gate { flex: 1; display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; }
.gate-card { width: 100%; max-width: 400px; text-align: center; display: grid; gap: 12px; padding: 28px 20px; }
.gate-avatar { margin: 0 auto; width: 64px; height: 64px; font-size: 28px; }
.gate-card h2 { font-size: 21px; margin: 0; }

.owner-banner { margin: 8px 0 0; padding: 16px; display: grid; gap: 10px; border-color: var(--orange-line); }
.owner-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.owner-row span { flex: 1; min-width: 140px; font-weight: 600; }

/* ============ larger screens ============ */
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .header-links .text-link { display: inline-block; }
  .header-links .text-link.always { padding: 8px 10px; }
  .hide-sm { display: inline; }
  .hero { padding: 96px 0 96px; }
  .hero h1 { font-size: 58px; max-width: 820px; }
  .hero p.lead { font-size: 21px; }
  .hero-ctas { flex-direction: row; }
  h2 { font-size: 40px; }
  section { padding: 96px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .founders h2 { font-size: 44px; }
  .founders .hero-ctas { justify-content: center; max-width: none; }
  .wa-float { display: none; }
  .site-footer { padding-bottom: 40px; }
  .site-footer .container { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.1fr 1fr; gap: 20px; }
  .demo-wrap { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ barber management panel (/manage) ============ */
.manage-main { padding-bottom: 60px; }
.mg-twins { margin: 4px 0 14px; }
.mg-loading { color: var(--muted); padding: 30px 0; text-align: center; }
.mg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; }
.mg-stat { padding: 14px; display: grid; gap: 2px; text-align: center; }
.mg-stat b { font-size: 26px; font-weight: 900; color: var(--orange); }
.mg-stat span { color: var(--muted); font-size: 13.5px; }
.mg-card { display: grid; gap: 12px; margin-bottom: 14px; }
.mg-card h2 { font-size: 20px; margin: 0; }
.mg-card > .muted { margin: -4px 0 0; font-size: 15px; }
.mg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-inline { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--orange-line); border-radius: 14px; background: rgba(255,106,19,.05); }
.mg-inline .field > span { font-weight: 600; }
.mg-list { display: grid; gap: 8px; }
.mg-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #121212; }
.mg-item-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mg-item-main b { font-size: 16px; }
.mg-item-main p { margin: 0; color: #cfcfcf; white-space: pre-wrap; font-size: 15px; }
.mg-item-acts { display: flex; gap: 6px; flex: none; }
.mg-item-acts .btn-sm { min-height: 34px; padding: 0 10px; font-size: 13.5px; }
.mg-del:hover { color: #ff8a8a; border-color: rgba(255,77,77,.45); }
.mg-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; text-align: center; margin: 0; }
.mg-legacy summary { cursor: pointer; color: var(--muted); font-size: 14.5px; }
.mg-legacy textarea { margin: 10px 0; }
.mg-services { display: grid; gap: 8px; }
.mg-svc { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px 40px; gap: 8px; align-items: center; }
.mg-price { position: relative; }
.mg-price input { padding-left: 28px; text-align: center; }
.mg-price span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mg-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.mg-x:hover { color: #ff8a8a; border-color: rgba(255,77,77,.45); }
.mg-hours { display: grid; gap: 6px; }
.mg-day { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #121212; min-height: 52px; }
.mg-day-name { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 90px; cursor: pointer; }
.mg-day-name input { width: 18px; height: 18px; accent-color: var(--orange); }
.mg-times { display: flex; align-items: center; gap: 8px; }
.mg-times .input { width: 120px; min-height: 40px; }
.mg-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: #1d1d1d; color: #fff; border: 1px solid #333; padding: 11px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.mg-toast.bad { border-color: #7a2d2d; background: #2a1515; }
@media (max-width: 640px) {
  .mg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-svc { grid-template-columns: minmax(0, 1fr) 96px 40px; }
  .mg-svc select { grid-column: 1 / 3; }
  .mg-item { flex-direction: column; }
  .mg-item-acts { align-self: flex-end; }
}
.manage-main section.mg-stats { padding: 0; border: 0; }
.manage-main section + section { border-top: 1px solid var(--line); }

/* /join when the user has no invitation */
.join-locked { margin: 24px 0; padding: 32px 22px; display: grid; gap: 14px; justify-items: center; text-align: center; border-color: var(--orange-line); }
.join-locked-icon { font-size: 44px; }
.join-locked h2 { margin: 0; font-size: 26px; }
.join-locked p { margin: 0; max-width: 520px; }
/* admin-only header button (added by site.js) */
.header-links .admin-btn { border-color: var(--orange-line); color: var(--text); white-space: nowrap; }
.header-links .admin-btn:hover { border-color: var(--orange); background: var(--orange-soft); }

/* /join: questions & answers in pairs */
.qa-field { gap: 8px; }
.qa-list { display: grid; gap: 10px; margin-top: 4px; }
.qa-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #121212; }
.qa-row.bad { border-color: #ff4d4d; }
.qa-num { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #0B0B0B; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-top: 26px; }
.qa-fields { display: grid; gap: 6px; min-width: 0; }
.qa-label { font-size: 14px; font-weight: 700; color: #d6d6d6; }
.qa-fields .qa-a { min-height: 64px; }
.qa-remove { width: 40px; height: 40px; margin-top: 22px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.qa-remove:hover { color: #ff8a8a; border-color: rgba(255,77,77,.45); }
.qa-add { justify-self: start; }
@media (max-width: 560px) { .qa-row { grid-template-columns: minmax(0, 1fr) 40px; } .qa-num { display: none; } }