/* ==========================================================================
   Modern Keystone
   ========================================================================== */

:root {
    --navy: #16244A;
    --navy-deep: #0E1834;
    --navy-soft: #24376A;
    --ink: #16244A;
    --text: #3B4663;
    --muted: #6B7591;
    --line: #E3E7F0;
    --bg: #FFFFFF;
    --bg-soft: #F4F6FB;
    --accent: #E9A23B;
    --accent-soft: #FDF3E3;
    --ok: #2F9E6B;
    --danger: #C2413A;

    --font-head: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(22, 36, 74, .06), 0 1px 3px rgba(22, 36, 74, .08);
    --shadow: 0 10px 30px -10px rgba(22, 36, 74, .18), 0 2px 6px rgba(22, 36, 74, .06);
    --shadow-lg: 0 30px 60px -20px rgba(22, 36, 74, .35);
    --container: 1180px;
    --header-h: 72px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h1:focus { outline: none; }

p { margin: 0 0 1em; }
a { color: var(--navy-soft); }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.lead { font-size: 1.2rem; color: var(--text); max-width: 640px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: .82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em; color: var(--navy-soft);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.eyebrow-light { color: rgba(255, 255, 255, .75); }

.hl { position: relative; white-space: nowrap; isolation: isolate; }
.hl::after {
    content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .28em;
    background: var(--accent); opacity: .35; border-radius: 4px; z-index: -1;
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(22, 36, 74, .6); }
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { border-color: #fff; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
    font-weight: 600; color: var(--navy); text-decoration: none;
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Logo & mark ---------- */

.mark { width: auto; height: 1em; }

.logo {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--navy); text-decoration: none;
}
.logo .mark { height: 30px; }
.logo-word { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; letter-spacing: -.03em; }
.logo-light { font-weight: 500; opacity: .62; }
.logo-invert { color: #fff; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(227, 231, 240, .8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
    font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--text);
    text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a.active:not(.btn) { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
    display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer;
    border-radius: var(--radius-sm);
}
.menu-toggle .icon { width: 26px; height: 26px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.pt-0 { padding-top: 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section-navy h2 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; }

.page-hero { padding: 88px 0 64px; }
.page-hero .container.narrow { max-width: var(--container); }
.page-hero h1 { max-width: 820px; }

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden; padding: 72px 0 96px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(36, 55, 106, .09), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(233, 162, 59, .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--ok); width: 1.05em; height: 1.05em; }

/* Product mock */
.hero-visual { position: relative; padding: 10px 0 40px 0; }
.mock {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-.6deg);
}
.mock-bar {
    display: flex; align-items: center; gap: 7px; padding: 14px 18px;
    background: var(--navy); color: #fff;
}
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock-title { margin-left: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .88rem; font-weight: 600; }
.mock-title .mark { height: 14px; }
.mock-body { display: grid; grid-template-columns: 180px 1fr; min-height: 330px; }
.mock-side { background: var(--bg-soft); padding: 18px 12px; border-right: 1px solid var(--line); }
.mock-side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0 10px 10px; font-weight: 600; }
.mock-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: .84rem; color: var(--text); margin-bottom: 2px; }
.mock-item .icon { width: 16px; height: 16px; color: var(--muted); }
.mock-item.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.mock-item.active .icon { color: var(--navy); }
.mock-item.add { color: var(--navy-soft); border: 1.5px dashed #C9D0E1; margin-top: 10px; justify-content: center; }
.mock-main { padding: 20px 22px; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.mock-kicker { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mock-h { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.mock-pill { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mock-pill.live { background: #E3F4EC; color: var(--ok); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mock-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-stats b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.15rem; }
.mock-stats small { font-size: .7rem; color: var(--muted); }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink); font-weight: 500; }
.mock-list em { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-list i { width: 28px; height: 16px; border-radius: 999px; background: #D6DBE7; position: relative; flex: none; }
.mock-list i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .2s; }
.mock-list i.on { background: var(--navy); }
.mock-list i.on::after { left: 14px; }
.dish { width: 30px; height: 30px; border-radius: 8px; flex: none; background: linear-gradient(135deg, #F6C26B, #E9A23B); }
.dish.d2 { background: linear-gradient(135deg, #C9B79C, #8D7458); }
.dish.d3 { background: linear-gradient(135deg, #A8D5A2, #5FA866); }

.mock-toast {
    position: absolute; left: -28px; bottom: 6px; display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 14px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow);
    border: 1px solid var(--line); animation: float 6s ease-in-out infinite;
}
.mock-toast b { display: block; font-size: .88rem; color: var(--ink); }
.mock-toast small { font-size: .76rem; color: var(--muted); }
.toast-icon { width: 34px; height: 34px; border-radius: 10px; background: #E3F4EC; color: var(--ok); display: grid; place-items: center; }
.toast-icon .icon { width: 18px; height: 18px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Cards ---------- */

.card-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--bg-soft); color: var(--navy); margin-bottom: 20px;
}
.card-icon .icon { width: 24px; height: 24px; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
    padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff;
    display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.path-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.path-card h3 { font-size: 1.5rem; }
.path-card .link-arrow { margin-top: auto; }
.path-card-dark { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .78); }
.path-card-dark h3, .path-card-dark .link-arrow { color: #fff; }
.path-card-dark .card-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.path-card-dark .checklist .icon { color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: .2em; width: 1.05em; height: 1.05em; }

.hosting-strip {
    margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    padding: 28px 36px; border-radius: var(--radius-lg); background: var(--bg-soft);
}
.hosting-strip .card-icon { margin: 0; background: #fff; }
.hosting-strip h3 { margin-bottom: 4px; }
.hosting-strip p { margin: 0; }

/* ---------- Industry preview ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tab {
    display: inline-flex; align-items: center; gap: 8px; font: 500 .95rem var(--font-head);
    padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    color: var(--text); cursor: pointer; transition: all .15s;
}
.tab:hover { border-color: var(--navy-soft); color: var(--ink); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab .icon { width: 18px; height: 18px; }

.preview-panel {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
    background: #fff; border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow);
}
.preview-copy h3 { font-size: 1.75rem; }
.preview-copy p { font-size: 1.08rem; margin-bottom: 28px; }
.preview-stack { display: grid; gap: 10px; }
.stack-core, .stack-addon {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
    animation: rise .35s ease both;
}
.stack-core { background: var(--navy); color: #fff; }
.stack-core .mark { height: 28px; width: 38px; }
.stack-core small { color: rgba(255, 255, 255, .7); }
.stack-addon { border: 1px solid var(--line); background: #fff; }
.stack-addon:nth-child(2) { animation-delay: .04s; }
.stack-addon:nth-child(3) { animation-delay: .08s; }
.stack-addon:nth-child(4) { animation-delay: .12s; }
.stack-addon:nth-child(5) { animation-delay: .16s; }
.stack-addon:nth-child(6) { animation-delay: .2s; }
.stack-core b, .stack-addon b { display: block; font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: inherit; }
.stack-addon b { color: var(--ink); }
.stack-core small, .stack-addon small { display: block; font-size: .84rem; line-height: 1.4; }
.stack-addon small { color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.addon-icon {
    width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
    background: var(--accent-soft); color: #B7741A;
}
.addon-icon .icon { width: 20px; height: 20px; }

/* ---------- Process ---------- */

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process::before {
    content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.process-step { position: relative; text-align: center; padding: 0 6px; }
.process-icon {
    width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--navy); color: var(--navy); position: relative;
}
.process-icon .icon { width: 24px; height: 24px; }
.process-step:last-child .process-icon { background: var(--navy); color: #fff; }
.process-num { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.process-step p { font-size: .95rem; }

.process-detailed { grid-template-columns: 1fr; gap: 0; max-width: 860px; margin: 0 auto; }
.process-detailed::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
.process-detailed .process-step {
    text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 28px; padding: 0 0 48px;
}
.process-detailed .process-icon { grid-row: span 4; margin: 0; }
.process-detailed h3 { font-size: 1.5rem; }
.process-detailed p { font-size: 1.05rem; }
.process-detailed .checklist { margin: 4px 0 0; padding: 20px 24px; background: var(--bg-soft); border-radius: var(--radius); }

/* ---------- Story ---------- */

.story { display: grid; grid-template-columns: 280px 1fr; gap: 72px; align-items: center; }
.story-mark { height: auto; width: 100%; color: #fff; }
.story-mark .mark-key { fill: var(--accent); }
.story p { font-size: 1.15rem; max-width: 640px; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    padding: 56px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .8);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 560px; font-size: 1.08rem; }
.cta-copy, .cta-actions { position: relative; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-mark { position: absolute; right: -40px; bottom: -70px; height: 300px; color: #fff; opacity: .08; }

/* ---------- Services ---------- */

.service-row {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: 0; padding-top: 16px; }
.service-intro h2 { font-size: 2rem; }
.service-intro p { font-size: 1.08rem; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-list li { display: flex; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
.service-list .icon { color: var(--ok); margin-top: .2em; }
.service-list b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.service-list span { font-size: .95rem; line-height: 1.5; }

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 0 24px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 600;
    color: var(--ink); display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; }

/* ---------- Central Core ---------- */

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-card p { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature > .icon { width: 28px; height: 28px; color: var(--navy); margin-bottom: 16px; }
.feature p { font-size: .97rem; margin: 0; }

.builder { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.builder-main { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.builder-main .tabs { justify-content: flex-start; margin-bottom: 36px; }
.builder-step { display: flex; gap: 16px; margin-bottom: 18px; }
.builder-step h3 { margin-bottom: 2px; }
.builder-step p { margin: 0; font-size: .96rem; color: var(--muted); }
.builder-step-num {
    width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--navy); color: #fff;
    display: grid; place-items: center; font: 600 .9rem var(--font-head);
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip {
    font: 500 .86rem var(--font-body); padding: 6px 14px; border-radius: 999px; border: 0;
    background: var(--bg-soft); color: var(--text); cursor: pointer;
}
.chip:hover { color: var(--ink); background: #E8ECF5; }
.chip.active { background: var(--ink); color: #fff; }

.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.addon-card {
    display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 16px;
    border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
    font: inherit; color: inherit; transition: border-color .15s, background .15s, box-shadow .15s;
    animation: rise .3s ease both;
}
.addon-card:hover { border-color: #C3CBDD; box-shadow: var(--shadow-sm); }
.addon-card.installed { border-color: var(--navy); background: #F7F9FD; }
.addon-text { flex: 1; min-width: 0; }
.addon-name { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .98rem; }
.addon-summary { display: block; font-size: .86rem; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.addon-toggle {
    width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid var(--line); color: var(--muted); transition: all .15s;
}
.addon-toggle .icon { width: 15px; height: 15px; }
.addon-card.installed .addon-toggle { background: var(--navy); border-color: var(--navy); color: #fff; }

.builder-summary {
    position: sticky; top: calc(var(--header-h) + 20px);
    background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.summary-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-head .mark { height: 32px; width: 44px; color: var(--navy); }
.summary-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.summary-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.summary-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; }
.summary-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .94rem; color: var(--ink); animation: rise .25s ease both; }
.summary-list li .icon { width: 18px; height: 18px; color: var(--navy-soft); }
.summary-core { color: var(--muted) !important; font-size: .88rem !important; }
.summary-remove {
    margin-left: auto; background: none; border: 0; padding: 4px; border-radius: 6px; color: var(--muted); cursor: pointer;
    display: grid; place-items: center;
}
.summary-remove:hover { color: var(--danger); background: #FBEDEC; }
.summary-remove .icon { width: 15px; height: 15px; color: inherit !important; }
.summary-empty { font-size: .92rem; color: var(--muted); }
.summary-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 4px rgba(36, 55, 106, .12); }
.field .invalid { border-color: var(--danger); }
.validation-message { color: var(--danger); font-size: .87rem; }
.form-note { font-size: .86rem; color: var(--muted); margin: -8px 0 0; }
.form .btn { justify-self: start; }

.radio-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.radio-card {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    font-size: .9rem; font-weight: 500; color: var(--ink); line-height: 1.3; transition: all .15s;
}
.field .radio-card { padding: 14px; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .icon { color: var(--muted); }
.radio-card:hover { border-color: #C3CBDD; }
.radio-card.checked { border-color: var(--navy); background: #F7F9FD; }
.radio-card.checked .icon { color: var(--navy); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.sent { text-align: center; padding: 24px 0; }
.sent-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #E3F4EC; color: var(--ok); display: grid; place-items: center; }
.sent-icon .icon { width: 30px; height: 30px; }

.contact-aside { display: grid; gap: 24px; }
.aside-block { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.aside-block h2 { font-size: 1.25rem; }
.next-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
.next-steps li::before {
    content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
    background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 .88rem var(--font-head);
}
.next-steps b { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.next-steps span { font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .65); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 300px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }

/* ---------- 404 ---------- */

.notfound-mark { height: 90px; width: auto; margin: 0 auto 28px; color: var(--navy); }
.notfound-mark .mark-key { fill-opacity: .12; }
.section .center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
    .mock-toast { left: 0; }
    .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .process::before { display: none; }
    .process-detailed { grid-template-columns: 1fr; }
    .process-detailed::before { display: block; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .builder { grid-template-columns: 1fr; }
    .builder-summary { position: static; }
    .service-row { grid-template-columns: 1fr; gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 4px; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); display: none;
    }
    .site-header.is-open .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 14px; }
    .nav-cta { margin: 8px 0 0; }

    .section { padding: 72px 0; }
    .paths, .preview-panel, .steps-3, .story, .cta-band { grid-template-columns: 1fr; }
    .preview-panel { padding: 28px; gap: 28px; }
    .story { gap: 32px; }
    .story-mark { max-width: 180px; }
    .cta-band { padding: 40px 28px; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; }
    .hosting-strip { grid-template-columns: 1fr; padding: 28px; }
    .radio-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .hero { padding: 48px 0 72px; }
    .page-hero { padding: 56px 0 40px; }
    .path-card { padding: 28px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .hero-visual { padding-bottom: 56px; }
    .mock-toast { left: 12px; bottom: 0; }
    .process { grid-template-columns: 1fr 1fr; }
    .process-detailed { grid-template-columns: 1fr; }
    .process-detailed .process-step { grid-template-columns: 1fr; }
    .process-detailed .process-icon { grid-row: auto; margin-bottom: 14px; }
    .process-detailed::before { display: none; }
    .addon-grid, .service-list, .form-row, .feature-grid { grid-template-columns: 1fr; }
    .builder-main, .contact-card { padding: 24px; }
    .tabs { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
}

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

/* ---------- Boot loader & Blazor plumbing ---------- */

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; }
.boot-mark { width: 88px; height: auto; }
.boot-key { animation: settle 1.2s ease-in-out infinite; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.boot-bar span {
    display: block; height: 100%; background: var(--navy);
    width: var(--blazor-load-percentage, 0%); transition: width .1s ease;
}
@keyframes settle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.noscript { text-align: center; padding: 40px 16px; }

#blazor-error-ui {
    color-scheme: light only; background: #FFF7E6; color: var(--ink); bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); box-sizing: border-box; display: none;
    left: 0; padding: .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.blazor-error-boundary { background: var(--danger); padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
