/*
Theme Name: Maximize Voice
Theme URI: https://maximizevoice.io/
Author: Maximize Voice
Description: Custom Sky theme for Maximize Voice. On activation it creates all pages, starter blog posts, and settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: maximize-voice
*/

/* Layout: Sky brand. Light mist page with rounded sky panels (hero, CTA) textured by pixel mosaics and thin frame lines; white cards for proof; one graphite panel with a deep-sea glow for contrast. Deliberately light-only. */
:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --surface: #ffffff;
  --ink: #1e1f22;
  --ink-2: #3d3f45;
  --muted: #686b75;
  --line: #dde1e5;
  --frame: #8fc6d9;
  --ocean: #0b7fa6;
  --sea: #0e5f7c;
  --glow: #5fe2f6;
  --hero-a: #bfe3f4;
  --hero-b: #eef7fb;
  --mos: #8ccbe6;
  --tint: #e6f3f9;
  --vm: #e58a63;
  --ok: #2f9e6b;
  --dark: #1e1f22;
  --on-dark: #eef2f4;
  --on-dark-muted: #9ea4ae;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
em { font-style: italic; color: var(--ocean); }
p { margin: 0; }
a { color: var(--ocean); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 12px 20px; font-weight: 500; font-size: 15px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { box-shadow: 0 10px 24px -12px rgba(14,95,124,.7); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--frame); }
.btn .arr { width: 20px; height: 20px; border-radius: 50%; background: var(--glow); color: var(--ink); display: grid; place-items: center; font-size: 12px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(244,245,246,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.lock { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lock svg { width: 32px; height: 32px; flex: none; }
.lock b { font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.lock b span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ocean); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.nav .btn { margin-left: 8px; }
.nav a.btn, .nav a.btn:hover { color: #ffffff; background: var(--ink); }

/* Hero */
.hero { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); display: grid; grid-template-columns: 1.05fr 0.95fr; isolation: isolate; margin-top: 8px; }
.mosaic { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mosaic i { position: absolute; width: 34px; height: 34px; background: var(--mos); }
.hero-copy { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(48px, 6.6vw, 100px); letter-spacing: -0.03em; }
.hero h1 .time { display: block; font-size: 0.5em; color: var(--sea); margin-top: 10px; letter-spacing: -0.02em; }
.hero-copy > p { color: var(--ink-2); max-width: 44ch; font-size: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.stage-wrap { position: relative; min-width: 0; padding: 22px; min-height: 520px; }
.frame { position: absolute; inset: 22px; border: 1px solid var(--frame); border-radius: 20px; pointer-events: none; }
.stage { position: absolute; inset: 22px; cursor: grab; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .fallback svg { width: 40%; max-width: 230px; height: auto; }
.shadow { position: absolute; left: 50%; bottom: 17%; width: 40%; height: 24px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(14,40,55,0.26), transparent); filter: blur(4px); pointer-events: none; }
.ev { position: absolute; width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; box-shadow: 0 16px 34px -22px rgba(14,40,55,.45); transition: border-color .4s, transform .4s, opacity .4s; opacity: .72; }
.ev.on { opacity: 1; border-color: var(--frame); transform: translateY(-3px); }
.ev small { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev small b { font-weight: 500; color: var(--ocean); }
.ev strong { display: block; font-weight: 500; font-size: 14px; margin-top: 3px; }
.ev1 { left: 40px; top: 44px; } .ev2 { right: 40px; top: 120px; } .ev3 { left: 40px; bottom: 96px; } .ev4 { right: 40px; bottom: 44px; }
.ev4 small b { color: var(--ok); }
.stage-note { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

/* Strip */
.strip { overflow: hidden; margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; width: max-content; animation: slide 50s linear infinite; }
.strip-track span { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; }
.strip-track span::after { content: ""; width: 8px; height: 8px; background: var(--mos); margin: 0 34px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 62px); margin-top: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 46ch; }

/* Before / after */
.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: border-color .25s, transform .25s; }
.ba-card:hover { border-color: var(--frame); transform: translateY(-2px); }
.ba-card .tags { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ba-card .tags b { font-weight: 500; color: var(--ocean); }
.ba-card h3 { font-family: var(--sans); font-weight: 400; font-size: 17px; letter-spacing: -0.01em; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229,138,99,.7); }
.ba-card p { font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Call console */
.call-sec { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.call-sec h2 { font-size: clamp(36px, 4.8vw, 62px); margin-top: 16px; }
.points { display: grid; gap: 18px; margin-top: 32px; }
.points > div { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.points b { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--sea); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.points strong { display: block; font-weight: 500; }
.points span { color: var(--muted); font-size: 15px; }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; min-width: 0; box-shadow: 0 40px 80px -50px rgba(14,40,55,.45); }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.c-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-av { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; flex: none; }
.c-av svg { width: 18px; height: 18px; }
.c-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; gap: 7px; align-items: center; flex: none; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--ocean); border-color: var(--frame); }
.status.live i { animation: blink 1.2s ease-in-out infinite; }
.status.done { color: var(--ok); border-color: rgba(47,158,107,.4); }
@keyframes blink { 50% { opacity: .3; } }
.wave { display: block; width: 100%; height: 64px; margin: 14px 0 4px; }
.legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-bottom: 12px; }
.legend .a { color: var(--ocean); } .legend .c { color: var(--ink-2); }
.c-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.transcript { height: 280px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 9px; padding-bottom: 6px; min-width: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%); mask-image: linear-gradient(180deg, transparent, #000 12%); }
.transcript::-webkit-scrollbar { display: none; }
.msg { font-size: 14px; line-height: 1.5; padding: 9px 13px; border-radius: 14px; max-width: 94%; }
.msg small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.msg.agent { background: var(--tint); align-self: flex-start; }
.msg.agent small { color: var(--ocean); }
.msg.caller { background: var(--bg); border: 1px solid var(--line); align-self: flex-end; }
.msg.caller small { color: var(--muted); }
.ticket { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket h4 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field { border-top: 1px dashed var(--line); padding-top: 8px; min-width: 0; }
.field span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field b { display: block; font-weight: 500; font-size: 14px; color: #a7acb5; transition: color .4s; overflow-wrap: anywhere; }
.field.filled b { color: var(--ink); }
.field.filled span { color: var(--ocean); }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.c-ctrl { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; }
.c-ctrl:hover { border-color: var(--frame); }

/* Coverage dial */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dial-card { position: relative; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); border-radius: 28px; padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.dial { width: 100%; max-width: 440px; height: auto; }
.dial-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.dial-center strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 92px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dial-center small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.ctrls { display: grid; gap: 22px; }
.ctrl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctrl label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.ctrl select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.toggle { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; }
.toggle button { border: 0; background: none; color: var(--ink-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14.5px; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.key { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.key span { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 12px; height: 12px; border-radius: 4px; }
.note { font-size: 15px; color: var(--muted); border-left: 2px solid var(--frame); padding-left: 14px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: border-color .25s, transform .25s; }
.tile:hover { border-color: var(--frame); transform: translateY(-2px); }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; }
.tile .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); }
.tile h3 { font-size: clamp(24px, 2.2vw, 30px); }
.tile p { color: var(--muted); font-size: 15px; }
.viz { margin-top: auto; padding-top: 20px; }
.mchat { display: grid; gap: 7px; }
.mchat div { font-size: 13.5px; padding: 8px 12px; border-radius: 12px; width: fit-content; max-width: 90%; }
.mchat .a { background: var(--tint); }
.mchat .c { background: var(--bg); border: 1px solid var(--line); justify-self: end; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.hours i { height: 42px; border-radius: 3px; background: var(--hero-a); }
.hours i.n { background: var(--sea); }
.hours-l { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 7px; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.cal i { height: 24px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.cal i.on { background: var(--sea); border-color: var(--sea); }
.checks { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.checks div { display: flex; align-items: center; gap: 9px; }
.checks b { width: 20px; height: 20px; border-radius: 6px; background: var(--tint); color: var(--sea); display: grid; place-items: center; font-size: 11px; }
.handoff { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.handoff span { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.handoff .line { flex: 1; height: 1px; background: var(--frame); position: relative; min-width: 20px; }
.handoff .line::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ocean); top: -3px; animation: travel 2.4s ease-in-out infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 7px); } }

/* Call flow */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 40px); }
.trunk { display: flex; align-items: center; flex-wrap: wrap; }
.node { padding: 12px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; }
.node small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.conn { flex: 1; min-width: 24px; height: 1px; background: var(--frame); position: relative; }
.conn::after { content: ""; position: absolute; right: -1px; top: -3.5px; border: 4px solid transparent; border-left-color: var(--frame); }
.branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.branch { text-align: left; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.branch small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.branch strong { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.branch:hover { border-color: var(--frame); }
.branch[aria-selected="true"] { background: var(--tint); border-color: var(--ocean); }
.branch[aria-selected="true"] small { color: var(--ocean); }
.path { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 10px; }
.p-step { border-radius: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); min-width: 0; animation: rise .35s ease both; }
.p-step b { display: block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); margin-bottom: 5px; }
.p-step:nth-child(2) { animation-delay: .06s; } .p-step:nth-child(3) { animation-delay: .12s; } .p-step:nth-child(4) { animation-delay: .18s; }
.p-step.result { background: rgba(47,158,107,.07); border-color: rgba(47,158,107,.35); color: var(--ink); }
.p-step.result b { color: var(--ok); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Custom (dark panel) */
.dark-panel { position: relative; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse 60% 80% at 90% 70%, rgba(14,127,166,.5), transparent 70%), var(--dark); color: var(--on-dark); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.dark-panel h2 { font-size: clamp(36px, 4.6vw, 58px); margin: 16px 0 18px; }
.dark-panel h2 em { color: var(--glow); }
.dark-panel .lede { color: var(--on-dark-muted); font-size: 17px; max-width: 42ch; }
.dark-panel .chip { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.dark-panel .chip i { background: var(--glow); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 1px solid rgba(255,255,255,.2); background: none; color: var(--on-dark-muted); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; font-size: 14px; }
.tab[aria-selected="true"] { background: #ffffff; color: var(--ink); border-color: #fff; }
.config { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; }
.config-bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.config-bar .dots { display: flex; gap: 6px; }
.config-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.config-body { margin: 0; padding: 22px; display: grid; gap: 18px; }
.cfg { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.cfg:last-child { border-bottom: 0; padding-bottom: 0; }
.cfg dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.cfg dd { margin: 0; font-size: 15.5px; min-width: 0; }
.cfg dd q { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--glow); }
.cfg ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cfg li { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--ocean); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--muted); font-size: 14.5px; }
.steps li:last-child { background: var(--tint); border-color: var(--frame); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); }
.faq h2 { font-size: clamp(36px, 4.8vw, 62px); margin: 16px 0 18px; }
.faq .side p { color: var(--muted); max-width: 38ch; margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-family: var(--sans); font-size: 15px; color: var(--ocean); transition: transform .25s; }
details[open] summary::after { content: "\2212"; border-color: var(--frame); }
details p { color: var(--muted); padding: 0 44px 22px 0; }

/* CTA + form */
.cta { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); padding: clamp(24px, 4vw, 56px); isolation: isolate; }
.cta-inner { position: relative; border: 1px solid var(--frame); border-radius: 22px; background: rgba(255,255,255,.35); padding: clamp(24px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cta h2 { font-size: clamp(38px, 5vw, 68px); margin: 16px 0 18px; }
.cta .lede { color: var(--ink-2); font-size: 17px; max-width: 40ch; }
.cta ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cta li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.cta li::before { content: ""; width: 8px; height: 8px; background: var(--sea); flex: none; }
form.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; box-shadow: 0 30px 60px -40px rgba(14,40,55,.5); }
.f { display: grid; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 13px; font-weight: 500; }
.f input, .f select, .f textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--ocean); outline-offset: 1px; }
.f textarea { min-height: 84px; resize: vertical; }
.err { color: #b42318; font-size: 12.5px; min-height: 1em; }
form.demo .btn { grid-column: 1 / -1; justify-content: center; }
.f-status { grid-column: 1 / -1; font-size: 14px; background: var(--tint); border-left: 3px solid var(--ocean); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.f-foot { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark-muted); margin-top: clamp(72px, 9vw, 120px); }
.foot .wrap { padding-block: 56px 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot .lock { color: var(--on-dark); }
.foot .lock b span { color: var(--glow); }
.foot-top p { margin-top: 14px; font-size: 14.5px; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; color: var(--on-dark); font-weight: 500; font-size: 14px; font-family: var(--serif); font-size: 17px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: var(--on-dark); }
.foot-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }

/* Chat */
.chat-fab { position: fixed; z-index: 35; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 7px 17px 7px 7px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-weight: 500; font-size: 14px; box-shadow: 0 16px 36px -14px rgba(14,40,55,.6); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--glow); color: var(--ink); display: grid; place-items: center; }
.chat-fab svg { width: 16px; height: 16px; }
.chat { position: fixed; z-index: 36; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: min(370px, calc(100vw - 40px)); max-height: min(540px, calc(100vh - 140px)); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(14,40,55,.55); }
.chat[hidden] { display: none; }
.chat-h { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.chat-h strong { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.chat-h small { display: block; font-size: 12px; color: var(--ink-2); }
.chat-x { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 9px; min-height: 150px; }
.bub { font-size: 14px; padding: 9px 13px; border-radius: 14px; max-width: 88%; }
.bub.bot { background: var(--tint); align-self: flex-start; }
.bub.me { background: var(--ink); color: #fff; align-self: flex-end; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-sugg button { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; }
.chat-sugg button:hover { border-color: var(--frame); }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.chat-in button { background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 0 14px; font-weight: 500; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1060px) {
  .hero, .call-sec, .coverage, .faq, .dark-panel, .cta-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; padding-top: 0; }
  .stage-wrap { min-height: 460px; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .ba { grid-template-columns: 1fr 1fr; }
  .tile.w3, .tile.w2 { grid-column: span 3; }
  .branches, .path { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stage-wrap { min-height: 380px; }
  .ev { width: 160px; padding: 9px 11px; }
  .ev strong { font-size: 12.5px; }
  .ev1, .ev3 { left: 30px; } .ev2, .ev4 { right: 30px; }
  .ev2, .ev3 { display: none; } .ev1 { top: 36px; } .ev4 { bottom: 36px; }
  .hero .mosaic { opacity: .45; }
  .stage-note { display: none; }
  .ba, .bento, .branches, .path, .steps, .ctrl-row, form.demo, .c-body { grid-template-columns: 1fr; }
  .tile.w3, .tile.w2 { grid-column: auto; }
  .transcript { height: 230px; }
  .ticket { display: grid; grid-template-columns: 1fr 1fr; }
  .ticket h4 { grid-column: 1 / -1; }
  .trunk { flex-direction: column; align-items: stretch; }
  .conn { width: 1px; height: 16px; min-width: 0; flex: none; align-self: center; }
  .conn::after { right: -4px; top: auto; bottom: -2px; border-left-color: transparent; border-top-color: var(--frame); }
  .node { white-space: normal; }
  .cfg { grid-template-columns: 1fr; gap: 4px; }
  .chat-fab .lbl { display: none; }
  .chat-fab { padding: 7px; }
  .foot-top { grid-template-columns: 1fr; }
}

/* ---------- Multi-page additions ---------- */
html, body { min-height: 100%; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Nav: current page + mobile menu */
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: block; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 10px 0 18px; display: grid; gap: 2px; }
  .mobile-menu a { display: block; padding: 11px 4px; color: var(--ink); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-menu a[aria-current="page"] { color: var(--ocean); }
}

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ocean); }

/* Page hero (inner pages) */
.phero { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); isolation: isolate; margin-top: 12px; }
.phero-in { position: relative; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.phero h1 { font-size: clamp(42px, 5.6vw, 84px); letter-spacing: -0.03em; margin-top: 18px; }
.phero .sub { color: var(--ink-2); font-size: 18px; max-width: 46ch; margin-top: 18px; }
.phero .actions { margin-top: 26px; }
.answer { background: rgba(255,255,255,0.72); border: 1px solid var(--frame); border-radius: 18px; padding: 20px 22px; min-width: 0; }
.answer b { display: block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); margin-bottom: 8px; }
.answer p { font-size: 16px; color: var(--ink); }

/* Generic blocks */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--frame); }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-2px); }
a.card .more { margin-top: auto; padding-top: 10px; color: var(--ocean); font-size: 14.5px; font-weight: 500; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 16px; }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin-top: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.list li b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ocean); padding-top: 4px; }
.list li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
.list li span { color: var(--muted); font-size: 15px; }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; }
.sample .cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sample .msg { max-width: 92%; }
.sample small.note2 { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* CTA band */
.band { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); isolation: isolate; padding: clamp(24px, 4vw, 48px); margin-top: clamp(72px, 9vw, 120px); }
.band-in { border: 1px solid var(--frame); border-radius: 20px; background: rgba(255,255,255,.35); padding: clamp(28px, 5vw, 64px) 20px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.band h2 { font-size: clamp(36px, 5vw, 64px); }
.band p { color: var(--ink-2); max-width: 46ch; }
.band .actions { justify-content: center; }

/* Prose (articles, legal) */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: clamp(30px, 3.4vw, 40px); color: var(--ink); margin: 48px 0 14px; }
.prose h3 { font-size: 24px; color: var(--ink); margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ocean); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .answer { margin: 8px 0 28px; }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.table-wrap tr:last-child td { border-bottom: 0; }
.byline { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.byline span + span::before { content: "\00b7"; margin-right: 14px; }
.legal-head { max-width: 720px; margin: 40px auto 0; }
.legal-head h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 14px; }
.legal-head p { color: var(--muted); margin-top: 10px; }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .25s; }
.post-card:hover { border-color: var(--frame); transform: translateY(-2px); }
.post-card h2, .post-card h3 { font-size: clamp(26px, 2.6vw, 34px); }
.post-card p { color: var(--muted); }
.post-card .meta2 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); }

/* Demo page form standalone */
.demo-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.demo-wrap h2 { font-size: clamp(30px, 3.6vw, 44px); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.f-status.ok { background: rgba(47,158,107,.1); border-left-color: var(--ok); }
.f-status.bad { background: rgba(196,97,61,.1); border-left-color: #c4613d; }
form.demo button[disabled] { opacity: .6; cursor: wait; }

/* 404 */
.nf { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.nf h1 { font-size: clamp(56px, 9vw, 120px); }
.nf p { color: var(--muted); margin: 16px auto 28px; max-width: 40ch; }
.nf .actions { justify-content: center; }

/* Region line in footer */
.region { margin-top: 12px; font-size: 13.5px; }

@media (max-width: 1060px) {
  .phero-in, .split, .demo-wrap { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards3, .cards2, .posts { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
  .prose { font-size: 17px; }
}

/* WordPress additions */
.prose details { border-bottom: 1px solid var(--line); }
.prose details summary { color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose figure { margin: 0 0 18px; }
.wp-block-image img { border-radius: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
body.admin-bar .top { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { body.admin-bar .top { top: calc(46px + env(safe-area-inset-top, 0px)); } }
