/* ==========================================================================
   Pure Safety Hub - app.css
   Design language: clinical safety badge (light theme, safety-chip ornament)
   ========================================================================== */

:root {
    --bg:                  #F5FAF6;
    --bg-soft:             #EEF5F0;
    --surface:             #FFFFFF;
    --surface-alt:         #F1F9F5;
    --border:              #E3ECE7;
    --border-soft:         #EEF3F0;

    --accent:              #14B87A;
    --accent-600:          #0E9C64;
    --accent-200:          #A6E4C7;
    --accent-50:           #E7F8F0;
    --accent-navy:         #0B2E3F;

    --safe:                #14B87A;
    --caution:             #F6B93B;
    --risk:                #E85E5E;

    --text:                #0B2E3F;
    --text-muted:          #5F7682;
    --text-faint:          #8FA1AB;

    --font-display:        'Manrope', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    --font-body:           'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;

    --shadow-sm:           0 2px 6px rgba(11, 46, 63, 0.05);
    --shadow-md:           0 12px 28px rgba(11, 46, 63, 0.08);
    --shadow-lg:           0 22px 60px rgba(11, 46, 63, 0.12);

    --radius-sm:           8px;
    --radius-md:           14px;
    --radius-lg:           22px;
    --radius-pill:         999px;
}

/* ==========================================================================
   Base reset
   ========================================================================== */

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Only the landing page needs a tall canvas; global min-height leaves a mint strip below the footer on short inner pages (contact, etc.). */
body.home-page {
    min-height: 100vh;
}

svg { display: block; }

a, button, input, textarea, select {
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

button { cursor: pointer; outline: 0; border: 0; background: transparent; }
input, textarea, select { width: 100%; padding: 10px 12px; outline: 0; }

a {
    text-decoration: none;
    color: var(--accent);
}
a:hover { color: var(--accent-600); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.01em;
}

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

.container {
    width: 100%;
    max-width: 1160px;
    padding: 0 24px;
    margin: 0 auto;
}

/* Template-required text/title utilities */
.title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4.4rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
.title-big  { font-size: 6rem; }
.title-small { font-size: 3rem; }
.text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(96deg, var(--accent) 0%, var(--accent-navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: 0.15em;
}

/* ==========================================================================
   Buttons (template-required .btn and .btn_main kept)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.4rem 2.6rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    white-space: nowrap;
    border: 0;
    line-height: 1.2;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(20, 184, 122, 0.25);
    border-radius: var(--radius-pill);
    min-height: 50px;
    cursor: pointer;
}
.btn:hover { color: #fff; background: var(--accent-600); box-shadow: 0 14px 30px rgba(20, 184, 122, 0.32); }
.btn:focus { outline: 0; box-shadow: 0 0 0 4px rgba(20, 184, 122, 0.28); }

.btn_main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 5.4rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    padding: 1.5rem 2.8rem;
    box-shadow: 0 14px 30px rgba(20, 184, 122, 0.3);
    border: none;
    background-clip: padding-box;
}
.btn_main:hover { background: var(--accent-600); color: #fff; }

/* Branded button variants */
.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    border: none;
    background-clip: padding-box;
}
.ps-btn--sm { padding: 10px 18px; font-size: 13px; }

.ps-btn--primary {
    background: linear-gradient(180deg, #1FD089 0%, #0E9C64 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(20, 184, 122, 0.28);
}
.ps-btn--primary:hover {
    background: linear-gradient(180deg, #23DC91 0%, #0FA86C 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(20, 184, 122, 0.35);
}

.ps-btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    padding: 12.5px 24px;
}
.ps-btn--ghost:hover {
    color: var(--accent-600);
    border-color: var(--accent-200);
    background: var(--accent-50);
}

.ps-btn-arrow img { display: block; width: 20px; height: 20px; }

/* ==========================================================================
   Return-to-top (template-required)
   ========================================================================== */

.return-to-top {
    position: fixed;
    bottom: -3rem;
    right: 2rem;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--accent);
    line-height: 4.4rem;
    text-align: center;
    cursor: pointer;
    z-index: 998;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 14px 28px rgba(20, 184, 122, 0.32);
    transition: all 0.5s ease;
}
.return-to-top > i {
    position: relative; overflow: hidden; font-size: 12px;
    width: inherit; height: inherit; line-height: inherit; display: block;
    color: transparent; text-shadow: 0 0 #ffffff, 0 50px #ffffff;
    transition: text-shadow 0.2s ease; z-index: 1;
}
.return-to-top > i:before {
    content: ''; display: block; width: 1rem; height: 1rem;
    border: solid 2px #ffffff;
    transform: rotate(135deg);
    border-top: 0; border-right: 0;
    top: 1.9rem; left: 1.7rem; position: absolute;
}
.return-to-top:hover { transform: scale(1.08); }
.return-to-top:hover > i { text-shadow: 0 -50px #ffffff, 0 0 #ffffff; }
.return-to-top.back-top { bottom: 2rem; opacity: 1; }

/* ==========================================================================
   Page loader (template-required)
   ========================================================================== */

.page-loader {
    background: var(--bg);
    position: fixed; width: 100%; height: 100%; top: 0; left: 0;
    z-index: 99999999;
}
.page-loader .loader {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.page-loader svg { display: none; }

.blobs {
    -webkit-filter: url(#goo);
    filter: url(#goo);
    width: 260px; height: 260px;
    position: relative; overflow: hidden;
    border-radius: 70px;
    transform-style: preserve-3d;
}
.blobs .blob-center {
    transform-style: preserve-3d;
    position: absolute;
    background: var(--accent);
    top: 50%; left: 50%;
    width: 28px; height: 28px;
    transform-origin: left top;
    transform: scale(0.9) translate(-50%, -50%);
    animation: blob-grow linear 3.4s infinite;
    border-radius: 50%;
    box-shadow: 0 -10px 40px -5px var(--accent);
}
.blob {
    position: absolute;
    background: var(--accent);
    top: 50%; left: 50%;
    width: 28px; height: 28px;
    border-radius: 50%;
    animation: blobs ease-out 3.4s infinite;
    transform: scale(0.9) translate(-50%, -50%);
    transform-origin: center top;
    opacity: 0;
}
.blob:nth-child(1) { animation-delay: 0.2s; }
.blob:nth-child(2) { animation-delay: 0.4s; }
.blob:nth-child(3) { animation-delay: 0.6s; }
.blob:nth-child(4) { animation-delay: 0.8s; }
.blob:nth-child(5) { animation-delay: 1s; }
.blob:nth-child(6) { animation-delay: 1.2s; }

@keyframes blobs {
    0%   { opacity: 0; transform: scale(0) translate(calc(-326px - 50%), -50%); }
    1%   { opacity: 1; transform: scale(1) translate(calc(-326px - 50%), -50%); }
    35%,65% { opacity: 1; transform: scale(1) translate(-50%, -50%); }
    99%  { opacity: 1; transform: scale(1) translate(calc(326px - 50%), -50%); }
    100% { opacity: 0; transform: scale(0) translate(calc(326px - 50%), -50%); }
}
@keyframes blob-grow {
    0%,39% { transform: scale(0) translate(-50%, -50%); }
    40%,42% { transform: scale(1) translate(-50%, -50%); }
    43%,44% { transform: scale(1.32) translate(-50%, -50%); }
    45%,46% { transform: scale(1.55) translate(-50%, -50%); }
    47%,48% { transform: scale(1.75) translate(-50%, -50%); }
    52%    { transform: scale(2) translate(-50%, -50%); }
    54%    { transform: scale(1.8) translate(-50%, -50%); }
    58%    { transform: scale(1.65) translate(-50%, -50%); }
    68%,70% { transform: scale(1.55) translate(-50%, -50%); }
    78%    { transform: scale(1.32) translate(-50%, -50%); }
    80%,81% { transform: scale(1) translate(-50%, -50%); }
    82%,100% { transform: scale(0) translate(-50%, -50%); }
}

/* ==========================================================================
   Animations (template-required)
   ========================================================================== */

@keyframes pixFade { 0% {opacity:0;} 100% {opacity:1;} }
@keyframes pixFadeUp    { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pixFadeDown  { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pixFadeLeft  { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes pixFadeRight { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes pixZoomIn    { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pixBounceIn  { 0% { opacity: 0; transform: scale(0.1); } 60% { opacity: 1; transform: scale(1.1); } 100% { transform: scale(1); } }

.pixFade      { animation-name: pixFade; }
.pixFadeUp    { animation-name: pixFadeUp; }
.pixFadeDown  { animation-name: pixFadeDown; }
.pixFadeLeft  { animation-name: pixFadeLeft; }
.pixFadeRight { animation-name: pixFadeRight; }
.pixZoomIn    { animation-name: pixZoomIn; }
.pixBounceIn  { animation-name: pixBounceIn; }

/* ==========================================================================
   Site header (template-required structure)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.pix-header-fixed {
    background: rgba(245, 250, 246, 0.92);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 var(--border);
    padding: 10px 0;
}
.header-container { max-width: 1160px; padding: 0 24px; margin: 0 auto; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}

.site-mobile-logo { display: none; }
.site-mobile-logo .main-logo, .site-mobile-logo .sticky-logo { display: block; height: 36px; width: auto; }

.site-logo .logo { display: inline-flex; align-items: center; }
.site-logo img { height: 40px; width: auto; display: block; }
.site-logo .sticky-logo { display: none; }

.site-nav {
    display: flex; align-items: center; gap: 18px;
    flex: 1 1 auto; justify-content: flex-end;
}
.site-nav .site-logo { margin-right: auto; }

.close-menu { display: none; }

.menu-wrapper { display: flex; align-items: center; }

.site-main-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
}
.site-main-menu li { padding: 0; }
.site-main-menu li > a {
    display: inline-flex; align-items: center;
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}
.site-main-menu li > a:hover,
.site-main-menu li > a.active {
    color: var(--accent-600);
    background: var(--accent-50);
    text-decoration: none;
}

.site-header .site-nav > .btn,
.site-header .site-nav > .ps-btn { margin-left: 8px; }

.toggle-menu { display: none; cursor: pointer; width: 30px; }
.toggle-menu .bar {
    display: block; width: 24px; height: 2px; margin: 5px 0;
    background: var(--text); border-radius: 2px;
    transition: all 0.25s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    pointer-events: none;
    inset: 0;
    background:
        radial-gradient(620px 420px at 85% 15%, rgba(20, 184, 122, 0.12) 0%, transparent 70%),
        radial-gradient(520px 340px at 8% 85%, rgba(246, 185, 59, 0.10) 0%, transparent 70%);
    z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    background: var(--surface);
    border: 1.5px solid var(--accent-200);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-600);
    box-shadow: var(--shadow-sm);
}
.hero-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(20, 184, 122, 0.18);
    animation: psPulse 2.4s ease-in-out infinite;
}
@keyframes psPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%     { transform: scale(1.2); opacity: 0.7; }
}

.hero-title {
    margin: 18px 0 20px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 58px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}
.hero-title-accent {
    position: relative;
    display: inline-block;
    color: var(--accent-600);
    background: linear-gradient(96deg, var(--accent) 0%, var(--accent-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
}
.hero-title-accent::after {
    content: '';
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: 0.05em;
    height: 2px;
    background-image: linear-gradient(90deg, var(--accent) 0, var(--accent) 60%, transparent 60%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 0 28px;
}

.hero-cta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    margin-bottom: 36px;
}

.hero-trust {
    display: flex; flex-wrap: wrap; gap: 14px 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}
.hero-trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-muted);
}
.hero-trust-text { font-weight: 600; }

.safety-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    border-radius: var(--radius-pill);
    border: none;
    background-clip: padding-box;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.safety-chip-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}
.safety-chip--safe    { background: var(--safe); }
.safety-chip--caution { background: var(--caution); }
.safety-chip--risk    { background: var(--risk); }

.hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    margin-top: 32px;
}
.hero-mockup {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
}

/* ==========================================================================
   Section head (shared across non-hero sections)
   ========================================================================== */

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-50);
    color: var(--accent-600);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 14px;
}
.section-lead {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   How it works (steps)
   ========================================================================== */

.hiw-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg);
}
.hiw-section::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps {
    display: flex; flex-direction: column;
    gap: 40px;
}

.step-card {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "number body visual";
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.step-card-number  { grid-area: number; }
.step-card-body    { grid-area: body; }
.step-card-visual  { grid-area: visual; }

.step-card--flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 80px;
    grid-template-areas: "visual body number";
}

.step-card-number {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    position: relative;
}
.step-card-number-inner {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 64px;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(180deg, #1FD089 0%, #0E9C64 100%);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(20, 184, 122, 0.28);
    letter-spacing: -0.02em;
}
.step-card-number-chip {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-navy);
    background: var(--accent-50);
    border-radius: var(--radius-pill);
}

.step-card-body { min-width: 0; }
.step-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 10px;
}
.step-card-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}
.step-card-text strong { color: var(--text); font-weight: 700; }
.step-card-code {
    display: inline-block;
    padding: 2px 8px;
    font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    color: var(--accent-navy);
    background: var(--accent-50);
    border-radius: 6px;
    border: 1px solid var(--accent-200);
}

.step-card-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    min-width: 0;
}
.step-card-visual img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Features
   ========================================================================== */

.features-section {
    padding: 100px 0;
    background: var(--bg-soft);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 64px;
}

.feature-card {
    position: relative;
    padding: 30px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-200);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 16px; right: 16px;
    width: 22px; height: 22px;
    border-top: 1.5px dashed var(--accent-200);
    border-right: 1.5px dashed var(--accent-200);
    border-radius: 0 6px 0 0;
    opacity: 0.8;
}
.feature-card-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-50);
    border-radius: 16px;
    margin-bottom: 18px;
}
.feature-card-icon img { width: 32px; height: 32px; display: block; }
.feature-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 8px;
}
.feature-card-text {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}
.feature-card-text strong { color: var(--text); font-weight: 700; }

/* Safety levels panel */
.levels-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow-sm);
}
.levels-panel-head { text-align: center; margin-bottom: 30px; }
.levels-panel-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 8px;
}
.levels-panel-lead {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--text-muted);
    margin: 0;
}
.levels-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.level-card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.level-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}
.level-card--safe::before    { background: var(--safe); }
.level-card--caution::before { background: var(--caution); }
.level-card--risk::before    { background: var(--risk); }

.level-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.level-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.level-card-chip {
    display: inline-flex; align-items: center;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    border-radius: var(--radius-pill);
    border: none;
    background-clip: padding-box;
}
.level-card--safe .level-card-chip    { background: var(--safe); }
.level-card--caution .level-card-chip { background: var(--caution); }
.level-card--risk .level-card-chip    { background: var(--risk); }

.level-card-range {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}
.level-card-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.cta-section {
    padding: 80px 0 120px;
    background: var(--bg);
}
.cta-card {
    position: relative;
    padding: 72px 48px;
    background: var(--accent-navy);
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta-card::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(640px 380px at 80% 20%, rgba(20, 184, 122, 0.32) 0%, transparent 65%),
        radial-gradient(500px 300px at 10% 100%, rgba(246, 185, 59, 0.18) 0%, transparent 60%);
    z-index: -1;
}
.cta-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 auto 14px;
    max-width: 700px;
}
.cta-card-text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255,255,255,0.75);
    margin: 0 auto 32px;
    max-width: 560px;
}
.cta-card-actions {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.cta-card-note {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.cta-card-decor {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
    border: none;
    background-clip: padding-box;
}
.cta-card-decor--safe    { top: -40px;  left: -30px;  background: var(--safe); opacity: 0.3; }
.cta-card-decor--caution { bottom: -40px; left: 35%;   background: var(--caution); opacity: 0.25; width: 90px; height: 90px; }
.cta-card-decor--risk    { top: -30px;  right: -30px;  background: var(--risk); opacity: 0.22; width: 100px; height: 100px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--accent-navy);
    color: #fff;
    padding: 64px 0 0;
}
.footer .container { max-width: 1160px; }
.footer-content { padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-wrapper {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-logo img { width: 200px; height: 44px; display: block; margin-bottom: 14px; }
.footer-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    margin: 0;
}
.footer-menu { }
.footer__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.footer-nav-wrapper {
    display: flex; gap: 28px; flex-wrap: wrap;
}
.footer-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent); text-decoration: none; }

.footer-copyright {
    padding: 22px 0;
    text-align: center;
}
.footer-copyright p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: none;
    padding: 20px 24px 0;
}
.modal-header .close {
    font-size: 28px;
    color: var(--text-muted);
    opacity: 1;
}
.modal-header .close:hover { color: var(--text); }
.modal-body {
    padding: 0 28px 12px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.inner-page { padding: 140px 0 80px; position: relative; }
.inner-page .main-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 360px at 80% 10%, rgba(20, 184, 122, 0.10) 0%, transparent 70%),
        radial-gradient(460px 300px at 10% 90%, rgba(246, 185, 59, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.inner-page .container { position: relative; z-index: 1; }
.inner-page .title { font-size: 40px; margin-bottom: 18px; }
.inner-page .text { font-size: 16px; color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }
.inner-page img { border-radius: var(--radius-md); }

/* Contact */
.contact-section__wrap { margin-top: 40px; }
.contact-section__wrap .row > [class*="col-"] {
    display: flex;
}
.contact-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card__subtitle {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 12px;
}
.contact-card__text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.contact-card > .btn {
    margin-top: auto;
}

/* Uninstall */
.uninstall-section .uninstall-image {
    width: 100%; max-width: 751px; height: auto; margin: 0 auto; display: block;
}

/* 404 */
.section-404 img { width: 100%; max-width: 420px; height: auto; margin: 20px auto; display: block; }
.remove-page-content .title { font-size: 40px; }

/* Thanks */
.thanks-page .inner-page img { max-width: 600px; margin: 20px auto 0; display: block; }

/* Removed */
.removed-section .removed-image {
    width: 100%; max-width: 360px; height: auto; margin: 20px auto; display: block;
}

/* ==========================================================================
   Terms / Privacy
   ========================================================================== */

.terms-section { padding: 140px 0 80px; background: var(--bg); }
.terms-section .title { margin-bottom: 28px; }
.terms-privacy {
    padding: 36px 0 0;
}
.terms-privacy .container { max-width: 860px; }
.terms-privacy h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--text);
    margin: 28px 0 14px;
}
.terms-privacy h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    margin: 24px 0 10px;
}
.terms-privacy p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.terms-privacy a {
    color: var(--accent-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms-privacy a:hover { color: var(--accent); }
.terms-privacy ul, .terms-privacy ol {
    padding-left: 22px;
    margin: 0 0 18px;
}
.terms-privacy li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.terms-privacy strong { color: var(--text); }

/* Fullscreen wrapper (template-required, used by template fallback pages) */
.fullscreen {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

/* ==========================================================================
   Utility / misc
   ========================================================================== */

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-6 { margin-bottom: 4rem !important; }

/* Bootstrap grid tweaks */
.row.align-items-center { align-items: center; }
