.landing-shell {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(5, 150, 105, 0.22), transparent 26%),
        linear-gradient(180deg, #f7fffb 0%, #f6f8fb 42%, #eefbf4 100%);
    color: var(--sw-text-primary);
    overflow: hidden;
}

.landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(4, 120, 87, 0.32) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.landing-shell::after {
    content: "";
    position: absolute;
    top: -12%;
    right: -8%;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.landing-topbar,
.landing-main {
    position: relative;
    z-index: 1;
}

.landing-topbar {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    /* Size container: the brand swaps banner<->icon based on the room the topbar
       actually has, not an arbitrary device width. */
    container: landing-topbar / inline-size;
}

.landing-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    color: var(--sw-text-primary);
    text-decoration: none;
    font-family: var(--sw-font-display);
    font-weight: 700;
    min-width: 0;
}

/* Height-based sizing keeps the banner aspect-correct and crisp; width follows.
   With the theme switch moved out of the topbar into its own marketing block,
   the banner is the sole brand moment here and is sized to fill the freed space. */
.landing-brand-mark {
    display: none;
    height: clamp(2.4rem, 6.5vw, 4.4rem);
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.landing-brand-mark--desktop {
    display: block;
}

.landing-brand-mark--mobile {
    height: clamp(2.3rem, 8vw, 2.85rem);
}

/* Retain the compact banner on wider phones; only use the square mark when
   the actual topbar content area cannot accommodate both brand and actions. */
@container landing-topbar (max-width: 17rem) {
    .landing-brand-mark--desktop {
        display: none;
    }

    .landing-brand-mark--mobile {
        display: block;
    }
}

/* The banner artwork uses dark ink for light backgrounds; on dark surfaces
   recolor it to a crisp monochrome so the wordmark + tagline stay legible. */
[data-theme="dark"] .landing-brand-mark {
    filter: brightness(0) invert(1);
}

.landing-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.landing-topbar-link {
    color: var(--sw-text-secondary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.landing-topbar-actions .landing-topbar-cta {
    padding: 0.4rem 0.9rem;
    min-height: 2.1rem;
    white-space: nowrap;
}

.landing-topbar-cta,
.landing-primary-cta {
    box-shadow: var(--sw-shadow-brand);
}

.landing-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sw-space-page-inline) 3rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 0 3.5rem;
}

.landing-hero-copy h1,
.landing-section-heading h2 {
    font-family: var(--sw-font-display);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.landing-hero-copy h1 {
    font-size: clamp(3rem, 8vw, 5.75rem);
    margin: 0.35rem 0 1rem;
    max-width: 10ch;
}

.landing-underline {
    position: relative;
    display: inline-block;
}

.landing-underline-mark {
    position: absolute;
    left: 0;
    bottom: -0.08em;
    width: 100%;
    height: 0.22em;
    overflow: visible;
}

.landing-underline-mark path {
    fill: none;
    stroke: var(--sw-brand-light);
    stroke-width: 6;
    stroke-linecap: round;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--sw-brand-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-subtitle {
    max-width: 42rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--sw-text-secondary);
    margin: 0 0 1.35rem;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.landing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.landing-pills span {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(16, 24, 40, 0.08);
    color: var(--sw-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.landing-hero-card,
.landing-feature-card,
.landing-proof-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(12, 18, 28, 0.08);
    backdrop-filter: blur(18px);
}

.landing-hero-card {
    padding: 1.5rem;
    transform: rotate(-1.5deg);
    box-shadow: 0 24px 50px rgba(12, 18, 28, 0.1);
}

.landing-hero-card-label {
    color: var(--sw-brand-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero-card-value {
    font-family: var(--sw-font-display);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin: 0.35rem 0;
    color: var(--sw-brand-dark);
}

.landing-hero-card-copy {
    color: var(--sw-text-secondary);
    line-height: 1.55;
}

.landing-hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.landing-hero-card-grid div {
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: var(--sw-brand-bg);
}

.landing-hero-card-grid span {
    display: block;
    color: var(--sw-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-hero-card-grid strong {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--sw-font-display);
    font-size: 1.35rem;
    color: var(--sw-text-primary);
}

.landing-section {
    margin-top: var(--sw-space-section-major);
}

.landing-section-heading {
    max-width: 44rem;
    margin-bottom: var(--sw-space-section);
}

/* ── Theme spotlight card ── */
.landing-theme-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 2.25rem;
    border-radius: var(--sw-radius-xl, 20px);
    background:
        radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(5, 150, 105, 0.02));
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.landing-theme-spotlight-copy {
    max-width: 34rem;
}

.landing-theme-spotlight-copy h2 {
    font-family: var(--sw-font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.6rem;
}

.landing-theme-spotlight-copy p {
    color: var(--sw-text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0;
}

.landing-theme-spotlight-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    background: var(--sw-bg-card);
    box-shadow: var(--sw-shadow-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sw-text-secondary);
    flex-shrink: 0;
    transition: transform var(--sw-transition-spring), border-color var(--sw-transition-theme), box-shadow var(--sw-transition-theme);
}

.landing-theme-spotlight-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--sw-shadow);
}

.landing-theme-spotlight-toggle:active {
    transform: scale(0.98);
}

.landing-theme-spotlight-side {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--sw-transition-fast);
}

.landing-theme-spotlight-side svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--sw-transition-spring);
}

.landing-theme-spotlight-toggle[aria-checked="false"] .landing-theme-spotlight-side--light,
.landing-theme-spotlight-toggle[aria-checked="true"] .landing-theme-spotlight-side--dark {
    color: var(--sw-brand);
}

.landing-theme-spotlight-toggle[aria-checked="false"] .landing-theme-spotlight-side--light svg,
.landing-theme-spotlight-toggle[aria-checked="true"] .landing-theme-spotlight-side--dark svg {
    transform: scale(1.08) rotate(8deg);
}

.landing-theme-spotlight-track {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.16);
    border: 1px solid rgba(16, 24, 40, 0.12);
    transition: background-color var(--sw-transition-fast), border-color var(--sw-transition-fast);
}

.landing-theme-spotlight-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(12, 18, 28, 0.25);
    transition: transform var(--sw-transition-spring), box-shadow var(--sw-transition-theme);
}

.landing-theme-spotlight-toggle[aria-checked="true"] .landing-theme-spotlight-track {
    background: var(--sw-brand);
    border-color: var(--sw-brand);
}

.landing-theme-spotlight-toggle[aria-checked="true"] .landing-theme-spotlight-thumb {
    transform: translateX(24px);
}

.landing-theme-spotlight-toggle:hover .landing-theme-spotlight-thumb {
    box-shadow: var(--sw-shadow);
}

@media (max-width: 640px) {
    .landing-theme-spotlight {
        padding: 1.5rem;
        gap: 1.25rem;
    }
}

.landing-section-heading h2 {
    margin: 0.55rem 0 0;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.landing-feature-grid,
.landing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-feature-card,
.landing-proof-card {
    padding: 1.25rem;
}

.landing-feature-card h3,
.landing-proof-card-title {
    font-family: var(--sw-font-display);
    font-size: 1.2rem;
    letter-spacing: -0.04em;
    margin: 0 0 0.55rem;
}

.landing-feature-card p,
.landing-proof-card p {
    color: var(--sw-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.landing-proof-list {
    display: grid;
    gap: 0.75rem;
}

.landing-proof-item {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.landing-proof-example-list {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.landing-proof-example-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--sw-text-secondary);
}

.landing-proof-example-list strong {
    color: var(--sw-text-primary);
    font-weight: 600;
}

.landing-proof-example-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(16, 24, 40, 0.1);
    font-family: var(--sw-font-display);
}

.landing-proof-example-total span {
    color: var(--sw-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.landing-proof-example-total strong {
    font-size: 1.35rem;
    color: var(--sw-brand-dark);
}

.landing-demo-shell {
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 22px 50px rgba(12, 18, 28, 0.08);
}

.landing-faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
}

.landing-faq-item {
    background: var(--sw-card-glass);
    border: 1px solid var(--sw-card-border-glass);
    border-radius: 18px;
    box-shadow: var(--sw-shadow-float);
    overflow: hidden;
}

.landing-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    cursor: pointer;
    font-family: var(--sw-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--sw-text-primary);
    list-style: none;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary:focus-visible {
    outline: 2px solid var(--sw-brand);
    outline-offset: -2px;
    border-radius: 18px;
}

.landing-faq-chevron {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: var(--sw-brand-dark);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--sw-transition-smooth);
}

.landing-faq-item[open] .landing-faq-chevron {
    transform: rotate(180deg);
}

.landing-faq-answer {
    padding: 0 1.25rem 1.15rem;
}

.landing-faq-answer p {
    margin: 0;
    color: var(--sw-text-secondary);
    line-height: 1.6;
}

.landing-faq-answer a {
    color: var(--sw-brand-dark);
    font-weight: 600;
}

.landing-faq-more {
    margin: 1.25rem 0 0;
    color: var(--sw-text-secondary);
    font-size: 0.95rem;
}

.landing-faq-more a {
    color: var(--sw-brand-dark);
    font-weight: 600;
    text-decoration: none;
}

.landing-faq-more a:hover {
    text-decoration: underline;
}

.landing-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.75rem 0 2rem;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    color: var(--sw-text-secondary);
    font-size: 0.9rem;
}

.landing-footer-brand {
    max-width: 32ch;
}

.landing-footer-name {
    display: block;
    font-family: var(--sw-font-display);
    font-weight: 700;
    color: var(--sw-text-primary);
}

.landing-footer-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.landing-footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.landing-footer-copyright {
    font-size: 0.8rem;
    white-space: nowrap;
}

.landing-footer a {
    color: inherit;
    text-decoration: none;
}

.landing-footer a:hover {
    color: var(--sw-brand-dark);
}

@media (max-width: 640px) {
    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

[data-theme="dark"] .landing-shell {
    background:
        radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 26%),
        linear-gradient(180deg, #0c120f 0%, #101722 46%, #0b0f16 100%);
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-shell::before {
    background-image: radial-gradient(rgba(52, 211, 153, 0.16) 1px, transparent 1px);
}

[data-theme="dark"] .landing-shell::after {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.18) 0%, transparent 70%);
}

[data-theme="dark"] .landing-underline-mark path {
    stroke: var(--sw-brand-light);
}

[data-theme="dark"] .landing-proof-example-list li {
    color: var(--sw-text-secondary);
}

[data-theme="dark"] .landing-proof-example-list strong {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-proof-example-total {
    border-top-color: var(--sw-border);
}

[data-theme="dark"] .landing-proof-example-total strong {
    color: #6ee7b7;
}

[data-theme="dark"] .landing-brand,
[data-theme="dark"] .landing-topbar-link {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-topbar-link {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-topbar-link:hover,
[data-theme="dark"] .landing-footer a:hover {
    color: var(--sw-brand-light);
}

[data-theme="dark"] .landing-footer {
    border-top-color: var(--sw-border);
}

[data-theme="dark"] .landing-footer-name {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-hero-copy h1 {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-eyebrow {
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
}

[data-theme="dark"] .landing-subtitle,
[data-theme="dark"] .landing-feature-card p,
[data-theme="dark"] .landing-proof-card p,
[data-theme="dark"] .landing-hero-card-copy,
[data-theme="dark"] .landing-footer {
    color: var(--sw-text-secondary);
}

[data-theme="dark"] .landing-pills span,
[data-theme="dark"] .landing-proof-item {
    background: rgba(26, 29, 39, 0.85);
    border-color: var(--sw-border);
    color: var(--sw-text-secondary);
}

[data-theme="dark"] .landing-hero-card,
[data-theme="dark"] .landing-feature-card,
[data-theme="dark"] .landing-proof-card,
[data-theme="dark"] .landing-demo-shell {
    background: rgba(26, 29, 39, 0.86);
    border-color: var(--sw-border);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .landing-faq-item {
    background: var(--sw-card-glass);
    border-color: var(--sw-card-border-glass);
    box-shadow: var(--sw-shadow-float);
}

[data-theme="dark"] .landing-faq-answer a,
[data-theme="dark"] .landing-faq-more a {
    color: var(--sw-brand-light);
}

[data-theme="dark"] .landing-hero-card-label {
    color: #86efac;
}

[data-theme="dark"] .landing-hero-card-value {
    color: #6ee7b7;
}

[data-theme="dark"] .landing-hero-card-grid div {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(16, 185, 129, 0.14);
}

[data-theme="dark"] .landing-hero-card-grid strong {
    color: var(--sw-text-primary);
}

[data-theme="dark"] .landing-feature-card h3,
[data-theme="dark"] .landing-proof-card-title,
[data-theme="dark"] .landing-section-heading h2 {
    color: var(--sw-text-primary);
}

@media (max-width: 960px) {
    .landing-hero,
    .landing-feature-grid,
    .landing-proof-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding-top: 1rem;
    }

    .landing-hero-card {
        transform: none;
    }
}

/* ── Motion: scroll reveal ── */
.landing-hero {
    animation: sw-content-enter var(--sw-transition-spring) both;
}

.landing-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--sw-transition-smooth), transform 0.6s var(--sw-transition-smooth);
}

.landing-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .landing-feature-card.in-view,
    .landing-proof-card.in-view,
    .landing-faq-item.in-view {
        transition: transform var(--sw-transition-spring), border-color var(--sw-transition-theme), box-shadow var(--sw-transition-theme);
    }

    .landing-feature-card:hover,
    .landing-proof-card:hover,
    .landing-faq-item:hover {
        transform: translateY(-2px);
        border-color: var(--sw-brand-light);
        box-shadow: var(--sw-shadow);
    }
}

/* ── Motion: rotating scenario ticker ── */
.landing-hero-card-value,
.landing-hero-card-grid strong,
.landing-hero-card-label {
    transition: opacity 0.18s ease;
}

.landing-hero-card.is-swapping .landing-hero-card-value,
.landing-hero-card.is-swapping .landing-hero-card-grid strong,
.landing-hero-card.is-swapping .landing-hero-card-label {
    opacity: 0.25;
}

/* ── Motion: slow hero background drift ── */
.landing-shell {
    background-size: 140% 140%;
    animation: landing-drift 18s ease-in-out infinite alternate;
}

@keyframes landing-drift {
    from { background-position: 0% 0%; }
    to { background-position: 20% 12%; }
}

/* ── Motion: springy CTA feedback ── */
.landing-primary-cta,
.landing-secondary-cta,
.landing-topbar-cta {
    transition: transform var(--sw-transition-spring), box-shadow var(--sw-transition-spring);
}

.landing-primary-cta:hover,
.landing-secondary-cta:hover,
.landing-topbar-cta:hover {
    transform: scale(1.03);
}

.landing-primary-cta:active,
.landing-secondary-cta:active,
.landing-topbar-cta:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .landing-shell,
    .landing-hero {
        animation: none;
    }

    .landing-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing-hero-card-value,
    .landing-hero-card-grid strong,
    .landing-hero-card-label,
    .landing-primary-cta,
    .landing-secondary-cta,
    .landing-topbar-cta,
    .landing-theme-spotlight-toggle,
    .landing-theme-spotlight-side svg,
    .landing-theme-spotlight-thumb {
        transition: none;
    }

    .landing-theme-spotlight-toggle:hover,
    .landing-feature-card:hover,
    .landing-proof-card:hover,
    .landing-faq-item:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .landing-topbar,
    .landing-main {
        padding-left: var(--sw-space-page-inline-mobile);
        padding-right: var(--sw-space-page-inline-mobile);
    }

    .landing-topbar {
        height: var(--sw-shell-header-mobile-height);
        box-sizing: border-box;
        padding-top: 0;
        padding-bottom: 0;
    }

    .landing-topbar-row {
        height: 100%;
        box-sizing: border-box;
        align-items: flex-end;
        padding-bottom: var(--sw-shell-header-mobile-bottom-inset);
    }

    .landing-brand-mark {
        height: var(--sw-shell-header-mobile-brand-height);
    }

    .landing-topbar-actions {
        gap: 0.5rem;
    }

    .landing-topbar-actions .landing-topbar-cta {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
        font-size: 0.82rem;
    }

    .landing-hero {
        gap: 1.75rem;
        padding: var(--sw-space-page-top-mobile) 0 2.25rem;
    }

    .landing-hero-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.45rem);
        max-width: 12ch;
        margin-bottom: 0.75rem;
    }

    .landing-subtitle {
        font-size: 0.98rem;
        line-height: 1.52;
        margin-bottom: 1.1rem;
    }

    .landing-eyebrow {
        padding: 0.32rem 0.62rem;
        font-size: 0.67rem;
    }

    .landing-hero-actions {
        gap: 0.65rem;
    }

    .landing-pills {
        gap: 0.45rem;
        margin-top: 0.85rem;
    }

    .landing-pills span {
        padding: 0.36rem 0.62rem;
        font-size: 0.76rem;
    }

    .landing-hero-card {
        padding: 1.1rem;
    }

    .landing-hero-card-value {
        font-size: clamp(2.15rem, 10vw, 3.1rem);
    }

    .landing-hero-card-grid {
        gap: 0.6rem;
        margin-top: 0.85rem;
    }

    .landing-hero-card-grid div {
        padding: 0.7rem 0.75rem;
    }

    .landing-hero-card-grid strong {
        font-size: 1.15rem;
    }

    .landing-section {
        margin-top: var(--sw-space-section-major-mobile);
    }

    .landing-demo-shell {
        padding: 0.6rem;
    }
}

@media (max-width: 420px) {
    .landing-topbar {
        padding: 0.55rem 0.85rem;
    }

    .landing-topbar-row {
        gap: 0.55rem;
    }

    .landing-brand-mark {
        height: 2.15rem;
    }

    .landing-topbar-actions {
        gap: 0.35rem;
    }

    .landing-topbar-link {
        font-size: 0.8rem;
    }

    .landing-topbar-actions .landing-topbar-cta {
        min-height: 2rem;
        padding: 0.32rem 0.62rem;
        font-size: 0.75rem;
    }

    .landing-main {
        padding-left: var(--sw-space-page-inline-mobile);
        padding-right: var(--sw-space-page-inline-mobile);
    }

    .landing-hero {
        gap: 0.7rem;
        padding-top: var(--sw-space-page-top-mobile);
    }

    .landing-eyebrow {
        padding: 0.25rem 0.55rem;
        font-size: 0.61rem;
    }

    .landing-hero-copy h1 {
        max-width: none;
        margin: 0.3rem 0 0.55rem;
        font-size: clamp(2.25rem, 10.5vw, 2.55rem);
        line-height: 0.94;
    }

    .landing-subtitle {
        margin-bottom: 0.7rem;
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .landing-hero-actions {
        gap: 0.5rem;
    }

    .landing-hero-actions .btn {
        box-sizing: border-box;
        height: 2.75rem;
        min-height: 2.75rem;
        padding: 0.58rem 0.85rem;
        font-size: 0.86rem;
    }

    .landing-pills {
        flex-wrap: nowrap;
        gap: 0.4rem;
        margin-top: 0.6rem;
    }

    .landing-pills span {
        padding: 0.3rem 0.55rem;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .landing-hero-card {
        padding: 0.9rem 1rem;
    }

    .landing-hero-card-label {
        font-size: 0.68rem;
    }

    .landing-hero-card-value {
        margin: 0.2rem 0;
        font-size: 2.25rem;
    }

    .landing-hero-card-copy {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .landing-hero-card-grid {
        gap: 0.5rem;
        margin-top: 0.6rem;
    }

    .landing-hero-card-grid div {
        padding: 0.55rem 0.65rem;
    }

    .landing-hero-card-grid span {
        font-size: 0.62rem;
    }

    .landing-hero-card-grid strong {
        font-size: 1rem;
    }

    .landing-section-heading h2 {
        font-size: clamp(1.7rem, 8.5vw, 2.25rem);
    }
}

@media (max-width: 360px) {
}

/* Focused hierarchy refinement: a quieter public entry point that shares the
   authenticated app's surface, spacing, and control conventions. */
.landing-shell {
    background: var(--sw-bg-shell);
}

.landing-shell::before {
    background-image: radial-gradient(circle, var(--sw-shell-dot) 1.1px, transparent 1.2px);
    background-size: var(--sw-shell-dot-size);
    -webkit-mask-image: var(--sw-shell-dot-mask);
    mask-image: var(--sw-shell-dot-mask);
    opacity: var(--sw-shell-dot-opacity);
}

[data-theme="dark"] .landing-shell::before {
    background-image: radial-gradient(circle, var(--sw-shell-dot) 1.1px, transparent 1.2px);
}

.landing-shell::after {
    background: radial-gradient(circle, var(--sw-brand-bg) 0%, transparent 70%);
    opacity: 0.55;
}

.landing-topbar-actions .landing-topbar-cta--compact {
    box-sizing: border-box;
    height: var(--sw-shell-header-mobile-control-height);
    min-height: var(--sw-shell-header-mobile-control-height);
    max-height: var(--sw-shell-header-mobile-control-height);
    padding: 0 0.7rem;
    line-height: 1;
    border-radius: var(--sw-radius-sm);
    box-shadow: var(--sw-shadow-sm);
}

.landing-topbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.landing-brand-mark {
    height: clamp(2.35rem, 4.5vw, 3rem);
}

.landing-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--sw-shell-header-mobile-control-height);
}

.landing-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 2rem;
    padding: 1rem 0 1rem;
}

.landing-section--features {
    margin-top: 0.75rem;
}

.landing-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    line-height: 1.02;
}

.landing-trust-line {
    margin: 0.85rem 0 0;
    color: var(--sw-text-secondary);
    font-size: 0.82rem;
}

.landing-hero-card,
.landing-feature-card,
.landing-proof-card {
    background: var(--sw-card-glass);
    border-color: var(--sw-card-border-glass);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow-float);
}

.landing-hero-card {
    position: relative;
    padding: 1.25rem;
    overflow: hidden;
    transform: translateY(1.25rem) rotate(-1deg);
    border-color: var(--sw-brand-light);
    box-shadow: var(--sw-shadow-float), var(--sw-shadow-brand);
}

.landing-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.25rem;
    background: var(--sw-gradient-cta);
}

.landing-hero-card-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.65rem;
}

.landing-hero-card-label::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-brand-light);
    box-shadow: 0 0 0 0.25rem var(--sw-brand-bg);
}

.landing-hero-card-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.landing-hero-card-result > div {
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border-radius: var(--sw-radius-md);
    background: var(--sw-brand-bg);
    border: 1px solid var(--sw-border-light);
}

.landing-hero-card-result > div:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--sw-brand-bg), var(--sw-bg-card));
}

.landing-hero-card-result span,
.landing-hero-card-result strong {
    display: block;
}

.landing-hero-card-result span {
    color: var(--sw-text-secondary);
    font-size: 0.7rem;
}

.landing-hero-card-result strong,
.landing-hero-card-result .landing-hero-card-value {
    margin: 0.15rem 0 0;
    color: var(--sw-text-primary);
    font-family: var(--sw-font-display);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-hero-card-result > div:first-child strong,
.landing-hero-card-result > div:first-child .landing-hero-card-value {
    color: var(--sw-brand-dark);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-topbar {
        height: var(--sw-shell-header-mobile-height);
        box-sizing: border-box;
        padding: 0 var(--sw-shell-header-mobile-inline-inset);
    }

    .landing-topbar-row {
        height: 100%;
        box-sizing: border-box;
        align-items: flex-end;
        padding-bottom: var(--sw-shell-header-mobile-bottom-inset);
    }

    .landing-brand-mark {
        height: var(--sw-shell-header-mobile-brand-height);
    }

    .landing-hero {
        gap: 0.75rem;
        padding: var(--sw-space-page-top-mobile) 0 0.75rem;
    }

    .landing-hero-copy h1 {
        max-width: 12ch;
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .landing-hero-card {
        padding: 1rem;
        transform: none;
        box-shadow: var(--sw-shadow-float), 0 0 0 1px var(--sw-brand-bg);
    }
}

@media (max-width: 420px) {
    .landing-topbar-actions .landing-topbar-cta--compact {
        height: var(--sw-shell-header-mobile-control-height);
        min-height: var(--sw-shell-header-mobile-control-height);
        max-height: var(--sw-shell-header-mobile-control-height);
        padding: 0 0.6rem;
        font-size: 0.75rem;
    }

    .landing-topbar-link {
        min-height: var(--sw-shell-header-mobile-control-height);
    }

    .landing-brand {
        flex: 0 1 12.75rem;
        max-width: calc(100% - 7.5rem);
    }

    .landing-hero {
        gap: 0.85rem;
        padding-top: var(--sw-space-page-top-mobile);
    }

    .landing-hero-copy h1 {
        max-width: 11.5ch;
        font-size: clamp(2.1rem, 9.8vw, 2.45rem);
        line-height: 1.06;
    }

    .landing-subtitle {
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .landing-hero-card-result {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .landing-hero-card-result > div:first-child {
        grid-column: 1 / -1;
    }

    .landing-hero-card-result > div {
        padding: 0.75rem;
    }

    .landing-section--features {
        margin-top: 0.5rem;
    }
}
