/* ============================================
   Civic.ly Resources (share.civic.ly) — style.css (concatenated)
   GENERATED FILE — do not edit directly.
   Source: brand/css/*.css + share/templates/static/css/*.css
   Order: BRAND_CSS_COMPONENTS, then CSS_COMPONENTS in build.py
   ============================================ */

/* ============================================
   Design tokens — :root custom properties
   Brand-canonical: colours, typography, layout primitives
   shared by every Civic.ly site (website, kb, share).
   ============================================ */

:root {
    --primary: #008096;
    --primary-dark: #006675;
    --light-accent: #80BFCB;
    --blue: #0066FF;
    --inspection: #00D6B7;
    --defect: #FF5130;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-light: #4a5568;
    --white: #ffffff;
    --off-white: #f8fafb;
    --border: #e2e8f0;
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-btn: 8px;
}

/* ============================================
   Reset
   ============================================ */

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

/* ============================================
   Body baseline + img + a
   Brand-canonical baseline: font, line-height,
   horizontal-overflow guard, image defaults, link colours.
   ============================================ */

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

/* ============================================
   Focus indicators (WCAG 2.1 AA)
   ============================================ */

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-nav:focus-visible {
    outline-color: var(--primary-dark);
    outline-offset: 3px;
}

/* High contrast focus on dark backgrounds */
.on-dark *:focus-visible {
    outline-color: var(--white);
}

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

/* ============================================
   Typography — headings, section labels, paragraphs
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.2;
}

p { margin: 0 0 16px; }

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ============================================
   Skip-to-main-content link (WCAG)
   Added to website during Phase 1 (P-4 #3).
   ============================================ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    z-index: 10001;
    border-radius: 0 0 var(--border-radius-btn) var(--border-radius-btn);
    font-weight: 600;
}

.skip-link:focus {
    left: 8px;
    color: var(--white);
}

/* ============================================
   Top navigation
   Extracted Phase 1 from website inline CSS.
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo img { height: 48px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ============================================
   Buttons — .btn family (primary, outline, white, login, large, nav)
   Extracted Phase 1 from website inline CSS.
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,128,150,0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 10px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-login {
    background: rgba(0, 128, 150, 0.08);
    color: var(--primary);
    border: 1.5px solid rgba(0, 128, 150, 0.2);
}
.btn-login:hover {
    background: rgba(0, 128, 150, 0.15);
    color: var(--primary-dark);
}

/* ============================================
   Site footer
   Extracted Phase 1 from website inline CSS.
   Adds .footer-strapline, .footer-attribution, .cookie-settings-link
   classes (previously inline-styled in source).
   ============================================ */

.footer {
    background: #0a0a1a;
    color: rgba(255,255,255,0.85);
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-strapline {
    font-weight: 500;
    color: var(--inspection);
    font-size: 0.95rem;
    margin-top: 16px !important;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.footer h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }

.footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover { color: var(--inspection); }

/* Starboard Systems attribution paragraph (between footer-inner and footer-bottom) */
.footer-attribution {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.65;
}
.footer-attribution-emphasis {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.cookie-settings-link {
    color: rgba(255,255,255,0.5) !important;
    font-size: 12px;
    text-decoration: underline !important;
    margin-top: 4px;
    display: inline-block;
}
.cookie-settings-link:hover { color: rgba(255,255,255,0.8) !important; }

/* ============================================
   Scroll reveal + reduced-motion override
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ============================================
   GDPR cookie consent banner
   ============================================ */

#cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    font-family: var(--font-family);
}

.cc-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cc-text {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cc-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cc-btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cc-btn-accept {
    background: var(--primary);
    color: var(--white);
}
.cc-btn-accept:hover { background: var(--primary-dark); }

.cc-btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.cc-btn-reject:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}

/* ============================================
   Lead-magnet landing page — share.civic.ly/{slug}/
   Used by templates/pages/council-asset-register-template.html
   (and future lead magnet landings).
   ============================================ */

/* ----- Button variant: outline-light (for use on dark hero backgrounds) -----
   Brand canonical .btn-outline uses primary teal — invisible on dark. This
   variant inverts to white for dark surfaces. If a third project ends up
   wanting this, promote to brand/css/buttons.css. */
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

/* ----- Hero (stacked: centered copy on top, full-width media below) ----- */
.lp-hero {
    padding: 130px 24px 60px;
    background: linear-gradient(165deg, var(--dark) 0%, #0d2137 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.lp-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,214,183,0.15), transparent 70%);
    pointer-events: none;
}
.lp-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,102,255,0.10), transparent 70%);
    pointer-events: none;
}
.lp-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.lp-hero-copy {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,214,183,0.15);
    border: 1px solid rgba(0,214,183,0.3);
    color: var(--inspection);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.lp-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}
.lp-hero h1 em {
    font-style: normal;
    color: var(--inspection);
}
.lp-hero-lede {
    font-size: clamp(17px, 1.7vw, 20px);
    color: rgba(255,255,255,0.85);
    margin: 0 auto 30px;
    line-height: 1.55;
    max-width: 680px;
}
.lp-hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.lp-hero-cta-row .btn {
    font-size: 16px;
    padding: 14px 28px;
}
.lp-hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}
.lp-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lp-hero-meta-item svg {
    flex-shrink: 0;
    color: var(--inspection);
}

/* ----- Hero media (video / image) — the visual anchor of the page ----- */
.lp-hero-media {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.06);
    background: var(--dark);
}
.lp-hero-media video,
.lp-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}
.lp-hero-media-caption {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* ----- Section primitives ----- */
.lp-section {
    padding: 80px 24px;
}
.lp-section--alt {
    background: var(--off-white);
}
.lp-section--dark {
    background: var(--dark);
    color: var(--white);
}
.lp-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.lp-section-inner--narrow {
    max-width: 800px;
}
.lp-section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}
.lp-section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.lp-section--dark .lp-section-title {
    color: var(--white);
}
.lp-section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0 0 48px;
    max-width: 700px;
}
.lp-section--dark .lp-section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* ----- "What you'll get" grid ----- */
.lp-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.lp-include-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-include-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,128,150,0.10);
    border-color: var(--primary);
}
.lp-include-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0,128,150,0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.lp-include-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.3;
}
.lp-include-card p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}
.lp-include-card-meta {
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ----- Split section: "Why it matters" copy + stats on the left, form on the right ----- */
.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.lp-split-copy {
    /* The copy column gets a touch of top-padding to baseline-align with the
       form card's heading rather than the form-card's outer top. */
    padding-top: 8px;
}
.lp-split-copy .lp-section-subtitle {
    margin-bottom: 32px;
}
.lp-split-form {
    /* Form column. Form card lives inside. */
}

/* ----- Stats grid (2x2 in the split layout) ----- */
.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
    margin-top: 8px;
}
.lp-stat {
    text-align: left;
}
.lp-stat-value {
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    color: var(--inspection);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.lp-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.45;
}

/* ----- Form card (now inside the split, no outer .lp-form-section) ----- */
.lp-form-card {
    background: var(--white);
    color: var(--text);
    padding: 36px 32px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.lp-form-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.2;
}
.lp-form-card-lede {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 24px;
    line-height: 1.5;
}
.lp-form-card-reassurance {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}
.lp-form-card-reassurance svg {
    vertical-align: -3px;
    margin-right: 4px;
    color: var(--primary);
}

/* ----- HubSpot form iframe wrapper -----
   HubSpot v2 renders the form inside a cross-origin iframe (class hs-form-iframe).
   Parent-page CSS can't reach the form internals — those styles live in the page's
   inline {% block scripts %} as a `cssRequired` CSS string passed to hbspt.forms.create().
   All we control from here is the iframe element + its target div. */
.lp-form-card #hubspot-form-target {
    min-height: 200px;
}
.lp-form-card .hs-form-iframe {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

/* ============================================
   Resources homepage — share.civic.ly/
   Used by templates/pages/index.html
   ============================================ */

/* ----- Hero ----- */
.resources-hero {
    padding: 140px 24px 60px;
    background: linear-gradient(165deg, var(--dark) 0%, #0d2137 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}
.resources-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,214,183,0.15), transparent 70%);
    pointer-events: none;
}
.resources-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.resources-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,214,183,0.15);
    border: 1px solid rgba(0,214,183,0.3);
    color: var(--inspection);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.resources-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.resources-hero p {
    font-size: clamp(17px, 1.7vw, 19px);
    color: rgba(255,255,255,0.85);
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.55;
}

/* ----- Resource grid ----- */
.resources-grid-section {
    padding: 80px 24px;
}
.resources-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.resource-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,128,150,0.12);
    border-color: var(--primary);
}
.resource-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.resource-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.resource-card-tag {
    display: inline-block;
    background: rgba(0,128,150,0.10);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    align-self: flex-start;
}
.resource-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.resource-card p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.55;
    flex: 1;
}
.resource-card-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.resource-card:hover .resource-card-cta {
    color: var(--primary-dark);
}

/* Coming soon placeholder card */
.resource-card--placeholder {
    background: var(--off-white);
    border-style: dashed;
    border-color: var(--border);
    opacity: 0.7;
}
.resource-card--placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}
.resource-card--placeholder .resource-card-image {
    background: var(--off-white);
    color: var(--text-light);
}

/* ----- Bottom CTA strip ----- */
.resources-bottom-cta {
    background: var(--off-white);
    padding: 80px 24px;
    text-align: center;
}
.resources-bottom-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}
.resources-bottom-cta h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.2;
}
.resources-bottom-cta p {
    font-size: 17px;
    color: var(--text-light);
    margin: 0 0 28px;
    line-height: 1.55;
}

/* ============================================
   Thank-you / download page — share.civic.ly/{slug}/thank-you/
   Used by templates/pages/council-asset-register-template-thank-you.html
   ============================================ */

.ty-hero {
    padding: 160px 24px 80px;
    background: linear-gradient(165deg, var(--dark) 0%, #0d2137 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}
.ty-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,214,183,0.15), transparent 70%);
    pointer-events: none;
}
.ty-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.ty-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,214,183,0.18);
    color: var(--inspection);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.ty-hero h1 {
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.ty-hero-lede {
    font-size: clamp(17px, 1.6vw, 19px);
    color: rgba(255,255,255,0.85);
    margin: 0 0 36px;
    line-height: 1.55;
}

.ty-download-card {
    background: var(--white);
    color: var(--text);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}
.ty-download-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0,128,150,0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ty-download-text {
    flex: 1;
    min-width: 0;
}
.ty-download-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.3;
}
.ty-download-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}
.ty-download-card .btn {
    flex-shrink: 0;
}

.ty-email-note {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.ty-email-note svg {
    vertical-align: -3px;
    margin-right: 6px;
    color: var(--inspection);
}

/* ----- Next steps section ----- */
.ty-next-steps {
    padding: 80px 24px;
    background: var(--off-white);
}
.ty-next-steps-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.ty-next-steps h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.2;
    text-align: center;
}
.ty-next-steps-lede {
    font-size: 17px;
    color: var(--text-light);
    margin: 0 auto 48px;
    line-height: 1.55;
    max-width: 640px;
    text-align: center;
}
.ty-next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.ty-step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.ty-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,128,150,0.10);
    border-color: var(--primary);
}
.ty-step-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0,128,150,0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ty-step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.3;
}
.ty-step-card p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.5;
    flex: 1;
}
.ty-step-card-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ty-step-card:hover .ty-step-card-cta {
    color: var(--primary-dark);
}

/* ============================================
   Cross-cutting media queries — share.civic.ly
   Must come last in CSS_COMPONENTS so its rules cascade correctly.
   ============================================ */

@media (max-width: 968px) {
    /* Why-it-matters + form stack on tablet */
    .lp-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lp-split-copy {
        padding-top: 0;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    .lp-split-copy .lp-section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .lp-stats-grid {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Thank-you download card stacks */
    .ty-download-card {
        flex-direction: column;
        text-align: center;
    }
    /* Hero media gets a tighter shadow on smaller screens */
    .lp-hero-media {
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    /* Landing hero tighter padding */
    .lp-hero {
        padding: 120px 20px 50px;
    }
    .lp-section,
    .ty-next-steps,
    .resources-grid-section,
    .resources-bottom-cta {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .lp-form-card {
        padding: 28px 22px;
    }
    /* Stats single-column on phone */
    .lp-stats-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .lp-stat {
        text-align: center;
    }
    .ty-hero {
        padding: 130px 20px 60px;
    }
    .ty-download-card {
        padding: 24px 20px;
    }
    .lp-hero-cta-row .btn {
        width: 100%;
    }
    .lp-hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
}
