/* ================================================================
   ONEPLAN HEALTH INSURANCE – LANDING PAGE
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
    --navy:           #1e2c5f;   /* primary brand — ONE PLAN wordmark */
    --navy-dark:      #141c3c;   /* photo overlays + mobile gradient base */
    --cyan:           #2BA9D1;   /* accent — buttons + featured plan */
    --cyan-dark:      #1f8eb1;
    --cyan-light:     #5BC8E5;   /* light accent */
    --slate:          #5d6b7a;   /* muted */
    --bg-light:       #f5f7fb;
    --text:           #1a1a2e;
    --text-light:     #5d6b7a;
    --text-muted:     #99a3ae;
    --white:          #fff;
    --border:         #d9dce0;
    --error:          #ff6b6b;   /* invalid field / consent box border */
    --error-text:     #ff8080;   /* error copy — lighter, it sits on the dark hero */
    --font:           "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-w:          1140px;
    --px:             24px;
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

/* .lead-form sets its own display, which would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a   { color: inherit; }
ul  { list-style: none; }

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

input, select, button, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Legal sub-pages only. The landing sections set their own gutters — the
   design keeps some at 24px on mobile, where --px drops to 18px. */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

/* ----------------------------------------------------------------
   TOP BAR
   ---------------------------------------------------------------- */
.topbar {
    background: #ffffff;
    width: 100%;
}

.topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-logo {
    display: block;
    height: 56px;
    width: auto;
}

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - 88px); /* 88px = desktop topbar (16 + 56 + 16) */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 40px 0 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
    background-color: #efefec;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 28, 60, 0.32);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 48px;
    align-items: center;
}

.hero-left {
    color: var(--white);
    align-self: center;
    margin-left: clamp(0px, 4vw, 60px);
}

.hero-heading {
    font-size: clamp(2.6rem, 4.6vw, 4.25rem);
    font-weight: 400;
    line-height: 1.04;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -0.02em;
    max-width: 600px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-heading__accent {
    font-weight: 700;
}

.hero-heading__accent--cyan {
    color: var(--cyan-light);
}

.hero-sub {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    font-weight: 500;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 24px;
    text-wrap: pretty;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-sub strong {
    font-weight: 700;
}

.nowrap {
    white-space: nowrap;
}

.hero-disclaimer {
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.9;
    max-width: 360px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-disclaimer--mobile {
    display: none;
    font-size: 0.78rem;
    color: var(--white);
    max-width: 480px;
    margin: 4px auto 0;
    text-align: center;
}

/* ----------------------------------------------------------------
   LEAD FORM CARD
   ---------------------------------------------------------------- */
.form-card {
    padding: 24px 20px 20px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: 40px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-intro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    line-height: 1.6;
}

.field {
    display: flex;
    flex-direction: column;
}

.field input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 180ms ease;
}

.field input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.field--error input {
    border-color: var(--error);
}

/* Hover + focus deliberately outrank the error border, as in the design */
.field input:hover {
    border-color: rgba(43, 169, 209, 0.45);
}

.field input:focus {
    border-color: var(--cyan);
}

/* Always rendered: the 3px top padding is part of the field rhythm even when empty */
.form-group__error {
    display: block;
    min-height: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--error-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    padding: 3px 0 0 2px;
}

/* ----------------------------------------------------------------
   QUOTE ME BUTTON
   ---------------------------------------------------------------- */
.btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 100px;
    background: var(--cyan);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 6px;
    transition: background 180ms ease;
}

.btn-apply:hover {
    background: var(--cyan-dark);
}

.btn--loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn__spinner {
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn--loading .btn__text    { display: none; }
.btn--loading .btn__spinner { display: inline-flex; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   CONSENT SECTION
   ---------------------------------------------------------------- */
.consent-section {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.consent-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    position: relative;
    margin-top: 2px;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.consent-box::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    box-sizing: content-box; /* tick is 5x10 plus its borders, per the design */
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 180ms ease;
}

.consent-section--error input[type="checkbox"]:not(:checked) ~ .consent-box {
    border-color: var(--error);
}

.consent-row input[type="checkbox"]:checked ~ .consent-box {
    border-color: var(--cyan);
    background: var(--cyan);
}

.consent-row input[type="checkbox"]:checked ~ .consent-box::after {
    opacity: 1;
}

.consent-row input[type="checkbox"]:focus-visible ~ .consent-box {
    outline: 2px solid var(--cyan-light);
    outline-offset: 2px;
}

.consent-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.consent-link {
    color: var(--white);
    text-decoration: underline;
}

/* One shared message under both boxes; stays in the flow when empty so the
   section keeps its trailing 10px gap */
.consent__error {
    padding: 0;
    margin-left: 30px;
}

/* ----------------------------------------------------------------
   THANK YOU / REJECTION STATE
   ---------------------------------------------------------------- */
.thank-you {
    text-align: center;
    padding: 48px 16px;
}

.thank-you svg {
    display: block;
    margin: 0 auto 24px;
}

.thank-you h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 10px;
}

.thank-you p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 340px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   FEATURES SECTION
   ---------------------------------------------------------------- */
.features-intro {
    min-height: 360px;
    padding: 60px 24px;
    background: var(--bg-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.features {
    padding: 56px 0 80px;
    background: var(--white);
    text-align: center;
}

.features-eyebrow {
    color: var(--cyan);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.features-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 22px;
}

.features-sub {
    color: var(--text-light);
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.65;
    font-size: 1.35rem;
}

.features-grid {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 22px;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   PLANS SECTION
   ---------------------------------------------------------------- */
.plans {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: var(--white);
}

.plans-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/images/plans-bg.webp") center 45% / cover no-repeat;
    z-index: 0;
}

.plans-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 60, 0.5) 0%, rgba(20, 28, 60, 0.62) 45%, rgba(20, 28, 60, 0.72) 100%);
    z-index: 1;
}

.plans-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1440px; /* five cards up */
    margin: 0 auto;
    padding: 0 24px;
}

.plans-eyebrow {
    color: var(--cyan-light);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.plans-heading {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 48px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 36px 20px; /* wider row gap: the featured card lifts 14px + scales, so it needs headroom once the grid wraps */
    align-items: stretch;
}

.plan-card {
    background: var(--white);
    color: var(--text);
    border-radius: 14px;
    padding: 28px 16px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 28px rgba(20, 28, 60, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(20, 28, 60, 0.28);
}

.plan-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 14px;
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.plan-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.plan-period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 2px;
}

.plan-desc {
    font-size: 0.92rem;
    font-weight: 500;
    color: #2f3a52;
    line-height: 1.75;
    margin-bottom: 22px;
    flex-grow: 1;
}

.plan-cta {
    display: inline-block;
    margin-top: auto; /* keeps every CTA on one baseline, whatever the number of .plan-desc lines */
    padding: 11px 30px;
    border: 1.5px solid var(--cyan);
    border-radius: 100px;
    color: var(--cyan-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.plan-cta:hover {
    background: var(--cyan);
    color: var(--white);
}

/* Featured (Professional) card */
.plan-card--featured {
    background: var(--cyan);
    color: var(--white);
    transform: translateY(-14px) scale(1.04);
    box-shadow: 0 22px 44px rgba(20, 28, 60, 0.40);
    position: relative;
    z-index: 1;
}

.plan-card--featured:hover {
    transform: translateY(-20px) scale(1.04);
    box-shadow: 0 28px 54px rgba(20, 28, 60, 0.48);
}

.plan-card--featured .plan-name,
.plan-card--featured .plan-amount,
.plan-card--featured .plan-period,
.plan-card--featured .plan-desc {
    color: var(--white);
}

.plan-card--featured .plan-cta {
    border-color: var(--white);
    color: var(--white);
}

.plan-card--featured .plan-cta:hover {
    background: var(--white);
    color: var(--cyan-dark);
}

/* ----------------------------------------------------------------
   HOW IT WORKS SECTION
   ---------------------------------------------------------------- */
.how {
    padding: 80px 0;
    background: var(--white);
}

.how-grid {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.how-eyebrow {
    color: var(--cyan);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.how-heading {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.how-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 22px;
}

.benefits-list {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 1rem;
    color: var(--text);
}

.benefits-list li::before {
    content: "";
    flex: none;
    margin-top: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: var(--cyan);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5L6.8 11.3L12 6' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
}

.btn-quote {
    display: inline-block;
    padding: 13px 38px;
    background: var(--cyan);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 180ms ease;
}

.btn-quote:hover {
    background: var(--cyan-dark);
}

.how-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-num {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.step > div {
    padding-top: 4px;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.step-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
    background: var(--bg-light);
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid #e5e8ec;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-light);
}

.footer-copy a {
    text-decoration: underline;
    text-underline-offset: 2px;
    margin: 0 3px;
    transition: color 180ms ease;
}

.footer-copy a:hover {
    color: var(--cyan-dark);
}

.footer-copy .thinkmoney-link {
    color: var(--cyan-dark);
    font-weight: 700;
}

/* ----------------------------------------------------------------
   RESPONSIVE – SMALL DESKTOP / LAPTOP (plans grid only)
   ---------------------------------------------------------------- */
@media (max-width: 1144px) {
    /* Below this the five cards drop under 200px each. 5 -> 3 + 2 with the
       second row centred: 6 tracks, every card spans 2, the 4th starts on
       track 2 so the pair sits mid-row. */
    .plans-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .plan-card {
        grid-column: span 2;
    }

    .plan-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE – TABLET
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-left {
        text-align: center;
        padding-top: 30px;
        margin-left: 0;
    }

    .hero-heading,
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .form-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-disclaimer--desktop {
        display: none;
    }

    .hero-disclaimer--mobile {
        display: block;
    }

    .topbar-inner {
        padding: 12px 24px;
        gap: 16px;
    }

    .topbar-logo {
        height: 48px;
    }

    .features-grid {
        gap: 20px;
    }

    /* 3 + 2 -> 2 + 2 + 1, last card centred: 4 tracks, spans of 2. */
    .plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plan-card:nth-child(4) {
        grid-column: span 2;
    }

    .plan-card:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-left {
        text-align: center;
    }

    .benefits-list {
        width: max-content;
        max-width: 100%;
        margin: 0 auto 30px;
        text-align: left;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE – MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --px: 18px;
    }

    .topbar-inner {
        padding: 10px 18px;
        gap: 12px;
    }

    .topbar-logo {
        height: 38px;
    }

    /* Photo + overlay give way to a brand gradient; index.html's <picture>
       stops phones downloading the photo at all. */
    .hero {
        padding: 18px 0 40px;
        align-items: flex-start;
        background:
            radial-gradient(90% 45% at 50% 12%, rgba(43, 169, 209, 0.38) 0%, rgba(43, 169, 209, 0) 70%),
            linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    }

    .hero-bg,
    .hero-overlay {
        display: none;
    }

    .hero-container {
        gap: 24px;
        padding: 0 18px;
    }

    .hero-left {
        padding-top: 0;
    }

    .hero-heading {
        font-size: 1.85rem;
        margin-bottom: 14px;
        padding-top: 12px;
        text-shadow: none;
    }

    .hero-sub {
        font-size: 1.25rem;
        margin-bottom: 0;
        text-shadow: none;
    }

    .hero-disclaimer--mobile {
        margin-top: 18px;
        text-shadow: none;
    }

    .form-card {
        padding: 20px 18px 18px;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 14px;
    }

    .features-intro {
        min-height: 0;
        padding: 44px 18px;
    }

    .features-heading {
        font-size: 1.75rem;
    }

    .features-sub {
        font-size: 0.95rem;
    }

    .features-sub br {
        display: none;
    }

    .features {
        padding: 44px 0 48px;
    }

    /* Stays three-up on phones — tightened rather than stacked */
    .features-grid {
        gap: 8px;
        padding: 0 12px;
    }

    .feature {
        padding: 8px 4px;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .feature-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        text-wrap: balance;
    }

    .feature-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .plans {
        padding: 48px 0;
        background:
            radial-gradient(90% 40% at 50% 0%, rgba(43, 169, 209, 0.35) 0%, rgba(43, 169, 209, 0) 70%),
            linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    }

    .plans-bg,
    .plans-overlay {
        display: none;
    }

    .plans-bg {
        background-image: none; /* computed `none` = the photo is never fetched on phones */
    }

    /* One 18px gutter. The prototype stacked the grid's 18px on top of this
       container's 24px; at 42px a side the card rows (309px min-content) only
       fit viewports >= 393px and overflowed on 360-390px phones. */
    .plans-inner {
        padding: 0 18px;
    }

    .plans-heading {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Single column: undo every span/placement above, otherwise a
       `span 2` on a 1fr grid creates implicit columns. */
    .plan-card,
    .plan-card:nth-child(4),
    .plan-card:nth-child(5) {
        grid-column: auto;
    }

    /* Cards turn into compact rows: icon | name, price, desc | CTA */
    .plan-card {
        padding: 16px 18px;
        display: grid;
        grid-template-columns: 44px 1fr auto;
        grid-template-areas:
            "icon name  cta"
            "icon price cta"
            "icon desc  cta";
        column-gap: 14px;
        row-gap: 2px;
        text-align: left;
    }

    .plan-icon {
        grid-area: icon;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .plan-name {
        grid-area: name;
        margin: 0;
        font-size: 0.8rem;
    }

    .plan-price {
        grid-area: price;
        margin: 0;
    }

    .plan-amount {
        font-size: 1.5rem;
    }

    .plan-desc {
        grid-area: desc;
        margin: 2px 0 0;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .plan-cta {
        grid-area: cta;
        margin: 0;
        padding: 9px 14px;
        font-size: 0.75rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .plan-card--featured {
        transform: none;
        box-shadow: 0 14px 32px rgba(20, 28, 60, 0.35), 0 -14px 32px rgba(20, 28, 60, 0.35);
    }

    .plan-card--featured:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(20, 28, 60, 0.42), 0 -14px 32px rgba(20, 28, 60, 0.35);
    }

    .how {
        padding: 48px 18px;
    }

    .how-heading {
        font-size: 1.85rem;
    }

    .how-lead {
        font-size: 0.95rem;
    }

    .step-num {
        width: 44px;
        height: 44px;
    }

    .step-title {
        font-size: 1.1rem;
    }

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

    .footer {
        padding: 24px 18px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE – SMALL MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 400px) {
    .hero-heading {
        font-size: 1.6rem;
    }

    .form-card {
        padding: 18px 14px 16px;
    }

    .features-heading,
    .plans-heading,
    .how-heading {
        font-size: 1.5rem;
    }

    .plan-amount {
        font-size: 1.35rem;
    }

    .plan-cta {
        padding: 8px 10px;
    }

    .step-num {
        width: 40px;
        height: 40px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE – VERY SMALL MOBILE (plan cards only)
   ---------------------------------------------------------------- */
@media (max-width: 344px) {
    /* icon | text | CTA needs 309px + gutters = 345px. Under that the CTA
       drops below the text instead of being clipped by .plans' overflow. */
    .plan-card {
        grid-template-columns: 44px 1fr;
        grid-template-areas:
            "icon name"
            "icon price"
            "icon desc"
            "cta  cta";
    }

    .plan-cta {
        margin-top: 12px;
        text-align: center;
    }
}

/* ----------------------------------------------------------------
   PRIVACY POLICY / TERMS & CONDITIONS PAGES
   ---------------------------------------------------------------- */
.privacy-page,
.terms-page {
    background: var(--white);
}

.pp-header {
    background: var(--navy);
    padding: 16px 0;
    border-bottom: 3px solid var(--cyan);
}

.pp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-back-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: color 180ms ease;
}

.pp-back-link:hover {
    color: var(--cyan-light);
}

.pp-content {
    padding: 56px 0 72px;
}

.pp-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.pp-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 16px 0 40px;
    max-width: 800px;
}

.pp-section {
    margin-bottom: 40px;
}

.pp-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cyan);
    display: inline-block;
}

.pp-subheading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 12px;
}

.pp-section p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 12px;
}

.pp-list {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
    max-width: 800px;
}

.pp-list li {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.pp-list li a {
    color: var(--cyan-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pp-list li a:hover {
    color: var(--navy);
}

/* ----- Legal-doc title block (docx Title rows) ----- */
.pp-title-block {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.pp-title-org {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--slate);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.pp-title-trade {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 12px;
}

/* ----- Section intro paragraphs (un-numbered text inside a section) ----- */
.pp-section-intro {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 12px;
}

/* ----- Auto-numbered nested ordered lists for legal clauses ----- */
.pp-content {
    counter-reset: pp-section;
}

.pp-section {
    counter-increment: pp-section;
}

.pp-section .pp-heading::before {
    content: counter(pp-section) ". ";
    font-weight: 700;
    color: var(--cyan-dark);
    margin-right: 4px;
}

.pp-clauses {
    list-style: none;
    padding-left: 0;
    counter-reset: pp-clause;
    margin-top: 4px;
    margin-bottom: 16px;
    max-width: 820px;
}

.pp-clauses > li {
    counter-increment: pp-clause;
    position: relative;
    padding-left: 3em;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.pp-clauses > li::before {
    content: counter(pp-section) "." counter(pp-clause) "  ";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.pp-clauses-nested {
    list-style: none;
    padding-left: 0;
    counter-reset: pp-subclause;
    margin-top: 10px;
    margin-bottom: 4px;
    text-indent: 0;
}

.pp-clauses-nested > li {
    counter-increment: pp-subclause;
    position: relative;
    padding-left: 4.25em;
    margin-bottom: 8px;
    line-height: 1.65;
}

.pp-clauses-nested > li::before {
    content: counter(pp-section) "." counter(pp-clause) "." counter(pp-subclause) "  ";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.pp-clauses a,
.pp-clauses-nested a,
.pp-defs a {
    color: var(--cyan-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.pp-clauses a:hover,
.pp-clauses-nested a:hover,
.pp-defs a:hover {
    color: var(--navy);
}

/* ----- Definition list (Privacy "Definitions" + contact blocks) ----- */
.pp-defs {
    margin: 8px 0 16px;
    max-width: 820px;
}

.pp-defs dt {
    font-weight: 700;
    color: var(--text);
    margin-top: 12px;
}

.pp-defs dt:first-child {
    margin-top: 0;
}

.pp-defs dd {
    color: var(--text-light);
    margin-left: 0;
    line-height: 1.65;
    font-size: 1rem;
}

/* ----- Last-updated footer line on legal pages ----- */
.pp-last-updated {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--slate);
    font-style: italic;
}

.footer-current {
    font-size: inherit;
    color: var(--text-muted);
    margin: 0 3px;
}

.pp-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 22px;
    background: var(--cyan);
    color: var(--white);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 180ms ease;
}

.pp-pdf-link:hover {
    background: var(--cyan-dark);
}

@media (max-width: 1024px) {
    .pp-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .pp-content { padding: 40px 0 48px; }
    .pp-title { font-size: 1.75rem; }
    .pp-intro { font-size: 1rem; }
    .pp-heading { font-size: 1.25rem; }
    .pp-subheading { font-size: 1.1rem; }
    .pp-clauses > li { padding-left: 2.6em; }
    .pp-clauses-nested > li { padding-left: 3.6em; }
}

@media (max-width: 400px) {
    .pp-header { padding: 12px 0; }
    .pp-back-link { font-size: 13px; }
    .pp-content { padding: 32px 0 40px; }
    .pp-title { font-size: 1.5rem; }
    .pp-heading { font-size: 1.15rem; }
    .pp-clauses > li { padding-left: 2.2em; font-size: 0.95rem; }
    .pp-clauses-nested > li { padding-left: 3.2em; font-size: 0.95rem; }
    .pp-section-intro,
    .pp-section p { font-size: 0.95rem; }
    .pp-defs dd { font-size: 0.95rem; }
}
