/* Zehnama home page, ported from the design "Zehnama Website v2". Every style the design had inline lives
   here, because the CSP allows stylesheets from 'self' only. Scoped to body.home. */
:root {
  --bg: #F8F9FC;
  --bg-2: #EEEFF5;
  --panel: #F1F3F8;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --text: #1A1D2E;
  --ink: #2A2D38;
  --ink-dark: #1A1D26;
  --muted: #5F6478;
  --faint: #6B7084;          /* the design's #818799, darkened to pass 4.5:1 on white */
  --line: #E2E4EC;
  --line-2: #CDD0DB;
  --line-3: #ADB2C1;
  --ok: #2E7D32;
  --ok-bg: #E8F5E9;
  --warn: #A86A00;
  --warn-bg: #FFF8E6;
  --blue: #3E5478;
  --blue-bg: #E6EEF7;
  --focus: #F2B630;
  --shadow: 0 12px 32px -8px rgba(26, 29, 46, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.home a { color: var(--ink); text-decoration: none; }
.home a:hover { color: #0F1219; }
.home :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); border-radius: 4px; }
.home h1, .home h2, .home h3, .home p, .home ul { margin: 0; }
.serif { font-family: Lora, Georgia, serif; font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 12px; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* Buttons */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; }
.pill-btn.dark, .home a.pill-btn.dark { background: var(--ink); color: #fff; border: none; }
.pill-btn.dark:hover, .home a.pill-btn.dark:hover { background: var(--ink-dark); color: #fff; }
.pill-btn.light, .home a.pill-btn.light { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.pill-btn.light:hover { border-color: var(--line-3); }
.pill-btn.small { height: 38px; padding: 0 20px; font-size: 14px; }
.watch-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; margin-top: 20px; }
.watch-btn:hover { border-color: var(--line-3); }
.watch-btn .ic { font-size: 20px; }

/* Header */
.home-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 249, 252, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.home-nav { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.home-brand { display: flex; align-items: center; gap: 8.5px; background: none; border: 0; padding: 0; }
.disc { position: relative; width: 34px; height: 34px; display: block; flex: none; }
.disc img { width: 34px; height: 34px; display: block; }
.disc canvas { position: absolute; inset: 0; width: 34px; height: 34px; pointer-events: none; }
.home-brand .wordmark { height: 8.2px; width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; align-items: center; font-size: 14px; font-weight: 500; }
.home .nav-links a:not(.pill-btn) { color: var(--muted); }
.home .nav-links a:not(.pill-btn):hover { color: var(--text); }

/* Intro: shown only when home.js has put "zn-intro-on" on <html> (scripts on, motion allowed, first visit
   this session). The failsafe fades it after 5 s whatever happens. */
.zn-intro { display: none; }
html.zn-intro-on .zn-intro { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: znIntroFailsafe 400ms ease-out 5s forwards; }
.zn-intro-cover { position: absolute; inset: 0; transition: opacity 600ms ease-out; background: radial-gradient(120% 90% at 0% 0%, #E5DCC8 0%, #D3C7B0 50%, #BCAD96 100%); }
.zn-intro-canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
.zn-intro.is-done { display: none !important; }
@keyframes znIntroFailsafe { to { opacity: 0; visibility: hidden; } }

/* Hero */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero-grid { padding-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { padding-bottom: 72px; max-width: 480px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: var(--muted); margin-bottom: 24px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; }
.hero h1 { margin-bottom: 20px; font-size: 46px; line-height: 1.14; letter-spacing: -0.8px; color: var(--text); }
.hero .lede { margin-bottom: 32px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.hero .small-print { font-size: 13px; color: var(--faint); }

/* App window mock-up */
.window { align-self: end; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: none; box-shadow: 0 24px 60px -12px rgba(26, 29, 46, 0.28); overflow: hidden; background: var(--bg); }
.window-bar { height: 38px; display: flex; align-items: center; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); gap: 10px; }
.window-bar img { width: 18px; height: 18px; display: block; }
.window-bar .title { font-size: 12px; font-weight: 600; color: var(--muted); }
.window-bar .controls { margin-left: auto; display: flex; gap: 14px; color: var(--faint); font-size: 13px; }
.window-body { display: flex; position: relative; background: radial-gradient(120% 90% at 0% 0%, #E5DCC8 0%, #D3C7B0 50%, #BCAD96 100%); }
.rail { position: relative; width: 56px; background: rgba(255, 253, 249, 0.55); border-right: 1px solid rgba(26, 29, 46, 0.08); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rail span { width: 40px; height: 32px; display: grid; place-items: center; color: var(--muted); font-size: 19px; }
.rail span.on { border-radius: 10px; background: var(--paper); box-shadow: 0 1px 2px rgba(26, 29, 46, 0.08); color: var(--ink); }
.window-main { position: relative; flex: 1; min-width: 0; padding: 18px 20px 0; }
.patient { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #E4E5EA; color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.patient .name { font-size: 14px; font-weight: 600; color: var(--text); }
.patient .dx { font-size: 11px; color: var(--faint); }
.add-chip { margin-left: auto; display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.appt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(26, 29, 46, 0.06); }
.appt-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgba(42, 45, 56, 0.05); border-bottom: 1px solid rgba(42, 45, 56, 0.1); }
.appt-head.future { background: rgba(129, 135, 153, 0.07); border-bottom-color: rgba(129, 135, 153, 0.16); }
.appt-head > .ic { font-size: 16px; color: var(--ink); }
.appt-head.future > .ic { color: var(--faint); }
.appt-head .date { font-size: 12px; font-weight: 600; color: var(--text); }
.appt-head .time { font-size: 11px; color: var(--faint); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 600; }
.status .ic { font-size: 11px; }
.status.ok { background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.35); color: var(--ok); }
.status.blue { background: rgba(91, 125, 173, 0.1); border: 1px solid rgba(91, 125, 173, 0.3); color: var(--blue); }
.appt-note { padding: 12px 14px 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; background: #E4E5EA; color: var(--ink); }
.tag .ic { font-size: 11px; }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.plain { background: var(--panel); color: var(--faint); font-weight: 400; }
.appt-pending { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 12px; font-style: italic; color: var(--faint); }
.appt-pending .ic { font-size: 14px; }
.inv-strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 253, 249, 0.75); margin-bottom: 16px; }
.inv-strip > .ic { font-size: 17px; color: var(--muted); }
.inv-strip .txt { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-strip .paid { margin-left: auto; padding: 2px 6px; border-radius: 4px; background: var(--ok-bg); font-size: 9px; font-weight: 600; color: var(--ok); }

/* Promise strip */
.promises { background: #fff; border-bottom: 1px solid var(--line); }
.promises-grid { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.promise { display: flex; align-items: center; gap: 12px; }
.promise > .ic { font-size: 22px; color: var(--ink); }
.promise .t { font-size: 14px; font-weight: 600; color: var(--text); }
.promise .s { font-size: 12px; color: var(--faint); }

/* Features */
.features { padding-top: 96px; padding-bottom: 48px; }
.features-intro { max-width: 640px; margin-bottom: 48px; }
.features-intro h2 { font-size: 34px; letter-spacing: -0.5px; line-height: 1.2; color: var(--text); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: center; padding: 32px 0; }
.feature h3 { margin-bottom: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.15px; color: var(--text); }
.feature p { margin-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.code { font-family: Consolas, monospace; font-size: 13px; background: #EBEDF5; padding: 1px 6px; border-radius: 4px; }
.checks { padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.checks li { display: flex; gap: 10px; }
.checks .ic { font-size: 18px; color: var(--ink); margin-top: 1px; }
.badge-soft { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 12px; }
.feature-video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 14px; border: 1px solid var(--line-2); background: #D3C7B0; box-shadow: var(--shadow); }

.card-mock { border-radius: 14px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.scribe-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.scribe-head > .ic { font-size: 19px; color: var(--ink); }
.scribe-head .t { font-size: 14px; font-weight: 600; color: var(--text); }
.scribe-head .m { margin-left: auto; font-size: 11px; color: var(--faint); }
.scribe-list { padding: 10px 18px; display: grid; gap: 2px; }
.scribe-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--panel); }
.scribe-row > .ic { font-size: 18px; color: var(--ink); }
.scribe-row .t { font-size: 13px; font-weight: 500; color: var(--text); }
.scribe-row .m { margin-left: auto; font-size: 11px; color: var(--faint); }
.meds-found { margin: 4px 18px 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.mini-label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--faint); }
.med { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.med > .ic { font-size: 16px; }
.med .note { margin-left: auto; font-size: 11px; }
.med.ok > .ic, .med.ok .note { color: var(--ok); }
.med.warn > .ic { color: #D48806; }
.med.warn .note { color: var(--warn); }

.billing { border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); padding: 18px; box-shadow: var(--shadow); }
.outstanding { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid rgba(245, 166, 35, 0.3); margin-bottom: 12px; }
.outstanding > .ic { font-size: 17px; color: var(--warn); }
.outstanding .amt { font-size: 13px; font-weight: 600; color: var(--warn); }
.outstanding .n { font-size: 12px; color: var(--muted); }
.outstanding .link { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink); }
.inv-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.inv-row:last-child { border-bottom: 0; }
.inv-row > .ic { font-size: 18px; color: var(--faint); }
.inv-row .body { flex: 1; min-width: 0; }
.inv-row .t { font-size: 13px; font-weight: 600; color: var(--text); }
.inv-row .s { font-size: 11px; color: var(--faint); }
.inv-status { padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.inv-status.unpaid { background: var(--warn-bg); color: var(--warn); }
.inv-status.part { background: var(--blue-bg); color: var(--blue); }
.inv-status.paid { background: var(--ok-bg); color: var(--ok); }

.chart-card { border-radius: 14px; border: 1px solid var(--line-2); background: #fff; padding: 20px; box-shadow: var(--shadow); }
.chart-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.chart-tab { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.chart-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chart-card svg { width: 100%; height: auto; display: block; }

/* Psychiatry */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.psych-grid { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }
.psych-grid h2 { margin-bottom: 16px; font-size: 30px; letter-spacing: -0.4px; line-height: 1.22; color: var(--text); }
.psych-grid > div > p { margin-bottom: 24px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.safety { display: grid; gap: 14px; }
.safety-item { display: flex; gap: 12px; }
.safety-item > .ic { font-size: 20px; color: var(--ink); margin-top: 1px; }
.safety-item .t { font-size: 14px; font-weight: 600; color: var(--text); }
.safety-item .b { font-size: 13px; line-height: 1.5; color: var(--muted); }
.tasks-card { border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); box-shadow: var(--shadow); padding: 18px; }
.prompt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--blue-bg); margin-bottom: 14px; color: var(--blue); }
.prompt > .ic { font-size: 18px; }
.prompt .t { font-size: 12px; flex: 1; }
.prompt .a { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tasks-card .mini-label { margin: 0 4px 8px; }
.tasks { display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.task .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.red { background: #E53935; }
.dot.amber { background: #F5A623; }
.dot.green { background: #4CAF50; }
.dot.grey { background: var(--line-3); }
.task .body { flex: 1; min-width: 0; }
.task .t { font-size: 13px; font-weight: 500; color: var(--text); }
.task .s { font-size: 11px; color: var(--faint); }
.task .cad { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.task .cad .ic { font-size: 14px; }

/* More features */
.more { padding-top: 80px; padding-bottom: 80px; }
.more h2 { margin-bottom: 32px; font-size: 28px; letter-spacing: -0.4px; color: var(--text); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.tile:hover { border-color: var(--line-2); }
.tile > .ic { font-size: 22px; color: var(--ink); }
.tile .t { font-size: 14px; font-weight: 600; color: var(--text); margin: 10px 0 6px; }
.tile .b { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Security */
.security { background: #fff; border-top: 1px solid var(--line); }
.security-grid { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; }
.security-copy { max-width: 420px; }
.security-copy h2 { margin-bottom: 16px; font-size: 32px; letter-spacing: -0.5px; line-height: 1.2; color: var(--text); }
.security-copy > p { margin-bottom: 28px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.stats > div { background: var(--bg); padding: 16px; }
.stats .n { font-family: Lora, serif; font-size: 24px; font-weight: 600; color: var(--text); }
.stats .l { font-size: 12px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 600; color: var(--ink); }
.accordion { display: grid; gap: 12px; align-content: start; }
.accordion details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > .ic { font-size: 20px; color: var(--ink); }
.accordion summary .t { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.accordion .chev { font-size: 18px; color: var(--faint); transition: transform 140ms ease-out; }
.accordion details[open] .chev { transform: rotate(90deg); }
.accordion .body { padding: 0 20px 18px 54px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.accordion.faq .body { padding-left: 20px; line-height: 1.65; }

/* Licensing */
.licensing { background: var(--ink-dark); }
.licensing-grid { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: center; }
.licensing .eyebrow { color: var(--line-3); }
.licensing h2 { margin-bottom: 16px; font-size: 32px; letter-spacing: -0.5px; line-height: 1.2; color: var(--bg); }
.licensing-copy > p { margin-bottom: 20px; font-size: 15px; line-height: 1.7; color: var(--line-3); }
.licensing-list { display: grid; gap: 10px; font-size: 14px; color: #D5D8E0; }
.licensing-list div { display: flex; gap: 10px; align-items: center; }
.licensing-list .ic { font-size: 18px; color: #81C784; }
.trial-card { border-radius: 20px; background: var(--bg); padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); max-width: 400px; justify-self: end; width: 100%; scroll-margin-top: 96px; }
.trial-card .mini-label { font-size: 13px; margin-bottom: 8px; }
.trial-card .big { font-size: 34px; color: var(--text); line-height: 1; }
.trial-card .desc { font-size: 14px; color: var(--muted); margin: 10px 0 24px; }
.trial-card .pill-btn { display: flex; width: 100%; }
.trial-card .pill-btn .ic { font-size: 19px; }
.trial-card .req { font-size: 12px; color: var(--faint); text-align: center; margin-top: 12px; line-height: 1.5; }
.trial-card .price-note { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.trial-card .price-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Credibility */
.cred { padding-top: 96px; padding-bottom: 96px; }
.cred-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cred-inner > .ic { font-size: 28px; color: var(--ink); }
.cred h2 { margin: 16px 0 20px; font-size: 32px; letter-spacing: -0.5px; line-height: 1.25; color: var(--text); }
.cred p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.cred p + p { margin-top: 16px; }

/* FAQ */
.faq-section { background: #fff; border-top: 1px solid var(--line); }
.faq-inner { max-width: 760px; margin: 0 auto; padding: 80px 32px; }
.faq-inner h2 { margin-bottom: 32px; font-size: 28px; letter-spacing: -0.4px; color: var(--text); }

/* Video player */
.video-dialog { border: 0; padding: 0; background: transparent; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: none; color: var(--bg); }
.video-dialog::backdrop { background: rgba(15, 18, 25, 0.84); }
.video-dialog .bar { display: flex; align-items: center; margin-bottom: 12px; }
.video-dialog .bar .t { font-size: 15px; font-weight: 600; }
.video-dialog .close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 22px; }
.video-dialog .close:hover { background: rgba(255, 255, 255, 0.24); }
.video-dialog video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: #000; }

/* Footer (shared markup from functions/_lib/layout.js) */
.home .site-footer { background: var(--panel); border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.home .footer-row { max-width: 1120px; margin: 0 auto; padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.home .footer-logo { height: 26px; width: auto; display: block; }
.home .footer-row nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; }
.home .footer-row nav a { color: var(--muted); }

@media (max-width: 640px) {
  .wrap-wide, .faq-inner { padding-left: 20px; padding-right: 20px; }
  .hero-grid { padding-top: 48px; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .features { padding-top: 64px; }
  .features-intro h2 { font-size: 28px; }
  .psych-grid, .more, .cred, .faq-inner { padding-top: 56px; padding-bottom: 56px; }
  .security-grid, .licensing-grid { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .trial-card { justify-self: stretch; max-width: none; padding: 24px; }
  .home-nav { flex-wrap: nowrap; min-height: 60px; }
  .home .nav-links a:not(.pill-btn) { display: none; }   /* sticky header stays one row; the page is one scroll */
  .home .footer-row { padding: 32px 20px; }
  .home .footer-row nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zn-intro { display: none !important; }
  * { transition: none !important; animation: none !important; }
}
