/* Project Zero by Actieve Systems */
:root {
    color-scheme: dark;
    --ink: #f0f0f0; --ink-2: #d0d0d0; --muted: #aaaaaa; --line: rgba(245,147,0,.15); --line-2: #66502f;
    --bg: #080808; --card: #121212; --accent: #f59300; --accent-2: #ffb33b; --accent-soft: rgba(245,147,0,.09);
    --good: #6bd9a1; --good-soft: #10291d; --bad: #ff9191; --bad-soft: #36191d; --warn: #ffc15d; --warn-soft: #30230f;
    --radius: 14px; --shadow: 0 4px 24px rgba(0,0,0,.18);
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: 13px; }
code { background: var(--accent-soft); color: var(--accent-2); padding: 1px 6px; border-radius: 6px; }
/* Landing and comparison pages (modules/Seo.js) */
.landing .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 13px; color: var(--muted); }
.marketing-section.landing-hero { padding-top: 40px; }
.landing-hero h1 { font-size: clamp(30px, 4.4vw, 50px); max-width: 860px; }
.landing-hero .lead { max-width: 760px; }
.marketing-section.landing-section { padding-top: 40px; padding-bottom: 40px; max-width: 900px; }
.landing-section p { color: var(--ink-2); line-height: 1.75; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { position: relative; padding: 7px 0 7px 28px; color: var(--ink-2); line-height: 1.6; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; top: 7px; color: var(--accent); font-weight: 700; }
.compare-table th[scope=row] { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare-table thead th:nth-child(2) { color: var(--accent); }
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-links .card { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--ink); text-decoration: none; }
.related-links .card:hover { border-color: var(--accent); }
.legal-note { margin-top: 0; }
.site-footer nav strong { width: 100%; color: var(--ink); font-size: 13px; }
/* Plans and billing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 20px; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan-card.featured { border-color: var(--accent); }
.plan-card.current { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.plan-card h3 { margin-bottom: 4px; }
.plan-card .button { margin-top: auto; }
.plan-flag { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #080808; }
.plan-price { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 28px; font-weight: 700; margin: 4px 0 8px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-limits { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.plan-limits li { padding: 3px 0; }
.plan-limits li::before { content: '✓'; color: var(--good); margin-right: 8px; }
.meter { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.full > span { background: var(--bad); }
.card-element { padding: 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; margin: 8px 0 4px; }
textarea.code-edit { font-family: var(--mono); font-size: 13px; min-height: 420px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
pre.code.log { max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
pre.code { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre; line-height: 1.6; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
[hidden] { display: none !important; }
.sized { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page-pad { padding-top: 40px; padding-bottom: 60px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.bad-text { color: var(--bad); }
.danger-text { color: var(--bad) !important; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }
.row > .small-field { flex: 0 0 120px; min-width: 100px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.two.wide-left { grid-template-columns: 1.4fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three, .grid.two.wide-left { grid-template-columns: 1fr; } }

/* Header and footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .sized { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 20px; flex: 1; }
.site-nav a { color: var(--ink-2); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.signed-in .when-signed-out, .signed-out .when-signed-in { display: none !important; }
.app-page .header-actions > .button.when-signed-in { display: none; }
.account-menu { position: relative; }
.account-button { background: none; border: 0; padding: 0; cursor: pointer; }
.account-list { display: none; position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 230px; padding: 6px; }
.account-menu.open .account-list { display: block; }
.account-list a, .account-list button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.account-list a:hover, .account-list button:hover { background: var(--bg); text-decoration: none; }
.account-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-who span { display: block; color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer .sized { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.app-page .site-footer { display: none; }
@media (max-width: 700px) { .site-nav { display: none; } }

/* Buttons and fields */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #080808; border: 1px solid var(--accent); border-radius: 10px; padding: 9px 16px;
    font-size: 14px; font-weight: 600; line-height: 1.2; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .15s; }
.button:hover { background: var(--accent-2); text-decoration: none; }
.button:disabled { opacity: .55; cursor: default; }
.button.secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.button.secondary:hover { background: var(--bg); }
.button.ghost { background: none; border-color: transparent; color: var(--ink-2); }
.button.ghost:hover { background: var(--bg); }
.button.danger { background: var(--bad); border-color: var(--bad); }
.button.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.button.big { padding: 13px 22px; font-size: 16px; }
.button.block { display: flex; width: 100%; margin-bottom: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox] { width: auto; }
.invalid { border-color: var(--bad) !important; background: var(--bad-soft); }
.help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.optional { font-weight: 400; color: var(--muted); }
.input-suffix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--card); }
.input-suffix input { border: 0; border-radius: 0; min-width: 0; }
.input-suffix span { display: flex; align-items: center; padding: 0 10px; background: var(--bg); color: var(--muted); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.readonly { padding: 9px 0; }
.form-message { font-size: 14px; margin-top: 10px; min-height: 0; }
.form-message.bad { color: var(--bad); }
.form-message.good { color: var(--good); }
.notice { background: var(--accent-soft); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.notice.good { background: var(--good-soft); border-color: #28593e; }
.notice.bad { background: var(--bad-soft); border-color: #8b4148; color: var(--bad); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
details.advanced { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
details.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.pick { display: flex !important; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-weight: 500 !important; cursor: pointer; }
.pick:hover { background: var(--bg); }

/* Toggles */
.toggle { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 21px; }
.toggle:focus { outline: 2px solid var(--accent-soft); }
.toggle-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 10px 0; margin-bottom: 8px; cursor: pointer; }

/* Cards, lists, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.narrow { max-width: 640px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; flex: 1; }
.danger-zone { border-color: #8b4148; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 340px; }
.toolbar p { margin: 0; }
.section-title { margin-top: 28px; }
.share-list, .device-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.share-row, .device-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.share-row:last-child, .device-row:last-child { border-bottom: 0; }
.card .device-row { padding: 10px 0; }
.share-name { font-weight: 600; }
.address { cursor: copy; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.address.big { display: inline-block; font-size: 16px; padding: 8px 12px; margin: 4px 0 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: 0 0 auto; display: inline-block; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); vertical-align: middle; }
.pill.muted { background: var(--bg); color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 13px; margin: 0 6px 6px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #080808; font-weight: 700; font-size: 13px; vertical-align: middle; }
.avatar.small { width: 28px; height: 28px; font-size: 11px; }
.empty { text-align: center; padding: 40px 20px; }
.loading { padding: 30px; text-align: center; color: var(--muted); }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table select { width: auto; padding: 5px 8px; }
.card .table td, .card .table th { padding-left: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { background: none; border: 0; font: 600 14px inherit; font-family: inherit; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.group-card { margin-bottom: 14px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-value { font-size: 26px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 13px; }
.share-head { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.share-head p { margin: 8px 0 0; }
.grant-form { display: flex; gap: 8px; flex-wrap: wrap; }
.grant-form select { flex: 1; min-width: 200px; }
.grant-form input { flex: 1; min-width: 200px; }

/* The app shell */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 64px); }
.app-nav { background: var(--card); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; }
.app-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.app-nav a:hover { background: var(--bg); text-decoration: none; }
.app-nav a.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.app-nav .group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 18px 12px 6px; }
.app-nav .muted-link { color: var(--muted); }
.org-chip { width: 22px; height: 22px; border-radius: 6px; background: var(--card); color: var(--ink); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.app-main { padding: 28px 32px 60px; min-width: 0; max-width: 1200px; }
.app-heading { font-size: 26px; }
.admin-banner { background: var(--warn-soft); border: 1px solid #785921; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .app-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
    .app-nav .group, .app-nav [data-org-links] { display: none; }
    .app-nav a { white-space: nowrap; }
    .app-main { padding: 20px 16px 50px; }
}

/* Account pages */
.account-wrap { display: flex; justify-content: center; padding: 50px 16px 70px; }
.account-wrap .card { width: 100%; max-width: 480px; padding: 30px; }

/* Modals and toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px 0; }
.modal-head h2 { flex: 1; margin: 0; font-size: 18px; }
.modal-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-body { padding: 16px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 20px; }
.modal-foot .left { margin-right: auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--card); color: var(--ink); padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.toast.bad { background: var(--bad); }

/* Home */
.hero { background: var(--bg); padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(245,147,0,.07); padding: 8px; }
.hc-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.hc-row div { flex: 1; }
.hc-row strong { display: block; }
.hc-row code { background: none; padding: 0; }
.hc-foot { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.steps { padding: 60px 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #080808; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.band { background: #0d0d0d; color: var(--ink-2); padding: 60px 0; }
.band h2 { color: var(--ink); }
.downloads .card { display: flex; flex-direction: column; }
.downloads .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

/* Actieve design system: near-black surfaces, orange detail, geometric headings. */
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, .toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { color: #080808; background: var(--accent); }
.sized { max-width: 1240px; padding-left: 28px; padding-right: 28px; }
.site-header { background: rgba(8,8,8,.96); backdrop-filter: blur(16px); }
.site-header .sized { min-height: 84px; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 28px; }
.logo { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 20px; flex-shrink: 0; }
.brand-text { display: block; line-height: 1.2; }
.brand-text small { display: block; font-family: Inter, sans-serif; font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }
.site-nav { justify-content: center; gap: 24px; }
.site-nav a { font-size: 13px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; }
.button { font-weight: 700; border-radius: 7px; transition: background .15s, border-color .15s; }
.button:hover { color: #080808; border-color: var(--accent-2); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: #1e1e1e; color: var(--ink); border-color: var(--accent); }
.button.ghost:hover { color: var(--ink); }
.button.danger { background: #ab2938; color: #fff; border-color: #ab2938; }
.button.danger:hover { background: #c53243; border-color: #c53243; color: #fff; }
.button.big { padding: 15px 23px; gap: 18px; }
.button.block { white-space: normal; }
.toggle::after { background: #fff; }
.org-chip { background: var(--accent-soft); color: var(--accent); }
.toast { background: #242424; border: 1px solid var(--line-2); }
.toast.bad { background: #7b2330; color: #fff; }
.account-wrap { min-height: calc(100vh - 250px); background: radial-gradient(ellipse at 50% 0, rgba(245,147,0,.06), transparent 60%); }
.app { min-height: calc(100vh - 84px); }
.account-who, .share-row > .grow { overflow-wrap: anywhere; }
.site-footer { background: #0d0d0d; padding: 36px 0; }
.site-footer nav { flex-wrap: wrap; align-content: flex-start; gap: 12px 22px; }
.footer-brand { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.footer-attribution { display: block; margin-top: 3px; font-size: 12px; }
.site-footer p { margin: 14px 0 0; font-size: 13px; }
.accent-text, .hero h1 > span { color: var(--accent); }
.eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 18px; }
.hero { padding: 90px 0 80px; background: radial-gradient(ellipse at 78% 40%, rgba(245,147,0,.045), transparent 55%); }
.hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
.hero h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; margin-bottom: 24px; }
.hero .lead { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 570px; }
.hero-actions { margin-top: 30px; gap: 12px; }
.hero-note { color: var(--muted); font-size: 12px; margin: 20px 0 0; }
.network-panel { min-width: 0; margin: 0; padding: 24px; border-radius: 16px; border: 1px solid rgba(245,147,0,.28); background: #0d0d0d; box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.network-panel figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.network-label { text-transform: uppercase; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.network-panel figcaption .small { font-size: 10px; }
.network-endpoint { display: flex; align-items: center; gap: 12px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.network-endpoint > div { min-width: 0; flex: 1; }
.network-endpoint strong, .network-core strong { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 15px; }
.network-endpoint div > span, .network-core div > span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.network-icon { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.network-endpoint > .pill { font-size: 9px; padding: 3px 7px; }
.network-path { border-left: 1px dashed #8c5b13; margin-left: 29px; height: 42px; display: flex; align-items: center; padding-left: 18px; color: var(--muted); font-size: 10px; }
.network-core { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid rgba(245,147,0,.28); padding: 18px; border-radius: 10px; }
.network-core strong { color: var(--accent); font-size: 18px; }
.network-caption { font-size: 11px; color: var(--muted); margin: 20px 0 0; }
.trust-strip { border-bottom: 1px solid var(--line); background: #0d0d0d; }
.trust-strip > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-top: 23px; padding-bottom: 23px; }
.trust-strip span { color: var(--ink-2); font-size: 12px; }
.trust-strip span::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.marketing-section { padding-top: 88px; padding-bottom: 88px; }
.section-intro { max-width: 640px; margin-bottom: 40px; }
.section-intro h2, .final-cta h2 { font-size: clamp(28px, 3vw, 39px); letter-spacing: -.035em; font-weight: 700; }
.section-intro p:not(.eyebrow), .final-cta p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.how-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.how-grid li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.step-number { display: block; font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 20px; }
.how-grid h3 { font-size: 17px; }
.how-grid p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.text-link { display: inline-block; font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 10px; }
.marketing-band { background: #0d0d0d; padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.benefits-layout .section-intro { margin-bottom: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.benefit-grid article { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.benefit-grid h3 { font-size: 17px; }
.benefit-grid p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.use-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 52px; }
.use-case-grid article { border-top: 1px solid var(--line); padding: 26px 0 18px; }
.use-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.use-case-grid h3 { font-size: 22px; }
.use-case-grid p { max-width: 480px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.apps-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.apps-feature .section-intro { margin-bottom: 0; }
.apps-summary { border-left: 1px solid var(--line-2); padding-left: 35px; }
.apps-summary > div { margin-bottom: 24px; }
.apps-summary h3 { font-size: 23px; margin: 12px 0 6px; }
.apps-summary p { font-size: 13px; color: var(--muted); }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 600; }
.faq-list details[open] summary { color: var(--accent); }
.faq-list p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 16px 0 0; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-top: 40px; padding-bottom: 50px; border-top: 1px solid var(--line-2); margin-bottom: 35px; }
.final-cta p { margin-bottom: 0; }
.final-cta .eyebrow { margin-bottom: 14px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex-shrink: 0; }
.apps-page { padding-top: 64px; }
.apps-page h1 { font-size: clamp(34px,4vw,52px); letter-spacing: -.04em; }
.apps-page .section-intro { max-width: 720px; }
.release-notice { margin-bottom: 28px; }
.release-notice p { font-size: 14px; margin: 5px 0 0; color: var(--muted); }
.downloads .card { margin-bottom: 0; }
.downloads h2 { font-size: 24px; }
.downloads p { font-size: 14px; color: var(--muted); }
.downloads .eyebrow { font-size: 10px; }
.app-features { font-size: 13px; color: var(--ink-2); padding-left: 18px; line-height: 1.8; }
.app-features li { padding-bottom: 8px; }
.release-status { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; color: var(--accent); }
.app-setup { max-width: 800px; margin: 45px 0; }
.app-setup p { font-size: 14px; line-height: 1.8; }

@media (max-width: 1050px) {
    .site-nav { gap: 14px; }
    .hero-grid { gap: 30px; }
    .hero-actions .button { font-size: 14px; padding: 13px 18px; }
    .benefits-layout { gap: 35px; }
    .apps-feature { gap: 45px; }
    .network-endpoint > .pill { display: none; }
}
@media (max-width: 860px) {
    .hero { padding: 55px 0; }
    .hero-grid, .benefits-layout, .apps-feature, .faq-section { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(36px,6vw,52px); }
    .network-panel { max-width: 580px; width: 100%; }
    .how-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .marketing-section, .marketing-band { padding-top: 55px; padding-bottom: 55px; }
    .site-nav { display: none; }
    .apps-summary { padding-left: 24px; }
    .faq-section { gap: 0; }
    .final-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
    .sized { padding-left: 20px; padding-right: 20px; }
    .site-header .sized { flex-wrap: wrap; gap: 10px; min-height: 76px; }
    .logo { font-size: 18px; gap: 7px; }
    .logo img { width: 36px; height: 36px; }
    .brand-text small { font-size: 9px; }
    .header-actions { gap: 6px; }
    .header-actions .button.small { padding: 7px 9px; font-size: 12px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero h1 { font-size: 38px; }
    .hero .lead { font-size: 15px; }
    .hero-note { font-size: 11px; }
    .network-panel { padding: 18px; }
    .network-endpoint { padding: 14px 10px; }
    .network-endpoint strong { font-size: 14px; }
    .trust-strip > div { flex-direction: column; gap: 12px; }
    .how-grid, .benefit-grid, .use-case-grid { grid-template-columns: 1fr; }
    .how-grid { gap: 18px; }
    .step-number { margin-bottom: 12px; }
    .section-intro { margin-bottom: 28px; }
    .section-intro h2, .final-cta h2 { font-size: 30px; }
    .site-footer .sized { flex-direction: column; gap: 24px; }
    .site-footer nav { gap: 12px 20px; }
    .site-footer nav a { font-size: 12px; }
    .account-wrap .card { padding: 24px 20px; }
    .account-wrap .row > .field { min-width: 100%; }
    .app-main { overflow-wrap: anywhere; }
    .cta-actions { max-width: 100%; }
    .cta-actions .button { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Project Zero graphic-only navigation mark; text remains accessible HTML. */
.logo .brand-mark { display: block; object-fit: contain; flex: 0 0 auto; width: 44px; height: 44px; }
@media (max-width: 540px) { .logo .brand-mark { width: 36px; height: 36px; } }

/* Homepage motion: only decorative layers move with scroll; content keeps its layout. */
.home-page .motion-scene { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.home-page .motion-scene > .sized { position: relative; z-index: 1; }
.home-page .parallax-layer { pointer-events: none; transform: translate3d(0, var(--parallax-y, 0px), 0); }
.home-page .hero-ambient { position: absolute; inset: -100px -5%; z-index: 0; background: radial-gradient(ellipse at 85% 38%, rgba(245,147,0,.085), transparent 46%), radial-gradient(ellipse at 16% 90%, rgba(245,147,0,.025), transparent 45%); }
.home-page .section-ambient { position: absolute; width: 600px; height: 650px; top: -120px; left: -270px; border-radius: 50%; background: radial-gradient(ellipse, rgba(245,147,0,.05), transparent 67%); }
.home-page .section-ambient-right { left: auto; right: -200px; }
.ziti-hero { padding: 100px 0; background: #090909; border-top: 1px solid rgba(245,147,0,.22); border-bottom: 1px solid rgba(245,147,0,.22); }
.ziti-hero-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 70px; align-items: center; }
.ziti-hero-copy h2 { font-size: clamp(34px, 3.8vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 26px; }
.ziti-hero-copy .lead { font-size: 17px; line-height: 1.85; }
.ziti-hero-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.85; }
.ziti-hero-copy > p:not(.eyebrow):not(.lead):not(.ziti-credit) { font-size: 14px; max-width: 580px; }
.ziti-actions { align-items: center; gap: 24px; margin-top: 30px; }
.ziti-actions .button { font-size: 14px; padding: 14px 18px; gap: 12px; }
.ziti-hero-copy .ziti-credit { margin: 22px 0 0; font-size: 11px; }
.ziti-grid { position: absolute; inset: -100px -60px; z-index: 0; background-image: linear-gradient(rgba(245,147,0,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,147,0,.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent 24%, #000); }
.ziti-aura { position: absolute; width: 850px; height: 850px; right: -150px; top: -100px; background: radial-gradient(ellipse, rgba(245,147,0,.12), transparent 65%); }
.ziti-visual { margin: 0; min-width: 0; }
.ziti-stage { position: relative; width: 100%; max-width: 480px; height: 420px; margin: 0 auto; }
.ziti-orbits { position: absolute; inset: 22px 12px; }
.ziti-orbits > span { position: absolute; border: 1px solid rgba(245,147,0,.25); border-radius: 50%; inset: 0; }
.ziti-orbits > span:nth-child(2) { inset: 45px 10px; transform: rotate(-30deg); border-style: dashed; border-color: rgba(245,147,0,.19); }
.ziti-orbits > span:nth-child(3) { inset: 12px 65px; transform: rotate(35deg); border-color: rgba(245,147,0,.11); }
.ziti-emblem { position: absolute; inset: 70px 0; display: flex; align-items: center; justify-content: center; }
.ziti-emblem img { width: 248px; height: 248px; display: block; object-fit: contain; filter: drop-shadow(0 15px 32px rgba(0,0,0,.5)); }
.ziti-node { position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(18,18,18,.96); border: 1px solid rgba(245,147,0,.28); border-radius: 7px; padding: 11px 14px; font-size: 11px; color: var(--ink-2); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ziti-node i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(245,147,0,.4); }
.ziti-node-one { top: 22px; left: 20px; }
.ziti-node-two { top: 175px; right: 0; }
.ziti-node-three { bottom: 25px; left: 18px; }
.ziti-visual figcaption { text-align: center; margin-top: 8px; }
.ziti-visual figcaption strong { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 25px; letter-spacing: -.02em; }
.ziti-visual figcaption > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
@media (max-width: 1050px) {
    .ziti-hero-layout { gap: 35px; }
    .ziti-stage { height: 380px; }
    .ziti-emblem { inset: 55px 0; }
    .ziti-emblem img { width: 215px; height: 215px; }
    .ziti-node { font-size: 10px; padding: 10px; }
}
@media (max-width: 860px) {
    .ziti-hero { padding: 64px 0; }
    .ziti-hero-layout { grid-template-columns: 1fr; gap: 30px; }
    .ziti-hero-copy { max-width: 640px; }
    .ziti-stage { max-width: 460px; }
    .ziti-grid { mask-image: linear-gradient(180deg, transparent, #000); }
    .ziti-aura { right: -250px; top: auto; bottom: -200px; }
}
@media (max-width: 540px) {
    .ziti-hero-copy h2 { font-size: 36px; }
    .ziti-hero-copy .lead { font-size: 15px; }
    .ziti-actions { gap: 20px; }
    .ziti-stage { height: 340px; }
    .ziti-orbits { inset: 25px 8px; }
    .ziti-emblem { inset: 62px 0; }
    .ziti-emblem img { width: 200px; height: 200px; }
    .ziti-node-one { top: 20px; left: 0; }
    .ziti-node-two { top: 150px; right: 0; }
    .ziti-node-three { left: 0; bottom: 12px; }
    .ziti-node { font-size: 9px; gap: 6px; padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .parallax-layer { transform: none !important; }
}
@media print {
    .home-page .parallax-layer { transform: none !important; }
}

/* Illustrated account pages: shared Project Zero palette, original form hooks. */
.account-visual { min-height: calc(100svh - 84px); padding: 48px 28px 64px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 16% 30%, rgba(245,147,0,.045), transparent 60%); }
.account-shell { width: min(1240px, 100%); min-width: 0; display: grid; grid-template-columns: 1.16fr 1fr; overflow: hidden; border: 1px solid rgba(245,147,0,.2); border-radius: 28px; background: #101010; box-shadow: 0 26px 80px rgba(0,0,0,.35); }
.account-art { position: relative; min-width: 0; min-height: 640px; isolation: isolate; display: flex; align-items: flex-end; padding: 46px; background: #18120b; }
.account-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 36% center; }
.account-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,8,8,.05) 5%, rgba(8,8,8,.3) 36%, rgba(8,8,8,.88) 77%, rgba(8,8,8,.96)); }
.account-art-signup > img { object-position: 48% center; }
.account-art-logout > img { object-position: 38% center; }
.account-art-copy { max-width: 500px; }
.account-art-tag { display: inline-block; padding: 7px 13px; border: 1px solid rgba(245,147,0,.4); border-radius: 99px; color: var(--accent); background: rgba(8,8,8,.5); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 22px; }
.account-art-copy .account-art-title { font-family: 'Space Grotesk', Inter, sans-serif; color: #fff; font-size: clamp(34px, 3.5vw, 47px); font-weight: 700; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 24px; text-wrap: balance; }
.account-art-title > span { color: var(--accent); }
.account-art-copy > p:last-child { color: #d5d5d5; font-size: 15px; line-height: 1.8; margin: 0; max-width: 460px; }
.account-panel { min-width: 0; padding: 46px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(245,147,0,.16); }
.account-panel h1 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; margin: 0 0 16px; }
.account-intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 30px; }
.account-panel form { margin: 0; }
.account-panel .field { margin-bottom: 20px; min-width: 0; }
.account-panel .field > label { text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #bcbcbc; margin-bottom: 9px; }
.account-panel input { min-height: 50px; padding: 12px 14px; background: #1b1b1b; border: 1px solid #414141; border-radius: 10px; font-size: 14px; }
.account-panel input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1b1b1b inset; -webkit-text-fill-color: var(--ink); }
.account-panel .row > .field { flex: 1; min-width: 0; }
.account-panel #SignupForm > .row ~ .row { display: block; }
.account-panel .button.block { min-height: 50px; border-radius: 10px; margin-bottom: 0; }
.account-panel .form-message:empty { margin: 0; }
.account-panel .form-message { font-size: 13px; }
.account-forgot { margin: 16px 0 0; font-size: 12px; text-align: right; }
.account-switch { border-top: 1px solid #2b2b2b; padding-top: 25px; margin: 27px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.account-switch a { font-weight: 600; }
.account-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.account-shell-signup .account-art { min-height: 760px; }
.account-shell-signup .account-panel { padding-top: 38px; padding-bottom: 38px; }
.account-shell-signup .account-intro { margin-bottom: 24px; }
.logout-session-note { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 28px; background: var(--accent-soft); }
.logout-note-icon { color: var(--accent); flex: 0 0 24px; }
.logout-note-icon svg { width: 24px; height: 24px; display: block; }
.logout-session-note strong { font-size: 13px; }
.logout-session-note p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
.logout-actions { display: grid; gap: 12px; }
/* Image-led 404, with real recovery links and no tracking/support claims. */
.not-found-page { padding: 48px 28px 72px; background: radial-gradient(ellipse at 50% 20%, rgba(245,147,0,.045), transparent 65%); }
.not-found-card { width: min(1040px, 100%); min-width: 0; margin: 0 auto; }
.not-found-photo { position: relative; margin: 0 0 36px; overflow: hidden; border: 1px solid rgba(245,147,0,.2); border-radius: 26px; background: #14110a; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.not-found-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; object-position: center; }
.not-found-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(8,8,8,.08) 55%, rgba(8,8,8,.83)); }
.not-found-photo figcaption { position: absolute; z-index: 1; bottom: 34px; left: 38px; right: 30px; }
.not-found-photo-kicker { color: #e7c99e; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.not-found-photo figcaption p { color: #fff; font-family: 'Space Grotesk', Inter, sans-serif; font-size: clamp(28px, 3.6vw, 43px); font-weight: 700; letter-spacing: -.04em; line-height: 1.12; margin: 10px 0 0; }
.not-found-photo figcaption p > span { color: var(--accent); }
.not-found-copy { text-align: center; max-width: 700px; margin: 0 auto; }
.not-found-code { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line-2); background: #17130c; color: var(--ink-2); border-radius: 99px; font-size: 12px; margin: 0 0 22px; }
.not-found-code > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.not-found-copy h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; font-weight: 700; }
.not-found-copy > p:not(.not-found-code) { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 18px auto 28px; max-width: 620px; }
.not-found-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1050px) {
    .account-art, .account-panel { padding: 34px; }
    .account-art-copy .account-art-title { font-size: 38px; }
    .account-shell { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 800px) {
    .account-visual { padding: 32px 20px 48px; min-height: 0; }
    .account-shell { grid-template-columns: 1fr; border-radius: 22px; max-width: 640px; }
    .account-art, .account-shell-signup .account-art { min-height: 380px; padding: 30px; }
    .account-art > img { object-position: 40% 35%; }
    .account-art-signup > img { object-position: 50% 30%; }
    .account-art-copy { max-width: 440px; }
    .account-art-copy .account-art-title { font-size: 36px; margin-bottom: 18px; }
    .account-art-copy > p:last-child { font-size: 14px; }
    .account-art-tag { margin-bottom: 18px; }
    .account-panel { border-left: 0; border-top: 1px solid rgba(245,147,0,.16); padding: 34px; }
    .not-found-page { padding: 32px 20px 48px; }
    .not-found-photo { border-radius: 22px; }
    .not-found-photo figcaption { left: 26px; bottom: 26px; }
    .not-found-copy > p:not(.not-found-code) { font-size: 15px; }
}
@media (max-width: 440px) {
    .account-visual, .not-found-page { padding-left: 16px; padding-right: 16px; }
    .account-art, .account-shell-signup .account-art { min-height: 360px; padding: 25px; }
    .account-art-copy .account-art-title { font-size: 32px; }
    .account-art-copy > p:last-child { font-size: 13px; }
    .account-panel, .account-shell-signup .account-panel { padding: 30px 24px; }
    .account-panel h1 { font-size: 30px; }
    .account-panel .row { gap: 12px; }
    .account-panel .field { margin-bottom: 18px; }
    .logout-session-note { padding: 16px; gap: 10px; }
    .not-found-photo > img { aspect-ratio: 4 / 3; object-position: 43% center; }
    .not-found-photo figcaption { left: 22px; bottom: 22px; right: 15px; }
    .not-found-photo-kicker { font-size: 9px; }
    .not-found-photo figcaption p { font-size: 28px; }
    .not-found-copy h1 { font-size: 32px; }
    .not-found-actions { flex-direction: column; align-items: stretch; }
    .not-found-actions .button { white-space: normal; }
}
@media (max-width: 360px) {
    .account-panel #SignupForm > .row { display: block; }
    .account-art-copy .account-art-title { font-size: 29px; }
    .account-panel, .account-shell-signup .account-panel { padding-left: 20px; padding-right: 20px; }
}

/* Image-led marketing: original hero assets, contained crops and readable copy. */
.home-page .hero-image-led { padding: 60px 0 44px; }
.home-page .hero-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; margin-bottom: 40px; }
.home-page .hero-image-led h1 { font-size: clamp(38px, 3.8vw, 56px); margin-bottom: 18px; }
.home-page .hero-image-led .hero-note { margin-top: 0; }
.home-page .hero-summary .lead { margin: 0; font-size: 15px; line-height: 1.85; }
.home-page .hero-summary .hero-actions { margin-top: 24px; }
.home-page .hero-summary .button.big { padding: 13px 18px; font-size: 14px; gap: 14px; }
.home-page .hero-banner { position: relative; z-index: 1; width: min(1440px, calc(100% - 56px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(245,147,0,.24); border-radius: 20px; background: #15100a; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.home-page .hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1916 / 821; object-fit: cover; object-position: center; }
.home-page .ziti-hero { min-height: 650px; background: #080b11; }
.home-page .ziti-globe { position: absolute; z-index: 0; inset: -76px -28px; transform: translate3d(var(--pointer-x, 0px), calc(var(--parallax-y, 0px) + var(--pointer-y, 0px)), 0); transition: transform .28s ease-out; }
.home-page .ziti-globe img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; opacity: .65; }
.home-page .ziti-photo-shade { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,8,8,.98) 0%, rgba(8,8,8,.94) 27%, rgba(8,8,8,.76) 47%, rgba(8,8,8,.18) 100%), linear-gradient(180deg, rgba(8,8,8,.35), transparent 35%, rgba(8,8,8,.35)); }
.home-page .ziti-aura { opacity: .65; }
.home-page .ziti-hero-copy > .lead { color: #d2d2d2; }
.home-page .ziti-hero-copy > p:not(.eyebrow):not(.lead) { color: #bdbdbd; }
.home-page .ziti-visual figcaption > span { color: #c5c5c5; }
.home-page .use-case-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; margin-bottom: 42px; }
.home-page .use-case-intro-grid .section-intro { margin: 0; }
.home-page .use-case-photo { position: relative; margin: 0; min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid rgba(245,147,0,.2); background: #101720; }
.home-page .use-case-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 893; object-fit: cover; }
.home-page .use-case-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(8,8,8,.25)); }
@media (min-width: 1800px) {
    .home-page .hero-banner { width: min(1640px, calc(100% - 112px)); }
}
@media (max-width: 1050px) {
    .home-page .hero-intro { gap: 35px; }
    .home-page .hero-summary .hero-actions { gap: 10px; }
    .home-page .hero-summary .button.big { font-size: 13px; padding: 12px 14px; gap: 10px; }
    .home-page .use-case-intro-grid { gap: 35px; }
}
@media (max-width: 860px) {
    .home-page .hero-image-led { padding-top: 42px; padding-bottom: 28px; }
    .home-page .hero-intro { grid-template-columns: 1fr; gap: 25px; margin-bottom: 30px; }
    .home-page .hero-summary { max-width: 640px; }
    .home-page .hero-summary .hero-actions { flex-direction: row; align-items: center; }
    .home-page .hero-banner { width: calc(100% - 40px); border-radius: 16px; }
    .home-page .ziti-hero { min-height: 0; }
    .home-page .ziti-photo-shade { background: linear-gradient(180deg, rgba(8,8,8,.97) 0%, rgba(8,8,8,.9) 42%, rgba(8,8,8,.35) 72%, rgba(8,8,8,.55)); }
    .home-page .ziti-globe img { object-position: center bottom; }
    .home-page .use-case-intro-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
    .home-page .use-case-photo { max-width: 640px; }
}
@media (max-width: 540px) {
    .home-page .hero-image-led { padding-top: 34px; padding-bottom: 24px; }
    .home-page .hero-image-led h1 { font-size: 38px; }
    .home-page .hero-summary .hero-actions { flex-direction: column; align-items: stretch; }
    .home-page .hero-summary .button.big { font-size: 14px; padding: 14px 18px; }
    .home-page .hero-banner { width: calc(100% - 32px); border-radius: 14px; }
    .home-page .hero-banner img { aspect-ratio: 4 / 3; object-position: 18% center; }
    .home-page .ziti-globe { inset: -50px -20px; }
    .home-page .ziti-globe img { opacity: .75; }
    .home-page .use-case-photo { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .ziti-globe { transform: none !important; transition: none !important; }
}
@media print {
    .home-page .ziti-globe { transform: none !important; }
}

/* Keep the primary artwork near the top on phones, ahead of the longer summary. */
@media (max-width: 540px) {
    .home-page .hero-image-led { display: flex; flex-direction: column; }
    .home-page .hero-image-led .hero-intro { display: contents; }
    .home-page .hero-image-led .hero-copy { order: 0; position: relative; z-index: 1; padding: 0 20px; }
    .home-page .hero-image-led .hero-banner { order: 1; margin-top: 26px; }
    .home-page .hero-image-led .hero-summary { order: 2; position: relative; z-index: 1; padding: 26px 20px 0; }
}

/* Touch navigation: native modal focus management, bounce-in and fade/slide-out. */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #14110b; color: var(--accent); cursor: pointer; flex: 0 0 44px; }
.menu-toggle > span { display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-toggle > span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-dialog { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: transparent; overflow: hidden; }
.mobile-nav-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(7px); }
.mobile-nav-dialog[open]::backdrop { animation: mobile-nav-backdrop-in .24s ease-out both; }
.mobile-nav-dialog.is-closing::backdrop { animation: mobile-nav-backdrop-out .22s ease-in both; }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 100%); padding: max(25px, env(safe-area-inset-top)) 26px max(26px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(ellipse at 90% 10%, rgba(245,147,0,.055), transparent 50%), #0d0d0d; border-left: 1px solid rgba(245,147,0,.28); box-shadow: -20px 0 70px rgba(0,0,0,.4); }
.mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 42px; }
.mobile-nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mobile-nav-brand img { object-fit: contain; flex: 0 0 auto; }
.mobile-nav-brand h2 { font-size: 20px; margin: 0; letter-spacing: -.03em; }
.mobile-nav-brand p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.mobile-nav-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; color: var(--accent); border: 1px solid var(--line-2); border-radius: 10px; background: #19140d; cursor: pointer; }
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav-kicker { color: var(--accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; }
.mobile-nav-primary { display: flex; flex-direction: column; margin-bottom: 28px; }
.mobile-nav-primary a { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 23px; font-weight: 500; color: var(--ink); padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-nav-primary a:hover { color: var(--accent); text-decoration: none; }
.mobile-nav-account { border-top: 1px solid var(--line); padding-top: 22px; margin: 0 0 24px; }
.mobile-nav-account a { display: block; color: var(--ink-2); font-size: 14px; padding: 11px 0; }
.mobile-nav-actions { display: grid; gap: 12px; padding-top: 8px; }
.mobile-nav-actions .button { width: 100%; font-size: 14px; }
.mobile-nav-note { color: var(--muted); font-size: 11px; margin: 26px 0 0; }
html.mobile-nav-open { overflow: hidden; }
@keyframes mobile-nav-backdrop-in { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,.62); } }
@keyframes mobile-nav-backdrop-out { from { background: rgba(0,0,0,.62); } to { background: rgba(0,0,0,0); } }
@media (max-width: 860px) {
    .navigation-ready .menu-toggle { display: block; order: 2; }
    .navigation-ready .site-header .header-actions > .button { display: none; }
    .site-header .header-actions { gap: 12px; }
    html:not(.navigation-ready) .site-header .sized { flex-wrap: wrap; }
    html:not(.navigation-ready) .site-header .site-nav { display: flex; order: 3; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; gap: 10px 20px; padding: 6px 0; }
}
@media (max-width: 380px) {
    .mobile-nav-panel { padding-left: 22px; padding-right: 22px; }
    .mobile-nav-brand h2 { font-size: 18px; }
    .mobile-nav-primary a { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-dialog::backdrop { animation: none !important; }
    .menu-toggle > span { transition: none !important; }
}
