/*
   ATI / Access to Info - modern site stylesheet
   Loaded site-wide via ~/bundles/ati-modern (BundleConfig.vb).
   Source mockup: ATI_MVC/mockup.html (Phase 1 design target).
   Brand palette extracted from Content/porto/css/skins/default.css.

   This stylesheet is intentionally loaded AFTER the Porto theme CSS so its
   declarations take cascade precedence for the chrome (.site-header,
   .site-footer) and home-page sections. Class names do not collide with
   Porto's #header/#footer or its component classes.
*/

/* =========================================================================
   Tokens
   ========================================================================= */
:root {
    --color-primary:        #0088CC;
    --color-primary-2:      #0099E6;
    --color-primary-3:      #0077B3;
    --color-primary-soft:   #E6F4FB;
    --color-primary-tint:   #F4FAFE;
    --color-secondary:      #E36159;
    --color-secondary-soft: #FCE9E7;
    --color-tertiary:       #2BAAB1;
    --color-tertiary-soft:  #DEF3F4;
    --color-quaternary:     #383F48;

    --color-ink:            #0F1620;
    --color-text:           #2A323C;
    --color-muted:          #5B6573;
    --color-subtle:         #8B95A3;
    --color-line:           #E6EAF0;
    --color-line-2:         #EEF2F6;
    --color-surface:        #FFFFFF;
    --color-canvas:         #F7F9FC;

    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-7:  32px;
    --space-8:  40px;
    --space-9:  56px;
    --space-10: 72px;
    --space-11: 96px;
    --space-12: 128px;

    --radius-1: 6px;
    --radius-2: 10px;
    --radius-3: 14px;
    --radius-4: 20px;
    --radius-pill: 999px;

    --shadow-1:
        0 1px 2px rgb(15 22 32 / 0.04),
        0 2px 6px rgb(15 22 32 / 0.04);
    --shadow-2:
        0 1px 2px rgb(0 136 204 / 0.05),
        0 8px 24px rgb(0 136 204 / 0.06),
        0 24px 56px rgb(0 136 204 / 0.06);
    --shadow-3:
        0 1px 3px rgb(0 136 204 / 0.06),
        0 12px 40px rgb(0 136 204 / 0.10),
        0 32px 72px rgb(0 136 204 / 0.10);

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-body:    "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --container-narrow: 920px;

    --z-base: 1;
    --z-elevated: 10;
    --z-floating: 100;
    --z-overlay: 1000;
    --z-modal: 10000;
}

/* =========================================================================
   Base - scoped to html/body so Porto's component-level styles still apply
   to other pages without us fighting them on every selector.
   ========================================================================= */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================================================================
   Modern utility primitives (used by .site-header, .site-footer, home page)
   ========================================================================= */
.atim-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.atim-container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.eyebrow::before {
    content: "";
    width: 24px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
}

.atim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    border-radius: var(--radius-pill);
    transition:
        transform 0.4s var(--ease-spring),
        box-shadow 0.3s var(--ease-out),
        background-color 0.2s var(--ease-out),
        color 0.2s var(--ease-out);
    text-decoration: none;
    border: 0;
    cursor: pointer;
    will-change: transform;
}
.atim-btn-primary {
    background: linear-gradient(180deg, var(--color-primary-2) 0%, var(--color-primary) 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.4) inset,
        0 1px 2px rgb(0 136 204 / 0.2),
        0 10px 24px rgb(0 136 204 / 0.28);
}
.atim-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.5) inset,
        0 2px 4px rgb(0 136 204 / 0.24),
        0 16px 36px rgb(0 136 204 / 0.36);
}
.atim-btn-primary:active { transform: translateY(0); }
.atim-btn-ghost {
    color: var(--color-quaternary);
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--color-line);
}
.atim-btn-ghost:hover {
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1.5px var(--color-primary);
    transform: translateY(-2px);
}
.atim-btn-link {
    color: var(--color-quaternary);
    font-weight: 600;
    padding: 14px 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.atim-btn-link:hover { color: var(--color-primary); gap: var(--space-3); }
.atim-btn .arrow {
    position: static;
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
}
.atim-btn:hover .arrow { transform: translateX(3px); }

.atim-btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =========================================================================
   Site header (modern chrome - replaces Porto #header)
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-floating);
    background: rgb(255 255 255 / 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgb(230 234 240 / 0.7);
}
.site-header * { box-sizing: border-box; }
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: var(--space-7);
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-ink);
    line-height: 0;
    text-decoration: none;
}
.site-header .brand-img {
    display: block;
    height: 38px;
    width: auto;
}
.site-header .primary-nav { display: none; }

@media (max-width: 959.98px) {
    .site-header[data-nav-open="true"] .primary-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgb(255 255 255 / 0.96);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid var(--color-line);
        padding: var(--space-3) var(--space-6);
        box-shadow: var(--shadow-2);
    }
    .site-header[data-nav-open="true"] .primary-nav a {
        padding: 14px 8px;
        border-bottom: 1px solid var(--color-line-2);
        font-size: 16px;
    }
    .site-header[data-nav-open="true"] .primary-nav a:last-child { border-bottom: 0; }
    .site-header[data-nav-open="true"] .primary-nav a::after { display: none; }
}
@media (min-width: 960px) {
    .site-header .primary-nav { display: flex; align-items: center; gap: var(--space-7); }
}
.site-header .primary-nav a {
    color: var(--color-text);
    font-size: 14.5px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}
.site-header .primary-nav a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.site-header .primary-nav a:hover { color: var(--color-primary); }
.site-header .primary-nav a:hover::after { transform: scaleX(1); }
.site-header .primary-nav a.is-active { color: var(--color-primary); }
.site-header .primary-nav a.is-active::after { transform: scaleX(1); }

.site-header .header-actions { display: flex; align-items: center; gap: var(--space-4); }
/* Compact header CTA - sits cleanly inside the 76px header bar without
   visually escaping past it. */
.site-header .header-actions .atim-btn {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.4) inset,
        0 1px 2px rgb(0 136 204 / 0.18),
        0 4px 12px rgb(0 136 204 / 0.22);
}
.site-header .header-actions .atim-btn:hover {
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.5) inset,
        0 2px 4px rgb(0 136 204 / 0.22),
        0 8px 20px rgb(0 136 204 / 0.30);
}
.site-header .header-actions .atim-btn .arrow { width: 12px; height: 12px; }
.site-header .login-link { color: var(--color-text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.site-header .login-link:hover { color: var(--color-primary); }
.site-header .menu-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-2);
    color: var(--color-quaternary);
    background: var(--color-line-2);
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.site-header .menu-toggle:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.site-header .menu-toggle .open-icon { display: block; }
.site-header .menu-toggle .close-icon { display: none; }
.site-header[data-nav-open="true"] .menu-toggle .open-icon { display: none; }
.site-header[data-nav-open="true"] .menu-toggle .close-icon { display: block; }
@media (min-width: 960px) { .site-header .menu-toggle { display: none; } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-11) 0 var(--space-12);
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 600px at 12% 0%,  rgb(0 136 204 / 0.10), transparent 60%),
        radial-gradient(700px 500px at 100% 30%, rgb(43 170 177 / 0.10), transparent 60%),
        radial-gradient(600px 400px at 50% 100%, rgb(227 97 89 / 0.06), transparent 60%),
        linear-gradient(180deg, #FBFDFE 0%, #FFFFFF 100%);
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}
@media (min-width: 1040px) {
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-11); }
}

.hero-copy .eyebrow { margin-bottom: var(--space-5); }
.hero-headline {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-ink);
    font-size: clamp(40px, 5.6vw, 72px);
    line-height: 1.02;
    margin: 0 0 var(--space-5);
    letter-spacing: -0.03em;
}
.hero-headline .accent {
    color: var(--color-primary);
    font-style: italic;
    font-weight: 500;
}
.hero-headline .underline {
    background: linear-gradient(180deg, transparent 70%, rgb(0 136 204 / 0.18) 70%);
    padding: 0 0.05em;
}
.hero-sub {
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--color-muted);
    max-width: 56ch;
    margin: 0 0 var(--space-7);
    line-height: 1.7;
}
.hero-sub strong { color: var(--color-quaternary); font-weight: 700; }

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-9);
}
.hero-ctas .atim-btn-primary { padding: 5px 6px 5px 16px; }
.hero-ctas .price-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    background: rgb(255 255 255 / 0.18);
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    margin-left: 2px;
    line-height: 1;
    font-weight: 800;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-ctas .price-chip small { font-size: 8px; opacity: 0.92; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.hero-ctas .price-chip b { font-size: 11px; font-weight: 800; letter-spacing: -0.01em; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px dashed var(--color-line);
}
.hero-trust-stat {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.hero-trust-stat b {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}
.hero-trust-stat span {
    font-size: 13px;
    color: var(--color-muted);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    z-index: var(--z-base);
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 4% 8%;
    background: radial-gradient(closest-side, rgb(0 136 204 / 0.18), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.doc-stack {
    position: absolute;
    inset: 4% 8% 6% 8%;
    perspective: 1600px;
    transform-style: preserve-3d;
}
.doc-stack::before {
    content: "";
    position: absolute;
    inset: -2% -3% 2% 5%;
    background: linear-gradient(180deg, #F4F8FC 0%, #E9F1F8 100%);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-1);
    transform: rotate(-3deg);
    transform-origin: 50% 100%;
    z-index: -1;
    border: 1px solid var(--color-line);
}
.doc {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-3);
    padding: 36px 36px 32px;
    transform: rotate(1.5deg);
    transform-origin: 50% 100%;
    border: 1px solid rgb(255 255 255 / 0.8);
    overflow: hidden;
}
.doc::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 38%;
    background: linear-gradient(180deg, rgb(0 136 204 / 0.06), transparent);
    pointer-events: none;
}
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.doc-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.doc-title small {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.doc-title .doc-org {
    display: block;
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    margin-top: 4px;
}
.doc-stamp {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.14em;
    padding: 6px 8px;
    border-radius: 4px;
    transform: rotate(-8deg);
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.85;
}
.doc-section { margin-bottom: 18px; }
.doc-section h5 {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 8px;
}
.doc-line {
    height: 7px;
    background: linear-gradient(90deg, var(--color-line) 0%, var(--color-line-2) 100%);
    border-radius: 4px;
    margin-bottom: 7px;
}
.doc-line.short { width: 65%; }
.doc-line.shorter { width: 40%; }
.doc-line.dark { background: linear-gradient(90deg, var(--color-quaternary), #5B6573); opacity: 0.85; }

.float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-2);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: var(--z-elevated);
    border: 1px solid var(--color-line);
}
.float-card .icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-2);
    display: grid; place-items: center;
    background: var(--color-tertiary-soft);
    color: var(--color-tertiary);
    flex-shrink: 0;
}
.float-card .text { line-height: 1.25; }
.float-card .text b { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-ink); display: block; }
.float-card .text span { font-size: 12px; color: var(--color-muted); }

.float-approved { left: -28px; bottom: 18%; transform: rotate(-3deg); }
.float-price { right: -28px; top: 14%; transform: rotate(3deg); padding: 16px 20px; }
.float-price .icon { background: var(--color-primary-soft); color: var(--color-primary); }
.float-price .text b { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--color-ink); }
.float-price .text .strike {
    text-decoration: line-through;
    text-decoration-color: var(--color-secondary);
    color: var(--color-subtle);
    font-size: 12px;
    font-weight: 600;
    display: block;
}

/* =========================================================================
   Credibility band
   ========================================================================= */
.cred-band {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    background: var(--color-canvas);
    position: relative;
    overflow: hidden;
}
.cred-band::before {
    content: "";
    position: absolute; left: -10%; top: -50%;
    width: 60%; height: 200%;
    background: radial-gradient(closest-side, rgb(0 136 204 / 0.06), transparent);
    pointer-events: none;
}
.cred-band-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-subtle);
    margin: 0 0 var(--space-7);
    position: relative;
}
.cred-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
}
.cred-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    padding: 10px 18px 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-quaternary);
    box-shadow: var(--shadow-1);
    line-height: 1.3;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.2s var(--ease-out);
}
.cred-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--color-primary-soft); }
.cred-pill .icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    flex-shrink: 0;
}
.cred-pill.tone-coral .icon { background: var(--color-secondary-soft); color: var(--color-secondary); }
.cred-pill.tone-teal  .icon { background: var(--color-tertiary-soft); color: var(--color-tertiary); }
.cred-pill.tone-slate .icon { background: #EEF1F4; color: var(--color-quaternary); }
.cred-pill b { font-weight: 800; color: var(--color-ink); margin-right: 2px; }

/* =========================================================================
   Section primitives
   ========================================================================= */
.section { padding: var(--space-12) 0; }
.section h2 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 var(--space-5);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-10); }
.section-head .eyebrow { justify-content: center; margin-bottom: var(--space-5); }
.section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: var(--space-5);
}
.section-head p {
    color: var(--color-muted);
    font-size: 18px;
    margin: 0 auto;
    max-width: 60ch;
    line-height: 1.7;
}

/* =========================================================================
   Values (4-card grid)
   ========================================================================= */
.values { background: var(--color-surface); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--space-5);
}
@media (min-width: 720px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.value-card {
    background: #fff;
    border-radius: var(--radius-3);
    padding: var(--space-7) var(--space-6);
    border: 1px solid var(--color-line);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.value-card::after {
    content: "";
    position: absolute; inset: auto -20% -40% auto;
    width: 240px; height: 240px;
    background: radial-gradient(closest-side, rgb(0 136 204 / 0.08), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: transparent;
}
.value-card:hover::after { opacity: 1; }
.value-card .icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: var(--radius-2);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
}
.value-card.tone-coral .icon { background: var(--color-secondary-soft); color: var(--color-secondary); }
.value-card.tone-teal  .icon { background: var(--color-tertiary-soft); color: var(--color-tertiary); }
.value-card.tone-slate .icon { background: #EEF1F4; color: var(--color-quaternary); }
.value-card h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 19px;
    margin: 0 0 var(--space-3);
    line-height: 1.25;
}
.value-card p { font-size: 14.5px; color: var(--color-muted); margin: 0; line-height: 1.65; }

/* =========================================================================
   Explainer
   ========================================================================= */
.explainer { background: var(--color-canvas); position: relative; overflow: hidden; }
.explainer::before {
    content: "";
    position: absolute; left: -10%; top: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(closest-side, rgb(0 136 204 / 0.08), transparent);
    pointer-events: none;
}
.explainer-grid {
    display: grid; gap: var(--space-10);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1040px) { .explainer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }
.explainer-copy h2 {
    font-size: clamp(30px, 3.6vw, 44px);
}
.explainer-copy h2 em {
    font-style: italic;
    color: var(--color-primary);
    font-weight: 500;
}
.explainer-copy p { color: var(--color-muted); font-size: 17px; margin: 0 0 var(--space-5); line-height: 1.7; }
.explainer-copy strong { color: var(--color-quaternary); font-weight: 700; }
.explainer-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.explainer-list li {
    display: flex; gap: var(--space-3); align-items: flex-start;
    padding: var(--space-3) 0;
    border-bottom: 1px dashed var(--color-line);
    color: var(--color-text);
    font-size: 16px;
}
.explainer-list li:last-child { border-bottom: 0; }
.explainer-list li svg { flex-shrink: 0; margin-top: 4px; color: var(--color-tertiary); }

.explainer-visual {
    position: relative;
    aspect-ratio: 5 / 4.5;
    border-radius: var(--radius-4);
    background: linear-gradient(160deg, #FFFFFF 0%, #EEF6FB 100%);
    padding: var(--space-7);
    box-shadow: var(--shadow-2);
    border: 1px solid var(--color-line);
    overflow: hidden;
}
.explainer-visual::after {
    content: ""; position: absolute; inset: auto -15% -25% auto;
    width: 380px; height: 380px;
    background: radial-gradient(closest-side, rgb(43 170 177 / 0.16), transparent);
    pointer-events: none;
}
.compliance-badges {
    position: relative; z-index: var(--z-base);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.compliance-badges .badge {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-quaternary);
    letter-spacing: 0.04em;
    display: inline-flex; gap: 6px; align-items: center;
}
.compliance-badges .badge .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--color-tertiary); }
.compliance-badges .badge.alt .dot { background: var(--color-primary); }
.explainer-doc {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    padding: var(--space-6);
    box-shadow: var(--shadow-1);
    position: relative;
    z-index: var(--z-base);
}
.explainer-doc h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--space-3);
}
.explainer-doc p {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-ink);
    margin: 0 0 var(--space-5);
    line-height: 1.25;
    font-weight: 600;
}
.explainer-doc .lines { display: flex; flex-direction: column; gap: 8px; }
.explainer-doc .lines i { display: block; height: 8px; background: var(--color-line-2); border-radius: 4px; }
.explainer-doc .lines i:nth-child(2) { width: 92%; }
.explainer-doc .lines i:nth-child(3) { width: 78%; }
.explainer-doc .lines i:nth-child(4) { width: 88%; }

/* =========================================================================
   How it works
   ========================================================================= */
.howto { background: #fff; }
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    counter-reset: step;
    position: relative;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
    .steps::before {
        content: "";
        position: absolute;
        top: 68px; left: 14%; right: 14%;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--color-primary-soft) 0 8px, transparent 8px 16px);
        z-index: 0;
    }
}
.step {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    padding: var(--space-7) var(--space-6);
    position: relative;
    z-index: var(--z-base);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step .num {
    width: 72px; height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side at 30% 30%, #fff, #F4FAFE 60%, #E6F4FB 100%);
    border: 1.5px solid #fff;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 auto var(--space-5);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.8) inset,
        0 1px 2px rgb(0 136 204 / 0.10),
        0 12px 24px rgb(0 136 204 / 0.14);
    letter-spacing: -0.02em;
    position: relative;
}
.step .num::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgb(0 136 204 / 0.18);
}
.step h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 19px;
    text-align: center;
    margin: 0 0 var(--space-3);
}
.step p {
    text-align: center;
    color: var(--color-muted);
    font-size: 14.5px;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing { background: var(--color-canvas); position: relative; overflow: hidden; }
.pricing::before {
    content: "";
    position: absolute; right: -10%; top: 10%;
    width: 520px; height: 520px;
    background: radial-gradient(closest-side, rgb(0 136 204 / 0.10), transparent);
    pointer-events: none;
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 980px; margin: 0 auto;
    align-items: stretch;
}
@media (min-width: 800px) { .pricing-grid { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.price-card {
    background: #fff;
    border-radius: var(--radius-4);
    padding: var(--space-8) var(--space-7);
    border: 1px solid var(--color-line);
    text-align: center;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}
.price-card.us {
    background:
        radial-gradient(220px 200px at 0% 0%, rgb(0 136 204 / 0.10), transparent),
        radial-gradient(220px 200px at 100% 100%, rgb(43 170 177 / 0.12), transparent),
        linear-gradient(180deg, #fff 0%, #F7FAFD 100%);
    border: 1px solid var(--color-primary-soft);
    box-shadow: var(--shadow-3);
    transform: translateY(-4px);
}
.price-card.them { opacity: 0.95; }
.price-card .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-subtle);
    margin-bottom: var(--space-4);
}
.price-card.us .label { color: var(--color-primary); }
.price-card .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-ink);
    margin-bottom: var(--space-5);
    line-height: 1.2;
}
.price-card .amount {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}
.price-card.them .amount {
    color: var(--color-secondary);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: rgb(227 97 89 / 0.55);
}
.price-card.us .amount-row {
    display: inline-flex; align-items: baseline; gap: 6px;
}
.price-card.us .amount-row .currency { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-muted); }
.price-card .sub {
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: var(--space-6);
}
.price-card .features {
    list-style: none; padding: 0; margin: 0 0 var(--space-6); text-align: left;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 14.5px;
}
.price-card .features li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text); line-height: 1.5; }
.price-card .features li svg { flex-shrink: 0; margin-top: 4px; color: var(--color-tertiary); }
.price-card.them .features li svg { color: var(--color-subtle); }
.price-card.them .features li { color: var(--color-muted); }

.pricing-vs {
    width: 80px; height: 80px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side at 30% 30%, #fff, #F4FAFE 60%, var(--color-primary-soft) 100%);
    color: var(--color-primary);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.9) inset,
        0 8px 18px rgb(0 136 204 / 0.18),
        0 24px 48px rgb(0 136 204 / 0.18);
    z-index: var(--z-elevated);
    position: relative;
    letter-spacing: -0.02em;
    border: 1px solid #fff;
}
.pricing-vs::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgb(0 136 204 / 0.22);
}

.savings-callout {
    margin: var(--space-8) auto 0;
    text-align: center;
    max-width: 560px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-3) 100%);
    color: #fff;
    border-radius: var(--radius-3);
    padding: var(--space-6) var(--space-7);
    box-shadow: 0 18px 40px rgb(0 136 204 / 0.35);
    position: relative; overflow: hidden;
}
.savings-callout::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(closest-side at 0% 0%, rgb(255 255 255 / 0.18), transparent);
    pointer-events: none;
}
.savings-callout b {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.savings-callout span { font-size: 14.5px; opacity: 0.92; }

/* =========================================================================
   Long-form SEO body
   ========================================================================= */
.longform { background: #fff; }
.longform-grid {
    display: grid; gap: var(--space-9);
    grid-template-columns: 1fr;
    max-width: var(--container-narrow);
    margin: 0 auto;
}
.longform h2 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: clamp(26px, 3vw, 34px);
    margin: var(--space-9) 0 var(--space-5);
}
.longform > article > h2:first-child { margin-top: 0; }
.longform p, .longform ul, .longform ol { font-size: 16.5px; color: var(--color-text); line-height: 1.75; margin: 0 0 var(--space-5); }
.longform ul, .longform ol { padding-left: 1.5em; }
.longform li { margin-bottom: 8px; }
.longform strong { color: var(--color-ink); font-weight: 700; }
.longform a { color: var(--color-primary); font-weight: 600; border-bottom: 1.5px solid rgb(0 136 204 / 0.25); text-decoration: none; }
.longform a:hover { border-bottom-color: var(--color-primary); }

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.faq { background: var(--color-canvas); }
.faq-list { max-width: var(--container-narrow); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.faq-item {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.faq-item[open] {
    box-shadow: var(--shadow-2);
    border-color: var(--color-primary-soft);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-6) var(--space-7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-spring), background-color 0.2s var(--ease-out);
}
.faq-item[open] summary .chev { transform: rotate(180deg); background: var(--color-primary); color: #fff; }
.faq-item .body { padding: 0 var(--space-7) var(--space-7); color: var(--color-muted); font-size: 16px; line-height: 1.75; }
.faq-item .body p { margin: 0; }

/* =========================================================================
   Final CTA
   ========================================================================= */
.cta-final {
    padding: var(--space-12) 0;
    background:
        radial-gradient(700px 500px at 10% 0%, rgb(43 170 177 / 0.20), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgb(0 153 230 / 0.20), transparent 60%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-3) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.5;
    pointer-events: none;
}
.cta-final h2 {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: clamp(34px, 4.6vw, 56px);
    margin: 0 0 var(--space-5);
}
.cta-final h2 .accent {
    font-style: italic;
    font-weight: 500;
    color: rgb(255 255 255 / 0.85);
}
.cta-final p {
    color: rgb(255 255 255 / 0.88);
    font-size: 18px;
    max-width: 60ch;
    margin: 0 auto var(--space-7);
    line-height: 1.7;
}
.cta-final .atim-btn-primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.7) inset,
        0 1px 2px rgb(0 0 0 / 0.1),
        0 16px 36px rgb(0 0 0 / 0.18);
}
.cta-final .atim-btn-primary:hover {
    background: #fff;
    color: var(--color-primary-3);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.8) inset,
        0 2px 4px rgb(0 0 0 / 0.12),
        0 22px 44px rgb(0 0 0 / 0.22);
}

/* =========================================================================
   Site footer (modern chrome - replaces Porto #footer)
   ========================================================================= */
.site-footer {
    background: #0B1220;
    color: #BFC8D6;
    padding: var(--space-11) 0 var(--space-7);
}
.site-footer * { box-sizing: border-box; }
.site-footer .footer-grid {
    display: grid; gap: var(--space-8);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-9);
}
@media (min-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .footer-brand { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: var(--space-4); letter-spacing: -0.02em; }
.site-footer .footer-brand img { height: 36px; width: auto; display: block; }
.site-footer .footer-blurb { color: #8B95A3; font-size: 14.5px; line-height: 1.7; max-width: 36ch; margin: var(--space-5) 0 var(--space-5); }
.site-footer .footer-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer .footer-contact a:hover { color: var(--color-primary-2); }
.site-footer .footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 var(--space-5);
}
.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .footer-col a { color: #BFC8D6; font-size: 14.5px; transition: color 0.2s var(--ease-out); text-decoration: none; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.08);
    padding-top: var(--space-6);
    display: flex; flex-wrap: wrap; gap: var(--space-5);
    align-items: center; justify-content: space-between;
    color: #8B95A3; font-size: 13px;
}
.site-footer .footer-bottom nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer .footer-bottom nav a { color: #8B95A3; text-decoration: none; }
.site-footer .footer-bottom nav a:hover { color: #fff; }

/* =========================================================================
   Legacy Porto chrome compatibility layer
   -------------------------------------------------------------------------
   The site's inner pages (HowToGuide, PAIA_FAQ, PAIAManualGenerator, Contact,
   Login, Register, Articles, Article, Terms, etc.) use Porto's Bootstrap-
   based markup: .main wrapper, .page-header.page-header-classic banner,
   .heading.heading-border, .process-step / .process-step-circle, .alert,
   .btn / .btn-* variants, .form-control, .card. These rules retheme those
   patterns to the modern design tokens without touching any view markup —
   so all 19+ inner pages pick up the new look automatically.

   Selectors are scoped to `.main` (Porto's public-page wrapper) wherever
   reasonable so admin/member views with different chrome are unaffected.
   ========================================================================= */

/* Main content wrapper - give breathing room under the sticky header and
   set the prose canvas. */
.main { background: var(--color-surface); }
.main > .container,
.main > section > .container { position: relative; }

/* ---- Page header banner (replaces Porto's dark .page-header-classic) ---- */
.main .page-header.page-header-classic {
    background:
        radial-gradient(700px 360px at 12% 0%,  rgb(0 136 204 / 0.10), transparent 60%),
        radial-gradient(600px 320px at 100% 30%, rgb(43 170 177 / 0.10), transparent 60%),
        linear-gradient(180deg, #FBFDFE 0%, #FFFFFF 100%);
    color: var(--color-ink);
    padding: var(--space-9) 0 var(--space-7);
    border-bottom: 1px solid var(--color-line);
    margin: 0 0 var(--space-9);
    position: relative;
    overflow: hidden;
}
.main .page-header.page-header-classic::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.25;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.main .page-header h1,
.main .page-header.page-header-classic h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-size: clamp(34px, 4.4vw, 52px);
    margin: var(--space-3) 0 0;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
}
.main .page-header h1::before,
.main .page-header h1::after { display: none !important; }
.main .page-header h1[data-title-border] { border: 0; padding: 0; }
.main .page-header .lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--color-muted);
    margin-top: var(--space-3);
    max-width: 60ch;
}

/* ---- Breadcrumb ---- */
.main .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-subtle);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.main .breadcrumb li {
    display: inline-flex; align-items: center; gap: 8px;
}
.main .breadcrumb li + li::before {
    content: "›";
    color: var(--color-subtle);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
}
.main .breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}
.main .breadcrumb a:hover { color: var(--color-primary); }
.main .breadcrumb .active,
.main .breadcrumb li.active { color: var(--color-primary); }
.main .breadcrumb-item + .breadcrumb-item::before { color: var(--color-line); }

/* ---- Section heading wrapper (.heading.heading-border) ---- */
.main .heading.heading-border,
.main .heading.heading-border-bottom,
.main .heading.heading-middle-border {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 var(--space-7) !important;
    text-align: left;
    position: relative;
}
.main .heading.heading-middle-border::before,
.main .heading.heading-middle-border::after { display: none !important; }
.main .heading h1,
.main .heading h2,
.main .heading h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}
.main .heading h1 { font-size: clamp(28px, 3.4vw, 40px); }
.main .heading h2 { font-size: clamp(24px, 3vw, 34px); }
.main .heading h3 { font-size: clamp(20px, 2.4vw, 26px); }
.main .heading h1 strong,
.main .heading h2 strong,
.main .heading h3 strong { color: var(--color-primary); }

/* ---- General prose inside .main ---- */
.main h1, .main h2, .main h3, .main h4, .main h5, .main h6 {
    font-family: var(--font-display);
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 700;
}
.main article > h2,
.main .container > .row > .col-lg-8 > article > h2 {
    margin-top: var(--space-9);
    font-size: clamp(24px, 2.8vw, 32px);
}
.main article > h2:first-child { margin-top: 0; }
.main article p,
.main article li {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--color-text);
}
.main article p { margin: 0 0 var(--space-5); }
.main article ul,
.main article ol { padding-left: 1.5em; margin: 0 0 var(--space-5); }
.main article li { margin-bottom: 8px; }
.main article strong { color: var(--color-ink); font-weight: 700; }
.main p.lead {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--color-muted);
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: var(--space-6);
}
.main article a:not(.btn):not(.atim-btn) {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1.5px solid rgb(0 136 204 / 0.25);
    text-decoration: none;
    transition: border-color 0.2s var(--ease-out);
}
.main article a:not(.btn):not(.atim-btn):hover { border-bottom-color: var(--color-primary); }

/* ---- Process steps (.process > .process-step) ---- */
.main .row.process,
.main .process { margin-top: var(--space-7); position: relative; }
.main .process-step {
    text-align: center;
    padding: var(--space-6);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out);
    margin-bottom: var(--space-5) !important;
}
.main .process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.main .process-step-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: radial-gradient(closest-side at 30% 30%, #fff, #F4FAFE 60%, #E6F4FB 100%) !important;
    border: 1.5px solid #fff !important;
    display: grid; place-items: center;
    margin: 0 auto var(--space-5);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.8) inset,
        0 1px 2px rgb(0 136 204 / 0.10),
        0 12px 24px rgb(0 136 204 / 0.14) !important;
    position: relative;
    color: var(--color-primary) !important;
}
.main .process-step-circle::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgb(0 136 204 / 0.18);
}
.main .process-step-circle-content {
    font-family: var(--font-display) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
    background: none !important;
    line-height: 1;
}
.main .process-step-content h4 {
    font-family: var(--font-display);
    font-size: 18px !important;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3) !important;
}
.main .process-step-content p {
    color: var(--color-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ---- Alerts (.alert / .alert-success / .alert-danger / .alert-info) ---- */
.main .alert {
    background: #fff;
    border: 1px solid var(--color-line);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-3);
    padding: var(--space-6) var(--space-7);
    box-shadow: var(--shadow-1);
    color: var(--color-text);
    margin-bottom: var(--space-5);
}
.main .alert-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
    font-size: 19px;
}
.main .alert p { margin: 0 0 var(--space-2); }
.main .alert p:last-child { margin-bottom: 0; }
.main .alert ul,
.main .alert ol { margin: var(--space-2) 0 0; padding-left: 1.4em; }
.main .alert ul li,
.main .alert ol li { font-size: 15px; margin-bottom: 6px; }
.main .alert-success {
    border-left-color: var(--color-tertiary);
    background: linear-gradient(180deg, var(--color-tertiary-soft) 0%, #fff 60%);
}
.main .alert-success .alert-heading { color: var(--color-tertiary); }
.main .alert-success i { color: var(--color-tertiary); }
.main .alert-danger {
    border-left-color: var(--color-secondary);
    background: linear-gradient(180deg, var(--color-secondary-soft) 0%, #fff 60%);
}
.main .alert-danger .alert-heading,
.main .alert-danger strong { color: var(--color-secondary); }
.main .alert-info {
    border-left-color: var(--color-primary);
    background: linear-gradient(180deg, var(--color-primary-soft) 0%, #fff 60%);
}
.main .alert-warning {
    border-left-color: #E6A100;
    background: linear-gradient(180deg, #FFF6DD 0%, #fff 60%);
}

/* ---- Buttons (Bootstrap .btn / Porto variants) ---- */
.main .btn,
.site-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    text-decoration: none;
    transition:
        transform 0.4s var(--ease-spring),
        box-shadow 0.3s var(--ease-out),
        background-color 0.2s var(--ease-out),
        color 0.2s var(--ease-out),
        border-color 0.2s var(--ease-out);
    line-height: 1.2;
    will-change: transform;
}
.main .btn-lg { padding: 14px 28px; font-size: 15px; }
.main .btn-sm { padding: 8px 16px; font-size: 13px; }

.main .btn-primary {
    background: linear-gradient(180deg, var(--color-primary-2) 0%, var(--color-primary) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.4) inset,
        0 1px 2px rgb(0 136 204 / 0.2),
        0 10px 24px rgb(0 136 204 / 0.28) !important;
}
.main .btn-primary:hover,
.main .btn-primary:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.5) inset,
        0 2px 4px rgb(0 136 204 / 0.24),
        0 16px 36px rgb(0 136 204 / 0.36) !important;
}

.main .btn-success {
    background: linear-gradient(180deg, #34BFC6 0%, var(--color-tertiary) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.4) inset,
        0 1px 2px rgb(43 170 177 / 0.2),
        0 10px 24px rgb(43 170 177 / 0.28) !important;
}
.main .btn-success:hover,
.main .btn-success:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.5) inset,
        0 2px 4px rgb(43 170 177 / 0.24),
        0 16px 36px rgb(43 170 177 / 0.36) !important;
}

.main .btn-dark {
    background: linear-gradient(180deg, #4B5460 0%, var(--color-quaternary) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.2) inset,
        0 1px 2px rgb(0 0 0 / 0.18),
        0 10px 24px rgb(0 0 0 / 0.18) !important;
}
.main .btn-dark:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.main .btn-light,
.main .btn-light-2 {
    background: #fff !important;
    color: var(--color-primary) !important;
    border-color: transparent !important;
    box-shadow:
        0 1px 2px rgb(0 0 0 / 0.06),
        0 12px 28px rgb(0 0 0 / 0.10) !important;
}
.main .btn-light:hover,
.main .btn-light-2:hover { color: var(--color-primary-3) !important; transform: translateY(-2px); }

.main .btn-outline-primary {
    background: transparent !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
}
.main .btn-outline-primary:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgb(0 136 204 / 0.24) !important;
}

.main .btn-warning {
    background: linear-gradient(180deg, #F0B232 0%, #E6A100 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ---- Forms (Bootstrap .form-control / .form-row / .form-group) ---- */
.main .form-control,
.main .form-control-lg {
    background: #fff;
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-2);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--color-ink);
    box-shadow: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    height: auto;
    line-height: 1.4;
}
.main .form-control-lg { padding: 14px 16px; font-size: 16px; }
.main .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgb(0 136 204 / 0.14);
    outline: 0;
}
.main .form-control::placeholder { color: var(--color-subtle); }
.main textarea.form-control { min-height: 140px; resize: vertical; }
.main .form-group { margin-bottom: var(--space-5); }
.main .form-group label,
.main label.required {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-quaternary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.main label.required::after,
.main .required::after {
    content: " *";
    color: var(--color-secondary);
}

/* ---- Cards (Bootstrap .card) ---- */
.main .card {
    background: #fff;
    border: 1px solid var(--color-line) !important;
    border-radius: var(--radius-3) !important;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.2s var(--ease-out);
}
.main .card.shadow-sm,
.main .card.shadow { box-shadow: var(--shadow-2) !important; border-color: transparent !important; }
.main .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.main .card-header {
    background: linear-gradient(180deg, var(--color-primary-2) 0%, var(--color-primary) 100%) !important;
    color: #fff !important;
    border-bottom: 0;
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.main .card-header.bg-secondary {
    background: linear-gradient(180deg, #4B5460 0%, var(--color-quaternary) 100%) !important;
}
.main .card-header.bg-warning {
    background: linear-gradient(180deg, #F0B232 0%, #E6A100 100%) !important;
}
.main .card-header h3,
.main .card-header h4,
.main .card-header h5 {
    color: #fff;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
}
.main .card-body { padding: var(--space-6); }
.main .card-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 var(--space-3);
}
.main .card-text { color: var(--color-muted); }

/* ---- List groups (Bootstrap) ---- */
.main .list-group { border-radius: var(--radius-2); overflow: hidden; }
.main .list-group-item {
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--color-line-2);
    padding: 14px 16px;
    color: var(--color-text);
    font-size: 14.5px;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.main .list-group-item:last-child { border-bottom: 0; }
.main .list-group-item.list-group-item-action:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}
.main .list-group-flush .list-group-item { border-radius: 0; }

/* ---- Porto utility text classes - ensure brand colour mapping ---- */
.main .text-color-primary,
.main .text-primary { color: var(--color-primary) !important; }
.main .text-color-secondary { color: var(--color-secondary) !important; }
.main .text-color-tertiary { color: var(--color-tertiary) !important; }
.main .text-color-dark { color: var(--color-ink) !important; }
.main .text-color-danger,
.main .text-danger { color: var(--color-secondary) !important; }
.main .text-success { color: var(--color-tertiary) !important; }
.main .text-info { color: var(--color-primary) !important; }
.main .text-warning { color: #E6A100 !important; }

/* ---- Tables (Bootstrap) ---- */
.main .table {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    overflow: hidden;
    margin-bottom: var(--space-6);
}
.main .table thead th {
    background: var(--color-canvas);
    color: var(--color-quaternary);
    font-weight: 700;
    border-bottom: 1px solid var(--color-line);
    padding: 14px 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.main .table td { padding: 14px 16px; border-top: 1px solid var(--color-line-2); color: var(--color-text); }

/* ---- Misc Porto leftovers ---- */
.main hr.solid { border-top: 1px solid var(--color-line); }
.main .lead { color: var(--color-muted); }
.main blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    color: var(--color-muted);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
}
.main .text-muted { color: var(--color-muted) !important; }

/* ---- Sidebar widgets (used on Articles page, etc.) ---- */
.main aside.sidebar h3,
.main aside.sidebar h4 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================================================
   Auth pages (Register, Login)
   ========================================================================= */
.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-6);
    background: var(--color-canvas);
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-2);
    padding: var(--space-8) var(--space-8);
    width: 100%;
    max-width: 500px;
}

@media (max-width: 480px) {
    .auth-card { padding: var(--space-7) var(--space-6); }
}

.auth-card-header {
    margin-bottom: var(--space-6);
}

.auth-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-2);
    border: 0;
    padding: 0;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--color-muted);
    margin: 0;
}

.auth-alert {
    margin-bottom: var(--space-5);
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-quaternary);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.auth-card .form-group {
    margin-bottom: var(--space-5);
}

.auth-card .form-control.auth-input {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-1);
    box-shadow: none;
    line-height: 44px;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.auth-card .form-control.auth-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(0 136 204 / 0.12);
    outline: none;
}

.auth-card .form-control.auth-input::placeholder {
    color: var(--color-subtle);
}

.has-error .auth-input {
    border-color: var(--color-secondary) !important;
}

.auth-field-error {
    display: block;
    font-size: 12px;
    color: var(--color-secondary);
    margin-top: 4px;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    font-size: 13px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-muted);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.auth-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    margin-top: var(--space-2);
}

.auth-card-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-line-2);
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
}

.auth-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
