/* CDAGI company preview adaptation, 2026-09-09.
   Reference: apple-company-preview.html / legacy-company-homepage.html?bg=4.
   Shared typography, original brand images and functional markup remain authoritative. */
:root{--ink:#1d1d1f;--muted:#515154;--paper:#f5f5f7;--line:rgba(40,74,100,.13);--midnight:#1d1d1f;--midnight-soft:#343438;--sky-dark:#0071e3;--sky:#71b9ee;--sky-soft:#eef5fc;--green:#0071e3;--green-dark:#005bb8;--green-soft:#eef5fc;--blue:#0071e3;--blue-light:#eef5fc;--canvas:#f5f8fb;--shadow:0 18px 60px rgba(27,48,74,.10);--preview-card:rgba(255,255,255,.90)}
body{background:linear-gradient(105deg,#fff 0%,#f8fcff 45%,#e0f1fc 78%,#c4e4f5 100%);color:var(--ink)}
.cdagi-brand-band{background:transparent;padding-block:12px;border-bottom:0}
.cdagi-brand-band>span{color:#515154;letter-spacing:.035em}
.cdagi-brand-band img{filter:none;transform:none}
.site-header{max-width:1240px;width:calc(100% - 48px);margin:0 auto;top:10px;min-height:76px;padding:16px 26px;gap:24px;background:rgba(255,255,255,.83);border:1px solid rgba(255,255,255,.9);border-radius:24px;box-shadow:0 10px 35px rgba(30,70,105,.06);backdrop-filter:blur(24px) saturate(1.1)}
.site-header .product-brand strong{color:#1d1d1f;letter-spacing:.02em}.site-header .product-brand small{color:#6e6e73}
.desktop-nav a{color:#515154}.desktop-nav a:hover{color:#0071e3}.desktop-nav a:after{background:#0071e3}
.button,.auth-header-button,.g-primary,.pw button.pw-primary{border-radius:999px;box-shadow:none}
.button-primary,.route-hero .hero-actions .button-primary,.site-header .button-primary[data-start-match],.g-primary,.pw button.pw-primary{background:#0071e3;border-color:#0071e3;color:#fff}
.button-primary:hover,.route-hero .hero-actions .button-primary:hover,.site-header .button-primary[data-start-match]:hover,.g-primary:hover,.pw button.pw-primary:hover{background:#0077ed;border-color:#0077ed;color:#fff;transform:none;box-shadow:0 8px 20px rgba(0,113,227,.14)}
.button-ghost,.auth-header-button{background:rgba(255,255,255,.82);border:1px solid rgba(36,68,94,.18);color:#1d1d1f}
.button-ghost:hover,.auth-header-button:hover{background:#eef5fc;color:#0071e3}
.icon-button{background:#f5f5f7;border:0;border-radius:50%}
body .route-hero{max-width:1180px;margin:0 auto;padding:68px 32px 40px;border:0;background:transparent}
.route-hero-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;text-align:center}
.route-hero .hero-content{max-width:780px}.route-hero h1{color:#1d1d1f;letter-spacing:-.025em}.route-hero h1 em{color:#0071e3}
.route-hero .hero-actions{display:flex;align-items:center;justify-content:center;gap:26px;padding:0;flex-wrap:wrap}
.route-hero .hero-actions .button{min-height:54px;padding-inline:28px}.route-hero .text-link{color:#0071e3;border:0}
.route-map{margin:40px 0 0;padding:30px 28px;background:var(--preview-card);border:1px solid rgba(0,0,0,.06);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(24px)}
.route-map li>span,.route-map li>button>span{background:#f0f1f3;color:#515154;border:0;border-radius:20px}
.route-map .is-current>button>span{background:#0071e3;color:#fff;box-shadow:none}
.route-map strong,.route-map .is-current strong{color:#1d1d1f}.route-map small{color:#6e6e73}
.industry-strip{max-width:1180px;margin:0 auto;padding:18px 26px;min-height:0;border:0;background:transparent;gap:12px;flex-wrap:wrap}
.industry-strip button{padding:10px 16px;min-height:48px;border:0;border-radius:999px;background:rgba(255,255,255,.76);color:#515154}
.industry-strip button:hover{background:#e6eef5;color:#0071e3}.industry-strip span{background:transparent;border:0;color:#0071e3}.industry-strip p{color:#6e6e73}
.section-shell{max-width:1240px;margin:auto;padding:48px 32px}.section-heading{margin-bottom:24px}.section-heading h2,.deadline-copy h2,.cta-section h2{color:#1d1d1f;letter-spacing:-.025em}
.filter-bar{padding:24px;background:var(--preview-card);border:1px solid rgba(0,0,0,.06);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(24px)}
.search-field,.select-field{border-color:rgba(0,0,0,.09);border-radius:14px;background:#f5f5f7}.filter-bar input,.filter-bar select{color:#1d1d1f;background:transparent}
.search-field input::placeholder{color:#6e6e73}.search-prompt{color:#515154;margin-top:20px}.toggle-field{color:#515154}
.grant-card,.recommendation-card,.self-result{border:1px solid rgba(0,0,0,.06);border-radius:28px;background:var(--preview-card);box-shadow:0 14px 42px rgba(27,48,74,.07);padding:28px}
.grant-card:hover{transform:translateY(-3px);box-shadow:0 22px 52px rgba(27,48,74,.11)}
.grant-card h3,.self-result h3,.recommendation-card h3{color:#1d1d1f}.grant-agency,.grant-description,.grant-verification{color:#515154}
.grant-tags span,.solution-tags span{border-radius:999px;background:#eef5fc;color:#306b9e}
.deadline-section{background:transparent;padding:48px max(24px,calc((100vw - 1180px)/2));border:0}
.date-card,.deadline-section .date-card{border:1px solid rgba(0,0,0,.06);border-radius:24px;background:var(--preview-card);box-shadow:0 12px 34px rgba(27,48,74,.06)}
.date-card>div{background:#f0f1f3;border-radius:16px;color:#0071e3}.date-card>section strong{color:#1d1d1f}.date-card>section small,.date-card>section p{color:#515154}
.cta-section{max-width:1180px;margin:32px auto 48px;padding:44px 28px;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.85);border-radius:30px;box-shadow:0 16px 50px rgba(27,48,74,.06)}
.cta-section>p{color:#515154}.service-policy-summary{border:1px solid rgba(0,0,0,.07);border-radius:24px;background:rgba(255,255,255,.80);overflow:hidden}.service-policy-summary>summary{background:transparent}.service-policy-grid p{background:transparent}
.cdagi-slogan-band{background:#1d2932}.cdagi-slogan-band img{filter:none;transform:none}
body>footer{background:transparent;color:#515154}.footer-bottom{border-top-color:rgba(0,0,0,.09)}
.app-dialog::backdrop,dialog::backdrop{background:rgba(25,44,62,.32);backdrop-filter:blur(12px)}
.dialog-shell,.auth-shell,.detail-shell,.company-shell,.proposal-shell,.analysis-shell{border:1px solid rgba(0,0,0,.07);border-radius:28px;background:rgba(255,255,255,.98);box-shadow:0 24px 80px rgba(27,48,74,.16)}
.dialog-header,.question-step h3,.match-results h3{color:#1d1d1f}.dialog-close,.auth-close{color:#6e6e73}
#matchDialog .option-grid button{border:1px solid rgba(0,0,0,.08);border-radius:22px;background:#f5f5f7;color:#1d1d1f}
#matchDialog .option-grid button svg{stroke:#0071e3}#matchDialog .option-grid button.selected{border-color:#0071e3;background:#eef5fc;box-shadow:inset 0 0 0 1px #0071e3}
#matchDialog .option-list button{border-radius:18px;border-color:rgba(0,0,0,.08);background:#f5f5f7}#matchDialog .option-list button.selected{background:#eef5fc;border-color:#0071e3}
.matched-item{border:1px solid rgba(0,0,0,.07);border-radius:22px;background:#f5f5f7}.matched-rank{border-radius:50%;background:#e5f0fb;color:#0071e3}.matched-item>b{color:#0071e3}
.dialog-footer,.company-footer,.proposal-footer,.analysis-footer{border-top-color:rgba(0,0,0,.08);background:rgba(255,255,255,.96)}
.auth-brand-panel{background:linear-gradient(145deg,#f7fbfe,#dceefa);color:#1d1d1f}.auth-brand-panel h2{color:#1d1d1f}.auth-form input,.field-grid input,.field-grid select,.company-grid input,.company-grid select{border-radius:14px;border-color:rgba(0,0,0,.14);background:#f5f5f7}
.detail-hero{background:linear-gradient(130deg,#f8fcff,#ddecf9);color:#1d1d1f}.detail-hero h2,.detail-hero .dialog-close{color:#1d1d1f}.detail-hero small,.detail-hero p{color:#515154}
.self-service,.pw,.v25-shell,.g-panel{border:1px solid rgba(0,0,0,.07);border-radius:28px;background:var(--preview-card);box-shadow:0 18px 60px rgba(27,48,74,.07)}
.pw-head{border-bottom-color:rgba(0,0,0,.07)}.pw-nav{background:#f0f5fa;border-radius:0 0 0 28px}.pw-nav button{color:#515154;border-radius:14px}.pw-nav button[aria-selected=true]{color:#0071e3;background:#fff;border-left-color:#0071e3}
.pw-note,.pw-metric,.v25-card,.case-item,.g-detail-row,.g-metric{background:#f5f5f7;border:1px solid rgba(0,0,0,.05);border-radius:20px;box-shadow:none}
.pw input,.pw textarea,.pw select,.g-panel input,.g-panel textarea,.g-panel select{border-color:rgba(0,0,0,.14);border-radius:14px;background:#fff}
.pw button:not(.pw-nav button){border-radius:999px}.pw button.pw-primary{background:#0071e3;color:#fff}.pw-table-wrap{border-radius:16px}
.g-header{background:rgba(255,255,255,.82);border-color:rgba(0,0,0,.07);backdrop-filter:blur(24px)}.g-tabs button{border-radius:999px}.g-tabs button.active{background:#0071e3}.g-boundary,.g-hint{background:#eef5fc;border-radius:14px}.g-panel button{border-radius:999px}.g-login{gap:44px}
@media(max-width:980px){.site-header{gap:16px}.route-map{padding:24px}.route-hero-top{align-items:center}.route-hero .hero-actions{display:flex}.grant-card{padding:24px}}
@media(max-width:760px){.site-header{width:calc(100% - 24px);padding:12px 18px;border-radius:20px;top:6px}.cdagi-brand-band{padding:12px 20px}body .route-hero{margin:0;padding:40px 22px 24px;border:0}.route-map{margin-top:28px;border-radius:24px;padding:24px 20px}.route-hero .hero-actions{width:auto;display:flex;gap:20px}.route-hero .hero-actions .button{width:auto}.industry-strip{padding:12px 20px;gap:10px}.industry-strip button{padding:10px 12px}.section-shell{padding:32px 20px}.filter-bar{padding:20px;border-radius:24px}.deadline-section{padding:32px 20px}.cta-section{margin:24px 16px 32px;padding:32px 22px;border-radius:24px}.dialog-shell,.auth-shell,.detail-shell{border-radius:24px}.g-panel{border-radius:24px}.pw-nav{border-radius:0}.service-policy-summary{border-radius:20px}}
@media(prefers-reduced-motion:reduce){.grant-card:hover{transform:none}.button-primary:hover{box-shadow:none}}

/* Round the native dialog frame as well as its content. */
.app-dialog{border-radius:28px}
@media(max-width:760px){.app-dialog{border-radius:24px}}
/* Replace legacy enterprise theme's forced square, shadow-free surfaces. */
.self-service,.self-result,.grant-card,.filter-bar,.recommendation-card,.dialog-shell,.auth-shell,.g-panel,dialog{border-radius:28px!important;box-shadow:var(--shadow)!important}
.service-policy-summary,.date-card{border-radius:24px!important;box-shadow:0 12px 34px rgba(27,48,74,.06)!important}
.case-item,.g-metric{border-radius:20px!important;box-shadow:none!important}
@media(max-width:760px){.self-service,.filter-bar,.dialog-shell,.auth-shell,.g-panel,dialog{border-radius:24px!important}.service-policy-summary{border-radius:20px!important}}
