/* ============================================= */
/* Font Face Declarations                        */
/* ============================================= */
@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-Light.woff2') format('woff2'),
         url('assets/fonts/Athletics-Light.woff') format('woff'),
         url('assets/fonts/Athletics-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-Regular.woff2') format('woff2'),
         url('assets/fonts/Athletics-Regular.woff') format('woff'),
         url('assets/fonts/Athletics-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-Medium.woff2') format('woff2'),
         url('assets/fonts/Athletics-Medium.woff') format('woff'),
         url('assets/fonts/Athletics-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-Bold.woff2') format('woff2'),
         url('assets/fonts/Athletics-Bold.woff') format('woff'),
         url('assets/fonts/Athletics-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-ExtraBold.woff2') format('woff2'),
         url('assets/fonts/Athletics-ExtraBold.woff') format('woff'),
         url('assets/fonts/Athletics-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('assets/fonts/Athletics-Black.woff2') format('woff2'),
         url('assets/fonts/Athletics-Black.woff') format('woff'),
         url('assets/fonts/Athletics-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('assets/fonts/Aspekta-400.woff2') format('woff2'),
         url('assets/fonts/Aspekta-400.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('assets/fonts/Aspekta-500.woff2') format('woff2'),
         url('assets/fonts/Aspekta-500.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('assets/fonts/Aspekta-600.woff2') format('woff2'),
         url('assets/fonts/Aspekta-600.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('assets/fonts/Aspekta-700.woff2') format('woff2'),
         url('assets/fonts/Aspekta-700.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================= */
/* Tokens                                        */
/* ============================================= */
:root {
    /* Colors */
    --beige-light: #f6f6ee;
    --light-green: #caf9b0;
    --black: #1d1f1a;
    --dark-gray: #5c5c5c;
    --white: #fffffd;
    --primary: #a7f67b;
    --dark-green-text: #337211;
    --nav-pill-bg: #edebe0;

    /* Typography */
    --font-sans: 'Aspekta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Athletics', 'Aspekta', sans-serif;

    /* Shared sizes */
    --radius-card: 18px;
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --store-btn-width: 240px;
    --store-btn-width-md: 200px;
    --store-btn-width-sm: 165px;
    --logo-width: 200px;

    /*
     * Breakpoints (Bootstrap-aligned). Documented source of truth for the site.
     * Plain CSS cannot use var() inside @media — use these same pixel values
     * in media queries: sm 576 / md 768 / lg 992 / xl 1200 / xxl 1400.
     */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    --bp-xxl: 1400px;
}

/* ============================================= */
/* Reset and Base                                */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--beige-light);
    background-image: url('img/blurs.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    color: var(--black);
    line-height: 1.5;
}

/* Text links — dark green + underline site-wide */
a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

a:hover {
    color: var(--black);
}

/* Custom margin utilities */
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mt-6 { margin-top: 4rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.mt-7 { margin-top: 6rem !important; }
.mb-7 { margin-bottom: 6rem !important; }
.mt-8 { margin-top: 8rem !important; }
.mb-8 { margin-bottom: 8rem !important; }
.mt-9 { margin-top: 12rem !important; }
.mb-9 { margin-bottom: 12rem !important; }

.u-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================= */
/* Typography                                    */
/* ============================================= */
h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
    margin: 24px auto 0;
    max-width: 100%;
    text-align: center;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
    text-wrap: pretty;
    margin-bottom: 16px;;
}

h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--dark-gray);
    margin: 16px 0 0;
    text-align: center;
    text-wrap: pretty;
}

p {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0 0 16px 0;
    text-align: center;
}

ul,
ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

ul li,
ol li {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

/* Section headings — between h1 and h2 in the type scale */
.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
    margin: 24px auto 0;
    max-width: 100%;
    text-align: center;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 46px;
    }
}

/* ============================================= */
/* Header */
/* ============================================= */
.logo {
    position: relative;
    display: inline-block;
    height: auto;
    width: 50%;
    color: inherit;
    text-decoration: none;
}

.logo:hover {
    color: inherit;
}

.logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================= */
/* Site navigation */
/* ============================================= */
.site-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 12px 24px;
    border-radius: 9999px;
    background: var(--nav-pill-bg);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    list-style: none;
    margin: 16px 0 0;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--dark-green-text);
}

.site-nav a[aria-current="page"] {
    font-weight: 600;
}

.hero-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-nav .site-nav {
    flex-shrink: 0;
}

.hero-nav__logo-center {
    display: none;
}

/* Internal header: logo left | nav right (home keeps its own hero nav) */
.internal-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.internal-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.internal-header .logo,
.logo--small {
    width: auto;
    max-width: 145px;
    flex-shrink: 0;
}

.internal-header .site-nav {
    flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-gray);
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.breadcrumbs a:hover {
    color: var(--black);
}

.breadcrumbs__separator {
    color: var(--dark-gray);
    user-select: none;
}

.breadcrumbs [aria-current="page"],
.breadcrumbs .breadcrumbs__current {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
}

/* Mobile nav: hamburger + slide-in panel */
.mobile-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    border-radius: 8px;
}

.mobile-nav-toggle:hover {
    color: var(--dark-green-text);
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-nav-toggle__menu,
.mobile-nav-toggle__close {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-nav-toggle__close {
    display: none;
}

.mobile-nav-wrap.is-open .mobile-nav-toggle__menu {
    display: none;
}

.mobile-nav-wrap.is-open .mobile-nav-toggle__close {
    display: block;
}

/* Close button on the panel (same position as menu button, visible on top of panel) */
.mobile-nav-panel-close {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    border-radius: 8px;
}

.mobile-nav-panel-close:hover {
    color: var(--dark-green-text);
}

.mobile-nav-panel-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-nav-panel-close svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-nav-wrap.is-open .mobile-nav-panel-close {
        display: flex;
    }
    .mobile-nav-toggle {
        display: flex;
        margin-top: 12px;
    }

    /* Internal header: logo left, hamburger right */
    .internal-header__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .internal-header__row .mobile-nav-wrap {
        margin-left: auto;
    }

    /* Panel: slide in from right, frosted glass */
    .mobile-nav-wrap .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100%;
        margin: 0;
        padding: 2rem 1.5rem;
        padding-top: calc(1rem + 44px + 1rem);
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        backdrop-filter: blur(20px) saturate(150%);
        color: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.2s ease-out;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.25);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-wrap .site-nav a {
        padding: 14px 0;
        font-size: 20px;
        color: rgba(255, 255, 253, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-wrap .site-nav a:hover {
        color: var(--light-green);
    }

    .mobile-nav-wrap .site-nav a[aria-current="page"] {
        color: var(--light-green);
    }

    .mobile-nav-wrap .site-nav a:last-child {
        border-bottom: none;
    }

    .mobile-nav-wrap.is-open .site-nav {
        transform: translateX(0);
    }

    .mobile-nav-wrap.is-open .mobile-nav-panel-close {
        color: var(--white);
    }

    .mobile-nav-wrap.is-open .mobile-nav-panel-close:hover {
        color: var(--light-green);
    }

    /* Backdrop */
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease-out;
        z-index: 1000;
    }

    .mobile-nav-wrap.is-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 769px) {
    .mobile-nav-backdrop {
        display: none !important;
    }
    .mobile-nav-panel-close {
        display: none !important;
    }
}

/* Landing (hero): on mobile, logo centered + hamburger right */
@media (max-width: 768px) {
    .hero-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        margin-bottom: 1rem;

    }

    .hero-nav__logo-center {
        display: block;
        grid-column: 2;
        justify-self: center;
    }

    .hero-nav__logo-center .logo {
        margin-top: 16px;
        width: auto;
        max-width: 180px;
    }

    .hero-nav__logo-center .logo-img {
        width: 100%;
    }

    .hero-nav .mobile-nav-wrap {
        grid-column: 3;
        justify-self: end;
    }

    /* Hide the second-row logo on landing when on mobile (we show it in the top row) */
    .hero-container .container > .row:nth-child(2) .logo {
        display: none;
    }
}

@media (min-width: 576px) {
    .logo {
        width: var(--logo-width);
    }
}

/* ============================================= */
/* Shared — Store CTAs                           */
/* ============================================= */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 24px 2% 0;
    position: relative;
    left: auto;
    transform: none;
    top: auto;
}

.cta-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 2% 0;
    text-align: center;
}

.cta-coming-soon__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--dark-green-text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* .cta-coming-soon__pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(167, 246, 123, 0.22);
} */

.cta-coming-soon__sub {
    color: var(--dark-gray);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.cta-waitlist-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
    /* max-width: 320px; */
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.cta-waitlist-btn:hover {
    transform: translateY(-1px);
    background-color: var(--primary);
    color: var(--black);
}

.cta-waitlist-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

.cta-waitlist-btn:focus-visible {
    outline: 3px solid rgba(167, 246, 123, 0.65);
    outline-offset: 3px;
}

.cta-coming-soon--footer {
    margin: 0 2% 0;
}

.main-phone-screen {
    box-shadow: none;
    filter: drop-shadow(0 12px 60px rgba(205, 205, 180, 0.7));
    display: block; /* helps avoid inline-img baseline quirks */
    margin: 0 auto; /* keep centered inside text-center parent */
}

/* Both are flex items in .cta-buttons — width + min-width: 0 lets them shrink equally */
.app-store-btn {
    display: block;
    width: var(--store-btn-width);
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* google-play-btn lives inside .store-btn-wrap, so it fills the wrapper */
.google-play-btn {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-btn:hover,
.google-play-btn:hover {
    transform: scale(1.05);
}

.app-store-btn:active,
.google-play-btn:active {
    transform: scale(0.95);
}

/* Natural height — lets the overlay match the actual badge edges */
.app-store-btn img,
.google-play-btn img {
    width: 100%;
    height: auto;
    display: block;
}

/* Google Play "Coming for Android" wrapper */
.store-btn-wrap {
    position: relative;
    display: block;
    width: var(--store-btn-width);
    min-width: 0; /* allows equal flex-shrinking alongside .app-store-btn */
}

.store-btn-wrap--coming-soon {
    display: none;
}

.store-btn-wrap--coming-soon .google-play-btn {
    opacity: 0.45;
    filter: grayscale(55%);
    pointer-events: none;
    cursor: default;
    transform: none !important;
}

.store-btn-coming-soon-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(11, 11, 12, 0.7);
    border-radius: 12px;
    pointer-events: none;
}

/* ============================================= */
/* Pre-footer CTA (Home — above site footer)     */
/* ============================================= */
.prefooter-cta {
    padding: 48px 0 56px;
    text-align: center;
}

.prefooter-cta .section-title {
    margin-top: 0;
}

.prefooter-cta__avail {
    margin-top: 12px;
    color: var(--dark-gray);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
}

.prefooter-cta .cta-buttons {
    margin-top: 24px;
}

/* ============================================= */
/* Site footer (universal)                       */
/* Same markup site-wide; --no-stores hides      */
/* App Store badges when a giant CTA sits above. */
/* Breakpoints: md 768 (stack → row).            */
/* ============================================= */
.site-footer {
    display: block;
    width: 100%;
    padding: 0 0 48px;
    border-top: 0;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    border-top: 0;
    padding-top: 40px;
    position: relative;
}

/* Inset top rule to match .container content width (not edge-to-edge). */
.site-footer__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    height: 1px;
    background-color: #d9d9d9;
}

.site-footer__top {
    display: flex;
    flex-direction: column-reverse; /* Mobile: brand + stores above links */
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.site-footer__col a,
.site-footer__heading {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-gray);
}

.site-footer__col a {
    text-decoration: underline;
    text-underline-position: from-font;
    color: var(--dark-green-text);
}

.site-footer__col a:hover {
    color: var(--black);
}

.site-footer__heading {
    margin: 0;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.site-footer__logo {
    display: inline-block;
    width: 225px; /* Figma: 224.66 */
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.site-footer__logo:hover {
    color: inherit;
}

.site-footer__logo .logo-img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__stores {
    width: 100%;
}

.site-footer__stores .cta-buttons {
    justify-content: flex-start;
    margin: 0;
    gap: clamp(8px, 2.5vw, 16px);
    width: 100%;
    max-width: 100%;
}

/* Override global .app-store-btn / .store-btn-wrap (240px / 200px) —
   Figma badges are 165×48. Allow equal shrink on narrow viewports so
   the pair never overflows the footer. */
.site-footer__stores .app-store-btn,
.site-footer__stores .store-btn-wrap {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: var(--store-btn-width-sm);
}

.site-footer__stores .app-store-btn img,
.site-footer__stores .google-play-btn img {
    width: 100%;
    height: auto;
}

.site-footer--no-stores .site-footer__stores {
    display: none;
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px; /* Figma legal */
    line-height: 1.5;
    color: var(--dark-gray);
}

.site-footer__legal a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.site-footer__legal a:hover {
    color: var(--black);
}

@media (min-width: 768px) {
    .site-footer {
        padding: 0 0 80px;
    }

    .site-footer__inner {
        gap: 72px; /* Figma: badges bottom → legal ≈ 72px */
    }

    .site-footer__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .site-footer__nav {
        flex-direction: row;
        gap: 60px; /* Figma column gap */
    }

    .site-footer__col:first-child {
        width: 184px;
        min-width: 184px;
    }

    .site-footer__col:last-child {
        width: 174px;
        min-width: 174px;
    }

    .site-footer__brand {
        align-items: flex-end;
        gap: 32px; /* Figma logo → badges */
        flex-shrink: 0;
    }

    .site-footer__stores .cta-buttons {
        justify-content: flex-end;
    }

    .site-footer__legal {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 24px; /* Figma legal row gap */
        width: 100%;
        text-align: right;
    }
}

/* ============================================= */
/* Hero Section                                  */
/* ============================================= */
.hero-container {
    position: relative;
    background-color: transparent;
    background-image: none;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-container h3 {
    margin: 16px auto 0;
    width: 80%;
}

.hero-images-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    position: relative;
    /* Remove gap, handle overlap via margin */
}

.hero-images-mobile .phone-placeholder {
    position: relative;
    z-index: 2;
    margin-right: -20px; /* Adjust negative margin for desired overlap */
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-images-mobile .mobile-hero-img {
    position: relative;
    z-index: 1;
    width: 190px;
    /* Optionally add a little margin-left for fine-tuning */
}

.hero-images-mobile .phone-placeholder {
    width: 40%;
}

.hero-images-mobile .mobile-hero-img {
    width: 55%;
}

.hero-images-left,
.hero-images-right {
    position: relative;
    width:240px;
}

.hero-images-left img,
.hero-images-right img {
    width:100%;
    height: auto;
}

.hero-images-left {
    align-self: flex-start;
}

.hero-images-right {
    align-self: flex-start;
}

.hero-mobile-image {
    display: block;
    margin: 16px auto 0;
    width: 80%;
}

.hero-mobile-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================= */
/* Phone & Bullets (inside hero) */
/* ============================================= */



.phone-bullets-container {
    margin: 24px auto 0 !important;
    width: 100%;
}

.phone-bullets-container .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    margin-bottom: 32px;
}

.phone-bullets-container .feature-item:last-child {
    margin-bottom: 0;
}

.phone-bullets-container .phone-placeholder img {
    width: 200px;
    max-width: 200px;
}

.phone-bullets-container .main-phone-screen {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.phone-bullets-container h2 {
    font-size: 18px;
    margin-bottom: 4px;
    text-align: center;
}

.phone-bullets-container p {
    font-size: 13px;
    text-align: center;
    /* Prefer even line lengths when text wraps (avoids one-word “widow” lines). Chrome 114+, Safari 17.5+, Firefox 121+. */
    text-wrap: balance;
}

/* ============================================= */
/* Feature Section */
/* ============================================= */

.feature-content .feature-image {
    width:100%;
    
}

.feature-content p {
    text-align: left;
    margin:0;
}
.feature-image {
    width:100%;
}

/* ============================================= */
/* Professionals (home)                          */
/* Quieter than prefooter CTA so downloads win.  */
/* ============================================= */
.professionals-section {
    padding: 28px 0 8px;
}

.professionals-section__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
}

.professionals-section__body {
    margin: 10px auto 0;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--dark-gray);
}

.professionals-section__links {
    margin: 12px 0 0;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.professionals-section__links a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.professionals-section__links a:hover {
    color: var(--black);
}

.professionals-section__sep {
    margin: 0 0.5em;
    color: var(--dark-gray);
}

@media (min-width: 768px) {
    .professionals-section__title {
        font-size: 24px;
    }
}

/* ============================================= */
/* Pricing Table */
/* ============================================= */
.pricing-table-wrapper {
    overflow: hidden;
    background: var(--white);
    border: var(--border-subtle);
    border-radius: var(--radius-card);
}

.pricing-table {
    padding: 18px 16px;
}

.pricing-table-title {
    margin: 0 0 14px 0;
    font-size: 22px;
    text-wrap: pretty;
}

.pricing-header {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(246, 246, 238, 0.65);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.pricing-header-feature {
    /* Keep consistent header row height */
    padding: 12px 10px;
}

.pricing-coming {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(246, 246, 238, 0.65);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.pricing-header-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 12px 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-header-plan.premium {
    background: rgba(167, 246, 123, 0.20);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.plan-name {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.plan-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--dark-gray);
    margin-top: 2px;
}

.plan-price {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 4px;
}

/* Table Rows */
.pricing-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    /* Stretch cells so column backgrounds fill full row height */
    align-items: stretch;
    background: transparent;
}

.pricing-header > *,
.pricing-row > * {
    min-width: 0;
}

.pricing-row:nth-of-type(even) {
    background: rgba(0, 0, 0, 0.015);
}

.pricing-row:last-of-type {
    border-bottom: none;
}

.pricing-feature span {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--black);
    padding-right: 16px;
    display: block;
    margin-bottom: 4px;
}

.pricing-feature {
    font-size: 13px;
    font-weight: 400;
    color: var(--dark-gray);
    padding: 14px 12px;
}

.pricing-value {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-value.premium {
    background: rgba(167, 246, 123, 0.10);
}

/* Check and X Icons */
.check-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
}

.x-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #d9d9d2;
    border-radius: 50%;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* Text Values */
.text-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.text-value.highlight {
    font-weight: 600;
    color: var(--black);
}

/* Footer Notes */
.pricing-notes {
    margin-top: 24px;
    text-align: center;
}

.pricing-note {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.pricing-note-small {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

/* Responsive: stacked “comparison cards” on XS */
@media (max-width: 575.98px) {
    .pricing-table {
        padding: 14px 12px 10px;
    }

    .pricing-table-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .pricing-header {
        display: none;
    }

    .pricing-mobile-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border: var(--border-subtle);
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        background: rgba(246, 246, 238, 0.65);
        margin-bottom: 12px;
    }

    .pricing-mobile-header-plan {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 10px;
    }

    .pricing-mobile-header-plan.premium {
        background: rgba(167, 246, 123, 0.22);
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }

    .pricing-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "feature feature"
            "free premium";
        border: var(--border-subtle);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 12px;
        background: var(--white);
    }

    .pricing-row:nth-of-type(even) {
        background: var(--white);
    }

    .pricing-feature {
        grid-area: feature;
        padding: 14px 12px 10px;
        border-bottom: var(--border-subtle);
    }

    .pricing-row > .pricing-value {
        padding: 10px 12px 12px;
        border-left: none;
        flex-direction: column;
        gap: 8px;
    }

    .pricing-row > .pricing-value:not(.premium) {
        grid-area: free;
        border-right: var(--border-subtle);
    }

    .pricing-row > .pricing-value.premium {
        grid-area: premium;
        background: rgba(167, 246, 123, 0.12);
    }

    /* Labels are handled by the mobile header row */
    .pricing-row > .pricing-value::before {
        content: none;
    }

    .pricing-notes {
        margin-top: 14px;
    }
}

/* Hide the mobile header on non-XS */
@media (min-width: 576px) {
    .pricing-mobile-header {
        display: none;
    }
}

@media (min-width: 768px) {
    .pricing-feature span {
        font-size: 18px;
    }

    .pricing-feature {
        font-size: 14px;
    }
}


/* ============================================= */
/* Home — responsive (hero / CTAs / phone)       */
/* ============================================= */
@media (min-width: 576px) {
    .hero h3 {
        max-width: 300px;
    }

    .hero-images-mobile .phone-placeholder {
        width: 150px;
    }

    .hero-images-mobile .mobile-hero-img {
        width: 150px;
    }

    .cta-buttons {
        gap: 16px;
    }

    .cta-buttons .app-store-btn,
    .cta-buttons .store-btn-wrap {
        width: var(--store-btn-width-md);
    }

    .phone-bullets-container {
        margin: 24px auto 0;
        width: 100%;
    }

    .phone-bullets-container h2 {
        font-size: 28px;
    }

    .phone-bullets-container p {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .hero-images-desktop {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0;
        position: absolute;
        top: 120px;
        /*
         On ultra-wide screens, `left/right` + `space-between` pushes the
         images too far apart. Constrain the container and center it.
        */
        left: 50%;
        right: auto;
        width: min(1200px, calc(100% - 80px));
        transform: translateX(-50%);
        pointer-events: none;
    }

    .hero-images-left,
    .hero-images-right {
        width: 160px;
    }

    .hero-container h3 {
        width: 360px;
    }

    .hero-images-mobile {
        display: none;
    }

    /* Stretch side columns to the phone height, then center the bullets. */
    .phone-bullets-container {
        align-items: stretch !important;
    }

    .phone-bullets-container .phone-placeholder {
        position: relative;
        z-index: 2;
        margin-bottom: 0;
    }

    .phone-bullets-container > [class*="col-"]:not(.phone-placeholder) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 48px;
    }

    .phone-bullets-container .feature-item {
        margin-bottom: 0;
    }

    .hero-container + .container {
        padding-top: 16px;
    }

    .hero-container + .container > .row:first-child > [class*="col-"] {
        margin-top: 0 !important;
    }

    .phone-bullets-container h2 {
        font-size: 28px;
    }

    .phone-bullets-container p {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .hero-images-left,
    .hero-images-right {
        width: 240px;
    }
}

@media (min-width: 1200px) {
    .hero-images-left,
    .hero-images-right {
        width: 280px;
    }
}

/* ============================================= */
/* Legal Pages (Privacy Policy / Terms) */
/* ============================================= */
.legal-page {
    min-height: 100vh;
    background-color: transparent;
}

.legal-page .legal-top {
    padding-top: 28px;
    padding-bottom: 10px;
}

.legal-page .legal-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.legal-page .legal-home-link:hover {
    color: var(--black);
}

.legal-page .legal-content {
    padding-top: 10px;
    padding-bottom: 70px;
}

.legal-page .legal-card {
    background: var(--white);
    border: var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 22px 18px;
    /* Force left alignment inside legal content */
    text-align: left;
}

/* Ensure global centered typography doesn't leak into legal pages */
.legal-page .legal-card * {
    text-align: left;
}

.legal-page .legal-card h1 {
    font-weight: 900;
    letter-spacing: -0.2px;
    margin: 8px 0 14px;
    padding-bottom: 10px;
    border-bottom: var(--border-subtle);
}

.legal-page h1 {
    margin: 10px 0 10px;
}

.legal-page h2 { margin-top: 18px; }

.legal-page p {
    margin-bottom: 14px;
}

.legal-page .legal-meta {
    font-size: 14px;
    color: var(--dark-gray);
}

.legal-page .legal-meta strong {
    color: var(--black);
    font-weight: 700;
}

.legal-page .legal-section-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--black);
    margin: 22px 0 10px;
    padding: 10px 12px;
    /* border-left: 5px solid var(--primary); */
    background: rgba(246, 246, 238, 0.75);
    /* border-radius: 12px; */
    text-wrap: pretty;
}

.legal-page .legal-subsection-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--black);
    margin: 16px 0 10px;
    text-wrap: pretty;
}

.legal-page .legal-subsection-title + p {
    margin-top: 0;
}

.legal-page ol,
.legal-page ul {
    margin-top: 10px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.legal-page a:hover {
    color: var(--black);
}

@media (min-width: 768px) {
    .legal-page .legal-card {
        padding: 28px 26px;
    }
}

/* ============================================= */
/* Invite Page */
/* ============================================= */
.invite-page {
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.invite-hero {
    padding-top: 24px;
    padding-bottom: 16px;
}

.invite-hero .invite-logo {
    display: inline-block;
    width: 140px;
}

.invite-hero .invite-logo .logo-img {
    width: 100%;
    height: auto;
}

.invite-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 40px;
}

.invite-card {
    background: var(--white);
    border: var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.invite-card h1 {
    font-size: 24px;
    margin: 0 0 12px;
}

.invite-subtitle {
    font-size: 15px;
    color: var(--dark-gray);
    margin: 0 0 24px;
}

.invite-code {
    font-family: var(--font-display), monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--black);
    background: rgba(167, 246, 123, 0.25);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.invite-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.invite-row:last-of-type {
    margin-bottom: 0;
}

.invite-download-row {
    margin-top: 8px;
}

.invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.invite-btn-primary {
    background: var(--black);
    color: var(--white);
}

.invite-btn-primary:hover {
    background: var(--primary);
    color: var(--black);
}

.invite-btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: var(--black);
}

.invite-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.invite-btn:active {
    transform: scale(0.98);
}

.invite-btn:focus-visible {
    outline: 3px solid rgba(167, 246, 123, 0.65);
    outline-offset: 3px;
}

.invite-small {
    font-size: 13px;
    color: var(--dark-gray);
    margin: 20px 0 0;
}

.invite-footer {
    padding: 20px 16px 28px;
}

.invite-home-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.invite-home-link:hover {
    color: var(--black);
}

@media (min-width: 576px) {
    .invite-hero .invite-logo {
        width: 200px;
    }

    .invite-card {
        padding: 36px 32px;
    }

    .invite-card h1 {
        font-size: 28px;
    }

    .invite-code {
        font-size: 36px;
        letter-spacing: 0.3em;
    }

    .invite-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .invite-btn {
        flex: 1;
        min-width: 160px;
    }
}

/* ============================================= */
/* Support Page */
/* ============================================= */
.support-page {
    min-height: 100vh;
    background-color: transparent;
}

.support-page .support-content {
    padding-top: 24px;
    padding-bottom: 70px;
}

.support-page .support-content .container {
    max-width: 920px;
}

.support-intro,
.support-faq,
.support-contact,
.support-intro *,
.support-faq *,
.support-contact * {
    text-align: left;
}

.support-intro {
    margin-bottom: 36px;
}

.support-intro h1,
.support-intro h2,
.support-section-heading h2,
.support-contact h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
    margin: 0;
    text-wrap: pretty;
}

.support-intro p:last-child {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--dark-gray);
}

.support-eyebrow {
    margin: 0 0 8px;
    color: var(--dark-green-text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.support-section-heading {
    margin-bottom: 18px;
}

.support-faq-list {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.support-faq-item + .support-faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.support-faq-item summary {
    position: relative;
    display: block;
    min-height: 58px;
    padding: 18px 54px 18px 0;
    color: var(--black);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
    text-wrap: pretty;
}

.support-faq-item summary::-webkit-details-marker {
    display: none;
}

.support-faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.06);
    background-image:
        linear-gradient(var(--black), var(--black)),
        linear-gradient(var(--black), var(--black));
    background-size: 12px 2px, 2px 12px;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}

.support-faq-item[open] summary {
    color: var(--dark-green-text);
}

.support-faq-item[open] summary::after {
    background-color: var(--primary);
    background-image: linear-gradient(var(--black), var(--black));
    background-size: 12px 2px;
    background-position: center;
    background-repeat: no-repeat;
}

.support-faq-item summary:focus-visible {
    outline: 3px solid rgba(51, 114, 17, 0.28);
    outline-offset: 4px;
}

.support-faq-answer {
    max-width: 760px;
    padding: 0 54px 20px 0;
}

.support-faq-answer p {
    margin: 0 0 12px;
    color: var(--dark-gray);
}

.support-faq-answer p:last-child {
    margin-bottom: 0;
}

.support-contact {
    display: grid;
    gap: 22px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.support-contact p {
    margin: 12px 0 0;
    color: var(--dark-gray);
}

.support-contact a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.support-contact a:hover {
    color: var(--black);
}

.support-contact__details {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 20px;
}

.support-contact__details h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.support-contact__details ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--dark-gray);
}

.support-contact .support-muted {
    margin-top: 16px;
    color: var(--dark-gray);
}

.support-muted {
    font-size: 14px;
    color: var(--dark-gray);
}

@media (min-width: 768px) {
    .support-page .support-content {
        padding-top: 34px;
    }

    .support-intro h1,
    .support-intro h2,
    .support-section-heading h2,
    .support-contact h2 {
        font-size: 40px;
    }

    .support-faq-item summary {
        min-height: 66px;
        padding: 22px 70px 22px 0;
        font-size: 19px;
    }

    .support-faq-item summary::after {
        right: 0;
        width: 32px;
        height: 32px;
        background-size: 14px 2px, 2px 14px;
    }

    .support-faq-item[open] summary::after {
        background-size: 14px 2px;
    }

    .support-faq-answer {
        padding: 0 70px 24px 0;
    }

    .support-contact {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 36px;
        margin-top: 52px;
        padding-top: 34px;
    }

    .support-contact__details {
        border-top: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.12);
        padding-top: 0;
        padding-left: 28px;
    }
}

/* ============================================= */
/* For-Mediators Landing Page (/for-mediators)   */
/* Scoped under .mediators-page to avoid leaking  */
/* into other pages. Reuses global tokens/fonts.  */
/* ============================================= */
.home-page .hero-container,
.mediators-page .hero-container {
    background-image: none;
    background-color: transparent;
}

/* --- Header --- */
.med-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "logo parents"
        "tagline parents";
    align-items: center;
    gap: 4px 12px;
    padding: 24px 0 8px;
}

.med-header__logo {
    grid-area: logo;
    display: inline-block;
    width: auto;
    max-width: 200px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.med-header__logo:hover {
    color: inherit;
}

.med-header__logo .logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.med-header__tagline {
    grid-area: tagline;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--black);
    min-width: 0;
}

.med-parents-pill {
    grid-area: parents;
    align-self: start;
    justify-self: end;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: var(--nav-pill-bg);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.med-parents-pill:hover {
    background: #e3e0d2;
}

.med-parents-pill:active {
    transform: scale(0.98);
}

.med-parents-pill svg {
    display: block;
    flex-shrink: 0;
}

/* --- Hero --- */
.med-hero {
    padding-bottom: 36px;
}

.med-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 32px;
}

.med-hero__text {
    order: 1;
    min-width: 0;
}

.med-hero__media {
    order: 2;
    min-width: 0;
}

.med-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: min(64vw, 275px);
    margin: 0 auto;
}

.med-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.04;
    color: var(--black);
    text-align: left;
    text-wrap: pretty;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.med-hero__lead {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--black);
    text-align: left;
    text-wrap: pretty;
    margin: 24px 0 0;
}

.med-hero__body {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-gray);
    text-align: left;
    margin: 12px 0 0;
    max-width: 588px;
}

.med-store-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 24px;
}

.med-store-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: var(--dark-green-text);
    text-decoration: none;
}

.med-store-link img {
    width: 22px;
    height: 22px;
    display: block;
}

.med-store-link span {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline;
    text-underline-position: from-font;
}

.med-store-link:hover,
.med-store-link:hover span {
    color: var(--black);
}

/* --- Reward / referral CTA --- */
.med-reward {
    order: 3;
    min-width: 0;
}

.med-reward__card {
    background: var(--white);
    border: 16px solid var(--white);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.med-reward__left {
    padding: 24px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.med-reward__tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--light-green);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    letter-spacing: 0.02em;
}

.med-reward__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.3;
    color: var(--black);
    text-align: left;
    text-wrap: pretty;
    margin: 0 0 14px;
}

.med-reward__body {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-gray);
    text-align: left;
    margin: 0 0 12px;
}

.med-reward__body:last-child {
    margin-bottom: 0;
}

.med-reward__body strong {
    font-weight: 700;
    color: var(--black);
}

.med-reward__right {
    background: var(--light-green);
    padding: 24px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.med-reward__right:has(.med-confirmation:not([hidden])) {
    justify-content: center;
}

.med-confirmation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.med-confirmation.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .med-form,
    .med-confirmation {
        transition: opacity 0.15s ease;
    }

    .med-form.is-exiting,
    .med-confirmation {
        transform: none;
    }

    .med-confirmation.is-visible {
        transform: none;
    }

    .med-form__submit.is-loading::after {
        animation: none;
        opacity: 0.6;
    }
}

.med-confirmation .med-confirmation__title,
.med-confirmation .med-confirmation__lead,
.med-confirmation .med-confirmation__hint {
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.med-confirmation__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 12px;
}

.med-confirmation__lead,
.med-confirmation__hint {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-gray);
}

.med-confirmation__lead strong {
    font-weight: 700;
    color: var(--black);
}

.med-confirmation__hint {
    font-size: 14px;
}

.med-confirmation__hint a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.med-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.med-form.is-exiting {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.med-form.is-submitting .med-field {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.med-form.is-submitting .med-field:focus-within {
    opacity: 1;
}

.med-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.med-field label {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.13;
    color: var(--black);
}

.med-field input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--black);
    -webkit-appearance: none;
    appearance: none;
}

.med-field input::placeholder {
    color: #9b9b95;
}

.med-field input:focus-visible {
    outline: 3px solid rgba(29, 31, 26, 0.4);
    outline-offset: 2px;
}

.med-form__submit {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.med-form__submit:hover {
    background: var(--primary);
    color: var(--black);
}

.med-form__submit:active {
    transform: scale(0.99);
}

.med-form__submit:disabled {
    opacity: 0.85;
    cursor: wait;
}

.med-form__submit.is-loading {
    position: relative;
}

.med-form__submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 253, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: med-submit-spin 0.65s linear infinite;
}

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

.med-form__submit:focus-visible {
    outline: 3px solid rgba(167, 246, 123, 0.65);
    outline-offset: 3px;
}

.med-form__status {
    margin: 0;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.med-form__status:empty {
    display: none;
}

.med-form__status.is-error {
    color: #b3261e;
}

.med-form__status.is-success {
    color: var(--dark-green-text);
}

.med-field--honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.med-form[hidden],
.med-confirmation[hidden] {
    display: none;
}

/* --- Feature sections --- */
.med-feature {
    padding: 28px 0;
}

.med-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.med-feature__text,
.med-feature__media {
    min-width: 0;
}

.med-feature__media img {
    display: block;
    width: 100%;
    height: auto;
}

.med-feature__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: var(--black);
    text-align: left;
    text-wrap: pretty;
    margin: 0 0 16px;
}

.med-feature__body {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--dark-gray);
    text-align: left;
    margin: 0;
    max-width: 477px;
}

.med-bullets {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
}

.med-bullets li {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.med-bullets li:last-child {
    margin-bottom: 0;
}

.med-bullets li strong {
    font-weight: 700;
    color: var(--black);
}

/* On mobile, each graphic stacks above its related copy. */
.med-feature__media {
    order: 1;
}

.med-feature__text {
    order: 2;
}

/* --- Footer overrides --- */
.med-footer {
    margin-top: 40px;
}

.med-footer__avail {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black);
    text-align: center;
    margin: 0 0 8px;
    text-wrap: pretty;
}

.med-footer__avail a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.med-footer__avail a:hover {
    color: var(--black);
}

.med-footer__contact {
    font-weight: 400;
    font-size: 17px;
}

/* --- Breakpoints --- */
@media (min-width: 768px) {
    .med-header {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 32px 0 8px;
    }

    .med-header__logo {
        max-width: 180px;
    }

    .med-header__tagline {
        font-size: 18px;
    }

    .med-parents-pill {
        align-self: center;
        margin-left: auto;
        min-height: 48px;
        padding: 12px 22px;
        font-size: 16px;
    }

    .med-hero__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
        grid-template-areas:
            "text media"
            "reward media";
        column-gap: 40px;
        row-gap: 32px;
    }

    .med-hero__text {
        order: 1;
        grid-area: text;
    }

    .med-hero__media {
        order: 2;
        grid-area: media;
        align-self: start;
    }

    .med-hero__media img {
        max-width: 407px;
        margin: 0;
    }

    .med-store-links {
        justify-content: flex-start;
        margin-top: 24px;
    }

    .med-hero__title {
        font-size: 46px;
    }

    .med-hero__lead {
        font-size: 22px;
    }

    .med-hero__body {
        font-size: 18px;
    }

    .med-reward__card {
        flex-direction: row;
        align-items: stretch;
    }

    .med-reward {
        grid-area: reward;
        max-width: 659px;
    }

    .med-reward__left {
        flex: 1 1 0;
        padding: 32px 24px 32px 16px;
    }

    .med-reward__right {
        flex: 0 0 322px;
        max-width: 322px;
        padding: 24px;
    }

    .med-reward__title {
        font-size: 26px;
    }

    .med-feature {
        padding: 40px 0;
    }

    .med-feature__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
    }

    .med-feature--give .med-feature__media {
        order: 1;
    }

    .med-feature--give .med-feature__text {
        order: 2;
    }

    .med-feature--why .med-feature__text {
        order: 1;
    }

    .med-feature--why .med-feature__media {
        order: 2;
    }

    .med-feature__title {
        font-size: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .med-hero__grid {
        grid-template-areas:
            "text media"
            "reward reward";
        align-items: center;
        row-gap: 40px;
    }

    .med-hero__text {
        align-self: center;
    }

    .med-hero__media {
        align-self: center;
    }

    .med-reward {
        grid-area: reward;
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
        padding-top: 8px;
    }

    .med-reward__card {
        flex-direction: row;
    }

    .med-reward__left {
        flex: 1 1 0;
        padding: 32px 36px;
    }

    .med-reward__right {
        flex: 0 0 50%;
        max-width: none;
        padding: 24px 36px;
    }
}

@media (min-width: 1200px) {
    .med-hero__grid {
        grid-template-areas:
            "text media"
            "reward media";
        align-items: start;
    }

    .med-hero__text {
        align-self: start;
    }

    .med-reward {
        max-width: 659px;
    }
}

/* ============================================= */
/* Product SEO landings (expense / support)      */
/* Extends .mediators-page + .med-* with parent  */
/* nav, graphic placeholders, and text callouts. */
/* Full-page beige + blurs via .mediators-page.  */
/* ============================================= */
.product-seo-page .med-hero .internal-header {
    padding-top: 8px;
}

.product-seo-page .med-hero__grid {
    margin-top: 24px;
}

/* Stay stacked until desktop — shared .med-hero goes 2-col at 768px. */
@media (max-width: 991.98px) {
    .product-seo-page .med-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
    }
}

/* Mobile: title → phone → copy/CTAs (display: contents exposes title/text to the grid). */
.product-seo-page .med-hero__copy {
    display: contents;
}

.product-seo-page .med-hero__title {
    order: 1;
    font-size: 40px;
    line-height: 1.01;
}

.product-seo-page .med-hero__media {
    order: 2;
    grid-area: auto;
}

.product-seo-page .med-hero__media img {
    max-width: min(45vw, 192px); /* ~30% smaller than shared 64vw / 275px */
}

.product-seo-page .med-hero__text {
    order: 3;
    grid-area: auto;
}

.product-seo-page .med-hero__lead {
    font-size: 20px;
    margin-top: 0; /* grid gap separates phone from copy on mobile */
}

.product-seo-page .med-hero__body {
    margin-top: 16px;
}

.product-seo-page .cta-buttons--hero-start {
    justify-content: flex-start;
    margin: 28px 0 0;
    gap: 20px;
}

.product-seo-page .cta-buttons--hero-start .app-store-btn,
.product-seo-page .cta-buttons--hero-start .store-btn-wrap {
    width: min(196px, 100%);
}

@media (min-width: 992px) {
    .product-seo-page .med-hero {
        padding-bottom: 0;
    }

    .product-seo-page .med-hero__grid {
        grid-template-areas: "copy media";
        /* Figma: copy 645 / gap ~129 / media 371 on 1440 */
        grid-template-columns: minmax(0, 1.74fr) minmax(300px, 1fr);
        column-gap: clamp(48px, 7vw, 128px);
        align-items: center;
        margin-top: 48px;
    }

    .product-seo-page .med-hero__copy {
        display: flex;
        flex-direction: column;
        gap: 12px;
        grid-area: copy;
        max-width: 645px;
    }

    .product-seo-page .med-hero__title {
        order: initial;
        font-size: 56px;
        line-height: 1.01;
    }

    .product-seo-page .med-hero__lead {
        font-size: 24px;
        margin-top: 0;
    }

    .product-seo-page .med-hero__body {
        font-size: 18px;
        margin-top: 16px;
        max-width: 645px;
    }

    .product-seo-page .med-hero__text {
        order: initial;
        padding-top: 0;
        max-width: none;
    }

    .product-seo-page .med-hero__media {
        order: initial;
        grid-area: media;
        align-self: center;
        justify-self: end;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 371px;
        margin-left: 0;
    }

    .product-seo-page .med-hero__media .graphic-placeholder,
    .product-seo-page .med-hero__media img {
        max-width: 371px;
        width: 100%;
        margin: 0;
    }

    /* Figma: features at y=777, beige ends 691 → ~86px */
    .product-seo-page .med-hero + .med-feature {
        padding-top: 86px;
    }
}

.med-feature__lead {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.5;
    color: var(--dark-gray);
    text-align: left;
    margin: 0 0 16px;
}

.med-feature__lead + .med-bullets {
    margin-top: 0;
}

.prefooter-cta__avail a,
.med-feature__lead a,
.med-bullets a,
.feature-content a,
.pricing-feature a {
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.prefooter-cta__avail a:hover,
.med-feature__lead a:hover,
.med-bullets a:hover,
.feature-content a:hover,
.pricing-feature a:hover {
    color: var(--black);
}

.med-callout {
    padding: 48px 0 64px;
}

.med-callout__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.med-callout__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    color: var(--black);
    text-wrap: pretty;
    margin: 0 0 12px;
}

.med-callout__body {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--dark-gray);
    margin: 0 0 20px;
    text-wrap: pretty;
}

.med-callout__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17px;
    color: var(--dark-green-text);
    text-decoration: underline;
    text-underline-position: from-font;
}

.med-callout__link:hover {
    color: var(--black);
}

.med-callout__link svg {
    flex-shrink: 0;
}

.med-callout__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.seo-resources {
    padding: 0 0 64px;
}

.seo-resources__inner {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(29, 31, 26, 0.12);
}

.seo-resources__title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.seo-resources__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-resources__links a {
    color: var(--dark-green-text);
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: from-font;
}

.seo-resources__links a:hover {
    color: var(--black);
}

/* Graphic placeholders — swap for <img> when assets land in /img/ */
.graphic-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 280px;
    padding: 28px 24px;
    border: 2px dashed rgba(29, 31, 26, 0.28);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
}

.graphic-placeholder--hero {
    min-height: 360px;
    aspect-ratio: 800 / 1200;
    max-width: min(64vw, 275px);
    margin: 0 auto;
}

.graphic-placeholder__label {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
}

.graphic-placeholder__file {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    word-break: break-all;
}

.graphic-placeholder__brief,
.graphic-placeholder__size {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.45;
    color: var(--dark-gray);
}

.graphic-placeholder__size {
    margin-top: 4px;
    opacity: 0.85;
}

@media (min-width: 992px) {
    .graphic-placeholder {
        min-height: 320px;
    }

    .graphic-placeholder--hero {
        max-width: 407px;
        min-height: 480px;
    }

    .med-feature__grid--reverse .med-feature__text {
        order: 1;
    }

    .med-feature__grid--reverse .med-feature__media {
        order: 2;
    }
}

/* Blog article section dividers: thin line, even space above and below */
.post-article-card hr {
    border: none;
    height: 0;
    margin: 1.8rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background: none;
}
