/* Paideia Software v39 — conversion-focused visual system */
:root {
  --midnight: #081b3a;
  --navy: #10366f;
  --blue: #2463e8;
  --aqua: #69d8d1;
  --gold: #f3c75b;
  --coral: #ed716a;
  --paper: #f7f5f0;
  --paper-deep: #ede9df;
  --white: #ffffff;
  --ink: #14213b;
  --muted: #60708a;
  --line: rgba(18, 47, 91, .14);
  --shadow: 0 24px 70px rgba(9, 29, 66, .12);
  --shadow-soft: 0 12px 32px rgba(9, 29, 66, .09);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::selection { background: rgba(105, 216, 209, .72); color: var(--midnight); }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
.skip-link { background: var(--gold); color: var(--midnight); font-weight: 800; left: 16px; padding: 10px 15px; top: -52px; z-index: 100; }
.skip-link:focus { top: 14px; }
.container { width: min(1120px, calc(100% - 48px)); }

/* Header */
.topbar {
  background: rgba(247, 245, 240, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  position: sticky;
  top: 0;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  z-index: 40;
}
.topbar.is-scrolled { background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: 0 8px 24px rgba(7, 27, 58, .06); }
.nav { align-items: center; min-height: 76px; position: relative; }
.brand { align-items: center; display: flex; flex: 0 0 auto; }
.brand img { display: block; height: 39px; max-width: 190px; width: auto; }
.nav-links { align-items: center; display: flex; gap: 4px; margin-left: auto; }
.nav-links > a:not(.button) { border-radius: 999px; color: #475671; font-size: .88rem; font-weight: 750; padding: .56rem .74rem; text-decoration: none; transition: color .18s ease, background .18s ease; }
.nav-links > a:not(.button):hover, .nav-links > a:not(.button).active { background: rgba(36, 99, 232, .09); color: var(--navy); }
.nav-links .button { margin-left: .35rem; }
.mobile-nav-toggle { background: var(--midnight); border: 0; border-radius: 10px; color: white; cursor: pointer; display: none; font: 800 .78rem/1 inherit; letter-spacing: .04em; margin-left: auto; padding: .7rem .78rem; text-transform: uppercase; }

/* Global type and buttons */
h1, h2, h3 { color: var(--midnight); font-family: ui-rounded, "Avenir Next", Avenir, Inter, sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(2.55rem, 5.15vw, 5.05rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3.3vw, 3.5rem); line-height: 1.03; }
h3 { line-height: 1.08; }
.lead, .section-copy { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.22rem); line-height: 1.65; }
.eyebrow { align-items: center; color: var(--blue); display: inline-flex; font-size: .74rem; font-weight: 850; gap: .48rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { background: currentColor; border-radius: 99px; content: ""; display: inline-block; height: .45rem; width: .45rem; }
.button { align-items: center; border: 1px solid transparent; border-radius: 999px; box-shadow: none; display: inline-flex; font-size: .9rem; font-weight: 820; justify-content: center; min-height: 47px; padding: .76rem 1.12rem; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { box-shadow: 0 10px 22px rgba(9, 35, 82, .16); transform: translateY(-2px); }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #1355da; }
.button.secondary { background: white; border-color: rgba(10, 36, 82, .18); color: var(--midnight); }
.button.secondary:hover { background: #f7f9fd; }
.button.ghost { background: transparent; color: var(--navy); }
.button.ghost:hover { background: rgba(36, 99, 232, .08); box-shadow: none; }
.section { padding: clamp(4.6rem, 7.5vw, 8.2rem) 0; }
.section:nth-of-type(even) { background: rgba(237, 241, 245, .54); }
.inline-actions, .hero-actions, .app-footer { gap: .74rem; }

/* Existing shared page markup — redesigned */
.hero { background: radial-gradient(circle at 90% 11%, rgba(105, 216, 209, .25), transparent 25%), radial-gradient(circle at 6% 90%, rgba(243, 199, 91, .24), transparent 24%), linear-gradient(130deg, #f8f6f2 0%, #ffffff 60%, #edf3fb 100%); overflow: hidden; padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.75rem, 6vw, 6rem); position: relative; }
.hero::after { background: linear-gradient(90deg, transparent, rgba(36, 99, 232, .08)); content: ""; height: 1px; left: 0; position: absolute; right: 0; bottom: 0; }
.hero h1 { margin: .45rem 0 1.1rem; max-width: 14ch; }
.hero .lead { max-width: 640px; }
.page-hero { align-items: center; display: grid; gap: clamp(2.2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.03fr) minmax(280px, .72fr); }
.page-hero > .panel { border-radius: 28px; padding: 1.2rem; }
.page-hero > .panel img { border-radius: 18px; display: block; }
.panel, .card, .quote-card, .support-form-card, .support-box, .notice { border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.panel, .card, .quote-card, .support-form-card, .support-box, .notice { border-radius: var(--radius-lg); }
.panel { padding: clamp(1.35rem, 2.3vw, 2rem); }
.panel.soft-blue { background: linear-gradient(155deg, #e7f1ff, #fff 68%); }
.panel.soft-warm { background: linear-gradient(155deg, #fff3d6, #fffdfa 70%); }
.panel.soft-mint { background: linear-gradient(155deg, #dff7f1, #fcfffe 69%); }
.panel h3 { font-size: 1.3rem; margin: .3rem 0 .65rem; }
.panel p, .card p, .quote-card p { color: var(--muted); }
.two-col { align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.card-grid, .value-grid { gap: 1.1rem; }
.card-grid > .panel, .value-grid > .panel { min-height: 100%; }
.feature-list { display: grid; gap: .82rem; }
.feature-list li { align-items: flex-start; color: #475872; display: flex; font-size: .98rem; gap: .72rem; line-height: 1.5; }
.feature-list li::before { background: #dff8f2; border: 1px solid #8ed5c8; border-radius: 50%; color: #126d65; content: "✓"; flex: 0 0 auto; font-size: .68rem; font-weight: 900; height: 1.2rem; line-height: 1.08rem; margin-top: .08rem; text-align: center; width: 1.2rem; }
.kicker-list { gap: .48rem; }
.kicker-list span, .feature-pills span { background: rgba(255, 255, 255, .72); border: 1px solid rgba(13, 47, 91, .14); color: #415473; font-size: .73rem; font-weight: 760; padding: .42rem .64rem; }

/* Homepage: conversion-led custom section */
.v39-home .topbar { background: rgba(8, 27, 58, .96); }
.v39-home .topbar.is-scrolled { background: #081b3a; border-color: rgba(255,255,255,.12); }
.v39-home .brand { background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); padding: .32rem .5rem; }
.v39-home .brand img { height: 43px; max-width: 210px; opacity: 1; }
.v39-home .footer .brand img { filter: brightness(0) saturate(100%) invert(11%) sepia(37%) saturate(1675%) hue-rotate(178deg) brightness(90%) contrast(102%); }
.v39-home .nav-links > a:not(.button) { color: #d7e3f7; }
.v39-home .nav-links > a:not(.button):hover, .v39-home .nav-links > a:not(.button).active { background: rgba(255,255,255,.1); color: white; }
.v39-home .mobile-nav-toggle { background: var(--gold); color: var(--midnight); }
.conversion-hero { background: #071a3a; color: white; min-height: min(760px, calc(100vh - 76px)); overflow: hidden; padding: clamp(4rem, 8vw, 7.8rem) 0 4rem; position: relative; }
.conversion-hero::before { background: radial-gradient(circle at 78% 27%, rgba(36, 99, 232, .95), transparent 0 21%), radial-gradient(circle at 94% 76%, rgba(105, 216, 209, .64), transparent 0 14%), radial-gradient(circle at 42% 120%, rgba(243, 199, 91, .23), transparent 0 33%); content: ""; inset: 0; position: absolute; }
.conversion-hero::after { background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 55px 55px; content: ""; inset: 0; mask-image: linear-gradient(90deg, transparent 0%, black 42%, black 100%); opacity: .42; position: absolute; }
.conversion-grid { align-items: center; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); min-height: 500px; position: relative; z-index: 1; }
.conversion-hero h1 { color: white; font-size: clamp(3rem, 6.2vw, 6.7rem); max-width: 9.6ch; }
.conversion-hero h1 em { color: var(--gold); font-style: normal; }
.conversion-hero .eyebrow { color: var(--aqua); }
.conversion-hero .lead { color: #d0dff5; max-width: 590px; }
.conversion-hero .button.primary { background: var(--gold); color: var(--midnight); }
.conversion-hero .button.primary:hover { background: #ffda7d; }
.conversion-hero .button.secondary { background: transparent; border-color: rgba(255,255,255,.38); color: white; }
.hero-proof { align-items: center; color: #c7d6ed; display: flex; flex-wrap: wrap; font-size: .78rem; font-weight: 700; gap: .85rem; margin-top: 1.4rem; }
.hero-proof span { display: inline-flex; gap: .3rem; }
.hero-proof b { color: white; }
.hero-proof i { background: rgba(255,255,255,.35); height: 3px; width: 3px; }
.election-stage { min-height: 470px; position: relative; }
.election-stage::before, .election-stage::after { border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; position: absolute; }
.election-stage::before { height: 390px; right: -8px; top: 15px; width: 390px; }
.election-stage::after { box-shadow: 0 0 0 36px rgba(255,255,255,.07), 0 0 0 72px rgba(255,255,255,.05); height: 220px; right: 82px; top: 102px; width: 220px; }
.stage-tablet { background: #060c18; border: 10px solid #1f2c3f; border-radius: 24px; box-shadow: 0 36px 70px rgba(0,0,0,.38); overflow: hidden; position: absolute; right: -10px; top: 52px; transform: rotate(-3deg); width: min(570px, 100%); z-index: 2; }
.stage-tablet img { display: block; width: 100%; }
.stage-phone { background: #101725; border: 8px solid #2e3d55; border-radius: 26px; box-shadow: 0 26px 55px rgba(0,0,0,.38); overflow: hidden; position: absolute; right: min(65%, 340px); top: 188px; transform: rotate(7deg); width: 165px; z-index: 3; }
.stage-phone img { display: block; width: 100%; }
.stage-note { background: rgba(7, 26, 58, .82); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; bottom: 14px; color: #edf6ff; font-size: .78rem; font-weight: 780; left: 3px; max-width: 208px; padding: .8rem .88rem; position: absolute; z-index: 4; }
.stage-note strong { color: var(--gold); display: block; font-size: .68rem; letter-spacing: .1em; margin-bottom: .25rem; text-transform: uppercase; }
.signal-strip { background: var(--gold); color: var(--midnight); padding: 1.12rem 0; }
.signal-strip .container { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; justify-content: space-between; }
.signal-strip strong { font-size: .95rem; }
.signal-strip p { font-size: .8rem; margin: 0; max-width: 600px; }
.signal-strip a { font-size: .8rem; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.signature-grid { align-items: center; display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: .85fr 1.15fr; }
.signature-copy h2 { margin: .35rem 0 1rem; max-width: 13ch; }
.signature-copy h2 em { color: var(--blue); font-style: normal; }
.shot-collage { min-height: 480px; position: relative; }
.shot-collage::before { background: #dcebf1; border-radius: 28px; content: ""; inset: 9% 1% 3% 11%; position: absolute; transform: rotate(3deg); }
.shot-large { background: #111c2c; border: 10px solid #1e2d45; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; position: absolute; right: 0; top: 0; transform: rotate(-3deg); width: min(89%, 540px); z-index: 2; }
.shot-large img { display: block; width: 100%; }
.shot-small { background: #111c2c; border: 7px solid #26364d; border-radius: 20px; bottom: 0; box-shadow: 0 18px 45px rgba(7,27,58,.23); left: 0; overflow: hidden; position: absolute; transform: rotate(6deg); width: min(39%, 190px); z-index: 3; }
.shot-small img { display: block; width: 100%; }
.point-list { border-top: 1px solid var(--line); display: grid; margin-top: 1.6rem; }
.point-list div { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 36px 1fr; padding: 1rem 0; }
.point-list b { color: var(--blue); font-size: .72rem; letter-spacing: .08em; padding-top: .25rem; }
.point-list strong { display: block; font-size: 1rem; margin-bottom: .15rem; }
.point-list span { color: var(--muted); font-size: .9rem; }
.app-showcase { background: #f1f5f6; }
.section-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2.1rem; }
.section-heading h2 { margin: .35rem 0 0; }
.section-heading h2 em { color: var(--blue); font-style: normal; }
.section-heading > p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0 0 .2rem; max-width: 385px; }
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { background: white; border: 1px solid rgba(16, 54, 111, .12); border-radius: 22px; box-shadow: 0 14px 32px rgba(7, 27, 58, .07); display: flex; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.product-card-visual { align-items: center; display: flex; height: 210px; justify-content: center; overflow: hidden; padding: 1.3rem; position: relative; }
.product-card-visual::before { border: 1px solid rgba(255,255,255,.38); border-radius: 50%; content: ""; height: 180px; position: absolute; right: -45px; top: -63px; width: 180px; }
.product-card.election .product-card-visual { background: linear-gradient(145deg, #0c2b66, #2872d9); }
.product-card.action .product-card-visual { background: linear-gradient(145deg, #fff0bd, #f2975c); }
.product-card.inspire .product-card-visual { background: linear-gradient(145deg, #f6bfd0, #9173c8); }
.product-card.prime .product-card-visual { background: linear-gradient(145deg, #ffe06c, #f99259); }
.product-card-visual img { border: 5px solid rgba(17,28,44,.5); border-radius: 12px; box-shadow: 0 14px 26px rgba(7,27,58,.24); display: block; max-height: 175px; max-width: 95%; object-fit: contain; position: relative; }
.product-card.election .product-card-visual img { border-radius: 9px; max-height: none; width: 95%; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem; }
.product-card .pill { background: rgba(36,99,232,.08); color: var(--navy); font-size: .67rem; font-weight: 840; margin-bottom: .75rem; width: fit-content; }
.product-card h3 { font-size: 1.25rem; margin: 0; }
.product-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: .7rem 0 1.1rem; }
.product-card .text-cta { color: var(--blue); font-size: .82rem; font-weight: 850; margin-top: auto; text-decoration: none; }
.product-card .text-cta::after { content: " →"; }
.philosophy-band { background: var(--midnight); color: white; overflow: hidden; position: relative; }
.philosophy-band::before { background: radial-gradient(circle at 80% 50%, rgba(105,216,209,.27), transparent 0 25%), radial-gradient(circle at 10% 10%, rgba(243,199,91,.22), transparent 0 20%); content: ""; inset: 0; position: absolute; }
.philosophy-band .container { align-items: center; display: grid; gap: 5rem; grid-template-columns: 1fr .95fr; position: relative; }
.philosophy-band h2 { color: white; margin: .35rem 0 .9rem; max-width: 13ch; }
.philosophy-band h2 em { color: var(--aqua); font-style: normal; }
.philosophy-band p { color: #c7d6ed; font-size: 1.05rem; max-width: 555px; }
.method-cards { display: grid; gap: .75rem; }
.method-card { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 15px; display: grid; gap: 1rem; grid-template-columns: 42px 1fr; padding: 1rem; }
.method-card b { color: var(--gold); font-size: .72rem; letter-spacing: .1em; }
.method-card strong { color: white; display: block; font-size: .98rem; margin-bottom: .1rem; }
.method-card span { color: #c7d6ed; font-size: .83rem; }
.final-cta { background: linear-gradient(135deg, #f7e4af 0%, #fff6e4 50%, #cdeeee 100%); }
.final-cta .container { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.final-cta h2 { margin: .35rem 0 0; }
.final-cta h2 em { color: var(--blue); font-style: normal; }

/* App catalog and page content */
.apps-grid { gap: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-card { background: white; display: flex; flex-direction: column; overflow: hidden; }
.app-card .thumb { background: #edf3fb; border: 0; border-radius: 0; margin: -1.35rem -1.35rem 1.2rem; padding: 1rem; }
.app-card .thumb img { border: 1px solid rgba(11,35,77,.16); border-radius: 13px; box-shadow: 0 12px 30px rgba(7,27,58,.13); }
.app-card .pill { background: rgba(36,99,232,.09); color: var(--navy); font-size: .68rem; font-weight: 840; }
.app-card h3 { font-size: 1.5rem; margin-top: .7rem; }
.app-card p { font-size: .94rem; }
.app-footer { margin-top: auto; padding-top: 1.2rem; }
.hero-shot, .hero-feature-card, .city-hero-shot { background: transparent; border: 0; box-shadow: none; }
.hero-shot img, .hero-feature-card > img, .city-hero-shot img { border: 9px solid #1e2e46; border-radius: 19px; box-shadow: 0 24px 50px rgba(7,27,58,.24); }
.hero-shot-action img { border-radius: 25px; max-height: 500px; width: auto; }
.hero-feature-card { position: relative; }
.feature-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.feature-matrix { gap: 1rem; }
.feature-matrix .panel { border-radius: 16px; min-height: 100%; }
.device-gallery { background: linear-gradient(160deg, #e9eff8, #fff); border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem; }
.gallery-note { color: var(--muted); font-size: .85rem; margin: 1rem .4rem 0; text-align: center; }
.carousel { margin: 0 auto; }
.carousel-controls { margin-top: 1rem; }
.icon-button { background: white; border: 1px solid var(--line); box-shadow: 0 3px 12px rgba(7,27,58,.07); color: var(--navy); }
.dot { background: rgba(36,99,232,.18); }
.dot.active { background: var(--blue); }
.summary-item { background: rgba(255,255,255,.62); border: 1px solid rgba(16,54,111,.11); border-radius: 13px; padding: .85rem; }

/* City content pages */
.city-landing-hero { background: linear-gradient(130deg, #081b3a 0%, #124f9d 62%, #5fc8d0 145%); color: white; }
.city-landing-hero::after { background: rgba(255,255,255,.12); }
.city-landing-hero h1 { color: white; }
.city-landing-hero .lead { color: #dbe9fb; }
.city-landing-hero .eyebrow { color: var(--gold); }
.city-landing-hero .button.primary { background: var(--gold); color: var(--midnight); }
.city-landing-hero .button.secondary { background: transparent; border-color: rgba(255,255,255,.4); color: white; }
.city-landing-hero .kicker-list span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: white; }
.city-landing-hero .city-hero-shot { background: transparent; }
.city-card-grid { gap: 1rem; }

/* Support and legal */
.support-form-card { background: white; padding: clamp(1.35rem, 3vw, 2.2rem); }
.support-form-header h2 { font-size: 1.8rem; }
.support-form-clean label { color: #354663; font-size: .84rem; font-weight: 770; }
.support-form-clean input, .support-form-clean select, .support-form-clean textarea { background: #fbfcff; border: 1px solid #cfd9e7; border-radius: 10px; color: var(--ink); font: inherit; padding: .8rem .85rem; }
.support-form-clean input:focus, .support-form-clean select:focus, .support-form-clean textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,99,232,.1); outline: 0; }
.support-form-clean textarea { min-height: 140px; }
.support-form-clean .button { border: 0; cursor: pointer; }
.support-status { background: #def5ec; border: 1px solid #9bdac6; border-radius: 10px; color: #175f53; margin: 0 0 1.1rem; padding: .9rem 1rem; }
.support-info-stack { gap: 1rem; }
.support-side-panel { box-shadow: none; }
.privacy-page .hero h1, .privacy-page h1 { max-width: 12ch; }
article.panel h2 { font-size: 1.45rem; margin-top: 2rem; }
article.panel p, article.panel li { color: var(--muted); line-height: 1.7; }

/* Footer and conversion prompt */
.footer { background: var(--midnight); border: 0; color: white; padding: 4.2rem 0 1.5rem; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer .caption, .footer li a { color: #bdcce3; }
.footer strong { color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer a:hover { color: var(--aqua); }
.footer-bottom-links { border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.4rem; padding-top: 1.25rem; }
.footer-bottom-links a { color: #bdcce3; }
.election-pulse { align-items: center; background: var(--midnight); border: 1px solid rgba(255,255,255,.2); border-radius: 15px; bottom: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.24); color: white; display: none; gap: .7rem; left: 18px; padding: .65rem .7rem .65rem 1rem; position: fixed; right: 18px; z-index: 35; }
.election-pulse span { font-size: .79rem; line-height: 1.25; }
.election-pulse strong { color: var(--gold); display: block; font-size: .65rem; letter-spacing: .1em; margin-bottom: .15rem; text-transform: uppercase; }
.election-pulse a { background: var(--gold); border-radius: 999px; color: var(--midnight); flex: 0 0 auto; font-size: .72rem; font-weight: 850; padding: .6rem .72rem; text-decoration: none; }

/* Motion and image viewer */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.zoomable { cursor: zoom-in; }
.image-modal { align-items: center; background: rgba(4,14,32,.9); display: flex; inset: 0; justify-content: center; opacity: 0; padding: 2.2rem; pointer-events: none; position: fixed; transition: opacity .2s ease; z-index: 100; }
.image-modal.open { opacity: 1; pointer-events: auto; }
.image-modal img { border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.45); max-height: 86vh; max-width: min(1160px, 94vw); }
.image-modal button { background: white; border: 0; border-radius: 999px; color: var(--midnight); cursor: pointer; font-size: 1.25rem; font-weight: 900; height: 38px; position: absolute; right: 20px; top: 20px; width: 38px; }

@media (max-width: 900px) {
  .container { width: min(100% - 38px, 710px); }
  .nav { min-height: 68px; }
  .brand img { height: 34px; }
  .mobile-nav-toggle { display: inline-flex; }
  .nav-links { background: var(--midnight); border: 1px solid rgba(255,255,255,.17); border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: .12rem; left: 0; margin: 0; opacity: 0; padding: .65rem; pointer-events: none; position: absolute; right: 0; top: calc(100% - 5px); transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links > a:not(.button) { color: #e4edfb; padding: .75rem .82rem; }
  .nav-links > a:not(.button):hover, .nav-links > a:not(.button).active { background: rgba(255,255,255,.1); color: white; }
  .nav-links .button { margin: .35rem 0 0; }
  .nav-links .button.secondary { background: var(--gold); border-color: var(--gold); color: var(--midnight); }
  .v39-home .nav-links { background: var(--midnight); }
  .page-hero, .conversion-grid, .signature-grid, .philosophy-band .container { grid-template-columns: 1fr; }
  .page-hero > .panel { max-width: 420px; }
  .conversion-hero { min-height: 0; }
  .conversion-hero h1 { max-width: 10.2ch; }
  .election-stage { min-height: 390px; margin: 0 auto; max-width: 590px; width: 100%; }
  .stage-tablet { right: 0; top: 30px; }
  .stage-phone { right: 62%; top: 160px; width: 135px; }
  .shot-collage { max-width: 620px; width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .section-heading > p { max-width: 620px; }
  .apps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 610px) {
  .container { width: min(100% - 32px, 500px); }
  .hero { padding: 3.8rem 0 3.3rem; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .button { font-size: .84rem; min-height: 44px; padding: .67rem .9rem; }
  .hero-actions, .inline-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .inline-actions .button { width: 100%; }
  .conversion-hero { padding: 3.6rem 0 2.8rem; }
  .hero-proof { align-items: start; flex-direction: column; gap: .38rem; }
  .hero-proof i { display: none; }
  .election-stage { min-height: 310px; margin-top: .7rem; }
  .election-stage::before { height: 275px; right: -30px; width: 275px; }
  .election-stage::after { height: 150px; right: 44px; top: 83px; width: 150px; }
  .stage-tablet { border-width: 6px; border-radius: 15px; top: 40px; width: 96%; }
  .stage-phone { border-width: 5px; border-radius: 16px; right: 64%; top: 136px; width: 94px; }
  .stage-note { bottom: -3px; font-size: .68rem; max-width: 180px; padding: .58rem .65rem; }
  .signal-strip .container { align-items: flex-start; flex-direction: column; }
  .section { padding: 4.2rem 0; }
  .shot-collage { min-height: 335px; }
  .shot-collage::before { border-radius: 18px; }
  .shot-large { border-width: 6px; border-radius: 16px; width: 92%; }
  .shot-small { border-width: 4px; border-radius: 12px; width: 36%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .product-card-visual { height: auto; min-height: 176px; }
  .product-card-body { padding: 1rem; }
  .product-card p { margin-bottom: .7rem; }
  .philosophy-band .container { gap: 2rem; }
  .final-cta .container { align-items: flex-start; flex-direction: column; }
  .app-card .thumb { margin: -1.35rem -1.35rem 1.1rem; }
  .footer { padding-top: 3.2rem; }
  .footer-grid { gap: 1.8rem; grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom-links { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .election-pulse { display: flex; }
  body.has-election-pulse .footer { padding-bottom: 6.4rem; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
