:root {
  --ink: #132c3f;
  --ink-soft: #4f6474;
  --navy: #12304a;
  --blue: #2d7ff9;
  --blue-deep: #1768d2;
  --blue-pale: #eaf3ff;
  --coral: #ef6f61;
  --coral-pale: #fff0ed;
  --mint: #dff6ed;
  --paper: #f8fbfd;
  --white: #fff;
  --line: #dbe6ed;
  --line-strong: #bdced9;
  --danger: #b53a38;
  --shadow: 0 24px 70px rgba(24, 63, 91, .12);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 1rem; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--navy); color: white; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { min-height: 76px; padding: 0 max(20px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(248,251,253,.92); border-bottom: 1px solid rgba(189,206,217,.7); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; font-size: 1.08rem; }
.brand-mark { width: 34px; height: 28px; display: inline-flex; align-items: flex-end; gap: 3px; padding: 4px; background: var(--navy); border-radius: 9px; overflow: hidden; }
.brand-mark i { width: 7px; border-radius: 7px 7px 2px 2px; background: white; transform: rotate(12deg); }
.brand-mark i:nth-child(1) { height: 10px; opacity: .58; }
.brand-mark i:nth-child(2) { height: 18px; opacity: .82; }
.brand-mark i:nth-child(3) { height: 13px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: .94rem; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue-deep); }
.site-nav .nav-cta { color: white; background: var(--navy); border-radius: 999px; padding: 10px 19px; }
.menu-button { display: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 10px; padding: 8px 12px; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; padding-block: 84px 92px; }
.eyebrow { margin: 0 0 14px; color: var(--blue-deep); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; line-height: 1.09; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); margin-bottom: 25px; max-width: 720px; }
.hero h1 span { color: var(--blue); }
.hero-lede { max-width: 650px; color: var(--ink-soft); font-size: 1.16rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin: 32px 0 12px; flex-wrap: wrap; }
.button { appearance: none; border: 0; border-radius: 12px; min-height: 48px; padding: 12px 19px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .16s ease, background .16s ease, border .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(45,127,249,.28); outline-offset: 2px; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(45,127,249,.23); }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line-strong); }
.button.subtle { background: transparent; color: var(--blue-deep); }
.button.light { background: white; color: var(--navy); }
.button.danger { color: white; background: var(--danger); }
.button.full { width: 100%; }
.text-link { color: var(--blue-deep); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.microcopy, .muted, .status-text, .configuration-note { color: var(--ink-soft); font-size: .88rem; }
.hero-preview { background: white; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.preview-head, .chart-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.preview-head { font-size: .91rem; font-weight: 760; }
.local-pill { color: #227556; background: var(--mint); border-radius: 999px; padding: 5px 10px; font-size: .73rem; }
.hero-chart { display: block; width: 100%; margin: 22px 0 6px; }
.grid-line { stroke: #e4edf2; stroke-width: 1; fill: none; }
.chart-fill { fill: url(#fillWave); }
.line-a, .line-b { fill: none; stroke-width: 4; stroke-linecap: round; }
.line-a { stroke: var(--blue); }
.line-b { stroke: var(--coral); stroke-dasharray: 6 8; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-size: .82rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; }
.dot.blue { background: var(--blue); }
.dot.coral { background: var(--coral); }
.preview-insight { margin-top: 22px; padding: 15px 16px; border: 1px solid #dce9ff; background: var(--blue-pale); border-radius: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.preview-insight > span { color: var(--blue-deep); font-size: 1.5rem; line-height: 1; }
.preview-insight p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.preview-insight strong { display: block; color: var(--ink); }

.trust-strip { border-block: 1px solid var(--line); background: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-block: 19px; color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.trust-grid span + span { border-left: 1px solid var(--line); }
.section { padding-block: 110px; }
.section-heading { max-width: 680px; margin-bottom: 48px; }
.section-heading h2, .reality-band h2, .final-cta h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 18px; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid article { min-height: 280px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.feature-number { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue-deep); font-size: .78rem; font-weight: 850; }
.feature-grid h3 { font-size: 1.35rem; margin: 72px 0 12px; }
.feature-grid p { color: var(--ink-soft); margin-bottom: 0; }
.reality-band { background: var(--navy); color: white; }
.reality-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 88px; align-items: center; }
.reality-band .eyebrow { color: #8fc1ff; }
.reality-band p { color: #c9d8e4; }
.final-cta { text-align: center; }
.final-cta .button { margin-top: 12px; }

.page-hero { padding-block: 92px 58px; text-align: center; max-width: 900px; }
.page-hero.narrow { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.9rem); margin-bottom: 22px; }
.page-hero > p:last-child { color: var(--ink-soft); font-size: 1.13rem; max-width: 760px; margin-inline: auto; }
.page-hero .effective { font-size: .88rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 24px; padding: 16px 0 94px; }
.price-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.recommended { position: absolute; right: 22px; top: 22px; padding: 5px 9px; border-radius: 99px; background: var(--blue-pale); color: var(--blue-deep); font-size: .72rem; font-weight: 800; }
.plan-name { margin: 0; font-weight: 820; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.price strong { font-size: 2.5rem; letter-spacing: -.05em; }
.price span { color: var(--ink-soft); font-size: .86rem; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0; }
.price-card li { padding: 9px 0 9px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #24835f; font-weight: 900; }
.configuration-note { text-align: center; margin-bottom: 0; }
.faq { max-width: 820px; padding-bottom: 100px; }
.faq h2 { font-size: 2rem; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 770; }
.faq details p { color: var(--ink-soft); }
.prose { max-width: 780px; padding-bottom: 100px; }
.prose h2 { font-size: 1.55rem; margin: 46px 0 12px; }
.prose p { color: var(--ink-soft); line-height: 1.8; }
.prose a { color: var(--blue-deep); }
.privacy-table { margin: 24px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.privacy-table > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; background: white; padding: 18px 20px; }
.privacy-table > div + div { border-top: 1px solid var(--line); }
.privacy-table span { color: var(--ink-soft); }

.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 42px; padding-block: 38px 82px; align-items: start; }
.app-sidebar { min-height: calc(100vh - 150px); position: sticky; top: 114px; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0; }
.sidebar-label { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 850; margin: 0 0 16px 13px; }
.app-nav { display: grid; gap: 5px; }
.app-nav a { padding: 11px 13px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .93rem; }
.app-nav a.active { color: var(--blue-deep); background: var(--blue-pale); }
.local-status { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.shield { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 34px; color: #196d50; background: var(--mint); font-weight: 900; clip-path: polygon(50% 0, 93% 15%, 84% 77%, 50% 100%, 16% 77%, 7% 15%); }
.shield.tiny { width: 17px; height: 19px; font-size: .63rem; vertical-align: middle; }
.local-status strong, .local-status span { display: block; }
.local-status span { color: var(--ink-soft); font-size: .74rem; line-height: 1.35; margin-top: 2px; }
.app-main { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 16px 50px rgba(35,73,97,.08); overflow: hidden; }
.app-mobile-nav { display: none; }
.app-view { padding: 42px; }
.view-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 30px; }
.view-heading h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 10px; }
.view-heading p:last-child { color: var(--ink-soft); margin-bottom: 0; }
.date-control { display: grid; gap: 6px; min-width: 165px; }
.date-control label, .chart-head label { color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
input[type="date"], input[type="text"], select, textarea { width: 100%; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 96px; }
.metric-list { display: grid; }
.metric-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 24px; align-items: center; width: 100%; min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
.metric-row legend { padding: 0; }
.metric-label strong, .metric-label span { display: block; }
.metric-label strong { font-size: .96rem; }
.metric-label span { color: var(--ink-soft); font-size: .78rem; margin-top: 2px; }
.scale { display: grid; grid-template-columns: repeat(6, 38px); gap: 7px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: white; color: var(--ink-soft); cursor: pointer; font-size: .82rem; font-weight: 780; transition: .14s ease; }
.scale label:hover { border-color: var(--blue); color: var(--blue-deep); }
.scale input:focus-visible + label { outline: 3px solid rgba(45,127,249,.25); }
.scale input:checked + label { background: var(--blue); color: white; border-color: var(--blue); transform: scale(1.06); }
.tag-fieldset, .partner-builder fieldset { border: 0; padding: 0; margin: 34px 0; }
.tag-fieldset legend, .partner-builder legend { font-size: 1.05rem; font-weight: 800; margin-bottom: 15px; }
.tag-fieldset legend span { color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-list input, .needs-grid input { position: absolute; opacity: 0; pointer-events: none; }
.tag-list label { padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.tag-list input:checked + label { background: var(--coral-pale); color: #a74439; border-color: #f2aaa2; }
.tag-list input:focus-visible + label, .needs-grid input:focus-visible + label { outline: 3px solid rgba(45,127,249,.25); outline-offset: 2px; }
.notes-label { display: grid; gap: 9px; font-weight: 800; }
.notes-label small { color: var(--ink-soft); font-weight: 500; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
.form-footer p { color: var(--ink-soft); font-size: .82rem; margin: 0; }
.toast { margin-top: 14px; color: #176b4d; font-weight: 700; min-height: 1.5em; }

.range-tabs { display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; gap: 3px; margin-bottom: 24px; }
.range-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 8px 13px; color: var(--ink-soft); font-weight: 760; cursor: pointer; }
.range-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 9px rgba(34,63,82,.12); }
.range-tabs span { font-size: .62rem; color: var(--blue-deep); background: var(--blue-pale); padding: 2px 4px; border-radius: 4px; }
.empty-state { text-align: center; padding: 68px 20px; }
.empty-state h2 { font-size: 1.7rem; margin-bottom: 10px; }
.empty-state p { color: var(--ink-soft); max-width: 500px; margin: 0 auto 24px; }
.empty-orbit { position: relative; width: 100px; height: 100px; margin: 0 auto 26px; border: 1px solid #b9d4f7; border-radius: 50%; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #d3e4fa; inset: 17px; }
.empty-orbit::after { inset: 34px; background: var(--blue); border: 0; }
.empty-orbit i { position: absolute; width: 14px; height: 14px; background: var(--coral); border-radius: 50%; top: 12px; right: 7px; }
.chart-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.chart-head h2 { margin: 4px 0 0; font-size: 1.35rem; }
.chart-head label { display: grid; gap: 5px; min-width: 190px; }
.card-kicker { color: var(--ink-soft); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.canvas-wrap { min-height: 310px; margin-top: 22px; }
.canvas-wrap canvas { width: 100%; height: 300px; }
.chart-card .legend { margin-top: 16px; }
.insight-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; margin-top: 34px; }
.insight-layout h2 { margin: 7px 0; }
.insight-list { display: grid; gap: 12px; }
.insight-card { padding: 17px 18px; background: var(--blue-pale); border: 1px solid #d4e6ff; border-radius: 13px; }
.insight-card.neutral { background: var(--paper); border-color: var(--line); }
.insight-card strong { display: block; margin-bottom: 4px; }
.insight-card p { color: var(--ink-soft); margin: 0; font-size: .88rem; }

.reality-lead { padding: 22px; border-radius: 16px; background: var(--coral-pale); border: 1px solid #f5c7c2; margin-bottom: 24px; }
.reality-lead h2 { margin: 0 0 8px; font-size: 1.3rem; }
.reality-lead p { margin: 0; color: var(--ink-soft); }
.memory-list { display: grid; gap: 14px; }
.memory-card { border: 1px solid var(--line); border-radius: 15px; padding: 19px; }
.memory-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.memory-head strong { font-size: 1.05rem; }
.similarity { color: var(--blue-deep); font-size: .75rem; font-weight: 800; background: var(--blue-pale); border-radius: 99px; padding: 5px 8px; }
.memory-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.memory-stats span { color: var(--ink-soft); font-size: .78rem; padding: 5px 8px; background: var(--paper); border-radius: 7px; }
.memory-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-style: italic; }
.memory-note,.card-message { overflow-wrap:anywhere; }
.premium-lock { padding: 20px; border: 1px solid #cfe1fa; background: linear-gradient(135deg, var(--blue-pale), white); border-radius: 16px; margin-top: 18px; }
.range-lock { margin: 0 0 24px; }
.premium-lock h3 { margin-bottom: 7px; }
.premium-lock p { color: var(--ink-soft); }

.partner-builder { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; align-items: start; }
.partner-builder form { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.needs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.needs-grid label { min-height: 60px; padding: 13px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); cursor: pointer; font-weight: 700; font-size: .88rem; }
.needs-grid input:checked + label { background: var(--blue-pale); border-color: #99c3fa; color: var(--blue-deep); }
.need-icon { font-size: 1.15rem; }
.switch-row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.switch-row input { margin-top: 5px; accent-color: var(--blue); }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--ink-soft); margin-top: 3px; }
.partner-card, .shared-card { min-height: 360px; padding: 34px; border-radius: 22px; color: white; background: radial-gradient(circle at 90% 4%, rgba(95,170,255,.38), transparent 35%), var(--navy); box-shadow: var(--shadow); }
.partner-card .eyebrow, .shared-card .eyebrow { color: #91c4ff; }
.partner-card h2, .shared-card h1 { font-size: 2.15rem; }
.partner-card > p:last-child, .shared-card > p:last-child { color: #cbd8e1; }
.partner-card ul, .shared-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.partner-card li, .shared-card li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 730; }
.partner-card li::before, .shared-card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #75b4ff; }
.card-message { padding: 14px 16px; border-left: 3px solid var(--coral); background: rgba(255,255,255,.07); border-radius: 0 9px 9px 0; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.card-actions button { background: white; color: var(--navy); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.settings-card.wide { grid-column: 1 / -1; }
.settings-card input[type="password"] { width:100%; padding:12px; border:1px solid var(--line-strong); border-radius:10px; }
.settings-card details { margin-top:20px; }
.settings-card summary { cursor:pointer; font-weight:700; }
.settings-card .button-row { margin-block:16px; }
.settings-card textarea { font-size:14px; overflow-wrap:anywhere; }
.notice { padding:16px 22px; background:var(--blue-pale); border-bottom:1px solid var(--line); display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.notice.warning { background:#fff0ed; color:#8a332a; }
.trend-summary { margin-top:24px; }
.trend-summary table { width:100%; border-collapse:collapse; font-size:14px; }
.trend-summary td,.trend-summary th { padding:10px; text-align:left; border-bottom:1px solid var(--line); }
.status-text { overflow-wrap:anywhere; }
.settings-card .button { white-space:normal; }
.settings-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.settings-card p { color: var(--ink-soft); }
.support-card { background: var(--blue-pale); border-color: #cfe3ff; }
.danger-card { background: #fff8f7; border-color: #f2cfcb; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
dialog { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 28px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(11,29,43,.58); backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 8px; }
dialog p { color: var(--ink-soft); }
dialog label { display: grid; gap: 7px; font-weight: 750; margin: 18px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.shared-page { min-height: 70vh; display: grid; place-items: center; padding-block: 70px; }
.shared-card { width: min(560px, 100%); }
.shared-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 65px; font-weight: 800; }
.shared-footnote { max-width: 520px; text-align: center; color: var(--ink-soft); font-size: .82rem; }

.site-footer { background: #0c2335; color: white; }
.footer-grid { min-height: 220px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: center; }
.footer-brand { color: white; }
.footer-grid > div > p, .footer-note { color: #9eb2c0; font-size: .82rem; }
.footer-grid nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 30px; }
.footer-grid nav a { color: #cbd8e1; text-decoration: none; font-size: .86rem; }
.footer-note { text-align: right; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-block: 64px; }
  .hero-preview { width: min(680px, 100%); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid h3 { margin-top: 38px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
  .app-mobile-nav a { text-align: center; padding: 13px 6px; text-decoration: none; color: var(--ink-soft); font-size: .79rem; font-weight: 760; }
  .app-mobile-nav a.active { color: var(--blue-deep); box-shadow: inset 0 -3px var(--blue); }
  .partner-builder { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; padding-inline: 14px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 12px; right: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); align-items: stretch; flex-direction: column; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-block: 58px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .hero-preview { padding: 18px; border-radius: 20px; transform: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .trust-grid span + span { border-left: 0; }
  .section { padding-block: 72px; }
  .reality-layout { grid-template-columns: 1fr; gap: 18px; padding-block: 62px; }
  .page-hero { padding-block: 62px 40px; }
  .page-hero h1 { font-size: 2.75rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .privacy-table > div { grid-template-columns: 1fr; gap: 4px; }
  .app-shell { width: 100%; padding: 0; }
  .app-main { border: 0; border-radius: 0; box-shadow: none; }
  .app-main { padding-bottom: 64px; }
  .app-mobile-nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 50; border-top: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -8px 24px rgba(25,58,80,.09); }
  .app-view { padding: 28px 18px 50px; }
  .view-heading { align-items: start; flex-direction: column; }
  .date-control { width: 100%; }
  .metric-row { grid-template-columns: 1fr; gap: 12px; }
  .scale { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .scale label { width: 100%; aspect-ratio: 1; height: auto; max-height: 48px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .chart-head { align-items: stretch; flex-direction: column; }
  .range-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); }
  .range-tabs button { padding:8px 4px;white-space:nowrap; }
  .range-tabs span { display:block;width:max-content;margin:3px auto 0; }
  .insight-layout { grid-template-columns: 1fr; }
  .needs-grid, .settings-grid { grid-template-columns: 1fr; }
  .partner-card { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Persistent backup status: subdued, readable, and separate from snoozable reminders. */
.backup-card { margin: 0 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f4f8f9; font-size: .9rem; overflow-wrap: anywhere; }
.backup-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.backup-card p { margin: 6px 0; line-height: 1.5; }
.backup-card .backup-card-foot { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.backup-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.backup-card.compact { padding: 12px 16px; font-size: .82rem; }
.backup-card.compact p { margin: 3px 0; }
.backup-card.compact .button { padding: 8px 12px; font-size: .8rem; flex-shrink: 0; }
.backup-card [data-backup-feedback] { color: #425567; }
.button:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; transform: none; }
@media (max-width: 380px) {
  .backup-card-heading { align-items: start; }
  .backup-card.compact { padding: 10px 12px; }
}
/* iPhone / iOS Safari bottom navigation safety */
@media (max-width: 720px) {
  .app-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .app-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--paper);
  }

  .app-mobile-nav a {
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
  }
}
@media print {
  .site-header, .site-footer, .app-sidebar, .app-mobile-nav, .button, .card-actions { display: none !important; }
  body { background: white; }
  .app-shell, .partner-builder { display: block; }
  .app-main, .partner-card { border: 0; box-shadow: none; }
}
