/* Theme overlay styles — small additions on top of the design-system CSS. */

/* Accessible skip link */
.alttune-skip-link {
    position: absolute;
    top: -40px;
    left: 12px;
    z-index: 999;
    padding: 10px 16px;
    background: var(--rubber-black);
    color: var(--pure-white);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: top var(--dur-base) var(--ease-out);
}
.alttune-skip-link:focus {
    top: 12px;
    outline: 2px solid var(--performance-orange);
    outline-offset: 2px;
}

/* Screen-reader-only utility (mirrors WP's .screen-reader-text behavior) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: var(--pure-white);
    clip: auto !important;
    -webkit-clip-path: none;
            clip-path: none;
    color: var(--rubber-black);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: 1.2;
    padding: 12px 20px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* .at-container, .at-section sizing rules live in tokens.css under
   "LAYOUT TOKENS". Do not redefine here — override --at-gutter /
   --at-section-y instead. */

.at-page-hero { padding: 96px 0; background: var(--bg-subtle); }
.at-page-hero.is-light { color: var(--fg-1); }
.at-page-hero.is-dark { background: var(--bg-inverse); color: var(--fg-on-dark-1); }

/* .at-prose: opt-in narrow column for article body copy (~70ch).
   Use ONLY when the content is hand-written prose — never wrap plugin
   shortcodes / widgets in this, or their tables/grids will be squeezed. */
.at-prose { max-width: 70ch; }
.at-prose p { margin: 0 0 1em; }
.at-prose h2 { font-family: var(--font-display); font-size: var(--fs-h2); margin: 1.6em 0 0.4em; }
.at-prose h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin: 1.4em 0 0.4em; }
.at-prose a { color: var(--performance-orange); text-decoration: underline; }
.at-prose ul, .at-prose ol { padding-left: 1.4em; margin: 0 0 1em; }

/* .alttune-page-content: full container-width wrapper used by page.php +
   _flexible-page.php fallback. Keeps reasonable text rhythm without
   constraining width — plugin output (e.g. alttune-vehicles table,
   alttune-lead quiz) can render at its natural width. */
.alttune-page-content { line-height: var(--lh-normal); margin-top: 24px; }
.alttune-page-content > p { margin: 0 0 1em; }
.alttune-page-content > h2 { font-family: var(--font-display); font-size: var(--fs-h2); margin: 1.6em 0 0.4em; }
.alttune-page-content > h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin: 1.4em 0 0.4em; }
.alttune-page-content > ul,
.alttune-page-content > ol { padding-left: 1.4em; margin: 0 0 1em; }
.alttune-page-content > a { color: var(--performance-orange); }

.at-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.at-card {
    background: var(--pure-white);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--dur-base) var(--ease-out);
}
.at-card:hover { box-shadow: var(--shadow-2); }
.at-card-media { display: block; margin: -24px -24px 16px; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.at-card-media img { width: 100%; height: auto; display: block; }
.at-card-title { font-family: var(--font-display); font-size: var(--fs-h4); margin: 0 0 8px; }
.at-card-title a { color: inherit; text-decoration: none; }
.at-card-title a:hover { color: var(--performance-orange); }
.at-card-excerpt { color: var(--fg-2); margin: 0 0 16px; }
.at-card-link { color: var(--performance-orange); font-weight: 700; text-decoration: none; }
.at-card-link:hover { text-decoration: underline; }

.at-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.at-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.at-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .at-cards-grid--2, .at-cards-grid--3, .at-cards-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Text + image flex layout */
.at-textimage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.at-textimage-media img { width: 100%; height: auto; border-radius: var(--radius-md); }
.at-textimage--reverse .at-textimage-grid { /* image-text uses same grid; reverse via order */ }
@media (max-width: 900px) {
    .at-textimage-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Stats */
.at-stats-grid {
    list-style: none; padding: 0; margin: 32px 0 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px;
}
.at-stat-num { font-family: var(--font-display); font-size: var(--fs-display-2); line-height: 1; color: var(--performance-orange); }
.at-stat-lbl { font-weight: 700; margin-top: 8px; }
.at-stat-sub { color: var(--fg-2); font-size: var(--fs-body-sm); }
/* Phones: drop the auto-fit grid to a clean 2-up, then a single column on
   small phones (Samsung S21/S26 ~360–412px) so the big numbers + labels keep
   their own row instead of being squished into cramped columns. */
@media (max-width: 768px) {
  .at-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; margin-top: 24px; }
}
@media (max-width: 430px) {
  .at-stats-grid { grid-template-columns: 1fr; }
}

/* Pagination */
.at-pagination { margin-top: 48px; }
.at-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 4px;
    border: 1px solid var(--border-1); border-radius: var(--radius-md);
    color: var(--fg-1); text-decoration: none;
}
.at-pagination .page-numbers.current,
.at-pagination .page-numbers:hover {
    background: var(--rubber-black); color: var(--pure-white); border-color: var(--rubber-black);
}

/* Search form */
.at-search { display: flex; gap: 8px; max-width: 540px; }
.at-search input[type="search"] {
    flex: 1; padding: 12px 16px;
    border: 1px solid var(--border-1); border-radius: var(--radius-md);
    font-family: inherit; font-size: var(--fs-body);
    background: var(--pure-white);
}
.at-search input[type="search"]:focus { outline: 2px solid var(--performance-orange); outline-offset: 2px; }

/* Contact page */
.at-contact-grid-inner {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.at-contact-row { margin-bottom: 32px; }
.at-contact-row .at-eyebrow { margin-bottom: 6px; }
.at-contact-row a { color: var(--rubber-black); text-decoration: none; font-weight: 700; }
.at-contact-row a:hover { color: var(--performance-orange); }
@media (max-width: 900px) {
    .at-contact-grid-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================================
   WORDPRESS ADMIN BAR OFFSET
   When logged in WP injects a 32px (46px ≤ 782px) bar at top:0. Our nav
   and mobile-nav panel are position:fixed and would render behind it.
   `body.admin-bar` is added by core when the bar is shown — we offset
   everything fixed by the same amount so the layout stays coherent.
   ========================================================================= */
body.admin-bar .at-nav,
body.admin-bar .at-mobile-nav-panel { top: 32px; }
body.admin-bar .at-mobile-nav-scrim { top: 32px; }

/* Scroll-margin so anchor links don't land under the nav + admin bar */
body.admin-bar { scroll-padding-top: 96px; }

@media screen and (max-width: 782px) {
    body.admin-bar .at-nav,
    body.admin-bar .at-mobile-nav-panel { top: 46px; }
    body.admin-bar .at-mobile-nav-scrim { top: 46px; }
    body.admin-bar { scroll-padding-top: 110px; }
}

/* When the admin bar's responsive switch hides it altogether (≤ 600px in
   some setups) WP toggles `position: absolute` on #wpadminbar and removes
   the body offset — guard with a query that mirrors WP's own breakpoint. */
@media screen and (max-width: 600px) {
    body.admin-bar { position: static; }
}

/* =========================================================================
   MOBILE HAMBURGER MENU
   ========================================================================= */

/* Burger button — hidden on desktop, shown ≤ 1024px */
.at-nav-burger {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    padding: 0; margin: 0 0 0 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.at-nav-burger .bar {
    position: absolute;
    left: 11px; right: 11px;
    height: 2px;
    background: var(--rubber-black);
    border-radius: 2px;
    transition: transform 320ms cubic-bezier(.32,.72,0,1),
                opacity   220ms ease,
                top       320ms cubic-bezier(.32,.72,0,1),
                background-color 200ms ease;
}
/* Default (transparent nav over a dark hero, not scrolled): bars are white so
   they stay visible over the photo — mirrors the white wordmark/links default.
   Light-hero pages opt into the dark variant (bad-nav-light / at-nav-on-light /
   bad-ecu-quiz-open), whose higher-specificity rules force the bars black. */
.at-nav:not(.is-scrolled) .at-nav-burger .bar { background: #ffffff; }
.at-nav-burger .bar-1 { top: 15px; }
.at-nav-burger .bar-2 { top: 21px; }
.at-nav-burger .bar-3 { top: 27px; }

/* Open state: hamburger → X */
body.at-mobile-open .at-nav-burger .bar-1 { top: 21px; transform: rotate(45deg); }
body.at-mobile-open .at-nav-burger .bar-2 { opacity: 0; transform: scaleX(0); }
body.at-mobile-open .at-nav-burger .bar-3 { top: 21px; transform: rotate(-45deg); }
body.at-mobile-open .at-nav-burger .bar   { background: var(--rubber-black); }

/* Mobile panel container */
.at-mobile-nav {
    position: fixed; inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}
body.at-mobile-open .at-mobile-nav { pointer-events: auto; visibility: visible; }

/* Scrim */
.at-mobile-nav-scrim {
    position: absolute; inset: 0;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 320ms cubic-bezier(.32,.72,0,1);
    cursor: pointer;
}
body.at-mobile-open .at-mobile-nav-scrim { opacity: 1; }

/* Slide-in panel — right side, full-height */
.at-mobile-nav-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 90vw);
    background: var(--pure-white);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 420ms cubic-bezier(.32,.72,0,1);
    display: flex; flex-direction: column;
    overflow: hidden;
}
body.at-mobile-open .at-mobile-nav-panel { transform: translateX(0); }

/* Panel header (logo + close) */
.at-mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-1);
    flex-shrink: 0;
}
.at-mobile-nav-brand img { height: 22px; width: auto; display: block; }
.at-mobile-nav-close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    color: var(--rubber-black);
    cursor: pointer;
    transition: background-color 160ms ease;
}
.at-mobile-nav-close:hover { background: var(--bg-subtle); }

/* Scrollable body */
.at-mobile-nav-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 22px 32px;
}

.at-mobile-nav-items {
    list-style: none;
    padding: 0; margin: 0;
}
.at-mobile-nav-item {
    position: relative;
    border-bottom: 1px solid var(--border-2);
}
.at-mobile-nav-item:last-child { border-bottom: 0; }
.at-mobile-nav-item > a,
.at-mobile-nav-link {
    display: flex; align-items: center;
    flex: 1 1 auto;
    padding: 16px 4px;
    background: transparent;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.005em;
    color: var(--rubber-black);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* Parent row: label link + chevron-only toggle side by side */
.at-mobile-nav-row {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}
.at-mobile-nav-toggle {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    padding: 16px 4px 16px 14px;
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--fg-3);
    -webkit-tap-highlight-color: transparent;
}
.at-mobile-nav-link:hover { color: var(--performance-orange); }
.at-mobile-nav-toggle .chev {
    transition: transform 280ms cubic-bezier(.32,.72,0,1);
    color: var(--fg-3);
}
.at-mobile-nav-item.is-open .at-mobile-nav-toggle .chev { transform: rotate(180deg); }

/* Sub-list (accordion) */
.at-mobile-nav-sub {
    list-style: none;
    padding: 0 0 0 12px; margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 360ms cubic-bezier(.32,.72,0,1);
}
.at-mobile-nav-item.is-open > .at-mobile-nav-sub { max-height: 640px; }
.at-mobile-nav-sub li { border-top: 1px solid var(--border-2); }
.at-mobile-nav-sub a {
    display: block;
    padding: 13px 4px 13px 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--fg-1);
    text-decoration: none;
}
.at-mobile-nav-sub a:hover { color: var(--performance-orange); }

/* Utility nav block */
.at-mobile-nav-utility {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-2);
}
.at-mobile-nav-utility ul { list-style: none; padding: 0; margin: 0; }
.at-mobile-nav-utility a {
    display: block;
    padding: 12px 4px;
    font-size: 14px;
    color: var(--fg-2);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.at-mobile-nav-utility a:hover { color: var(--rubber-black); }

/* Footer (login + CTA) */
.at-mobile-nav-foot {
    flex-shrink: 0;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--border-1);
    background: var(--bg-subtle);
    display: flex; flex-direction: column; gap: 10px;
}
.at-mobile-nav-login {
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: var(--rubber-black);
    text-decoration: none;
    border-radius: var(--radius-md);
}
.at-mobile-nav-login:hover { color: var(--performance-orange); }
.at-mobile-nav-cta { justify-content: center; }

/* Stagger items on open */
@keyframes at-mobile-item-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
body.at-mobile-open .at-mobile-nav-item,
body.at-mobile-open .at-mobile-nav-utility li {
    animation: at-mobile-item-in 420ms cubic-bezier(.32,.72,0,1) both;
}
body.at-mobile-open .at-mobile-nav-item:nth-child(1)  { animation-delay: 140ms; }
body.at-mobile-open .at-mobile-nav-item:nth-child(2)  { animation-delay: 200ms; }
body.at-mobile-open .at-mobile-nav-item:nth-child(3)  { animation-delay: 260ms; }
body.at-mobile-open .at-mobile-nav-item:nth-child(4)  { animation-delay: 320ms; }
body.at-mobile-open .at-mobile-nav-utility li:nth-child(1) { animation-delay: 380ms; }
body.at-mobile-open .at-mobile-nav-utility li:nth-child(2) { animation-delay: 420ms; }

/* Lock body scroll while menu is open */
body.at-mobile-open {
    overflow: hidden;
    touch-action: none;
}

/* The mobile-only right-side group (login + search + burger). Hidden on
   desktop so it never affects the desktop space-between layout. */
.at-nav-mobile-actions { display: none; }
.at-nav-login--mobile  { display: none; }

/* Show burger + the mobile actions group + hide desktop nav blocks ≤ 1024px */
@media (max-width: 1024px) {
    .at-nav-burger     { display: block; }
    .at-nav-links      { display: none; }
    .at-nav-actions    { display: none; }

    /* Group login + search + burger and push them to the far right. */
    .at-nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }
    .at-nav-login--mobile { display: inline-flex; align-items: center; }
    /* Burger + search sit inside the flex group now — drop their standalone
       margins so the gap controls spacing evenly. */
    .at-nav-mobile-actions .at-nav-burger { margin-left: 0; }
    .at-nav-mobile-actions .at-nav-search-toggle--mobile { margin-right: 0; }
}
@media (max-width: 540px) {
    .at-mobile-nav-panel { width: 100vw; }
    .at-nav-inner { padding-left: 16px; padding-right: 16px; }
}

/* Cloneable ECUs — column-toggle dropdown must be hidden until opened.
   The extracted design CSS doesn't include the default-hidden rule because
   the React source conditionally rendered the element. We toggle .is-open
   from JS, so we add the visibility rules here. */
.ce-col-menu,
.col-menu { display: none; }
.ce-col-menu.is-open,
.col-menu.is-open { display: block; }

/* =========================================================================
   NAV ON LIGHT HERO
   When a page hero uses a light/white background, force the nav into its
   dark variant from page load (otherwise its default white wordmark sits
   invisible on white). Opt-in via `body.at-nav-on-light`.
   ========================================================================= */
body.at-nav-on-light .at-nav-inner,
body.at-nav-on-light .at-nav.is-scrolled .at-nav-inner {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
body.at-nav-on-light .at-nav-brand .dark-mark  { opacity: 0; }
body.at-nav-on-light .at-nav-brand .light-mark { opacity: 1; }
body.at-nav-on-light .at-nav-links a,
body.at-nav-on-light .at-nav-utility a,
body.at-nav-on-light .at-nav-login,
body.at-nav-on-light .at-nav .at-nav-search-toggle,
body.at-nav-on-light .at-nav .at-nav-burger .bar { color: var(--rubber-black); }
body.at-nav-on-light .at-nav .at-nav-burger .bar { background: var(--rubber-black); }
body.at-nav-on-light .at-nav-links a:hover { color: var(--performance-orange); }

/* Focus visibility — never remove */
:focus-visible { outline: 2px solid var(--performance-orange); outline-offset: 2px; }

/* =========================================================================
   RESPONSIVE TYPOGRAPHY + MOBILE LAYOUT GUARDS
   ========================================================================= */

/* Global overflow guards — prevent horizontal scrolling from oversized photos
   or absolutely-positioned hero content escaping the viewport on small screens. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }

/* Tablet (≤ 1024px) — gentler tightening so layout still feels desktop-ish. */
@media (max-width: 1024px) {
    :root {
        --fs-display-1: 64px;
        --fs-display-2: 48px;
        --fs-h1: 40px;
        --fs-h2: 32px;
        --fs-h3: 26px;
    }
}

/* Compact range (≤ 1100 px) — workflow card stacks vertically (illustration
   above, panel below). Below this width the 2-column desktop docking with
   the compound staircase notch cramps; the card becomes a plain rounded
   rect and the JS clip-path is bypassed by neutralizing it here. */
@media (max-width: 1100px) {
    .at-workflow-card {
        grid-template-columns: 1fr !important;
        aspect-ratio: auto !important;
        min-height: 0 !important;
        border-radius: clamp(14px, 3vw, 22px);
        overflow: hidden;
    }
    /* Bypass the JS-built clip path — at this width the panel stacks
       instead of docking, so a plain rounded rect reads better. */
    .at-workflow-card::before {
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
    .at-workflow-illu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 24px;
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
    .at-workflow-panel {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        -webkit-mask: none !important;
                mask: none !important;
        padding: 0;
    }
    /* Centered panel content for small-laptop / tablet too */
    .at-workflow-panel-inner {
        align-items: center;
        text-align: center;
    }
    .at-workflow-title    { justify-content: center; text-align: center; }
    .at-workflow-reviews  { justify-content: center; }
    .at-workflow-cta      { align-self: center !important; }
}

/* Phone (≤ 720px) — bigger drops, tighter line-heights, reduce section padding. */
@media (max-width: 720px) {
    :root {
        --fs-display-1: 44px;
        --fs-display-2: 36px;
        --fs-h1: 30px;
        --fs-h2: 26px;
        --fs-h3: 22px;
        --fs-h4: 19px;
        --fs-h5: 17px;
        --fs-body-lg: 16px;
        --space-9: 64px;
        --space-8: 48px;
    }
    /* .at-section paddings driven by --at-section-y (tokens.css) */
    .at-page-hero        { padding: 56px 0; }

    /* Hero photo strip / cards layouts handled in styles.css.
       Force two-column grids to single column on tiny screens. */
    .at-textimage-grid,
    .at-contact-grid-inner,
    .results-shell,
    .ship-shell,
    .help-grid,
    .contact-shell,
    .cs-content,
    .openings-grid,
    .at-stats {
        grid-template-columns: 1fr !important;
        display: grid;
        gap: 24px;
    }

    /* Stat blocks — wrap at 2 columns on phones instead of 4 */
    .at-stats { grid-template-columns: repeat(2, 1fr) !important; }

    /* Container side padding driven by --at-gutter (tokens.css) */

    /* Prevent very long titles from breaking the layout */
    h1, h2, h3, .display-1, .display-2,
    .at-hero-title, .at-page-hero-title,
    .careers-hero h1, .contact-hero-head h1 {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Tables become scrollable instead of squishing */
    .ce-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ce-table      { min-width: 540px; }

    /* Cards grid reflows */
    .at-card-grid,
    .at-cards-grid--2,
    .at-cards-grid--3,
    .at-cards-grid--4 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Pwork + news grids */
    .pwork-grid, .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Workflow card on phones: stack the illustration above the panel.
       The clip-path stays — main.js detects mobile width and switches to
       a single-step path (instead of the desktop 3-step compound). */
    .at-workflow-card {
        grid-template-columns: 1fr !important;
        aspect-ratio: auto !important;
        min-height: 0 !important;
    }
    .at-workflow-card::before { /* keep the silhouette clipped */ }
    .at-workflow-illu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 16px;
    }
    .at-workflow-panel {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        -webkit-mask: none !important;
                mask: none !important;
        padding: 24px;
    }
    /* Bigger, readable, centered panel text on mobile */
    .at-workflow-panel-inner {
        padding: 28px 20px 32px !important;
        gap: 14px;
        align-items: center;
        text-align: center;
    }
    .at-workflow-title {
        font-size: 26px !important;
        line-height: 1.05 !important;
        justify-content: center;     /* it's a flex row internally */
        text-align: center;
    }
    .at-workflow-wave { width: 78px; height: 18px; }
    .at-workflow-pill { width: 72px; height: 22px; }
    .at-workflow-reviews { font-size: 14px !important; justify-content: center; }
    .at-workflow-cta { align-self: stretch !important; justify-content: center; }

    /* Page hero card on plain variant: smaller meta */
    .at-page-hero-meta { gap: 20px; }

    /* Buttons that get cramped */
    .at-btn { padding: 12px 18px; }
}

/* Tiny phones (≤ 380px) — make sure even the longest CTA labels don't push out. */
@media (max-width: 380px) {
    :root {
        --fs-display-1: 36px;
        --fs-display-2: 30px;
        --fs-h1: 26px;
    }
    /* Container side padding driven by --at-gutter (tokens.css) */
}

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