/* Home page. The hero is a shop at night: amber marks the hours a business is
   open, blue the hours it is closed. Amber is kept for that and for the main
   button on dark backgrounds. */
:root {
  --night: #13203A;
  --closed: #24355A;
  --lamp: #F4B63F;
  --teal: #0B6E66;
  --teal-dark: #085750;
  --ink: #16202F;
  --muted: #566070;
  --paper: #FFFFFF;
  --tint: #EEF2F4;
  --line: #D8DEE3;
  --on-night: #C9D3E3;
  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--paper); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
.section:not(.section-night) :focus-visible { outline-color: var(--teal); }

.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 6px; }
.skip-link:focus { top: 12px; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border: 0; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: #FFC85C; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: .9375rem; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }
.link-quiet { color: inherit; text-underline-offset: 3px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--lamp); color: var(--ink);
  font: 700 .75rem/1.5 var(--body); white-space: nowrap;
}
.tag-light { background: var(--tint); border: 1px solid var(--line); margin-left: 4px; vertical-align: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.125rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--on-night); text-decoration: none; font-weight: 500; font-size: .9875rem; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-cta { white-space: nowrap; }
.menu-toggle { display: none; min-height: 40px; padding: 6px 14px; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; font-weight: 600; cursor: pointer; }
.mobile-menu { border-top: 1px solid rgba(255,255,255,.1); padding: 8px 20px 16px; }
.mobile-menu a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--lamp); font-weight: 700; }

/* Hero */
.hero { background: var(--night); color: #fff; padding: 40px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.eyebrow { color: var(--lamp); font-weight: 600; font-size: .9375rem; }
h1 { margin-top: 10px; font-size: clamp(2.1rem, 1.35rem + 2.75vw, 3.35rem); line-height: 1.08; text-wrap: balance; }
.lede { margin-top: 16px; max-width: 34em; color: var(--on-night); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.hero-actions .link-quiet { color: var(--on-night); font-size: .9875rem; }

/* The week: 7 rows of 24 hours. */
.week { margin-top: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.week-grid { display: grid; grid-template-columns: 14px repeat(24, 9px); grid-auto-rows: 9px; gap: 2px; font-size: .625rem; line-height: 9px; min-height: 75px; }
.week-day { color: var(--on-night); }
.week-hr { background: var(--closed); border-radius: 1.5px; }
.week-hr.is-open { background: var(--lamp); animation: lamp-on .4s ease-out backwards; animation-delay: calc(var(--i) * 18ms + 200ms); }
.week-hr.is-now { outline: 2px solid #fff; outline-offset: 0; z-index: 1; }
@keyframes lamp-on { from { background: var(--closed); } }
.week figcaption { font-size: .9375rem; line-height: 1.45; color: var(--on-night); max-width: 26em; }
.week figcaption strong { color: #fff; font-weight: 600; }
.week-now { display: block; margin-top: 4px; font-size: .875rem; }
.week-now::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; outline: 2px solid #fff; border-radius: 1.5px; }

/* Demo: the industry tabs are the top edge of the chat itself, so switching
   industry reads as switching the chat. The chat brings its own header. */
.demo-tabs {
  display: flex; gap: 2px; padding: 0 6px; overflow-x: auto; scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs [role="tab"] {
  flex: none; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--on-night);
  border: 0; border-radius: 10px 10px 0 0; font-weight: 600; font-size: .9375rem; cursor: pointer; white-space: nowrap;
}
.demo-tabs [role="tab"]:hover { color: #fff; background: var(--closed); }
.demo-tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); }
.demo-tabs [role="tab"]:focus-visible { outline-offset: -3px; outline-color: var(--teal); }
.demo-panel { background: var(--paper); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.demo-stage { position: relative; height: clamp(440px, calc(100vh - 260px), 560px); }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
/* The preview fills the panel; the start button sits under it, never over it. */
.demo-start { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.demo-cover { flex-shrink: 0; padding: 12px 16px 16px; text-align: center; border-top: 1px solid #E6E9EF; }
.demo-cover .btn { width: 100%; }
.demo-label { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.demo-note { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

/* The preview: the widget's own "quiet thread" look, drawn by the page. */
.pv {
  --c: #0E7C86; --c-tint: color-mix(in srgb, var(--c) 9%, #fff); --c-deep: color-mix(in srgb, var(--c) 82%, #000);
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  font: 400 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; color: #17202E;
}
.pv-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #E6E9EF; flex-shrink: 0; }
.pv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--c-tint); color: var(--c-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, #fff); }
.pv-hd b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.pv-hd small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5F6B7C; }
.pv-hd small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.pv-th { flex: 1; overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
/* Older lines slide off the top rather than squashing. */
.pv-th > * { flex-shrink: 0; }
.pv-b { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14px; animation: pv-in .28s ease-out both; }
.pv-b.bot { align-self: flex-start; background: #F2F4F7; border-bottom-left-radius: 6px; }
.pv-b.me { align-self: flex-end; background: var(--c); color: #fff; border-bottom-right-radius: 6px; }
.pv-dots { display: inline-flex; gap: 4px; padding: 13px 14px; }
.pv-dots i { width: 6px; height: 6px; border-radius: 50%; background: #A9B3C4; animation: pv-dot 1.1s infinite; }
.pv-dots i:nth-child(2) { animation-delay: .15s; } .pv-dots i:nth-child(3) { animation-delay: .3s; }
.pv-card { border: 1px solid #E6E9EF; border-radius: 16px; padding: 14px; background: #fff; animation: pv-in .28s ease-out both; }
.pv-card-top { display: flex; justify-content: space-between; font-weight: 650; }
.pv-card-top span { font-weight: 400; font-size: 12px; color: #5F6B7C; }
.pv-segs { display: flex; gap: 4px; margin: 8px 0 10px; }
.pv-segs i { flex: 1; height: 3px; border-radius: 3px; background: #E6E9EF; }
.pv-segs i.on { background: var(--c); }
.pv-q { font-weight: 600; margin-bottom: 8px; }
.pv-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-days span, .pv-slots span { border: 1px solid #E6E9EF; border-radius: 10px; padding: 6px 4px; text-align: center; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s; }
.pv-days small { display: block; font-size: 11px; font-weight: 400; color: #5F6B7C; }
.pv-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-slots span { border-radius: 999px; padding: 6px 13px; }
.pv-days .on, .pv-slots .on { border-color: var(--c); background: var(--c-tint); }
.pv-ok { border: 1px solid #CBE6D5; border-radius: 16px; overflow: hidden; animation: pv-in .28s ease-out both; }
.pv-ok b { display: block; padding: 9px 14px; background: #EEF8F1; color: #14532D; }
.pv-ok p { padding: 9px 14px; font-size: 13.5px; }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pv-dot { 0%, 60%, 100% { opacity: .5; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Sections */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.section-lede { margin-top: 12px; max-width: 36em; color: var(--muted); font-size: 1.125rem; }

/* What it does */
.does { margin-top: 32px; }
.does-row { display: grid; grid-template-columns: 200px minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.does-row h3 { font: 400 1.5rem/1.2 var(--display); }
.does-labels { padding: 0 0 10px; border-top: 0; font-weight: 700; font-size: .875rem; color: var(--muted); }
.does-not { color: var(--muted); }
.does-row .tag { font-family: var(--body); }

/* Setup */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step); grid-row: span 2; font: 400 1.5rem/1.2 var(--display); color: var(--teal); }
.steps p { margin-top: 2px; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.price-card { padding: clamp(24px, 4vw, 36px); background: var(--paper); border-radius: 10px; }
.price-name { margin-top: 18px; font-weight: 700; }
.price { font-size: 1.125rem; }
.price-num { font: 400 clamp(3.5rem, 3rem + 2vw, 4.5rem)/1.1 var(--display); }
.price-after { margin-bottom: 20px; color: var(--muted); }
.price-terms { margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.ticks { margin-top: 12px; }
.ticks li { position: relative; padding: 5px 0 5px 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 13px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.no-cases { margin-top: 28px; padding-top: 24px; border-top: 1px solid #C6CED6; }
.no-cases p { margin-top: 6px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 32px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; line-height: 1.3; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 32px 18px 0; color: var(--muted); }

/* Booking */
.section-night { background: var(--night); color: #fff; }
.section-night .section-lede { color: var(--on-night); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.cal .link-quiet { color: var(--on-night); }
.cal.is-open { display: block; }
.cal iframe { display: block; width: 100%; height: 660px; border: 0; border-radius: 10px; background: var(--paper); }
.cal.is-open .link-quiet { display: inline-block; margin-top: 12px; }
.form-card { padding: clamp(20px, 3vw, 30px); background: var(--paper); color: var(--ink); border-radius: 10px; }
.form-card h3 { font: 400 1.5rem/1.2 var(--display); margin-bottom: 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9375rem; }
.field input, .field textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; background: var(--paper); border: 1px solid #98A3AF; border-radius: 6px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 0; border-radius: 6px; }
.hp-field { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: .9375rem; }
.form-ok { background: #E3F4EE; color: #0B5A45; }
.form-bad { background: #FBE9E7; color: #8A2318; }
.form-bad a { color: inherit; }
.form-legal { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* Footer */
.footer { background: var(--night); color: var(--on-night); border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: inherit; }

/* Tablet: the five nav items stop fitting cleanly, so they move to the menu. */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .hero-grid, .setup-grid, .pricing-grid, .faq-grid, .book-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { display: contents; }
  .hero-grid > .demo { order: 5; }
  .hero-grid { gap: 0; }
  .eyebrow { order: 1; } h1 { order: 2; } .lede { order: 3; } .hero-actions { order: 6; } .week { order: 7; }
  .demo { margin-top: 22px; }
  .demo-stage { height: 500px; }
  /* Until the chat starts, a shorter preview keeps the start button on the first screen. */
  .demo-stage:has(> .demo-start:not([hidden])) { height: 430px; }
}

@media (max-width: 720px) {
  .does-labels { display: none; }
  .does-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .does-not::before { content: "It doesn't: "; font-weight: 600; }
}

@media (max-width: 560px) {
  .hero { padding: 24px 0 36px; }
  .lede { font-size: 1.0625rem; margin-top: 12px; }
  .demo { margin-top: 16px; }
  .demo-stage { height: 440px; }
  /* Every industry stays visible on a phone: the tabs wrap instead of scrolling out of sight. */
  .demo-tabs { flex-wrap: wrap; overflow: visible; gap: 6px; margin-bottom: 8px; }
  .demo-tabs [role="tab"] { border-radius: 8px; padding: 8px 12px; background: var(--closed); color: #fff; }
  .demo-tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); }
  .week { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cal iframe { height: 620px; }
}

/* Smallest phones: the menu already holds "Book a call". */
@media (max-width: 359px) {
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .week-hr.is-open { animation: none; }
  .btn { transition: none; }
  .pv-b, .pv-card, .pv-ok, .pv-dots i { animation: none; }
}

/* Analytics consent banner (only appears once a GA4 ID is set) */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 420px; padding: 14px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(15, 25, 45, .18); font-size: .9375rem; }
.consent p { margin: 0 0 10px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 560px) { .consent { right: 16px; max-width: none; bottom: 88px; } }

