/*
  ONE BIG TEAM — MARKETING SITE DESIGN SYSTEM
  A restrained, category-standard SaaS marketing register: a serious,
  precise tool for a warm, human subject. Neutral off-white/near-black
  ground, one confident blue accent carries every CTA/link/active state.
  See DESIGN.md for the full rationale.
*/

:root {
    /* Color: neutral ground */
    --color-bg: #fafaf9;
    --color-bg-muted: #f2f1ed;
    --color-surface: #ffffff;
    --color-border: #e6e4de;
    --color-border-strong: #d4d1c9;
    --color-ink: #16171b;
    --color-ink-soft: #55585f;
    --color-ink-faint: #83858c;

    /* Color: accent / primary (single committed hue, blue) — MKT-UX-09 */
    --color-accent: #2b38a1;
    --color-accent-hover: #25318c;
    --color-accent-active: #212b7a;
    --color-accent-soft: #e8eaf8;
    --color-on-accent: #ffffff;

    /* Color: secondary accent — the cyan-teal from the logo mark's circles (sampled at
       #1bb4cc), distinct from the blue wordmark color above. Defined but not yet applied
       anywhere: this site's DESIGN.md documents a deliberate "One Accent Rule" (a single
       committed hue everywhere), so wiring this into specific components is a real design
       decision for whoever uses it next, not made here. #127585 is a darkened, contrast-
       verified variant (~5.4:1 on white) — the raw sampled teal is only ~2.5:1, well under
       the 4.5:1 AA text/UI threshold. */
    --color-secondary: #127585;
    --color-secondary-hover: #0e5c69;
    --color-secondary-active: #0b474f;
    --color-secondary-soft: #e7f1f3;
    --color-on-secondary: #ffffff;

    /* Color: dark surfaces (header/footer/final CTA) */
    --color-dark: #14151a;
    --color-dark-surface: #1d1e25;
    --color-dark-border: rgba(255, 255, 255, 0.12);
    --color-dark-ink: #f4f4f2;
    --color-dark-ink-soft: rgba(244, 244, 242, 0.68);

    /* Color: status */
    --color-danger: #b3311a;
    --color-danger-soft: #fbeae6;

    /* Type */
    --font-display: "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
    --text-label: 0.82rem;
    --text-meta: 0.92rem;

    /* Radius (SaaS scale, not almost-square) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;

    /* Shadow (soft, neutral-tinted) */
    --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.05), 0 1px 1px rgba(15, 15, 20, 0.04);
    --shadow-md: 0 6px 16px rgba(15, 15, 20, 0.08), 0 2px 6px rgba(15, 15, 20, 0.05);
    --shadow-lg: 0 24px 48px -16px rgba(15, 15, 20, 0.28), 0 8px 20px -8px rgba(15, 15, 20, 0.14);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

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

.icon {
    width: 1.25em;
    height: 1em;
    flex-shrink: 0;
    text-align: center;
}

/* Unknown icon names still show a question mark instead of an empty space. */
:where(.icon)::before {
    content: "\f059";
}

a {
    color: inherit;
    text-decoration: none;
}

.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;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Keep the sticky header from obscuring in-page anchor targets (e.g. "#contact-form")
   when navigated to via keyboard/click. Sized to roughly match .site-header's
   height at each breakpoint; more specific selectors elsewhere (e.g. .feature-detail-section,
   .contact-form) already set their own value and take precedence via source order. */
section[id] {
    scroll-margin-top: 96px;
}

@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 88px;
    }
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    min-height: 72px;
    padding: 12px clamp(20px, 5vw, 72px);
    background: rgba(250, 250, 249, 0.82);
    backdrop-filter: blur(10px) saturate(1.5);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    border-bottom: 1px solid var(--color-border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: none;
}

.brand-word {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: 500;
    font-size: var(--text-meta);
    color: var(--color-ink-soft);
}

    .site-nav a:hover,
    .login-link:hover,
    .site-nav a[aria-current="page"] {
        color: var(--color-accent);
    }

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

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions {
    justify-content: end;
}

.login-link {
    color: var(--color-ink-soft);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

    .menu-toggle span:not(.sr-only) {
        display: block;
        width: 18px;
        height: 2px;
        margin: 4px auto;
        background: var(--color-ink);
    }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

    .button:hover {
        transform: translateY(-1px);
    }

.button-primary {
    color: var(--color-on-accent);
    background: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

    .button-primary:hover {
        background: var(--color-accent-hover);
        box-shadow: var(--shadow-md);
    }

    .button-primary:active {
        background: var(--color-accent-active);
    }

.button-secondary {
    color: var(--color-ink);
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}

    .button-secondary:hover {
        border-color: var(--color-accent);
        background: var(--color-accent-soft);
    }

.button-large {
    min-height: 52px;
    padding: 0 24px;
    font-size: 1.02rem;
}

/* ---------------------------------------------------------------------
   Layout primitives
--------------------------------------------------------------------- */

.section,
.section-band {
    padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.section-inner-wide {
    width: min(1280px, 100%);
}

/* Homepage sections run one after another more densely than standalone
   pages, so trim the padding a little to tighten the rhythm between them
   without cramping any single section's content. */
#home .section,
#home .section-band {
    padding-top: clamp(48px, 7vw, 84px);
    padding-bottom: clamp(48px, 7vw, 84px);
}

#home .final-cta {
    padding-top: clamp(40px, 6vw, 72px);
}

.section-muted {
    background: var(--color-bg-muted);
}

h1, h2, h3, p {
    overflow-wrap: anywhere;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-ink);
}

h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 3.6vw, 4rem);
    line-height: 1.05;
}

h2 {
    max-width: 760px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.06rem;
    font-weight: 600;
}

.hero-text {
    max-width: 600px;
    color: var(--color-ink-soft);
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.two-column,
.pricing-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 72px);
}

    .copy-block p,
    .pricing-panel p,
    .benefit-grid p,
    .steps p,
    .footer-brand p {
        color: var(--color-ink-soft);
    }

        .copy-block p:first-child,
        .pricing-panel p {
            margin-top: 0;
        }

/* ---------------------------------------------------------------------
   Image placeholder — stands in for a real screenshot/photo asset.
   Ships obviously synthetic (dashed border, labeled) so it can never be
   mistaken for real product content; swap the real image in once captured.
--------------------------------------------------------------------- */

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: var(--placeholder-ratio, 16 / 10);
    padding: 24px;
    text-align: center;
    background: var(--color-bg-muted);
    border: 1.5px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    color: var(--color-ink-faint);
}

.image-placeholder .image-placeholder-icon {
    font-size: 1.6rem;
    color: var(--color-ink-faint);
}

.image-placeholder .image-placeholder-label {
    font-size: var(--text-meta);
    font-weight: 600;
    color: var(--color-ink-soft);
}

.image-placeholder .image-placeholder-spec {
    max-width: 46ch;
    font-size: var(--text-label);
    color: var(--color-ink-soft);
}

.image-placeholder.is-portrait {
    --placeholder-ratio: 4 / 5;
}

/* ---------------------------------------------------------------------
   Card — the base unit of every grid on the site
--------------------------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 24px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

a.card:hover,
a.card:focus-visible,
.card.is-lifted {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .button,
    .card-arrow,
    .video-card-play {
        transition: none;
    }
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    flex-grow: 1;
    color: var(--color-ink-soft);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    background: var(--color-accent-soft);
    font-size: 1.2rem;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 18px;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

    a.card:hover .card-arrow,
    a.card:focus-visible .card-arrow {
        opacity: 1;
        transform: translateX(0);
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 6px;
}

.card-grid > .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.features-more-link {
    margin: 28px 0 0;
    font-weight: 600;
}

    .features-more-link a {
        color: var(--color-accent);
        text-decoration: underline;
    }

/* ---------------------------------------------------------------------
   Home hero
--------------------------------------------------------------------- */

.hero {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.hero .section-inner {
    width: min(1540px, 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.8fr) minmax(720px, 1.45fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

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

.hero-content .hero-text {
    margin: 20px 0 0;
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);
}

.hero-actions {
    margin-top: 28px;
}

.product-window {
    background: none;
    overflow: hidden;
    border-radius: var(--radius-lg);
    outline: 1px solid var(--color-border-strong);
    box-shadow: 0 22px 56px rgba(23, 41, 77, 0.14);
}

.product-window-bar {
    display: none;
}

.product-window-dots {
    display: flex;
    gap: 5px;
}

.product-window-dots i {
    width: 7px;
    height: 7px;
    background: var(--color-border-strong);
    border-radius: 50%;
}

.product-window-address {
    position: absolute;
    left: 50%;
    padding: 2px 28px;
    color: var(--color-ink-faint);
    font-size: 0.68rem;
    line-height: 1.2;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transform: translateX(-50%);
}

.hero-shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hero-shot img {
    display: block;
    width: 134.5%;
    max-width: none;
    height: auto;
    margin-left: -19.5%;
}

.image-placeholder:has(img) {
    padding: 0;
    background: var(--color-surface);
    border-style: solid;
    border-color: var(--color-border);
}

.image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: inherit;
}

.hero-shot-figure {
    margin: 0;
}

.hero-shot-figure figcaption {
    display: none;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

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

    /* Reading/visual order below the breakpoint: headline -> supporting copy -> CTAs ->
       screenshot. This already matches source/DOM order (.hero-content before
       .hero-shot-figure), so no CSS `order` override is needed here — a previous
       `order: -1` on .hero-shot-figure pushed the screenshot above the headline on
       mobile, which is the layout this rule intentionally avoids. Keep the screenshot
       and figcaption together as a single <figure>. */
    .hero-shot-figure {
        width: min(1080px, 100%);
        margin: 32px auto 0;
    }
}

@media (max-width: 640px) {
    .product-window-address {
        max-width: 58%;
        padding-inline: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ---------------------------------------------------------------------
   How it works
--------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .steps li {
        position: relative;
        min-height: 200px;
        padding: 26px 22px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .steps span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin-bottom: 40px;
        border-radius: var(--radius-full);
        color: var(--color-on-accent);
        background: var(--color-accent);
        font-family: var(--font-display);
        font-weight: 700;
    }

    .steps h3 {
        margin-bottom: 8px;
    }

    .steps p {
        margin: 0;
        color: var(--color-ink-soft);
    }

/* ---------------------------------------------------------------------
   Timeline steps — deliberately distinct from the boxed .card-grid /
   .benefit-grid treatment so two grids in a row don't read as one.
   Numbered markers on a connecting line instead of bordered surfaces.
--------------------------------------------------------------------- */

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .timeline-steps li {
        position: relative;
        padding-top: 46px;
    }

    .timeline-steps li::before {
        content: "";
        position: absolute;
        top: 17px;
        left: 42px;
        width: calc(100% + 20px - 50px);
        height: 2px;
        background: var(--color-border-strong);
    }

    .timeline-steps li:last-child::before {
        display: none;
    }

.timeline-step-index {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    color: var(--color-on-accent);
    background: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 700;
}

.timeline-step-body h3 {
    margin-bottom: 8px;
}

.timeline-step-body p {
    margin: 0;
    color: var(--color-ink-soft);
}

/* ---------------------------------------------------------------------
   Pricing teaser / final CTA — dark grounded panels
--------------------------------------------------------------------- */

.pricing-teaser {
    color: var(--color-dark-ink);
    background: var(--color-dark);
}

.pricing-panel {
    align-items: center;
}

    .pricing-panel h2 {
        color: var(--color-dark-ink);
    }

    .pricing-panel p {
        color: var(--color-dark-ink-soft);
    }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.two-column .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
}

    .benefit-grid div {
        position: relative;
        padding: 22px 20px 20px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .benefit-grid strong {
        display: block;
        margin-bottom: 6px;
        font-family: var(--font-display);
        font-size: 1.06rem;
        font-weight: 700;
    }

.final-cta {
    padding-top: clamp(56px, 8vw, 96px);
}

.cta-panel {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: clamp(48px, 8vw, 86px) clamp(24px, 6vw, 72px);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-dark-ink);
    background: var(--color-dark);
    box-shadow: var(--shadow-lg);
}

    .cta-panel h2 {
        color: var(--color-dark-ink);
    }

    .cta-panel .button-secondary {
        color: var(--color-dark-ink);
        border-color: var(--color-dark-border);
        background: transparent;
    }

        .cta-panel .button-secondary:hover {
            background: rgba(255, 255, 255, 0.08);
        }

/* ---------------------------------------------------------------------
   Video card
--------------------------------------------------------------------- */

.video-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.video-card-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-muted);
}

.video-card-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: var(--color-on-accent);
    background: var(--color-ink);
    cursor: pointer;
}

.video-card-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: -1;
}

.video-card-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    box-shadow: var(--shadow-lg);
    color: var(--color-on-accent);
    font-size: 1.3rem;
    transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}

    .video-card-facade:hover .video-card-play,
    .video-card-facade:focus-visible .video-card-play {
        transform: scale(1.06);
        background: var(--color-accent-hover);
    }

.video-card-pending {
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: var(--color-ink-soft);
}

.video-card-pending .card-icon {
    margin-bottom: 0;
}

.video-card-caption {
    padding: 14px 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-ink-soft);
    font-size: var(--text-meta);
}

/* ---------------------------------------------------------------------
   Pricing / Features page heroes
--------------------------------------------------------------------- */

.pricing-hero,
.features-hero,
.contact-hero {
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(28px, 4vw, 48px);
    background: var(--color-bg);
}

.pricing-hero .hero-copy,
.pricing-hero .hero-text {
    max-width: 960px;
}

.pricing-section {
    font-size: 1.2em;
    padding: 44px 0;
}

.pricing-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 3.2vw, 2.6rem);
}

.pricing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: center;
    gap: clamp(36px, 6vw, 72px);
}

.price-summary,
.estimator-card {
    position: relative;
    padding: clamp(28px, 4vw, 40px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

    .estimator-card h2 {
        font-size: clamp(1.8rem, 2.8vw, 2.3rem);
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

.summary-label {
    margin: 0 0 18px;
    color: var(--color-ink-soft);
    font-family: var(--font-display);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.price-summary strong {
    display: block;
    margin-bottom: 18px;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    line-height: 1;
}

.price-summary p:last-child {
    margin-bottom: 0;
    color: var(--color-ink-soft);
}

.estimator-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.estimator-intro {
    max-width: 600px;
    color: var(--color-ink-soft);
}

.pricing-note {
    position: relative;
    max-width: 620px;
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font-weight: 500;
}

.employee-input-row {
    display: grid;
    gap: 14px;
}

    .employee-input-row input[type="number"] {
        width: 100%;
        min-height: 56px;
        padding: 0 16px;
        border: 1px solid var(--color-border-strong);
        border-radius: var(--radius-sm);
        color: var(--color-ink);
        background: var(--color-surface);
        font: inherit;
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

        .employee-input-row input[type="number"]:focus-visible {
            outline: 3px solid var(--color-accent-soft);
            border-color: var(--color-accent);
        }

    .employee-input-row span,
    #employee-count-help,
    .small-note {
        color: var(--color-ink-soft);
    }

.estimator-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.estimate-result {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    margin: 28px 0 18px;
    padding: 22px;
    border-radius: var(--radius-md);
    color: var(--color-on-accent);
    background: var(--color-accent);
}

    .estimate-result > div {
        display: grid;
        gap: 6px;
    }

    .estimate-result span {
        color: rgba(255, 255, 255, 0.78);
        font-weight: 600;
    }

    .estimate-result strong {
        font-family: var(--font-display);
        font-size: clamp(1.1rem, 1.8vw, 1.25rem);
        line-height: 1;
    }

#employee-slider {
    width: 100%;
    accent-color: var(--color-accent);
}

.field-error {
    margin: -6px 0 0;
    color: var(--color-danger);
    font-size: var(--text-meta);
    font-weight: 600;
}

.calculator-cta {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

    .calculator-cta .cta-supporting-message {
        margin: 0;
        color: var(--color-ink-soft);
    }

.pricing-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: clamp(28px, 4vw, 40px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-headline {
    display: block;
    margin: 8px 0;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    line-height: 1;
}

.tier-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

    .tier-list li {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 16px;
        background: var(--color-bg-muted);
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
    }

    .tier-list span {
        color: var(--color-ink-soft);
    }

.tier-worked-example {
    margin: 0 0 24px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

    .tier-worked-example summary {
        cursor: pointer;
        font-family: var(--font-display);
        font-weight: 600;
    }

    .tier-worked-example p {
        margin: 12px 0 0;
        color: var(--color-ink-soft);
    }

.pricing-examples-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pricing-examples-table th,
.pricing-examples-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--text-meta);
}

.pricing-examples-table th {
    background: var(--color-bg-muted);
    font-weight: 700;
}

.pricing-examples-table tr:last-child td {
    border-bottom: none;
}

.pricing-examples-cards {
    display: none;
}

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

    .included-feature-grid .card {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 88px;
        text-align: center;
        font-weight: 600;
        padding: 16px;
    }

    .included-feature-grid h3 {
        margin: 0;
    }

.rate-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

    .rate-row span {
        color: var(--color-ink-soft);
    }

.small-note {
    margin-bottom: 0;
    font-size: var(--text-meta);
}

    .small-note a {
        color: var(--color-accent);
        font-weight: 600;
        text-decoration: underline;
    }

/* ---------------------------------------------------------------------
   Feature detail
--------------------------------------------------------------------- */

.feature-index-section {
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.feature-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

    .feature-index a {
        display: flex;
        align-items: center;
        min-height: 60px;
        padding: 14px 16px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        color: var(--color-accent);
        font-weight: 600;
    }

        .feature-index a:hover {
            border-color: var(--color-accent);
            background: var(--color-accent-soft);
        }

.feature-detail-section {
    scroll-margin-top: 88px;
}

.feature-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

    .feature-detail p {
        max-width: 620px;
        color: var(--color-ink-soft);
    }

.feature-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.pricing-hero .hero-copy:has(.feature-title-row) > .small-note,
.pricing-hero .hero-copy:has(.feature-title-row) > .hero-text {
    margin-left: 76px;
}

.feature-icon-large {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 1.6rem;
}

.feature-benefits {
    display: grid;
    padding: 0;
    margin: 0;
    list-style: none;
    align-content: start;
}

.feature-benefit-column h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.feature-detail-actions {
    margin-top: clamp(28px, 5vw, 48px);
}

    .feature-benefits li {
        position: relative;
        padding: 18px 0 18px 38px;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-ink-soft);
        font-weight: 500;
    }

        .feature-benefits li:first-child {
            border-top: 1px solid var(--color-border);
        }

        .feature-benefits li::before {
            content: "\2713";
            position: absolute;
            top: 18px;
            left: 0;
            display: grid;
            place-items: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--color-accent-soft);
            color: var(--color-accent);
            font-size: 0.8rem;
            font-weight: 800;
        }

/* ---------------------------------------------------------------------
   Contact / SignUp / CheckYourEmail
--------------------------------------------------------------------- */

.info-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

    .info-panel p {
        color: var(--color-ink-soft);
    }

.info-points {
    display: grid;
    gap: 14px;
}

    .info-points div {
        position: relative;
        padding: 20px 20px 20px 44px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .info-points div::before {
        content: "";
        position: absolute;
        top: 21px;
        left: 20px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-accent);
    }

    .info-points strong {
        display: block;
        margin-bottom: 6px;
        font-family: var(--font-display);
        font-size: 1.02rem;
        font-weight: 700;
    }

    .info-points p {
        margin: 0;
    }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.contact-form {
    position: relative;
    scroll-margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(26px, 4vw, 36px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-field,
.form-submit-row,
.form-status {
    display: grid;
    gap: 8px;
}

.form-field-full,
.form-submit-row,
.form-status {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    background: var(--color-surface);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

    .form-field input:focus-visible,
    .form-field textarea:focus-visible {
        outline: 3px solid var(--color-accent-soft);
        border-color: var(--color-accent);
    }

.form-field.is-invalid input,
.form-field.is-invalid textarea {
    border-color: var(--color-danger);
}

.field-error {
    display: none;
    margin: 0;
    color: var(--color-danger);
    font-size: var(--text-meta);
    font-weight: 600;
}

.form-field.is-invalid .field-error {
    display: block;
}

.field-hint {
    margin: 0;
    color: var(--color-ink-muted, var(--color-ink));
    font-size: var(--text-meta);
}

.field-optional {
    font-weight: 400;
    color: var(--color-ink-muted, var(--color-ink));
    font-size: var(--text-meta);
}

.form-privacy-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-ink-muted, var(--color-ink));
    font-size: var(--text-meta);
}

.roadmap-disclaimer-section {
    padding-top: 0;
    padding-bottom: clamp(32px, 5vw, 56px);
}

.roadmap-disclaimer {
    margin: 0;
    color: var(--color-ink-muted, var(--color-ink));
    font-size: var(--text-meta);
    font-style: italic;
}

.field-live {
    margin: 0;
    font-size: var(--text-meta);
    font-weight: 600;
    color: var(--color-accent);
}

.field-live:empty {
    display: none;
}

.password-field {
    position: relative;
    display: flex;
}

.password-field input {
    flex: 1;
    padding-right: 96px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-ink);
    font: inherit;
    font-size: var(--text-meta);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.password-toggle:focus-visible {
    outline: 3px solid var(--color-accent-soft);
    outline-offset: 2px;
}

.form-submit-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.form-status {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 600;
}

.form-status-error {
    background: color-mix(in srgb, var(--color-danger) 12%, transparent);
    color: var(--color-danger);
}

/* Honeypot field: hidden from sighted users and kept out of the tab order (tabindex="-1" on the
   input, see Contact.razor), but still present in the DOM/accessibility tree rather than
   display:none/type="hidden" so unsophisticated bots that scrape and fill every visible-looking
   field still populate it. Real visitors never encounter it. */
.form-field-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------- */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 10px;
}

    .faq-list details {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
    }

    .faq-list summary {
        cursor: pointer;
        padding: 18px 20px;
        font-weight: 600;
    }

    .faq-list details[open] summary {
        color: var(--color-accent);
    }

    .faq-list p {
        margin: 0;
        padding: 0 20px 20px;
        color: var(--color-ink-soft);
    }

/* ---------------------------------------------------------------------
   Legal
--------------------------------------------------------------------- */

.legal-hero {
    padding-bottom: 0;
    background: var(--color-bg);
}

.legal-updated {
    margin: 12px 0 0;
    color: var(--color-ink-soft);
    font-size: var(--text-meta);
}

.legal-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.legal-toc {
    flex: 0 0 220px;
    position: sticky;
    top: 24px;
}

    .legal-toc ul {
        margin: 8px 0 0;
        padding: 0;
        list-style: none;
        color: var(--color-ink-soft);
        font-size: var(--text-meta);
    }

    .legal-toc li + li {
        margin-top: 4px;
    }

    .legal-toc a {
        color: var(--color-accent);
    }

.legal-related {
    max-width: 720px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

    .legal-related ul {
        margin: 8px 0 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .legal-related a {
        color: var(--color-accent);
        font-weight: 600;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

        .legal-related a:hover,
        .legal-related a:focus-visible {
            text-decoration-thickness: 2px;
        }

@media (max-width: 900px) {
    .legal-layout {
        flex-direction: column;
        gap: 24px;
    }

    .legal-toc {
        position: static;
    }
}

.legal-content {
    max-width: 720px;
}

    .legal-content h2 {
        margin-top: 40px;
        margin-bottom: 14px;
        font-size: 1.3rem;
    }

        .legal-content h2:first-child {
            margin-top: 0;
        }

    .legal-content p {
        margin: 0 0 16px;
        color: var(--color-ink-soft);
    }

    .legal-content ul,
    .legal-content ol {
        margin: 0 0 16px;
        padding-left: 22px;
        color: var(--color-ink-soft);
    }

    .legal-content li {
        margin-bottom: 6px;
    }

    .legal-content a {
        color: var(--color-accent);
        text-decoration: underline;
    }

    .legal-content table {
        width: 100%;
        margin: 0 0 24px;
        border-collapse: collapse;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .legal-content th,
    .legal-content td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
    }

    .legal-content th {
        background: var(--color-bg-muted);
        font-weight: 700;
    }

    .legal-content tr:last-child td {
        border-bottom: none;
    }

.legal-modal {
    width: min(720px, calc(100vw - 40px));
    max-height: min(80vh, 900px);
    padding: 32px clamp(20px, 4vw, 40px);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    color: var(--color-ink);
}

    .legal-modal::backdrop {
        background: rgba(15, 15, 20, 0.5);
    }

    .legal-modal .legal-content {
        max-width: none;
    }

.legal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .legal-modal-header h2 {
        margin: 0;
        font-size: 1.3rem;
    }

.legal-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-bg-muted);
    color: var(--color-ink-soft);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

    .legal-modal-close:hover {
        background: var(--color-border);
        color: var(--color-ink);
    }

.legal-modal-body {
    margin-top: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

/* ---------------------------------------------------------------------
   Simple pages (Error / NotFound)
--------------------------------------------------------------------- */

.plain-page {
    padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px);
    background: var(--color-bg);
    min-height: 60vh;
}

    .plain-page h1,
    .plain-page h3 {
        margin-bottom: 12px;
    }

    .plain-page p {
        color: var(--color-ink-soft);
        max-width: 520px;
    }

    .plain-page a {
        color: var(--color-accent);
        text-decoration: underline;
    }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */

.site-footer {
    padding: 54px clamp(20px, 5vw, 72px) 28px;
    color: var(--color-dark-ink);
    background: var(--color-dark);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.footer-brand p {
    max-width: 280px;
    color: var(--color-dark-ink-soft);
}

.footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-mark {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    flex: 0 0 64px;
}

    .footer-brand-mark img {
        display: block;
        width: auto;
        max-width: none;
        height: 64px;
    }

.footer-brand-name {
    color: var(--color-dark-ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

    .footer-links h2 {
        margin-bottom: 14px;
        color: var(--color-dark-ink-soft);
        font-family: var(--font-display);
        font-size: var(--text-label);
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
        color: var(--color-dark-ink-soft);
    }

        .footer-links a:hover {
            color: var(--color-dark-ink);
        }

.footer-bottom {
    width: min(1160px, 100%);
    margin: 42px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--color-dark-border);
    color: var(--color-dark-ink-soft);
    font-size: var(--text-meta);
}

/* ---------------------------------------------------------------------
   Signup journey (simplified header/panel/footer — deliberately not the
   full marketing chrome, so the signup form is the one dominant action)
--------------------------------------------------------------------- */

.signup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.signup-header-login {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: var(--text-meta);
}

    .signup-header-login .login-link {
        font-weight: 700;
        color: var(--color-accent);
        text-decoration: underline;
    }

.signup-main {
    display: flex;
    justify-content: center;
    padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 40px);
    background: var(--color-bg-muted);
    min-height: calc(100vh - 160px);
}

.signup-panel-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.signup-panel {
    width: 100%;
    max-width: 640px;
    display: grid;
    gap: 28px;
}

.signup-panel-intro h1 {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    margin-bottom: 10px;
}

.signup-reassurance-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: var(--color-ink-soft);
    font-size: var(--text-meta);
}

    .signup-reassurance-list li {
        padding-left: 22px;
        position: relative;
    }

    .signup-reassurance-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--color-accent);
        font-weight: 700;
    }

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

.signup-submit-block {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    justify-items: start;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.signup-trial-note {
    margin: 0;
    font-size: var(--text-meta);
    color: var(--color-ink-soft);
    width: 100%;
}

    .signup-trial-note strong {
        color: var(--color-ink);
    }

.signup-confirmation-note {
    margin: 0;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--color-bg-muted);
    font-size: var(--text-meta);
    color: var(--color-ink-soft);
}

    .signup-confirmation-note strong {
        color: var(--color-ink);
    }

.signup-submit-block .button-large {
    width: 100%;
}

@media (min-width: 640px) {
    .signup-submit-block .button-large {
        width: auto;
        min-width: 220px;
    }
}

.signup-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
}

    .signup-fieldset + .signup-fieldset {
        padding-top: 22px;
        border-top: 1px solid var(--color-border);
    }

    .signup-fieldset legend {
        grid-column: 1 / -1;
        padding: 0 0 4px;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1rem;
        color: var(--color-ink);
    }

.signup-footer {
    padding: 24px clamp(20px, 5vw, 72px);
    text-align: center;
    color: var(--color-ink-soft);
    font-size: var(--text-meta);
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
}

    .signup-footer a {
        margin-left: 6px;
        color: var(--color-accent);
        text-decoration: underline;
    }

/* ---------------------------------------------------------------------
   Homepage trust/reassurance section
--------------------------------------------------------------------- */

.trust-section {
    background: var(--color-bg-muted);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.trust-card {
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

    .trust-card h3 {
        margin: 0 0 10px;
        font-size: 1.05rem;
    }

    .trust-card p {
        margin: 0 0 12px;
        color: var(--color-ink-soft);
    }

    .trust-card a {
        color: var(--color-accent);
        font-weight: 600;
        text-decoration: underline;
    }

.trust-terms-note {
    margin: 14px 0 0;
    color: var(--color-ink-soft);
}

    .trust-terms-note a {
        color: var(--color-accent);
        font-weight: 600;
        text-decoration: underline;
    }

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
        gap: 16px;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav,
    .header-actions {
        display: none;
    }

    .site-header.nav-open .site-nav,
    .site-header.nav-open .header-actions {
        display: flex;
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .site-header.nav-open .site-nav {
        flex-direction: column;
        gap: 6px;
        padding-top: 12px;
    }

        .site-header.nav-open .site-nav a,
        .site-header.nav-open .login-link,
        .site-header.nav-open .button {
            width: 100%;
            justify-content: flex-start;
            padding: 13px 0;
        }

    .site-header.nav-open .header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pricing-hero-grid,
    .two-column,
    .pricing-panel,
    .estimator-grid,
    .pricing-card-grid,
    .faq-grid,
    .feature-detail,
    .info-panel,
    .contact-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .benefit-grid,
    .feature-index,
    .included-feature-grid,
    .estimate-result {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid > .card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    .card-grid > .card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
        max-width: calc(50% - 9px);
        margin: 0 auto;
    }

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

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

    .timeline-steps li:nth-child(2)::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .pricing-hero .hero-copy:has(.feature-title-row) > .small-note,
    .pricing-hero .hero-copy:has(.feature-title-row) > .hero-text {
        margin-left: 0;
    }

    .site-header {
        min-height: 64px;
        padding: 12px 18px;
    }

    .section,
    .section-band {
        padding-left: 18px;
        padding-right: 18px;
    }

    h1 {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
    }

    /* Homepage hero headline: the generic h1 rule above (used by page heroes with a
       single short line of copy) is still too large here — at 320-430px width it can
       dominate the initial viewport and push the primary CTA below the fold. Scale it
       down further and tighten the line-height specifically for the hero. */
    .hero h1 {
        font-size: clamp(1.7rem, 8.2vw, 2.35rem);
        line-height: 1.15;
    }

    .hero-content .hero-text {
        margin-top: 14px;
        font-size: 1rem;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .hero-shot-figure {
        margin-top: 28px;
    }

    .hero-actions,
    .header-actions {
        width: 100%;
    }

        .hero-actions .button {
            width: 100%;
        }

    .pricing-hero-grid,
    .estimator-grid,
    .pricing-card-grid,
    .faq-grid,
    .feature-detail,
    .info-panel,
    .contact-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .benefit-grid,
    .feature-index,
    .steps,
    .timeline-steps,
    .footer-links,
    .included-feature-grid,
    .estimate-result {
        grid-template-columns: 1fr;
    }

    .timeline-steps {
        gap: 28px;
    }

    .timeline-steps li::before {
        display: none;
    }

    .card-grid > .card:last-child:nth-child(2n + 1) {
        max-width: none;
    }

    .employee-input-row,
    .rate-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .pricing-examples-table table {
        display: none;
    }

    .pricing-examples-cards {
        display: grid;
        gap: 12px;
    }

    .pricing-example-card {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 18px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
    }

        .pricing-example-card span {
            color: var(--color-ink-soft);
        }
}

/* ---------------------------------------------------------------------
   Signup form — narrow mobile widths (ticket: stack name fields, ease up
   on the password toggle, tidy panel padding). Scoped below ~480px so the
   existing two-column desktop/tablet layout (including at 640px, which
   still has room for First name / Last name side by side) is untouched.
--------------------------------------------------------------------- */

@media (max-width: 480px) {
    .signup-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .signup-form.contact-form {
        padding: 20px 16px;
        gap: 16px;
    }

    /* First name / Last name stack vertically below ~480px instead of staying
       cramped side-by-side; every other fieldset here is already form-field-full
       (single column) so this only affects the name row. */
    .signup-fieldset {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* The visible "Show password"/"Hide password" text label is kept (rather than
       switched to an icon-only control) so its purpose stays unambiguous, but on
       very narrow screens it needs more reserved space so it doesn't crowd the
       last few characters a user is typing, while still leaving a usable text
       entry width. */
    .password-field input {
        padding-right: 104px;
    }

    .password-toggle {
        padding: 6px 8px;
        font-size: 0.78rem;
    }
}
