/* ==========================================================================
   clearspiderweb.com - Deep Navy & Clear Cyan palette
   ========================================================================== */
:root {
    --c-primary: #0B2540;      /* deep navy */
    --c-primary-2: #123A5E;
    --c-bg: #F2F8FB;           /* clear sky */
    --c-accent: #0EA5B7;       /* clear cyan */
    --c-accent-dark: #0B8696;
    --c-accent-soft: #DDF3F6;
    --c-white: #ffffff;
    --c-text: #2F4558;
    --c-muted: #637A8C;
    --c-border: #DCEAF1;
    --max-w: 1120px;
    --font-sans: "Source Sans 3", system-ui, sans-serif;
    --font-display: "Lexend", "Source Sans 3", sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar & header ---------- */
.top-bar {
    background: var(--c-primary); color: var(--c-white);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 9px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.top-bar .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); transform: rotate(45deg); }

.site-header { position: static; background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.header-logo { height: 50px; width: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; line-height: 1;
    padding: 16px 30px; border-radius: 12px;
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}
.btn-nav-cta { background: var(--c-accent); color: var(--c-white); font-size: 0.92rem; padding: 13px 22px; }
.btn-nav-cta:hover { background: var(--c-primary); }
.btn-primary {
    background: var(--c-accent); color: var(--c-white); font-size: 1.1rem;
    box-shadow: 0 12px 26px rgba(14, 165, 183, 0.35);
}
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--c-accent); color: var(--c-accent-dark); font-size: 0.92rem; padding: 12px 22px; }
.btn-outline:hover { background: var(--c-accent); color: var(--c-white); }

/* ---------- Hero: full-bleed background ---------- */
.hero { position: relative; overflow: hidden; color: #DCEBF5; min-height: 520px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11,37,64,.95) 0%, rgba(11,37,64,.82) 45%, rgba(11,37,64,.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero-inner > * { max-width: 720px; }
.hero-kicker {
    display: inline-block; color: #7FE3EE; font-family: var(--font-display); font-weight: 600;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px;
    padding-left: 34px; position: relative;
}
.hero-kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--c-accent); }
.hero h1 {
    font-family: var(--font-display); color: var(--c-white);
    font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.12;
    letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero-sub { font-size: 1.15rem; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; font-weight: 600; color: var(--c-white);
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: #7FE3EE; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Chip table of contents ---------- */
.chip-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--c-border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row a {
    flex-shrink: 0; font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
    color: var(--c-primary); background: var(--c-bg); border: 1px solid var(--c-border);
    padding: 8px 16px; border-radius: 999px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip-row a:hover, .chip-row a.is-active { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

/* ---------- Article: single column ---------- */
.body-section { padding: 64px 0 80px; }
.main-content { max-width: 780px; margin: 0 auto; }
.content-block { margin-bottom: 48px; scroll-margin-top: 80px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 {
    font-family: var(--font-display); color: var(--c-primary);
    font-size: 1.9rem; font-weight: 700; line-height: 1.25; margin-bottom: 18px; letter-spacing: -0.01em;
}
.content-block h2::before {
    content: ""; display: block; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px;
    background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8696' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2v20M2 12h20'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.content-block p { font-size: 1.12rem; margin-bottom: 18px; }

.findings {
    background: var(--c-primary); color: #CFE3EF; border-radius: 20px; padding: 30px 34px; margin: 0 0 48px;
    position: relative; overflow: hidden;
}
.findings::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; opacity: .12;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' %3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='M12 1v22M1 12h22M4.2 4.2l15.6 15.6M19.8 4.2 4.2 19.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.findings-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); color: var(--c-white); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; }
.findings-title svg { width: 22px; height: 22px; fill: none; stroke: #7FE3EE; stroke-width: 2.2; stroke-linecap: round; }
.findings ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; position: relative; z-index: 1; }
.findings li { padding-left: 16px; border-left: 2px solid var(--c-accent); font-size: 1rem; line-height: 1.55; }

.wide-figure { margin: 30px 0; }
.wide-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.wide-figure figcaption { font-size: 0.92rem; color: var(--c-muted); margin-top: 10px; text-align: center; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 8px 0 24px; }
.compare-card { border-radius: 16px; padding: 24px; border: 1px solid var(--c-border); background: var(--c-white); }
.compare-after { border: 2px solid var(--c-accent); background: linear-gradient(180deg, var(--c-accent-soft), var(--c-white) 60%); }
.compare-title { font-family: var(--font-display); font-weight: 600; color: var(--c-primary); font-size: 1.05rem !important; margin-bottom: 12px !important; }
.compare ul { list-style: none; display: grid; gap: 10px; }
.compare li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.5; }
.compare li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.compare-before li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637A8C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.compare-after li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8696' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- CTA: full-width gradient band ---------- */
.cta-section { background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-2) 55%, var(--c-accent-dark) 100%); padding: 72px 0; }
.cta-box {
    display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: center;
    background: var(--c-white); border-radius: 24px; padding: 52px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}
.cta-copy h2 { font-family: var(--font-display); color: var(--c-primary); font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.01em; }
.cta-copy p { font-size: 1.1rem; margin-bottom: 14px; }
.cta-note { font-size: 0.95rem !important; color: var(--c-muted); }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 22px; background: var(--c-bg); border-radius: 18px; padding: 30px 26px; }
.cta-badge {
    align-self: center; display: inline-flex; background: var(--c-white); padding: 14px 20px; border-radius: 14px;
    box-shadow: 0 8px 20px rgba(11,37,64,.12), 0 0 0 3px var(--c-accent);
    transition: transform .2s ease;
}
.cta-badge:hover { transform: scale(1.03); }
.cta-badge img { height: 28px; width: auto; }

/* ---------- Disclaimer & footer ---------- */
.disclaimer-section { background: var(--c-white); padding: 50px 0; border-bottom: 1px solid var(--c-border); }
.disclaimer-section h2 { font-family: var(--font-display); color: var(--c-primary); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.disclaimer-section p { font-size: 0.86rem; color: var(--c-muted); line-height: 1.65; margin-bottom: 12px; }
.disclaimer-section a, .prose a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { background: #E4F1F6; color: var(--c-muted); padding: 52px 0; border-top: 4px solid var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo { height: 48px; width: auto; }
.footer-copy { font-size: 0.86rem; color: var(--c-muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-links a { color: var(--c-primary); font-weight: 600; }
.footer-links a:hover { color: var(--c-accent-dark); }
.footer-identity { justify-self: end; text-align: right; }
.footer-identity p { font-size: 0.88rem; line-height: 1.65; }
.footer-identity strong { color: var(--c-primary); font-family: var(--font-display); font-weight: 600; }
.footer-identity a { color: var(--c-accent-dark); font-weight: 600; }

/* ---------- Subpages: breadcrumb hero, sticky chips, single column ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--c-primary), var(--c-primary-2) 70%, var(--c-accent-dark));
    color: #CFE3EF; padding: 52px 0 56px;
}
.page-hero::after {
    content: ""; position: absolute; right: -90px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); opacity: .14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='.4'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='11.5'/%3E%3Cpath d='M12 0v24M0 12h24M3.5 3.5l17 17M20.5 3.5l-17 17'/%3E%3C/svg%3E") center / contain no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 0.88rem; color: #9FC3D6; margin-bottom: 18px; }
.crumbs a { color: var(--c-white); font-weight: 600; }
.crumbs span { margin: 0 8px; opacity: .6; }
.page-hero h1 { font-family: var(--font-display); color: var(--c-white); font-size: clamp(2.1rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { font-size: 1.12rem; max-width: 620px; }
.page-hero .page-updated { margin-top: 16px; font-size: 0.9rem; color: #7FE3EE; font-weight: 600; }
.page-body { padding: 56px 0 80px; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); color: var(--c-primary); font-size: 1.4rem; line-height: 1.3; margin: 38px 0 12px; scroll-margin-top: 80px; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; background: var(--c-accent); transform: rotate(45deg); }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.07rem; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--c-accent); }
.table-wrap { overflow-x: auto; margin: 10px 0 22px; border: 1px solid var(--c-border); border-radius: 16px; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.98rem; background: var(--c-white); }
.data-table th { background: var(--c-primary); color: var(--c-white); text-align: left; padding: 12px 16px; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--c-border); vertical-align: top; line-height: 1.5; }
.data-table td:first-child { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.help-strip {
    max-width: 800px; margin: 48px auto 0; display: flex; gap: 16px; align-items: center;
    background: var(--c-white); border: 1px solid var(--c-border); border-left: 5px solid var(--c-accent);
    border-radius: 16px; padding: 20px 24px;
}
.help-strip svg { width: 34px; height: 34px; flex-shrink: 0; fill: none; stroke: var(--c-accent-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-strip p { font-size: 1rem; overflow-wrap: anywhere; }
.help-strip a { color: var(--c-accent-dark); font-weight: 600; }
.contact-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; margin: 18px 0 8px; align-items: stretch; }
.contact-panel { background: var(--c-primary); color: #CFE3EF; border-radius: 18px; padding: 28px; display: grid; gap: 18px; align-content: start; overflow-wrap: anywhere; }
.contact-panel strong { display: block; font-family: var(--font-display); color: #7FE3EE; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-panel a { color: var(--c-white); }
.inquiry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 10px; }
.inquiry-grid > div { background: var(--c-white); border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent); border-radius: 14px; padding: 18px; }
.inquiry-grid strong { display: block; font-family: var(--font-display); color: var(--c-primary); margin-bottom: 4px; }
.inquiry-grid p { font-size: 0.98rem !important; margin: 0 !important; }
.contact-form { display: grid; gap: 14px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 18px; padding: 26px; }
.contact-form label { font-weight: 600; color: var(--c-primary); font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--c-text); background: var(--c-bg);
    border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 14px; margin-top: 6px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.contact-form button { justify-self: start; border: 0; }
.form-note { font-size: 0.9rem; color: var(--c-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .cta-box { grid-template-columns: 1fr; padding: 40px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-identity { justify-self: start; text-align: left; grid-column: 1 / -1; }
    .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 14px 16px; }
    .header-logo { height: 38px; }
    .btn-nav-cta { padding: 11px 16px; font-size: 0.84rem; }
    .hero { min-height: 0; }
    .hero-inner { padding-top: 56px; padding-bottom: 56px; }
    .hero-scrim { background: rgba(11,37,64,.86); }
    .hero h1 { font-size: 1.95rem; }
    .content-block h2 { font-size: 1.55rem; }
    .findings { padding: 26px 22px; }
    .findings ul, .compare { grid-template-columns: 1fr; }
    .cta-section { padding: 48px 0; }
    .cta-box { padding: 32px 20px; }
    .cta-copy h2 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 40px 0 44px; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .help-strip { align-items: flex-start; }
}
