:root {
    --primary-color: var(--brand-forest);
    --color-secondary: var(--brand-nexus-gold);
    --color-accent: #D9E1DC;
    --body-bg: var(--brand-paper);
}

body {
    background-color: var(--body-bg);
    margin: 0;
    font-family: var(--font-body);
}

/* Landing Page Styles */
.landing-wrapper {
    min-height: 100vh;
    background: var(--brand-forest);
    position: relative;
    overflow: hidden;
}

.landing-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
}

.landing-header {
    padding: 25px 0;
    position: relative;
    z-index: 10;
    /* Center header for new layout support */
    display: flex;
    justify-content: center;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.landing-logo img {
    max-width: 160px;
    height: auto;
}

.landing-nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.landing-nav-links a:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(182, 153, 86, 0.4);
}

.landing-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
    padding: 16px 30px 32px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-text {
    color: white;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.15rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 28px;
    color: var(--color-accent);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 16px 40px;
    background: var(--brand-signal-gold);
    color: var(--brand-forest-deep);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(8, 40, 28, 0.28);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(182, 153, 86, 0.6);
    color: var(--primary-color);
}

.btn-hero-secondary {
    padding: 16px 40px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible {
    outline: 3px solid #f2d992;
    outline-offset: 4px;
}

.hero-features {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--color-accent);
    line-height: 1.5;
}

.stats-section {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    margin-top: 60px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

    .hero-description {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .landing-nav {
        padding: 0 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* =========================================
   MODERN ADD-ONS (Appended to existing CSS)
   ========================================= */

/* 1. Texture & Atmosphere */
.modern-texture-bg {
    /* Adds a subtle grain texture over your existing gradient */
    position: relative;
}

.modern-texture-bg::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: none;
    pointer-events: none;
    z-index: 0;
}

/* 2. Floating Glass Navigation */
.landing-nav.modern-glass-nav {
    margin-top: 20px;
    background: var(--brand-forest);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 12px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 1000px; /* Limits width for the floating look */
}

.btn-nav-highlight {
    background: var(--color-secondary);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.btn-nav-highlight:hover {
    transform: translateY(-2px);
    background: #c9ac68;
}

/* 3. Text Gradients & Badges */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(182, 153, 86, 0.3);
    border-radius: 20px;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.modern-badge .dot {
    width: 6px; height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

.text-gradient-gold {
    color: var(--brand-signal-gold);
}

/* 4. The Bento Grid Layout */
.modern-bento-wrapper {
    width: 100%;
}

.modern-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(180px, auto));
    gap: 20px;
}

/* Modify existing feature-card for Bento context */
.modern-bento-grid .feature-card {
    background: rgba(8, 40, 28, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-bento-grid .feature-card:hover {
    border-color: var(--color-secondary);
    background: rgba(24, 70, 49, 0.6);
}

/* Bento Spans */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

/* Abstract Visuals inside cards */
.bento-visual-chart {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 150px; height: 100px;
    background: rgba(217, 174, 78, 0.07);
    border-top-left-radius: 100px;
    pointer-events: none;
}

/* 5. Button Glow Animation */
.modern-glow-btn {
    position: relative;
    overflow: hidden;
}

.modern-glow-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.modern-glow-btn:hover::after {
    transform: scale(1);
}

/* Mobile Responsiveness for Bento */
@media (max-width: 992px) {
    .modern-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* Public trust centre and legal documents. */
.legal-page { max-width: 1080px; margin: 0 auto; padding: clamp(2rem, 6vw, 6rem) 1.25rem; color: var(--brand-ink); }
.legal-page > nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 4rem; font-weight: 600; }
.legal-page > article { max-width: 880px; }
.legal-page header { border-bottom: 1px solid #d8dee8; padding-bottom: 2rem; margin-bottom: 2.5rem; }
.legal-page header p { color: #53627a; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; }
.legal-page h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.035em; line-height: 1.1; }
.legal-prose { font-size: 1.05rem; line-height: 1.75; }
.legal-prose h2 { margin-top: 3rem; }
.legal-page table { width: 100%; border-collapse: collapse; }
.legal-page th, .legal-page td { padding: 1rem .75rem; border-bottom: 1px solid #d8dee8; text-align: left; vertical-align: top; }
.legal-page th small, .legal-page td small { display: block; color: #65738a; margin-top: .25rem; }

/* Self-service trial — inherited from the Imara Nexus authentication world. */
.trial-setup-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
    background: #f4f1e9;
    color: #14231b;
}

.trial-story,
.trial-setup-context {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 5vw, 5.5rem);
    background: #103325;
    color: var(--brand-paper);
    position: relative;
    overflow: hidden;
}

.trial-story::after,
.trial-setup-context::after {
    content: '';
    position: absolute;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    right: -25%;
    bottom: -34%;
    border: 1px solid rgba(182, 153, 86, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(182, 153, 86, .035), 0 0 0 144px rgba(182, 153, 86, .025);
    pointer-events: none;
}

.trial-brand {
    display: inline-flex;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.trial-brand img,
.trial-brand svg {
    display: block;
    width: min(180px, 44vw);
    object-fit: contain;
    object-position: left center;
}

.trial-kicker {
    margin: 0 0 1rem;
    color: #d2b876;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.trial-story h1,
.trial-setup-context h1,
.trial-expired-card h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.052em;
    font-weight: 700;
}

.trial-setup-context > p {
    max-width: 620px;
    margin: 1.5rem 0 0;
    color: #bdcbc4;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.65;
}

.trial-form-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 5rem);
    background: #f4f1e9;
}

.trial-form-card { width: min(100%, 520px); }
.trial-form-card--setup { width: min(100%, 590px); }
.trial-form-brand { display: none; }

.trial-step {
    margin-bottom: 1.75rem;
    color: #607066;
    font-size: .77rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.trial-step span {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-right: .4rem;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-forest);
    color: #fff;
}

.trial-form-card h2 {
    margin: 0;
    color: var(--brand-forest);
    font-weight: 600;
    font-size: clamp(2rem, 3.5vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -.048em;
}

.trial-form-intro {
    margin: 1rem 0 2rem;
    color: #627168;
    line-height: 1.55;
}

.trial-form { display: grid; gap: 1.1rem; }
.trial-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.trial-form > div:not(.trial-name-grid):not(.trial-sample-choice),
.trial-name-grid > div { display: grid; gap: .45rem; }

.trial-form label {
    color: #213c30;
    font-size: .79rem;
    font-weight: 750;
}

.trial-form input:not([type='checkbox']),
.trial-form select {
    width: 100%;
    min-height: 50px;
    padding: .75rem .9rem;
    border: 1px solid #bcc5bf;
    border-radius: 9px;
    background: #fff;
    color: #172d23;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.trial-form input:focus,
.trial-form select:focus {
    outline: none;
    border-color: var(--brand-forest);
    box-shadow: 0 0 0 3px rgba(14, 59, 42, .14);
}

.trial-form .invalid-feedback,
.trial-form ul {
    margin: .2rem 0 0;
    padding: 0;
    color: #a12c2c;
    font-size: .78rem;
    list-style: none;
}

.trial-form .form-text {
    color: #718078;
    font-size: .74rem;
}

.trial-quiet-link { color: var(--brand-forest); font-weight: 750; text-underline-offset: 3px; }

.trial-primary-button,
.trial-secondary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.1rem;
    border: 1px solid var(--brand-forest);
    border-radius: 9px;
    background: var(--brand-forest);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease;
}

.trial-primary-button:hover { background: #0f3524; color: #fff; transform: translateY(-1px); }
.trial-primary-button:focus-visible,
.trial-secondary-button:focus-visible,
.trial-form a:focus-visible { outline: 3px solid rgba(182, 153, 86, .65); outline-offset: 3px; }

.trial-sample-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #cbd0ca;
    border-radius: 9px;
    background: #fbfaf6;
}

.trial-sample-choice input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand-forest); }
.trial-sample-choice label { display: block; line-height: 1.45; }
.trial-sample-choice small { display: block; margin-top: .35rem; color: #6d7972; line-height: 1.5; }
.trial-quiet-link { display: block; width: fit-content; margin: 1.4rem auto 0; font-size: .8rem; }

/* Scenario trial wizard and demo build progress (spec 0001). */
.trial-wizard-steps { display: flex; gap: .4rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.trial-wizard-steps li { flex: 1; display: grid; gap: .45rem; color: #8a968f; font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.trial-wizard-steps li span { height: 4px; border-radius: 4px; background: #d9d8d1; font-size: 0; }
.trial-wizard-steps li em { font-style: normal; }
.trial-wizard-steps li.is-done span,
.trial-wizard-steps li.is-current span { background: var(--brand-forest); }
.trial-wizard-steps li.is-current { color: var(--brand-forest); }
.trial-wizard-alert { margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 9px; background: #fbeae5; color: #8a2d17; font-size: .85rem; }
.trial-field-error { margin: .1rem 0 0; color: #a3341a; font-size: .78rem; font-weight: 650; }
.trial-field-note { margin: .1rem 0 0; color: #6d7972; font-size: .76rem; line-height: 1.5; }
.trial-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #bcc5bf; border-radius: 9px; background: #fff; color: #17251e; font: inherit; resize: vertical; }
.trial-form textarea:focus { border-color: var(--brand-forest); outline: 3px solid rgba(14, 59, 42, .14); }
.trial-form label small { color: #7b8981; font-weight: 500; }
.trial-link-button { justify-self: center; padding: .3rem; border: 0; background: none; color: var(--brand-forest); font: inherit; font-size: .82rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.trial-choice-grid,
.trial-chip-group,
.trial-pain-list { display: flex; flex-wrap: wrap; gap: .55rem; min-width: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
.trial-choice-grid legend,
.trial-chip-group legend,
.trial-pain-list legend { width: 100%; margin-bottom: .6rem; color: #213c30; font-size: .79rem; font-weight: 750; }
.trial-choice-grid { display: grid; grid-template-columns: 1fr 1fr; }
.trial-choice,
.trial-chip { min-height: 44px; padding: .6rem .9rem; border: 1px solid #bcc5bf; border-radius: 9px; background: #fff; color: #213c30; font: inherit; font-size: .86rem; font-weight: 650; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
.trial-chip { min-height: 38px; padding: .45rem .8rem; border-radius: 999px; }
.trial-choice:hover,
.trial-chip:hover { border-color: var(--brand-forest); }
.trial-choice.is-selected,
.trial-chip.is-selected { border-color: var(--brand-forest); background: var(--brand-forest); color: #fff; }
.trial-choice:focus-visible,
.trial-chip:focus-visible,
.trial-pain:focus-within,
.trial-link-button:focus-visible,
.trial-back-button:focus-visible,
.trial-secondary-inline:focus-visible { outline: 3px solid rgba(182, 153, 86, .65); outline-offset: 2px; }
.trial-custom-kind { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: -.4rem 0 1.2rem; }
.trial-custom-kind input { min-height: 44px; padding: .6rem .9rem; border: 1px solid #bcc5bf; border-radius: 9px; font: inherit; }
.trial-secondary-inline { padding: 0 1rem; border: 1px solid var(--brand-forest); border-radius: 9px; background: #fff; color: var(--brand-forest); font: inherit; font-weight: 750; cursor: pointer; }
.trial-pain-list { display: grid; }
.trial-pain { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid #bcc5bf; border-radius: 9px; background: #fff; color: #213c30; font-size: .9rem; font-weight: 650; cursor: pointer; }
.trial-pain input { width: 18px; height: 18px; accent-color: var(--brand-forest); }
.trial-pain.is-selected { border-color: var(--brand-forest); background: #eef3ee; }
.trial-wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.trial-back-button { min-height: 52px; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border: 1px solid #bcc5bf; border-radius: 9px; background: transparent; color: #213c30; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.trial-back-button:hover { border-color: var(--brand-forest); color: var(--brand-forest); }
.trial-build-steps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.trial-build-steps li { display: flex; align-items: center; gap: .75rem; color: #8a968f; font-size: .92rem; }
.trial-build-steps li span { width: 18px; height: 18px; flex: none; border: 2px solid #c9cfca; border-radius: 50%; }
.trial-build-steps li.is-running { color: #213c30; font-weight: 700; }
.trial-build-steps li.is-running span { border-color: var(--brand-forest); border-right-color: transparent; animation: trial-spin .9s linear infinite; }
.trial-build-steps li.is-done { color: #213c30; }
.trial-build-steps li.is-done span { border-color: var(--brand-forest); background: var(--brand-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.trial-build-steps li.is-failed { color: #a3341a; }
.trial-build-steps li.is-failed span { border-color: #a3341a; background: #a3341a; }
.trial-build-steps li.is-dropped { font-size: .84rem; }
.trial-build-steps li.is-dropped span { width: 18px; height: 2px; border: 0; border-radius: 0; background: #c9cfca; }
.trial-rebuild-allowance { margin: -.6rem 0 1.2rem; color: #6d7972; font-size: .82rem; }
.trial-replacement { display: grid; gap: .6rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px solid #d9c9a0; border-radius: 9px; background: #fbf7ec; color: #213c30; }
.trial-replacement h3 { margin: 0; font-size: .95rem; font-weight: 750; }
.trial-replacement p { margin: 0; color: #4f5d55; font-size: .84rem; line-height: 1.5; }
.trial-replacement ul { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.trial-confirm { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 700; cursor: pointer; }
.trial-confirm input { width: 18px; height: 18px; accent-color: var(--brand-forest); }
.trial-confirm:focus-within { outline: 3px solid rgba(182, 153, 86, .65); outline-offset: 2px; }
@keyframes trial-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .trial-build-steps li.is-running span { animation: none; border-right-color: var(--brand-forest); } }
@media (max-width: 560px) { .trial-choice-grid { grid-template-columns: 1fr; } .trial-wizard-steps li em { display: none; } }

.trial-setup-context { justify-content: center; }
.trial-setup-context .trial-brand { position: absolute; top: clamp(2rem, 5vw, 5.5rem); left: clamp(2rem, 5vw, 5.5rem); }
.trial-setup-context h1 { max-width: 680px; }

.trial-setup-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 620px;
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.trial-setup-summary div { display: grid; gap: .3rem; }
.trial-setup-summary dt { color: #91a39a; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.trial-setup-summary dd { margin: 0; color: #fff; font-weight: 750; }

.trial-expired-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--brand-forest);
    color: #fff;
}

.trial-expired-card { width: min(100%, 700px); text-align: center; }
.trial-expired-card > :is(img, svg) { width: min(190px, 52vw); margin-bottom: 3.5rem; }
.trial-expired-card h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
.trial-expired-card > p:not(.trial-kicker) { max-width: 590px; margin: 1.5rem auto; color: #bdcbc4; line-height: 1.7; }
.trial-expired-actions { display: flex; justify-content: center; gap: .8rem; margin: 2rem 0; }
.trial-secondary-button { justify-content: center; border-color: rgba(255, 255, 255, .35); background: transparent; }
.trial-secondary-button:hover { border-color: #fff; color: #fff; }
.trial-expired-card > small { color: #91a39a; }

.trial-account-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem var(--content-padding-x, 1.25rem) 0;
    padding: .8rem 1rem;
    border: 1px solid #decf9f;
    border-radius: 8px;
    background: #fff9e8;
    color: #453915;
}
.trial-account-banner > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem .8rem; }
.trial-account-banner strong { font-size: .82rem; }
.trial-account-banner span { font-size: .78rem; }
.trial-account-banner small { color: #766735; font-size: .7rem; }
.trial-account-banner a { color: var(--brand-forest); font-size: .76rem; font-weight: 800; white-space: nowrap; }

@media (max-width: 900px) {
    .trial-setup-shell { grid-template-columns: 1fr; }
    .trial-story,
    .trial-setup-context { min-height: auto; padding: 2rem 1.5rem 2.5rem; }
    .trial-story h1,
    .trial-setup-context h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
    .trial-form-panel { min-height: auto; padding: 3rem 1.25rem; }
    .trial-setup-context { padding-top: 8rem; }
    .trial-setup-context .trial-brand { top: 2rem; left: 1.5rem; }
}

@media (max-width: 560px) {
    .trial-story { display: none; }
    .trial-form-brand { display: block; margin-bottom: 2rem; }
    .trial-form-brand svg { display: block; width: 150px; height: auto; }
    .trial-name-grid { grid-template-columns: 1fr; }
    .trial-setup-summary { grid-template-columns: 1fr 1fr 1fr; }
    .trial-expired-actions { flex-direction: column; }
    .trial-account-banner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .trial-primary-button { transition: none; }
}
