:root {
    --purple-950: #2d1735;
    --purple-800: #633676;
    --purple-700: #764188;
    --purple-600: #8e56a0;
    --purple-100: #f0e7f3;
    --green-900: #173f2a;
    --green-800: #205333;
    --green-700: #286240;
    --green-100: #e5f0e9;
    --yellow-500: #fbd513;
    --yellow-100: #fff8cf;
    --ink: #17211c;
    --muted: #5d6b63;
    --line: #dce4df;
    --soft: #f4f7f5;
    --white: #ffffff;
    --danger: #a92d38;
    --success: #146b3a;
    --shadow-sm: 0 8px 24px rgba(24, 49, 36, 0.08);
    --shadow-lg: 0 28px 70px rgba(30, 46, 37, 0.16);
    --radius-sm: 0.75rem;
    --radius: 1.25rem;
    --radius-lg: 2rem;
    --container: 1180px;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/poppins-latin.woff2") format("woff2");
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--yellow-500);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.65rem 1rem;
    color: var(--white);
    background: var(--purple-950);
    border-radius: 0.5rem;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 2rem), 820px);
    margin-inline: auto;
}

.section {
    padding-block: clamp(4.25rem, 8vw, 7.5rem);
}

.section-sm {
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    color: var(--white);
    background: var(--green-900);
}

.section-purple {
    color: var(--white);
    background: var(--purple-950);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--purple-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.section-dark .eyebrow,
.section-purple .eyebrow,
.hero .eyebrow {
    color: var(--yellow-500);
}

.eyebrow::before {
    width: 1.75rem;
    height: 2px;
    content: "";
    background: currentColor;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.display {
    max-width: 14ch;
    margin-bottom: 1.35rem;
}

.section-heading {
    max-width: 16ch;
    margin-bottom: 1.2rem;
}

.heading-center {
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.heading-center .section-heading {
    margin-inline: auto;
}

.lead {
    max-width: 670px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.section-dark .lead,
.section-purple .lead,
.hero .lead {
    color: rgba(255, 255, 255, 0.82);
}

.text-muted {
    color: var(--muted);
}

.text-small {
    font-size: 0.9rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 0.78rem;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--purple-700);
    box-shadow: 0 10px 24px rgba(99, 54, 118, 0.2);
}

.btn-primary:hover {
    background: var(--purple-800);
}

.btn-accent {
    color: var(--purple-950);
    background: var(--yellow-500);
}

.btn-accent:hover {
    background: #ffe34b;
}

.btn-secondary {
    color: var(--green-900);
    background: var(--white);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--green-700);
}

.btn-ghost {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.58);
}

.btn-ghost:hover {
    color: var(--green-900);
    background: var(--white);
}

.btn-block {
    width: 100%;
}

.icon-arrow {
    font-size: 1.15em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 228, 223, 0.9);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: grid;
    min-height: 5rem;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 164px;
    height: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1.7rem);
}

.desktop-nav a {
    position: relative;
    padding: 0.5rem 0;
    color: #48564e;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0.15rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--purple-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--purple-800);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-signin {
    padding: 0.55rem 0.7rem;
    color: #48564e;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-actions .btn {
    min-height: 2.7rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    padding: 0;
    color: var(--purple-800);
    background: var(--purple-100);
    border: 0;
    border-radius: 0.75rem;
    cursor: pointer;
}

.menu-toggle svg {
    width: 1.4rem;
}

.mobile-panel {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 12%, rgba(251, 213, 19, 0.18), transparent 25%),
        radial-gradient(circle at 86% 8%, rgba(184, 155, 195, 0.36), transparent 27%),
        linear-gradient(124deg, var(--purple-950) 0%, var(--purple-800) 51%, var(--green-800) 100%);
}

.hero::after {
    position: absolute;
    right: -11rem;
    bottom: -18rem;
    width: 36rem;
    height: 36rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.03), 0 0 0 10rem rgba(255, 255, 255, 0.025);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: min(760px, calc(100vh - 5rem));
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
    padding-block: clamp(5rem, 9vw, 8rem);
}

.hero-copy {
    min-width: 0;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-proof span::before {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    color: var(--purple-950);
    content: "\2713";
    background: var(--yellow-500);
    border-radius: 50%;
    font-size: 0.74rem;
    font-weight: 900;
}

.dashboard-preview {
    position: relative;
    padding: 1rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1.6rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.4deg);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.35rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.preview-brand {
    color: var(--purple-800);
    font-weight: 850;
}

.preview-chip {
    padding: 0.35rem 0.6rem;
    color: var(--green-800);
    background: var(--green-100);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.metric {
    min-width: 0;
    padding: 0.85rem;
    background: var(--soft);
    border-radius: 0.9rem;
}

.metric span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric strong {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
}

.chart-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.chart-card,
.activity-card {
    min-height: 190px;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.chart-title {
    margin-bottom: 1.1rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.bars {
    display: flex;
    height: 118px;
    align-items: flex-end;
    gap: 0.45rem;
}

.bars i {
    flex: 1;
    min-width: 0;
    height: var(--bar);
    background: linear-gradient(180deg, var(--purple-600), var(--green-700));
    border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-block: 0.45rem;
    font-size: 0.7rem;
}

.activity-item + .activity-item {
    border-top: 1px solid var(--line);
}

.activity-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    background: var(--green-700);
    border-radius: 50%;
}

/* Cards and grids */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.25rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    padding: clamp(1.35rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card h3 {
    margin-bottom: 0.7rem;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover {
    border-color: #bca3c4;
    box-shadow: 0 18px 38px rgba(45, 23, 53, 0.11);
    transform: translateY(-4px);
}

.icon-box {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    margin-bottom: 1.2rem;
    color: var(--purple-800);
    background: var(--purple-100);
    border-radius: 0.9rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.icon-box.green {
    color: var(--green-800);
    background: var(--green-100);
}

.check-list,
.plain-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-top: 0.7rem;
    padding-left: 1.7rem;
}

.check-list li::before {
    position: absolute;
    top: 0.15rem;
    left: 0;
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    color: var(--green-800);
    content: "\2713";
    background: var(--green-100);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.split.reverse > :first-child {
    order: 2;
}

.outcome-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--green-900);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.outcome-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-block: 1rem;
}

.outcome-row + .outcome-row {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.outcome-number {
    color: var(--yellow-500);
    font-size: 0.82rem;
    font-weight: 900;
}

.outcome-row strong {
    display: block;
    margin-bottom: 0.2rem;
}

.outcome-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo-word {
    padding: 0.7rem 1rem;
    color: #536159;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.proof-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.persona-card {
    overflow: hidden;
}

.persona-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.65rem;
    color: var(--purple-800);
    background: var(--purple-100);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.story-card blockquote {
    margin: 0 0 1.25rem;
    font-size: 1.08rem;
    line-height: 1.6;
}

.story-source {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Product feature page */
.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 75% 10%, rgba(251, 213, 19, 0.13), transparent 25%),
        linear-gradient(125deg, var(--purple-950), var(--purple-800) 55%, var(--green-800));
}

.page-hero-inner {
    max-width: 880px;
    padding-block: clamp(4.75rem, 9vw, 7.5rem);
}

.page-hero h1 {
    max-width: 17ch;
    margin-bottom: 1.2rem;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

.page-hero .lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .eyebrow,
.calculator-hero .eyebrow,
.article-hero .eyebrow {
    color: var(--yellow-500);
}

.anchor-nav {
    position: sticky;
    top: 5rem;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.anchor-links {
    display: flex;
    overflow-x: auto;
    gap: 0.4rem;
    padding-block: 0.75rem;
    scrollbar-width: thin;
}

.anchor-links a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    color: var(--muted);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.anchor-links a:hover {
    color: var(--purple-800);
    background: var(--purple-100);
}

.feature-section {
    padding-block: clamp(4rem, 7vw, 6.5rem);
    border-bottom: 1px solid var(--line);
}

.feature-section:last-child {
    border-bottom: 0;
}

.feature-intro {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.feature-intro h2 {
    margin-bottom: 0.8rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.1rem;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.price-card.featured {
    border: 2px solid var(--purple-600);
    box-shadow: 0 24px 55px rgba(99, 54, 118, 0.16);
    transform: translateY(-0.8rem);
}

.price-badge {
    align-self: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.65rem;
    color: var(--purple-950);
    background: var(--yellow-500);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.price {
    margin: 1rem 0 0.35rem;
    color: var(--purple-800);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
}

.price-card .check-list {
    flex: 1;
    margin-bottom: 1.6rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table thead th {
    color: var(--white);
    background: var(--green-900);
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.yes {
    color: var(--success);
    font-weight: 900;
}

.optional {
    color: var(--purple-800);
    font-size: 0.82rem;
    font-weight: 800;
}

/* FAQ and legal */
.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    color: var(--purple-700);
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "\2212";
}

.faq-list details p {
    margin: 0;
    padding: 0 1.25rem 1.2rem;
    color: var(--muted);
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
}

.legal-nav {
    position: sticky;
    top: 7rem;
    padding: 1rem;
    background: var(--soft);
    border-radius: 1rem;
}

.legal-nav a {
    display: block;
    padding: 0.5rem 0.6rem;
    color: var(--muted);
    border-radius: 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--purple-800);
    background: var(--white);
}

.legal-content section + section {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    font-size: 1.55rem;
}

/* Forms */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.form-card {
    padding: clamp(1.4rem, 4vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.78rem 0.85rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b8c4bd;
    border-radius: 0.7rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(142, 86, 160, 0.13);
    outline: 0;
}

.field-hint {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.required {
    color: var(--danger);
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    display: none;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-status.is-visible {
    display: block;
}

.form-status.success {
    color: #0d512c;
    background: #daf3e4;
    border: 1px solid #91d0a8;
}

.form-status.error {
    color: #7d1d26;
    background: #fde6e9;
    border: 1px solid #e8a3aa;
}

.contact-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    background: var(--soft);
    border-radius: 0.9rem;
}

.contact-item strong,
.contact-item a {
    display: block;
}

.contact-item a {
    color: var(--purple-800);
    text-decoration: none;
}

/* CTA */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4.5rem);
    color: var(--white);
    background: linear-gradient(120deg, var(--purple-950), var(--purple-800) 52%, var(--green-800));
    border-radius: var(--radius-lg);
}

.cta-panel::after {
    position: absolute;
    right: -6rem;
    bottom: -8rem;
    width: 18rem;
    height: 18rem;
    content: "";
    border: 2.5rem solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cta-panel > * {
    position: relative;
    z-index: 1;
}

.cta-panel h2 {
    max-width: 18ch;
    margin-bottom: 0.9rem;
}

.cta-panel p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.78);
}

/* Public tools and learning platform */
.section-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-row h2 {
    max-width: 20ch;
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--purple-800);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 2.25rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs a {
    color: inherit;
    text-underline-offset: 0.2rem;
}

.breadcrumbs-dark {
    color: rgba(255, 255, 255, 0.76);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.value-card {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
}

.value-card + .value-card {
    border-left: 1px solid var(--line);
}

.value-card > span {
    display: block;
    margin-bottom: 2rem;
    color: var(--purple-600);
    font-weight: 850;
}

.value-card h3 {
    margin-bottom: 0.7rem;
}

.value-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.public-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.public-entry-card {
    min-height: 18rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.public-entry-card h3 {
    max-width: 13ch;
    margin: 2.6rem 0 0.8rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.public-entry-card p {
    max-width: 530px;
    color: rgba(255, 255, 255, 0.82);
}

.public-entry-card strong {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--yellow-500);
}

.tool-entry {
    background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.learn-entry {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.65rem;
    color: var(--purple-950);
    background: var(--yellow-500);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.status-muted {
    margin-bottom: 1.2rem;
    color: var(--green-900);
    background: var(--green-100);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.article-card h3 a {
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--purple-700);
}

.article-card p {
    color: var(--muted);
}

.article-card > .text-link {
    margin-top: auto;
}

.home-article-grid {
    margin-top: 1rem;
}

.learn-hero,
.tools-hero,
.calculator-hero,
.article-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 213, 19, 0.16), transparent 26%),
        linear-gradient(125deg, var(--purple-950), var(--purple-800) 57%, var(--green-900));
}

.learn-hero .page-hero-inner,
.tools-hero .page-hero-inner {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.topic-pills a {
    padding: 0.55rem 0.9rem;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.topic-pills a:hover,
.topic-pills a[aria-current="page"] {
    color: var(--white);
    background: var(--purple-700);
    border-color: var(--purple-700);
}

.article-list-heading {
    align-items: center;
}

.article-hero .article-shell {
    padding-block: clamp(4rem, 9vw, 7.5rem);
}

.article-shell {
    width: min(calc(100% - 2rem), 850px);
    margin-inline: auto;
}

.article-hero h1 {
    max-width: 19ch;
    margin-bottom: 1.35rem;
}

.article-hero .lead {
    color: rgba(255, 255, 255, 0.82);
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
}

.article-byline a {
    color: inherit;
    text-underline-offset: 0.18rem;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(230px, 300px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(2.5rem, 7vw, 6rem);
    padding-block: clamp(3.75rem, 8vw, 7rem);
}

.article-content {
    min-width: 0;
    font-size: 1.06rem;
    line-height: 1.8;
}

.article-content > h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    scroll-margin-top: 6rem;
}

.article-content > p,
.article-content > ul,
.article-content > ol {
    margin-bottom: 1.4rem;
}

.article-content li + li {
    margin-top: 0.65rem;
}

.article-note {
    margin: 2rem 0;
    padding: 1.2rem 1.35rem;
    color: #33413a;
    background: var(--yellow-100);
    border-left: 4px solid var(--yellow-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.article-note p {
    margin: 0;
}

.article-tool {
    margin: 2.5rem 0;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    color: var(--white);
    background: var(--green-900);
    border-radius: var(--radius);
}

.article-tool h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.article-tool p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.8);
}

.article-table-wrap,
.schedule-table-wrap {
    max-width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.article-table-wrap table,
.schedule-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.article-table-wrap th,
.article-table-wrap td,
.schedule-table-wrap th,
.schedule-table-wrap td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.article-table-wrap th,
.schedule-table-wrap th {
    color: var(--green-900);
    background: var(--green-100);
    font-weight: 850;
}

.article-table-wrap tr:last-child td,
.schedule-table-wrap tr:last-child td {
    border-bottom: 0;
}

.article-sidebar {
    position: sticky;
    top: 6.5rem;
    display: grid;
    gap: 1rem;
}

.sidebar-card {
    padding: 1.35rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.sidebar-card h2 {
    font-size: 1.25rem;
}

.sidebar-card p:not(.eyebrow) {
    color: var(--muted);
}

.article-sources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
}

.article-sources h2 {
    font-size: 1.45rem;
}

.article-sources a {
    color: var(--purple-800);
    overflow-wrap: anywhere;
}

.public-value-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--purple-100);
    border: 1px solid #ddcbe3;
    border-radius: var(--radius);
}

.public-value-panel h2 {
    max-width: 21ch;
    margin-bottom: 0.6rem;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.public-value-panel p:not(.eyebrow) {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
}

.tool-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    color: var(--white);
    background: var(--purple-950);
    border-radius: var(--radius-lg);
}

.tool-feature-card h3 {
    margin: 2rem 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.tool-feature-card p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
}

.tool-feature-card + .tool-feature-card {
    margin-top: 1.5rem;
}

.credit-tool-card {
    background: linear-gradient(120deg, var(--green-900), #244f3a 58%, var(--purple-950));
}

.tool-preview {
    padding: 1.5rem;
    color: var(--ink);
    background: var(--white);
    border-radius: var(--radius);
    transform: rotate(1.5deg);
}

.tool-preview span,
.tool-preview small {
    color: var(--muted);
}

.tool-preview strong {
    display: block;
    margin: 0.35rem 0 1.2rem;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.tool-preview div {
    display: flex;
    height: 0.7rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
}

.tool-preview div i:first-child {
    background: var(--green-700);
}

.tool-preview div i:last-child {
    background: var(--yellow-500);
}

/* Loan calculator */
.calculator-hero {
    padding-block: clamp(3.75rem, 7vw, 6.5rem) clamp(8rem, 13vw, 11rem);
}

.calculator-hero h1 {
    max-width: 16ch;
}

.calculator-hero .lead {
    color: rgba(255, 255, 255, 0.82);
}

.calculator-workspace {
    margin-top: clamp(-7rem, -9vw, -5rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.calculator-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 1.2rem;
}

.calculator-form,
.calculator-results {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.calculator-form-heading,
.result-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-form-heading h2 {
    margin-bottom: 0;
    font-size: 1.45rem;
}

.privacy-chip {
    flex: 0 0 auto;
    padding: 0.35rem 0.6rem;
    color: var(--green-800);
    background: var(--green-100);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-grid .field {
    display: grid;
    gap: 0.38rem;
    color: #35433b;
    font-size: 0.82rem;
    font-weight: 800;
}

.field-wide {
    grid-column: 1 / -1;
}

.field-grid input,
.field-grid select {
    min-width: 0;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b8c4bd;
    border-radius: 0.7rem;
}

.field-grid input:focus,
.field-grid select:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(142, 86, 160, 0.13);
    outline: 0;
}

.input-prefix,
.input-suffix {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid #b8c4bd;
    border-radius: 0.7rem;
    overflow: hidden;
}

.input-suffix {
    grid-template-columns: minmax(0, 1fr) auto;
}

.input-prefix:focus-within,
.input-suffix:focus-within {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(142, 86, 160, 0.13);
}

.input-prefix b,
.input-suffix b {
    padding: 0 0.75rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.input-prefix input,
.input-suffix input {
    border: 0;
    border-radius: 0;
}

.input-prefix input:focus,
.input-suffix input:focus {
    box-shadow: none;
}

.calculator-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.calculator-helper {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

/* Credit intelligence preview */
.credit-preview-page .calculator-hero h1 {
    max-width: 18ch;
}

.consent-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    padding: 0.9rem;
    color: #435148;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 550;
    line-height: 1.5;
}

.consent-field input {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 0;
    margin-top: 0.12rem;
    accent-color: var(--green-700);
}

.consent-field a {
    color: var(--purple-800);
    font-weight: 750;
}

.credit-results {
    display: grid;
    gap: 1.25rem;
}

.credit-results[hidden] {
    display: none;
}

.credit-overall {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.credit-overall p {
    margin: 0.35rem 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.credit-overall small {
    color: #77847c;
    font-size: 0.68rem;
    overflow-wrap: anywhere;
}

.credit-score {
    display: grid;
    width: 7rem;
    height: 7rem;
    place-content: center;
    text-align: center;
    background: var(--purple-100);
    border: 0.55rem solid var(--purple-600);
    border-radius: 50%;
}

.credit-score strong {
    max-width: 6rem;
    color: var(--purple-800);
    font-family: Poppins, Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.15;
    text-align: center;
}

.credit-score span {
    color: var(--muted);
    font-size: 0.7rem;
}

.credit-band {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    color: var(--purple-800);
    background: var(--purple-100);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
}

.band-strong {
    color: var(--green-800);
    background-color: var(--green-100);
}

.band-steady {
    color: #465519;
    background-color: #f0f3d8;
}

.band-watch {
    color: #725b00;
    background-color: var(--yellow-100);
}

.band-stressed {
    color: var(--danger);
    background-color: #fae7e9;
}

.credit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.installment-assessment {
    margin: 0;
    padding: 0.85rem 1rem;
    color: var(--green-900);
    background: var(--green-100);
    border-radius: 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.credit-dimensions {
    display: grid;
    gap: 0.7rem;
}

.credit-dimension {
    padding: 0.9rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.credit-dimension > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.credit-dimension h3 {
    margin: 0;
    font-size: 0.92rem;
}

.credit-dimension > div:first-child span {
    font-size: 0.68rem;
    font-weight: 850;
}

.credit-dimension p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.dimension-track {
    height: 0.45rem;
    margin-top: 0.65rem;
    overflow: hidden;
    background: #e4e9e6;
    border-radius: 999px;
}

.dimension-track i {
    display: block;
    height: 100%;
    background: var(--purple-600);
    border-radius: inherit;
}

.credit-dimension.band-strong .dimension-track i {
    background: var(--green-700);
}

.credit-dimension.band-watch .dimension-track i {
    background: var(--yellow-500);
}

.credit-dimension.band-stressed .dimension-track i {
    background: var(--danger);
}

.credit-guidance-grid,
.credit-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.credit-guidance-grid > section {
    padding: 1rem;
    background: var(--soft);
    border-radius: 0.75rem;
}

.credit-guidance-grid h3 {
    margin: 0;
    font-size: 0.95rem;
}

.compact-list {
    font-size: 0.74rem;
}

.credit-disclaimer {
    margin: 0;
}

.credit-tier-grid {
    width: min(100%, 980px);
    margin: 2.5rem auto 0;
}

.credit-tier-card.featured {
    border-color: #bda1c7;
    box-shadow: 0 20px 50px rgba(45, 23, 53, 0.1);
}

.result-heading h2 {
    margin: 0 0 0.35rem;
    color: var(--purple-800);
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.result-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.5rem;
}

.icon-button,
.text-button {
    padding: 0.55rem 0.7rem;
    color: var(--purple-800);
    background: var(--purple-100);
    border: 0;
    border-radius: 0.55rem;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
}

.text-button {
    margin-top: 1rem;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.result-metrics div {
    padding: 0.9rem;
    background: var(--soft);
    border-radius: 0.7rem;
}

.result-metrics span,
.result-metrics strong {
    display: block;
}

.result-metrics span {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.result-metrics strong {
    font-size: 0.95rem;
}

.cost-breakdown {
    padding-block: 1.5rem 1rem;
}

.cost-bar {
    display: flex;
    height: 0.8rem;
    overflow: hidden;
    background: var(--soft);
    border-radius: 999px;
}

.cost-bar i:first-child {
    background: var(--green-700);
}

.cost-bar i:last-child {
    background: var(--yellow-500);
}

.cost-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.6rem;
    font-size: 0.74rem;
}

.cost-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cost-legend i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.principal-key {
    background: var(--green-700);
}

.interest-key {
    background: var(--yellow-500);
}

.calculator-error {
    min-height: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 750;
}

.calculator-error.is-success {
    color: var(--success);
}

.schedule-details {
    border-top: 1px solid var(--line);
}

.schedule-details summary {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    color: var(--purple-800);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.schedule-details summary::-webkit-details-marker {
    display: none;
}

.schedule-details .schedule-table-wrap {
    max-height: 30rem;
    margin: 0;
}

.schedule-table-wrap caption {
    padding: 0.7rem;
    text-align: left;
    font-weight: 800;
}

.schedule-table-wrap th,
.schedule-table-wrap td {
    white-space: nowrap;
    text-align: right;
}

.schedule-table-wrap th:first-child,
.schedule-table-wrap td:first-child {
    text-align: left;
}

.calculator-explanation {
    padding-block: 0;
}

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: #10291d;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: 4.5rem 3rem;
}

.footer-brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
}

.footer-copy {
    max-width: 370px;
    margin-top: 0.8rem;
}

.footer-title {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--yellow-500);
}

.footer-contact p {
    margin-bottom: 0.65rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

/* Guided loan readiness */
.readiness-form[hidden],
.readiness-intro[hidden] {
    display: none;
}

.readiness-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1.1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.readiness-progress li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    color: #7a857f;
    font-size: 0.68rem;
}

.readiness-progress li::after {
    grid-column: 1 / -1;
    height: 0.25rem;
    content: "";
    background: #e6eae7;
    border-radius: 999px;
}

.readiness-progress span {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-content: center;
    background: #edf0ee;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 850;
}

.readiness-progress b {
    font-weight: 750;
}

.readiness-progress .is-active,
.readiness-progress .is-complete {
    color: var(--purple-800);
}

.readiness-progress .is-active span,
.readiness-progress .is-complete span,
.readiness-progress .is-active::after,
.readiness-progress .is-complete::after {
    color: var(--white);
    background: var(--purple-700);
}

.readiness-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.readiness-step[hidden] {
    display: none;
}

.readiness-step legend {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    margin-bottom: 1.1rem;
}

.readiness-step legend strong {
    color: var(--purple-950);
    font-family: Poppins, Inter, sans-serif;
    font-size: 1rem;
}

.readiness-step legend span,
.field small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.readiness-optional {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    background: var(--soft);
    border: 1px dashed #cbd3ce;
    border-radius: 0.75rem;
}

.readiness-optional summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: var(--purple-800);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
}

.readiness-optional summary span {
    color: var(--muted);
    font-size: 0.62rem;
}

.readiness-optional .field {
    margin-top: 0.85rem;
}

.readiness-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.readiness-actions [hidden] {
    display: none;
}

.readiness-intro {
    align-self: start;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--white);
    background: linear-gradient(145deg, var(--purple-950), #3e2350 62%, #214b3e);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.readiness-intro h2 {
    margin: 0.35rem 0 1.35rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.readiness-preview-list {
    display: grid;
    gap: 0.35rem;
}

.readiness-preview-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.readiness-preview-list > div > span {
    color: var(--yellow-500);
    font-family: Poppins, Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 850;
}

.readiness-preview-list p {
    display: grid;
    gap: 0.18rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.readiness-preview-list strong {
    color: var(--white);
    font-size: 0.85rem;
}

.readiness-intro .article-note {
    margin: 1rem 0 0;
    color: #dfe9e3;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.readiness-report {
    grid-column: 1 / -1;
    gap: 1.6rem;
}

.report-toolbar,
.report-footer-actions,
.report-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.report-toolbar .text-button {
    margin: 0;
}

.readiness-key-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.readiness-key-metrics strong span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.report-section-heading {
    align-items: flex-end;
    margin-bottom: 0.85rem;
}

.report-section-heading h2 {
    margin: 0.2rem 0 0;
    color: var(--purple-950);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.range-cards,
.stress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.range-cards article {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.range-cards article.is-recommended {
    background: var(--green-100);
    border-color: #9bc5ad;
    box-shadow: 0 12px 28px rgba(32, 96, 67, 0.08);
}

.range-cards span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.range-cards strong {
    color: var(--purple-950);
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1rem, 2.3vw, 1.35rem);
}

.range-cards small {
    color: var(--muted);
    font-size: 0.66rem;
}

.capacity-cards strong {
    color: var(--green-900);
}

.stress-card {
    padding: 0.95rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-top: 0.3rem solid var(--purple-600);
    border-radius: 0.8rem;
}

.stress-card.band-strong { border-top-color: var(--green-700); }
.stress-card.band-watch { border-top-color: var(--yellow-500); }
.stress-card.band-stressed { border-top-color: var(--danger); }

.stress-card > div,
.stress-card p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.stress-card > div span {
    font-size: 0.64rem;
    font-weight: 850;
}

.stress-card p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.stress-card p b {
    color: var(--purple-950);
    font-size: 0.72rem;
}

.stress-card small {
    display: block;
    margin-top: 0.75rem;
    color: #59665f;
    font-size: 0.68rem;
    line-height: 1.45;
}

.report-footer-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 1020px) {
    .desktop-nav {
        display: none;
    }

    .nav-shell {
        grid-template-columns: auto 1fr auto;
    }

    .nav-actions {
        justify-self: end;
    }

    .menu-toggle {
        display: grid;
    }

    .mobile-panel {
        position: fixed;
        inset: 5rem 0 auto;
        display: block;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        padding: 0 1rem 1rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.7rem);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .mobile-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-panel nav {
        display: grid;
        width: min(100%, var(--container));
        margin-inline: auto;
        padding-top: 0.7rem;
    }

    .mobile-panel nav a {
        padding: 0.85rem 0.7rem;
        border-bottom: 1px solid var(--line);
        font-weight: 750;
        text-decoration: none;
    }

    .mobile-panel-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        width: min(100%, var(--container));
        margin: 1rem auto 0;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy {
        max-width: 780px;
    }

    .dashboard-preview {
        width: min(100%, 680px);
        margin-inline: auto;
        transform: none;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-card + .value-card {
        border-left: 0;
    }

    .value-card:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .value-card:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 2.5rem;
    }

    .calculator-grid {
        grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr);
    }

    .footer-main {
        grid-template-columns: 1.25fr 0.75fr 0.75fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .nav-actions .btn {
        display: none;
    }

    .nav-signin {
        display: none;
    }

    .grid-2,
    .grid-3,
    .split,
    .form-layout,
    .pricing-grid,
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-grid,
    .public-entry-grid,
    .tool-feature-card,
    .calculator-grid,
    .article-layout,
    .credit-tier-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .readiness-key-metrics,
    .range-cards,
    .stress-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .readiness-intro {
        order: 2;
    }

    .readiness-actions .btn {
        flex: 1;
    }

    .section-row,
    .public-value-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-sidebar {
        position: static;
    }

    .calculator-workspace {
        margin-top: -5rem;
    }

    .tool-preview {
        transform: none;
    }

    .split.reverse > :first-child {
        order: initial;
    }

    .price-card.featured {
        transform: none;
    }

    .legal-nav {
        position: static;
    }

    .form-layout {
        gap: 2rem;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .container,
    .narrow {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .brand img {
        width: 142px;
    }

    .nav-shell {
        min-height: 4.5rem;
        gap: 0.65rem;
    }

    .mobile-panel {
        inset: 4.5rem 0 auto;
        max-height: calc(100vh - 4.5rem);
    }

    .mobile-panel-actions,
    .actions {
        grid-template-columns: 1fr;
    }

    .actions {
        display: grid;
    }

    .hero-grid {
        padding-block: 4.25rem;
    }

    .display,
    .page-hero h1 {
        max-width: none;
    }

    .dashboard-preview {
        padding: 0.65rem;
        border-radius: 1.1rem;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric:last-child {
        grid-column: 1 / -1;
    }

    .chart-panel {
        grid-template-columns: 1fr;
    }

    .activity-card {
        min-height: auto;
    }

    .grid-4,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .value-grid,
    .field-grid,
    .result-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .value-card:nth-child(even) {
        border-left: 0;
    }

    .value-card:nth-child(n + 2) {
        border-top: 1px solid var(--line);
    }

    .field-wide {
        grid-column: auto;
    }

    .calculator-form-heading,
    .result-heading {
        flex-direction: column;
    }

    .credit-overall,
    .credit-guidance-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .credit-score {
        width: 6rem;
        height: 6rem;
    }

    .result-actions {
        justify-content: start;
    }

    .article-shell {
        width: min(calc(100% - 1.25rem), 850px);
    }

    .field-full {
        grid-column: auto;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

@media print {
    .site-header,
    .site-footer,
    .anchor-nav,
    .actions,
    .cta-panel {
        display: none !important;
    }

    .calculator-form,
    .readiness-intro,
    .report-toolbar,
    .report-footer-actions,
    .result-actions,
    .text-button,
    .calculator-explanation,
    .breadcrumbs,
    .calculator-page .section-soft {
        display: none !important;
    }

    .calculator-workspace {
        margin: 0;
        padding: 0;
    }

    .calculator-grid {
        display: block;
    }

    .calculator-results {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .schedule-details,
    .schedule-details > .schedule-table-wrap {
        display: block !important;
        max-height: none;
        overflow: visible;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 11pt;
    }

    .section,
    .section-sm {
        padding-block: 1rem;
    }
}
