/* Landing. Direction: subject = a chair that refills itself; audience = barbershop owners on a phone;
   one job = start the pilot or open the demo; mood = precise, calm, expensive;
   signature = the live agenda panel where a cancelled 11:30 becomes a gap, gets offered and is booked again.
   Black and red only, one accent, hairlines over boxes. */

/* hero */
.hero { position: relative; padding: 48px 0 24px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 340px at 78% 30%, rgba(31,111,74,.22), transparent 70%), radial-gradient(520px 300px at 8% 0%, rgba(31,111,74,.08), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; margin: 0 0 22px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 13px; font-weight: 600; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 3px rgba(31,111,74,.22); flex: none; }
.hero h1 { font-size: clamp(2.6rem, 10.5vw, 5.2rem); line-height: .98; letter-spacing: -0.05em; max-width: 12ch; margin-bottom: .4em; font-weight: 800; }
.hero-sub { font-size: clamp(1.05rem, 3.4vw, 1.25rem); color: var(--muted); max-width: 44ch; line-height: 1.6; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { min-height: 54px; padding: 0 28px; font-size: 16px; flex: 1 1 200px; max-width: 260px; }
.fine { font-size: 13px; color: var(--faint); max-width: 52ch; line-height: 1.5; margin-top: 16px; }
.hero .error { margin-top: 6px; }

/* the device: an agenda where 11:30 is cancelled, offered and refilled (12s loop, CSS only) */
.device { margin: 0; position: relative; }
.device-frame { position: relative; border: 1px solid var(--line-strong); border-radius: 26px; padding: 18px; max-width: 460px; margin-left: auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 60%, transparent), 0 40px 120px -20px rgba(31,111,74,.28), 0 30px 60px rgba(0,0,0,.5); }
.dv-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.dv-kicker { margin: 0; font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dv-title { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.dv-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.dv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.dv-row { position: relative; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--raise); font-size: 14px; }
.dv-t { font: 600 13px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.dv-n { font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-s { color: var(--muted); font-size: 13px; justify-self: end; }
.dv-red { color: var(--accent-hi); }
.dv-hot { border-color: var(--line-strong); }
.dv-stage { grid-column: 2 / 4; grid-row: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; opacity: 0; }
.dv-stage.st1 { opacity: 1; }
.dv-bars { display: inline-flex; gap: 4px; }
.dv-bars i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); opacity: .35; }
.dv-chip { color: var(--accent-hi); font-weight: 600; border: 1px solid var(--accent-lo); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.dv-toast { position: absolute; left: -28px; bottom: -26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(330px, 86%);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 16px; font-size: 13px; line-height: 1.35;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,.45); opacity: 0; }
.dv-toast-ic { width: 30px; height: 30px; border-radius: 50%; border: 5px solid var(--accent); }
.dv-plus { font-weight: 800; font-size: 16px; color: var(--ok); }
.device figcaption { text-align: right; max-width: 460px; margin: 44px 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .dv-hot { animation: hot 12s infinite; }
  .st1 { animation: st1 12s infinite; }
  .st2 { animation: st2 12s infinite; }
  .st3 { animation: st3 12s infinite; }
  .st4 { animation: st4 12s infinite; }
  .dv-bars i { animation: blink 1.2s infinite; }
  .dv-bars i:nth-child(2) { animation-delay: .2s; }
  .dv-bars i:nth-child(3) { animation-delay: .4s; }
  .dv-toast { animation: toast 12s infinite; }
  .live-dot { animation: pulse 2.4s infinite; }
}
@media (prefers-reduced-motion: reduce) { .st1 { opacity: 0; } .st4 { opacity: 1; } .dv-toast { opacity: 1; } }
/* 0-22 booked, 25-45 gap, 48-66 offer out, 69-100 refilled */
@keyframes st1 { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes st2 { 0%, 23% { opacity: 0; } 26%, 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes st3 { 0%, 46% { opacity: 0; } 49%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes st4 { 0%, 67% { opacity: 0; transform: translateY(4px); } 70%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hot {
  0%, 22% { border-color: var(--line-strong); background: var(--raise); border-style: solid; }
  25%, 66% { border-color: var(--accent); background: transparent; border-style: dashed; }
  70%, 97% { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--raise)); border-style: solid; box-shadow: var(--glow); }
  100% { border-color: var(--line-strong); background: var(--raise); }
}
@keyframes toast { 0%, 70% { opacity: 0; transform: translateY(12px) scale(.97); } 74%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(31,111,74,.22); } 50% { box-shadow: 0 0 0 7px rgba(31,111,74,0); } }

/* facts row: product facts only, no invented metrics */
.facts { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts li { padding: 20px; display: grid; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li:nth-child(2n) { border-right: 0; }
.facts b { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-size: 13px; }

/* bands */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { max-width: 18ch; margin-bottom: 36px; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg)); overflow: hidden; }
.steps .num { display: block; font: 800 64px/1 var(--font); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin-bottom: 22px; }
.steps li:nth-child(2) .num { -webkit-text-stroke-color: var(--accent); }
.steps h3 { font-size: 1.3rem; margin-bottom: .35em; letter-spacing: -0.025em; }
.steps p { color: var(--muted); margin: 0; max-width: 46ch; }

.box-list { margin: 0; display: grid; gap: 12px; }
.box-list > div { position: relative; padding: 24px 24px 24px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.box-list > div:hover { border-color: var(--line-strong); transform: translateY(-2px); }
/* glyph: a chair-day bar drawn from the product's own mechanic (booked, gap, refilled) */
.box-list > div::before { content: ""; position: absolute; left: 24px; top: 28px; width: 22px; height: 16px; border-radius: 4px;
  background: linear-gradient(90deg, var(--line-strong) 0 30%, transparent 30% 38%, var(--accent) 38% 62%, transparent 62% 70%, var(--line-strong) 70%); }
.box-list dt { font-weight: 750; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.box-list dd { margin: 0; color: var(--muted); max-width: 50ch; font-size: 15px; }

.price-grid { display: grid; gap: 32px; }
.price-grid h2 { margin-bottom: 14px; }
.price-card { position: relative; border: 1px solid var(--line-strong); border-radius: 22px; padding: 30px; background: var(--surface); box-shadow: var(--shadow), 0 40px 100px -40px rgba(31,111,74,.35); overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.price-num { font-size: clamp(4.2rem, 18vw, 6.4rem); font-weight: 800; letter-spacing: -0.065em; line-height: 1; }
.price-num .cur { font-size: .45em; vertical-align: .7em; margin-right: 6px; color: var(--accent-hi); letter-spacing: 0; }
.price-unit { color: var(--muted); margin: 8px 0 22px; }
.tick { list-style: none; margin: 0 0 24px; padding: 0; }
.tick li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.tick li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 5px; border-left: 2px solid var(--accent-hi); border-bottom: 2px solid var(--accent-hi); transform: rotate(-45deg); }

.trust-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trust-list h3 { margin-bottom: .3em; font-size: 1.1rem; }
.trust-list p { margin: 0; color: var(--muted); max-width: 52ch; }
.honest { max-width: 62ch; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); }

.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final::before { content: ""; position: absolute; inset: auto 0 -40%; height: 120%; z-index: -1; background: radial-gradient(560px 280px at 50% 100%, rgba(31,111,74,.2), transparent 70%); }
.final h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; }
  .facts li:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts li:last-child { border-right: 0; }
  .band { padding: 112px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .box-list { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 72px; }
  .trust-list { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}
@media (min-width: 980px) {
  .hero { padding: 88px 0 32px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
@media (max-width: 979px) { .device-frame { margin: 0 auto; } .device figcaption { text-align: center; margin: 40px auto 0; } .dv-toast { left: 50%; translate: -50% 0; } }
@media (max-width: 559px) {
  .cta { flex-basis: 100%; max-width: none; }
  .device-frame { padding: 14px; border-radius: 22px; }
  .dv-row { grid-template-columns: 46px 1fr auto; padding: 0 12px; }
  .facts { margin-top: 56px; }
}
@media (max-width: 440px) { .nav-signin { display: none; } }
