/* The answer pages (scripts/render-aeo.ts): the homepage's type, colors, buttons, header and footer
   (public/voice/index.html), set for long reading. Sans-serif only; thin translucent scrollbars. */
:root {
  color-scheme: dark;
  --ease: cubic-bezier(.32,.72,0,1);
  --shell: 82rem;
  --read: 46rem;
  --gutter: clamp(16px, 5vw, 72px);
  --bg:#06070B; --panel:#0D0F15; --panel-2:#12151D; --line:#1B1E27;
  --fg:#E6E9EF; --muted:#8C94A3; --accent:#D4C2E8; --ok:#B6E6D8;
  --opal: linear-gradient(100deg,#9ECDE6 0%,#A8DCC2 15%,#B6E6D8 32%,#D4C2E8 50%,#F0BFD4 70%,#F5D7C0 88%,#C6D9E8 100%);
  --display:"Saira","Eurostile",system-ui,sans-serif;
  --body:"Plus Jakarta Sans","Avenir Next",system-ui,sans-serif;
  --label:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --radius:2px;
}
* { box-sizing:border-box; }
html { scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,.16); border-radius:8px; }
body {
  margin:0; background:var(--bg); color:var(--fg);
  font-family:var(--body); font-size:1.0625rem; line-height:1.65;
  -webkit-font-smoothing:antialiased;
  padding-top:env(safe-area-inset-top, 0px); padding-bottom:env(safe-area-inset-bottom, 0px);
}
img { max-width:100%; }
a { color:inherit; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.shell { width:100%; max-width:var(--shell); margin-inline:auto; padding-inline:var(--gutter); }
.label { font-family:var(--label); font-weight:500; color:var(--muted); font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; line-height:1.4; }
.muted { color:var(--muted); }

/* Buttons: the homepage's machined plate */
.btn {
  position:relative; display:inline-flex; align-items:stretch; min-height:52px; cursor:pointer; text-decoration:none;
  border-radius:var(--radius); border:1px solid transparent;
  font-family:var(--display); font-weight:700; font-stretch:118%; font-size:.86rem; letter-spacing:.1em; text-transform:uppercase;
  transition:transform .28s var(--ease), border-color .28s var(--ease);
}
.btn:active { transform:scale(.98); }
.btn .txt { display:flex; align-items:center; padding:0 22px; white-space:nowrap; }
.btn .arr { display:flex; align-items:center; justify-content:center; width:50px; border-left:1px solid; font-family:var(--body); font-weight:600; font-size:1.05rem; letter-spacing:0; }
.btn .arr span { display:inline-block; transition:transform .28s var(--ease); }
.btn:hover .arr span { transform:translateX(3px); }
.btn-primary {
  color:#0A0C11; border-color:rgba(255,255,255,.5);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,0) 1px 3px),
    linear-gradient(180deg,#F4F6F9 0%,#DCE0E7 46%,#C6CBD5 54%,#E6E9EE 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.2), 0 1px 0 rgba(0,0,0,.7);
}
.btn-primary .arr { border-color:rgba(10,12,17,.22); }
.btn-ghost { background:transparent; color:var(--fg); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--muted); }
.btn-sm { min-height:40px; font-size:.74rem; }
.btn-sm .txt { padding:0 14px; }
.btn-sm .arr { width:38px; }

/* Header */
.hdr {
  position:sticky; top:calc(env(safe-area-inset-top, 0px) + 10px); z-index:20;
  margin:10px auto 0; width:calc(100% - 2 * clamp(10px, 2vw, 24px)); max-width:calc(var(--shell) + 24px);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:10px 10px 10px 18px; border:1px solid var(--line); border-radius:var(--radius);
  background:rgba(13,15,21,.74); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.hdr .mark { height:17px; width:auto; display:block; }
.hdr nav { display:flex; gap:clamp(14px, 2.2vw, 30px); }
.hdr nav a { font-family:var(--label); font-weight:500; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .2s var(--ease); }
.hdr nav a:hover { color:var(--fg); }
@media (max-width: 860px) { .hdr nav { display:none; } }
@media (max-width: 420px) { .hdr .btn-sm .arr { display:none; } .hdr .mark { height:14px; } }

/* The page: a reading column, the answer first */
.doc { width:100%; max-width:calc(var(--shell)); margin-inline:auto; padding:clamp(40px, 7vw, 96px) var(--gutter) 0; }
.doc-head { display:grid; gap:18px; padding-bottom:clamp(36px, 5vw, 64px); border-bottom:1px solid var(--line); }
.crumbs ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 10px; font-family:var(--label); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.crumbs li + li::before { content:"/"; margin-right:10px; opacity:.5; }
.crumbs a { text-decoration:none; }
.crumbs a:hover { color:var(--fg); }
.h1 {
  font-family:var(--display); font-weight:700; font-stretch:115%; letter-spacing:-.012em; line-height:1.02; margin:0;
  font-size:clamp(2.2rem, 5vw, 4.4rem); max-width:22ch; text-wrap:balance;
}
.answer-grid { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:clamp(24px, 4vw, 56px); align-items:start; margin-top:8px; }
.answer { margin:0; font-size:clamp(1.12rem, 1.5vw, 1.3rem); line-height:1.6; max-width:var(--read); }
.answer a, .sec a { color:var(--fg); text-decoration:underline; text-decoration-color:rgba(212,194,232,.5); text-underline-offset:3px; }
.answer a:hover, .sec a:hover { text-decoration-color:currentColor; }
.facts { margin:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
.facts div { display:grid; grid-template-columns:minmax(0, 9rem) minmax(0, 1fr); gap:14px; padding:12px 16px; border-top:1px solid var(--line); }
.facts div:first-child { border-top:0; }
.facts dt { font-family:var(--label); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); padding-top:.25em; }
.facts dd { margin:0; font-size:.98rem; }
.updated { margin:0; }
@media (max-width: 860px) { .answer-grid { grid-template-columns:minmax(0, 1fr); } }

.sec { max-width:var(--read); padding-block:clamp(36px, 5vw, 64px); border-bottom:1px solid var(--line); }
.sec h2 { font-family:var(--display); font-weight:700; font-stretch:112%; letter-spacing:-.01em; line-height:1.1; font-size:clamp(1.6rem, 2.8vw, 2.3rem); margin:0 0 18px; text-wrap:balance; }
.sec h3 { font-family:var(--display); font-weight:700; font-stretch:110%; font-size:1.25rem; line-height:1.2; margin:28px 0 8px; }
.sec p { margin:0 0 16px; }
.sec ul, .sec ol { margin:0 0 16px; padding-left:0; list-style:none; display:grid; gap:10px; }
.sec ul > li { position:relative; padding-left:24px; }
.sec ul > li::before { content:""; position:absolute; left:0; top:.8em; width:12px; height:1px; background:var(--opal); }
.sec ol { counter-reset:n; }
.sec ol > li { position:relative; padding-left:40px; counter-increment:n; }
.sec ol > li::before { content:counter(n, decimal-leading-zero); position:absolute; left:0; top:.2em; font-family:var(--label); font-size:.72rem; letter-spacing:.12em; color:var(--muted); }
.sec strong, .sec b { color:var(--fg); font-weight:600; }
.sec .note { color:var(--muted); font-size:.95rem; }
.sec table { width:100%; border-collapse:collapse; margin:4px 0 18px; font-size:.96rem; }
.table-wrap { overflow-x:auto; margin:0 0 18px; }
.table-wrap table { margin:0; min-width:520px; }
.sec th { text-align:left; font-family:var(--label); font-weight:500; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); padding:10px 10px 10px 0; border-bottom:1px solid var(--line); vertical-align:bottom; }
.sec td { padding:12px 10px 12px 0; border-bottom:1px solid var(--line); vertical-align:top; }
/* Sample calls: the homepage's transcript bubbles, flattened */
.call { margin:6px 0 18px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); display:grid; gap:10px; }
.call .who { display:block; font-family:var(--label); font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-bottom:2px; }
.call p { margin:0; padding:10px 12px; border-radius:10px; background:var(--panel-2); max-width:92%; }
.call p.caller { justify-self:end; background:rgba(212,194,232,.1); }
.call .cap { padding:0; background:none; color:var(--muted); font-size:.85rem; max-width:none; }

/* FAQ: the homepage's toggles */
.faq details { border-top:1px solid var(--line); }
.faq details:last-of-type { border-bottom:1px solid var(--line); }
.faq summary { cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; padding:18px 0; font-weight:600; font-size:1.05rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; content:"+" / ""; font-family:var(--label); color:var(--muted); transition:transform .28s var(--ease); }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq details > div { padding:0 0 18px; color:#C9CED8; }

.cta { max-width:none; display:grid; gap:14px; }
.cta h2 { margin:0; max-width:26ch; }
.cta p { margin:0; max-width:56ch; }
.ctas { display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.related { border-bottom:0; }
.related ul { gap:0; }
.related li { padding:0 !important; }
.related li::before { display:none; }
.related a { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--line); text-decoration:none !important; font-weight:500; }
.related li:last-child a { border-bottom:1px solid var(--line); }
.related a:hover { color:var(--accent); }

/* Hub grid (/ai-receptionist) */
.grid-links { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px !important; }
.grid-links li { padding:0 !important; }
.grid-links li::before { display:none; }
.grid-links a { display:grid; gap:4px; height:100%; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); text-decoration:none !important; }
.grid-links a:hover { border-color:rgba(212,194,232,.45); }
.grid-links a span { color:var(--muted); font-size:.92rem; }
@media (max-width: 560px) { .grid-links { grid-template-columns:minmax(0, 1fr); } }

/* Footer */
.foot { margin-top:clamp(48px, 7vw, 96px); padding-block:36px 48px; border-top:1px solid var(--line); }
.foot .shell { display:flex; flex-wrap:wrap; gap:14px 28px; align-items:center; justify-content:space-between; }
.foot .mark { height:14px; width:auto; opacity:.9; }
.foot nav { display:flex; flex-wrap:wrap; gap:10px 22px; }
.foot nav a { text-decoration:none; }
.foot nav a:hover { color:var(--fg); }
@media (max-width: 420px) { .foot nav span { flex-basis:100%; } }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
/* Phones: text stays left in its column, buttons centre (Joshua's phone alignment rule) */
@media (max-width: 560px) { .ctas { justify-content:center; } .ctas .btn { flex:1 1 100%; justify-content:center; } }
