/* Omnza design system v3: editorial, calm, premium. Medium-weight type, two-tone headings,
   cinematic dark sections, soft apricot pills, rounded grey surfaces. */
:root {
  --ink: #0a0a0f;
  --ink-2: #26262f;
  --body: #55555f;
  --muted: #8d8d97;
  --ghost: #b4b4bd;
  --line: #ececef;
  --line-2: #e2e2e7;
  --bg: #ffffff;
  --gray: #f5f5f7;
  --gray-2: #ededf0;
  /* brand palette: Coastal (deep ocean teal + warm apricot). Swap these to re-theme the site. */
  --accent: #2dd4bf;
  --pill: #ffd3b8;
  --pill-2: #ffc29e;
  --tint: #e3f6f3;
  --tint-line: #b9e6df;
  --tint-ink: #0f766e;
  --tag-bg: #fff0e6;
  --tag-ink: #c2410c;
  --wave: #7fdccb;
  --avatar-1: #5eead4;
  --avatar-2: #0d9488;
  --glow-1: 20, 184, 166;
  --glow-2: 251, 146, 60;
  --glow-3: 56, 189, 248;
  --shadow-tint: 2, 50, 56;
  --night-1: #021215;
  --night-2: #042329;
  --night-3: #073237;
  --screen-1: #0b3d41;
  --screen-2: #062327;
  --screen-3: #031619;
  --deep: #05252a;
  --on-deep-1: #e4f4f2;
  --on-deep-2: #a9cbc7;
  --mint: #dcf5e8;
  --mint-ink: #0f7a55;
  --amber: #fdf0c8;
  --amber-ink: #8a5a00;
  --ok: #047857;
  --err: #b91c1c;
  --r: 22px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 20, .05);
  --shadow: 0 12px 32px -14px rgba(10, 10, 40, .22), 0 2px 6px rgba(10, 10, 20, .04);
  --shadow-lg: 0 40px 80px -30px rgba(var(--shadow-tint), .55), 0 10px 30px -10px rgba(0, 0, 0, .35);
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.05em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.025em; }
.dim { color: var(--ghost); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; }
.on-dark .logo img, footer .logo img { filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2); opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; }
.on-dark .nav-links a:not(.btn) { color: #fff; }
@media (max-width: 880px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font: 500 .98rem var(--font); letter-spacing: -0.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-brand { background: var(--pill); color: var(--ink); }
.btn-brand:hover { background: var(--pill-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24242c; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
/* names used by inner pages */
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24242c; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- sections ---------- */
section { padding: 120px 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: 1.12rem; line-height: 1.65; color: var(--body); max-width: 600px; text-wrap: pretty; }
.head-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.head-row h2 { margin: 0; }
.head-row .lead { margin: 0; justify-self: end; max-width: 400px; font-size: 1rem; }
@media (max-width: 880px) { .head-row { grid-template-columns: 1fr; gap: 16px; } .head-row .lead { justify-self: start; } }

/* ---------- dark cinematic surfaces ---------- */
.night { position: relative; overflow: hidden; color: var(--on-deep-2);
  background:
    radial-gradient(55% 60% at 75% 38%, rgba(var(--glow-1), .45), transparent 70%),
    radial-gradient(45% 50% at 12% 95%, rgba(var(--glow-2), .18), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(var(--glow-3), .18), transparent 70%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%); }
.night::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent), radial-gradient(1px 1px at 10% 60%, #fff, transparent), radial-gradient(1px 1px at 92% 35%, #fff, transparent);
  background-size: 420px 420px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.night h1, .night h2, .night h3 { color: #fff; }
.night .dim { color: rgba(255,255,255,.42); }
.night .lead { color: var(--on-deep-2); }
.night .eyebrow { color: rgba(255,255,255,.6); }
.night > * { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { padding: 0; }
.hero .night { padding: 150px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 120px; }
.tagline { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: var(--on-deep-1); text-decoration: none; margin-bottom: 22px; }
.tagline b { background: var(--pill); color: var(--ink); font-weight: 500; font-size: .76rem; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }
.tagline span { padding-right: 8px; white-space: nowrap; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .86rem; color: rgba(255,255,255,.55); margin: 18px 0 0; }

.stage { position: relative; height: 640px; align-self: end; }
.phone { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); width: 330px; height: 640px; border-radius: 54px; background: #111118; padding: 11px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 100px; height: 29px; border-radius: 20px; background: #111118; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; padding: 18px; display: flex; flex-direction: column;
  background: radial-gradient(90% 60% at 50% 0%, var(--screen-1) 0%, var(--screen-2) 60%, var(--screen-3) 100%); color: #fff; }
.status-bar { display: flex; justify-content: space-between; align-items: center; font: 600 .8rem var(--font); color: #fff; padding: 0 10px 22px; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.call-head { text-align: center; margin-bottom: 18px; }
.call-avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--avatar-1), var(--avatar-2)); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 8px rgba(var(--glow-1),.12), 0 0 40px rgba(var(--glow-1),.5); }
.call-title { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.call-meta { font-size: .76rem; color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); animation: pulse 1.6s ease-in-out infinite; }
.bubbles { display: flex; flex-direction: column; gap: 9px; }
.bubble { font-size: .84rem; line-height: 1.45; padding: 10px 13px; border-radius: 16px; max-width: 90%; }
.bubble small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; }
.screen .bubble.agent { align-self: flex-start; background: rgba(255,255,255,.1); color: #fff; border-bottom-left-radius: 5px; }
.screen .bubble.caller { align-self: flex-end; background: var(--pill); color: var(--ink); border-bottom-right-radius: 5px; }
.call-controls { margin-top: auto; display: flex; justify-content: center; gap: 14px; padding-top: 14px; }
.call-controls span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.call-controls span.end { background: #ef4444; }

.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave i { display: block; width: 3px; border-radius: 3px; background: var(--wave); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.2s; } .wave i:nth-child(3n+1) { animation-delay: -.45s; } .wave i:nth-child(4n) { animation-delay: -.7s; } .wave i:nth-child(5n) { animation-delay: -.9s; }

.float { position: absolute; z-index: 3; border-radius: 18px; padding: 14px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); animation: bob 7s ease-in-out infinite; }
.float .k { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.float .v { font-size: .98rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.float .row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.f1 { left: -12%; top: 6%; width: 200px; }
.f2 { right: -10%; top: 40%; width: 214px; animation-delay: -3s; }
.f3 { left: -10%; bottom: 20%; width: 190px; animation-delay: -1.5s; }
@media (max-width: 1240px) { .f1 { left: -4%; } .f2 { right: -4%; } .f3 { left: -2%; } }
@media (max-width: 960px) {
  .hero .night { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 10px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stage { height: 540px; }
  .phone { width: 290px; height: 560px; bottom: -40px; }
  .float { display: none; }
}

.chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .72rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--gray); color: var(--ink-2); }
.chip.green { background: var(--mint); color: var(--mint-ink); }
.chip.amber { background: var(--amber); color: var(--amber-ink); }
.chip.tint { background: var(--tint); color: var(--tint-ink); }
.chip.glass { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- strip ---------- */
.strip { padding: 34px 0; border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 36px; }
.strip p { margin: 0; font-size: .9rem; color: var(--muted); }
.strip-row { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.strip-row span { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; color: #a8a8b2; }

/* ---------- statement ---------- */
.statement { font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.2; letter-spacing: -0.045em; font-weight: 500; color: var(--ink); max-width: 1000px; margin: 0; }
.statement .dim { color: var(--ghost); }
.inline-pill { display: inline-flex; align-items: center; gap: .3em; vertical-align: .1em; font-size: .6em; letter-spacing: -0.02em; padding: .18em .7em .22em; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.inline-pill.p1 { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.inline-pill.p2 { background: var(--mint); border-color: #bfe9d3; color: var(--mint-ink); }
.inline-pill.p3 { background: var(--amber); border-color: #f4e0a2; color: var(--amber-ink); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; background: var(--gray); display: flex; flex-direction: column; min-height: 320px; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: .95rem; margin: 0; max-width: 400px; }
.tile .art { margin-top: auto; padding-top: 26px; }
.tile.dark { background: radial-gradient(70% 80% at 100% 0%, rgba(var(--glow-1),.5), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(var(--glow-2),.25), transparent 60%), var(--deep); }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: var(--on-deep-2); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
@media (max-width: 920px) { .bento { grid-template-columns: 1fr 1fr; } .span-4, .span-3, .span-2 { grid-column: span 2; } }
@media (max-width: 560px) { .tile { padding: 24px; min-height: 0; } }

.transcript { display: grid; gap: 10px; }
.transcript .bubble { max-width: min(88%, 440px); }
.transcript .caller { justify-self: end; background: #fff; color: var(--ink-2); border-bottom-right-radius: 5px; box-shadow: var(--shadow-sm); }
.transcript .agent { justify-self: start; background: var(--ink); color: #fff; border-bottom-left-radius: 5px; }
.transcript .caller small { color: var(--muted); opacity: 1; }
.langs { display: grid; gap: 8px; }
.lang { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 500; color: var(--ink); font-size: .95rem; box-shadow: var(--shadow-sm); }
.lang em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .82rem; }
.log { display: grid; gap: 8px; }
.log-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: .86rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.log-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; }
.mail { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); max-width: 360px; }
.mail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mail-ic { width: 32px; height: 32px; border-radius: 10px; background: #fee2e2; color: #b91c1c; display: grid; place-items: center; flex: none; }
.mail b { display: block; color: var(--ink); font-size: .9rem; font-weight: 500; }
.mail span { font-size: .8rem; color: var(--muted); }
.mail p { font-size: .86rem; color: var(--body); margin: 0; }
.guard { display: grid; gap: 12px; }
.guard div { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--on-deep-1); }
.guard svg { flex: none; color: var(--pill); }

/* ---------- use-case cards ---------- */
.uses-wrap { background: var(--gray); }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { text-decoration: none; color: inherit; position: relative; background: #fff; border-radius: var(--r); padding: 22px 22px 24px; min-height: 200px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.use:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.use .ic { color: var(--ink); }
.use .go { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tag-bg); color: var(--ink); }
.use h3 { margin: auto 0 6px; font-size: 1.08rem; }
.use p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 920px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline-card { background: var(--gray); border-radius: var(--r-lg); padding: 48px; }
.timeline-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.timeline-head h2 { margin: 0; }
.timeline-head p { margin: 6px 0 0; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 46px; height: 1px; background: #cfcfd8; }
.tl { position: relative; }
.tl .day { display: inline-block; font-size: .74rem; font-weight: 500; padding: 3px 9px; border-radius: 7px; background: var(--tag-bg); color: var(--tag-ink); margin-bottom: 8px; }
.tl .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); margin: 6px 0 22px; box-shadow: 0 0 0 5px var(--gray); position: relative; }
.tl:last-child .dot { background: var(--accent); box-shadow: 0 0 0 5px var(--gray), 0 0 0 9px rgba(var(--glow-1),.25); }
.tl h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tl p { margin: 0; font-size: .9rem; }
.tl-note { font-size: .82rem; color: var(--muted); margin: 32px 0 0; }
@media (max-width: 880px) { .timeline-card { padding: 32px 24px; } .timeline-head { grid-template-columns: 1fr; gap: 12px; } .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; } .timeline::before { display: none; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- dark split (forwarding) ---------- */
.night-section { padding: 130px 0 140px; }
.night-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.night .checks li { color: var(--on-deep-1); }
.flow { display: grid; gap: 12px; }
.flow-node { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.flow-node .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.1); color: #fff; }
.flow-node b { display: block; color: #fff; font-size: .98rem; font-weight: 500; }
.flow-node span { font-size: .85rem; color: rgba(255,255,255,.6); }
.flow-arrow { display: flex; justify-content: center; color: rgba(255,255,255,.35); }
.opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 920px) { .night-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- light split (call log) ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-art { background: var(--gray); border-radius: var(--r-lg); padding: 34px; }
.table-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.table-card header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.table-card table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table-card th { text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 20px; background: #fbfbfc; }
.table-card td { padding: 12px 20px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.table-card td:first-child { white-space: nowrap; color: var(--muted); }
.table-card td small { display: block; color: var(--muted); font-size: .78rem; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .table-card th:nth-child(3), .table-card td:nth-child(3) { display: none; } .split-art { padding: 16px; } }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; background: var(--gray); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { font: 500 .9rem var(--font); border: 0; background: transparent; color: var(--body); padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle .save { font-size: .7rem; background: var(--pill); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r-lg); padding: 32px; background: var(--gray); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan .who { font-size: .9rem; color: var(--muted); margin: 0 0 26px; min-height: 2.8em; }
.price { font-size: 3.2rem; font-weight: 500; color: var(--ink); letter-spacing: -0.06em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.price small { font-size: .95rem; font-weight: 400; letter-spacing: -0.01em; color: var(--muted); }
.price-sub { font-size: .84rem; color: var(--muted); margin: 10px 0 24px; min-height: 1.4em; }
.plan ul { list-style: none; padding: 22px 0 0; margin: 0 0 28px; border-top: 1px solid var(--line-2); display: grid; gap: 11px; font-size: .93rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan .btn { margin-top: auto; }
.plan.featured { background: radial-gradient(80% 60% at 100% 0%, rgba(var(--glow-1),.55), transparent 60%), var(--deep); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .who, .plan.featured .price small, .plan.featured .price-sub { color: var(--on-deep-2); }
.plan.featured ul { color: var(--on-deep-1); border-top-color: rgba(255,255,255,.14); }
.plan.featured li::before { background-color: var(--pill); }
.plan .tag { position: absolute; top: 26px; right: 26px; font-size: .72rem; font-weight: 500; background: var(--pill); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.founding { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 24px auto 0; padding: 12px 20px; border-radius: 999px; background: var(--tag-bg); color: var(--ink-2); width: fit-content; max-width: 100%; font-size: .93rem; text-align: center; }
.founding b { font-weight: 600; color: var(--tag-ink); }
.fine { font-size: .86rem; color: var(--muted); }
.fine a { color: var(--ink); }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- faq ---------- */
.faq-wrap { background: var(--gray); }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 22px; background: var(--gray-2); transition: background .2s; }
.faq-list details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 15px 15px 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--gray); }
.faq-list details p { margin: 0; padding: 0 22px 20px; font-size: .95rem; max-width: 640px; }
@media (max-width: 920px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- final cta ---------- */
.cta-night { text-align: center; padding: 140px 0 150px; }
.cta-night .lead { margin: 0 auto 10px; }
.cta-night .hero-actions { justify-content: center; }
.big-num { display: inline-block; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.05em; color: #fff; text-decoration: none; margin: 8px 0 30px; }

/* ---------- footer ---------- */
footer { background: #000; color: #a3a3ad; padding: 80px 0 40px; font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: #fff; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: #a3a3ad; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { max-width: 300px; margin: 16px 0 24px; }
.foot .btn-line { color: #fff; border-color: rgba(255,255,255,.6); }
.foot .btn-line:hover { background: #fff; color: #000; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; font-size: .82rem; color: #77777f; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
footer > .wrap:not(.foot):not(.foot-bottom) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer > .wrap a { color: #a3a3ad; }

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- inner pages (intake, welcome, 404) ---------- */
body.inner { background: var(--gray); }
body.inner .nav { position: sticky; background: rgba(245,245,247,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.page-head { padding: 64px 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
.form-card { background: #fff; border-radius: var(--r); padding: 32px; margin: 0 0 16px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 500; color: var(--ink); font-size: .93rem; margin-bottom: 7px; }
.field .hint { display: block; font-size: .84rem; color: var(--muted); margin: -2px 0 8px; font-weight: 400; }
.req { color: var(--err); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 16px/1.5 var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .94rem; color: var(--ink); background: #fff; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--gray); }
.choice input { accent-color: var(--ink); }
.notice { border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; }
.notice.ok { background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0; }
.notice.err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.notice.info { background: var(--tag-bg); color: var(--ink); border: 1px solid var(--pill); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; }
.card { background: var(--gray); border-radius: var(--r); padding: 24px; }
.card p { margin: 0; font-size: .95rem; }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: "Step " counter(s); display: inline-block; font-size: .74rem; font-weight: 500; padding: 3px 9px; border-radius: 7px; background: var(--tag-bg); color: var(--tag-ink); margin-bottom: 14px; }
.inner .btn-primary, .inner .btn-ghost { padding: 13px 26px; }

/* ---------- legal / long-form pages ---------- */
.legal-head { padding-top: 72px; padding-bottom: 8px; }
.legal-head h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 14px; }
.legal-meta { font-size: .9rem; color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 120px; }
.toc { position: sticky; top: 96px; font-size: .88rem; }
.toc b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal { background: #fff; border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-sm); max-width: 820px; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 40px 0 12px; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { font-size: .98rem; line-height: 1.7; color: var(--body); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--tint-ink); }
.legal .summary { background: var(--tint); border-radius: 18px; padding: 18px 22px; margin: 0 0 8px; color: var(--ink-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 20px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 500; color: var(--ink); background: var(--gray); }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .legal { padding: 28px 22px; } }

/* footer legal row */
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal a { color: #8f8f98; text-decoration: none; }
.foot-legal a:hover { color: #fff; }
.foot-note { max-width: var(--max); margin: 18px auto 0; padding: 0 24px; font-size: .78rem; color: #6b6b73; line-height: 1.6; }
@media (max-width: 600px) { .legal table { display: block; overflow-x: auto; font-size: .86rem; } }

/* ---------- admin control room ---------- */
.admin-main { padding-top: 40px; padding-bottom: 100px; }
.admin-login { max-width: 460px; margin: 40px auto; }
.admin-updated { font-size: .85rem; color: var(--muted); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.outreach-switch { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-sm); }
.switch-label { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.switch-label b { font-weight: 500; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 40px; }
.kpi { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi-value { font-size: 2rem; font-weight: 500; color: var(--ink); letter-spacing: -0.04em; margin: 6px 0 2px; }
.kpi-sub { font-size: .8rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpis.kpis-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .kpis.kpis-4 { grid-template-columns: repeat(2, 1fr); } }
.admin-h { font-size: 1.35rem; letter-spacing: -0.03em; margin: 36px 0 10px; display: flex; align-items: center; gap: 10px; }
.admin-h .count { font-size: .8rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; letter-spacing: 0; }
.admin-h .count:empty { display: none; }
.admin-note { font-size: .88rem; color: var(--muted); margin: 0 0 14px; max-width: 760px; }
.approvals { display: grid; gap: 14px; }
.approval { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.approval.done { background: var(--tint); }
.approval-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.approval-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.approval-meta { font-size: .82rem; color: var(--muted); word-break: break-word; }
.approval-body { margin: 16px 0; display: grid; gap: 14px; }
.approval-actions { display: flex; gap: 10px; }
.demo-preview { background: var(--gray); border-radius: 14px; padding: 16px 18px; max-height: 360px; overflow: auto; }
.demo-preview h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin: 6px 0 8px; }
.demo-preview ul { margin: 0 0 12px; padding-left: 18px; font-size: .92rem; }
.demo-preview .qa { margin-bottom: 10px; font-size: .92rem; }
.demo-preview .qa p { margin: 2px 0; }
.demo-preview small, .muted { color: var(--muted); font-size: .8rem; }
.json { background: var(--gray); border-radius: 12px; padding: 12px; font-size: .78rem; overflow: auto; max-height: 300px; white-space: pre-wrap; }
.email-editor textarea { font-size: .95rem; min-height: 200px; }
.empty { color: var(--muted); font-size: .92rem; margin: 8px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter { font: 500 .85rem var(--font); border: 1px solid var(--line-2); background: #fff; color: var(--body); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { text-align: left; font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; background: #fbfbfc; white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.admin-table td a { color: var(--ink); text-decoration: none; font-weight: 500; }
.admin-table td a:hover { text-decoration: underline; }
.admin-table td.why { color: var(--muted); font-size: .82rem; max-width: 340px; }
.admin-table .sub-row td { border-top: 0; padding-top: 0; font-size: .82rem; }
.fit { display: flex; align-items: center; gap: 8px; }
.fit-bar { width: 60px; height: 6px; background: var(--gray-2); border-radius: 6px; overflow: hidden; }
.fit-bar i { display: block; height: 100%; background: var(--ghost); border-radius: 6px; }
.fit-bar i.hi { background: var(--tint-ink); }
.admin-cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } }
.q-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.q-item p { margin: 4px 0; font-size: .88rem; }
.admin-main > section { padding: 0; }
.admin .nav-links { gap: 10px; }
@media (max-width: 640px) {
  .admin-updated { display: none; }
  .admin .nav .btn-sm { padding: 7px 12px; font-size: .82rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .outreach-switch { width: 100%; justify-content: space-between; }
  .approval { padding: 18px; }
  .approval-head { flex-direction: column; gap: 8px; }
}
.admin-cols > div, .admin-main { min-width: 0; }

/* Control Room: X drafts */
.x-group { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.x-quote { margin: .5rem 0; padding: .5rem .75rem; border-left: 3px solid var(--line, #d9e2e6); color: var(--muted, #5b6b73); white-space: pre-wrap; overflow-wrap: anywhere; }
.x-why { margin: 0 0 .5rem; font-size: .875rem; }
.x-card .field { position: relative; margin-bottom: .5rem; }
.x-counter { display: block; text-align: right; margin-top: .25rem; }
.x-card .approval-actions { flex-wrap: wrap; }
.strip-row a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* Hospitality solution navigation and content hubs */
.nav-menu { position: relative; }
.nav-menu summary { display:flex; align-items:center; gap:5px; cursor:pointer; list-style:none; font-size:.93rem; font-weight:500; color:var(--ink-2); white-space:nowrap; }
.nav-menu summary::-webkit-details-marker { display:none; }
.nav-menu summary:focus-visible, .nav-panel a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.on-dark .nav-menu summary { color:#fff; }
.nav-chevron { font-size:1rem; line-height:1; }
.nav-menu[open] .nav-chevron { transform:rotate(180deg); }
.nav-panel { position:absolute; top:calc(100% + 14px); left:0; width:248px; max-width:calc(100vw - 32px); padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 14px 40px rgba(0,0,0,.15); z-index:80; }
.nav-links .nav-menu .nav-panel a:not(.btn) { display:block; color:var(--ink-2); opacity:1; padding:10px 12px; border-radius:8px; font-size:.9rem; line-height:1.3; }
.nav-panel a:hover { background:var(--gray); }
.nav-links .nav-panel a.nav-overview { font-weight:600; border-bottom:1px solid var(--line); margin-bottom:5px; }
.nav-demo { background:var(--ink); color:white; white-space:nowrap; }
.on-dark .nav-demo { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.4); }
.cluster-section { padding-top:52px; padding-bottom:52px; }
.cluster-section h2 { margin-bottom:22px; }
.cluster-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0 26px; }
.cluster-card { color:var(--ink); background:var(--gray); padding:24px; border-radius:18px; text-decoration:none; display:flex; flex-direction:column; align-items:flex-start; min-height:160px; }
.cluster-card:hover { background:var(--gray-2); }
.cluster-card h3 { font-size:1.2rem; margin:0 0 10px; }
.cluster-card p { color:var(--body); font-size:.95rem; margin:0 0 16px; flex:1; }
.cluster-card span { font-weight:600; font-size:.88rem; }
.cluster-crumb { font-size:.85rem; margin-bottom:18px; color:var(--body); }
.cluster-crumb a { color:inherit; text-decoration:underline; }
.cluster-note { max-width:780px; }
@media(max-width:880px){ .nav-links { gap:16px; } .nav-links .nav-extra { display:none; } .nav-links .nav-menu .nav-panel a:not(.btn){display:block;} .cluster-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){ .nav:has(.nav-menu) .wrap { height:auto; min-height:88px; flex-wrap:wrap; justify-content:center; padding-top:12px; padding-bottom:12px; gap:8px; } .nav:has(.nav-menu) .logo { margin:0 auto; } .nav:has(.nav-menu) .nav-links { width:100%; justify-content:center; gap:13px; } .nav-menu summary{font-size:.84rem;} .nav-demo{font-size:.8rem;padding:8px 11px;} .nav-panel{left:0;width:205px;} .nav-menu:nth-child(2) .nav-panel{left:50%;transform:translateX(-50%);} .cluster-grid{grid-template-columns:1fr;} .hero .night {padding-top:145px;} }

.foot { grid-template-columns:1.3fr repeat(4,minmax(0,1fr)); gap:24px; }
.foot h4 a { color:inherit; text-decoration:none; }
@media(max-width:760px){.foot {grid-template-columns:1fr 1fr;gap:24px;}}

/* Optional public-site analytics controls */
.cookie-settings-link { border:0; background:none; padding:0; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.analytics-consent { position:fixed; bottom:20px; right:20px; width:min(420px,calc(100vw - 40px)); z-index:1000; border:1px solid var(--line); border-radius:18px; padding:20px; background:#fff; color:var(--ink); box-shadow:0 10px 36px rgba(0,0,0,.18); }
.analytics-consent p { font-size:.9rem; margin:10px 0 14px; line-height:1.5; color:var(--body); }
.analytics-consent h2 { font-size:1.1rem; margin:0; }
.analytics-consent .consent-actions { display:flex; gap:10px; flex-wrap:wrap; }
.analytics-consent .consent-actions button { flex:1; white-space:nowrap; }
.analytics-consent a { color:inherit; text-decoration:underline; }

/* Keep contact visible on small navigation layouts and allow the full email to wrap. */
.footer-email{overflow-wrap:anywhere;word-break:normal}.nav-links .nav-contact[aria-current=page]{text-decoration:underline;text-underline-offset:5px}
@media(max-width:560px){.nav:has(.nav-contact) .nav-links{gap:9px;flex-wrap:nowrap}.nav:has(.nav-contact) .nav-links .nav-contact{font-size:.79rem;white-space:nowrap}.nav:has(.nav-contact) .nav-menu summary{font-size:.79rem}.nav:has(.nav-contact) .nav-demo{font-size:.75rem;padding:8px 9px}.nav:has(.nav-contact) .nav-panel{max-width:calc(100vw - 28px)}}
@media(max-width:350px){.nav:has(.nav-contact) .nav-links{gap:6px}.nav:has(.nav-contact) .nav-demo{padding:7px 6px}}

@media(max-width:880px){.nav-links .nav-contact:not(.btn){display:inline-flex}}

/* Client portal */
.portal .period { display: flex; gap: 8px; flex-wrap: wrap; }
.portal .followups { display: grid; gap: 12px; margin-bottom: 40px; }
.portal .fu-action { margin: 8px 0 4px; color: var(--ink-2); }
.portal .approval-actions { flex-wrap: wrap; }
.chart-card { background: #fff; border-radius: 18px; padding: 20px 20px 14px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line-2); }
.bar-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.bar-col:focus-visible .bar, .bar-col:hover .bar { filter: brightness(.85); }
.bar-col:focus-visible { box-shadow: 0 0 0 2px var(--tint-line); border-radius: 4px; }
.bar { width: 100%; background: #0d9488; border-radius: 4px 4px 0 0; }
.bar.closed { background: #5eead4; }
.bar.zero { background: var(--line-2); border-radius: 0; }
.axis { display: flex; gap: 2px; margin-top: 6px; }
.axis span { flex: 1 1 0; min-width: 0; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: visible; }
.chart-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.swatch-closed { width: 10px; height: 10px; border-radius: 3px; background: #5eead4; flex: none; }
.chart-tip { position: absolute; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.reasons { display: grid; gap: 12px; margin-bottom: 28px; }
.reason-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); margin-bottom: 4px; }
.reason-top b { font-weight: 500; color: var(--ink); }
.reason-track { height: 8px; background: var(--gray-2); border-radius: 4px; overflow: hidden; }
.reason-fill { height: 100%; background: #0d9488; border-radius: 4px; }
.calls-table .call-row { cursor: pointer; }
.calls-table .call-row:hover td, .calls-table .call-row:focus-visible td { background: var(--gray); }
.calls-table .call-detail td { background: var(--gray); white-space: normal; }
.calls-table .call-detail p { margin: 0 0 6px; }
@media (max-width: 720px) {
  .portal .kpis { grid-template-columns: repeat(2, 1fr); }
  .bars { height: 120px; }
}
.portal .gap-src { display: inline-block; font-size: .8rem; margin: -4px 0 10px; }
.portal .learned { background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-sm); margin: -24px 0 40px; }
.portal .learned summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.portal .learned .q-item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.portal .learned .q-item p { margin: 4px 0 0; color: var(--body); }
@media (max-width: 720px) { .portal .learned .q-item { flex-direction: column; } }
.admin-table .next-step { display: block; margin-top: 2px; }
.golive-steps { margin: 4px 0 18px 18px; padding: 0; color: var(--ink-2); line-height: 1.6; }
.golive-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.golive-block textarea { font: 400 .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--gray); }
/* signup */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-err { color: var(--err); font-size: .86rem; margin: 6px 0 0; }

/* Portal: questions the agent asks, and the caller's answers */
.portal .q-list { display: grid; gap: 10px; margin-bottom: 10px; }
.portal .q-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) minmax(160px, 1.5fr) auto; gap: 8px; align-items: center; }
.portal .q-row input { width: 100%; min-width: 0; }
@media (max-width: 720px) { .portal .q-row { grid-template-columns: 1fr; } }
.portal .details-list { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0; }
.portal .details-list dt { font-weight: 600; color: var(--ink-2); }
.portal .details-list dd { margin: 0; }
.portal .fu-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.portal .rule-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.portal .rule-row input { width: 100%; min-width: 0; }
.portal .rule-row .rule-why { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 0.9em; }
.portal .q-item-edit { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line, #e5e5e5); }
.portal .q-extra { grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) minmax(160px, 1.5fr) auto; }
.portal .q-extra select, .portal .q-extra input { width: 100%; min-width: 0; }
@media (max-width: 720px) { .portal .q-extra { grid-template-columns: 1fr; } }
