/* ============================================================================
   Tiny Paths — Marketing Design System
   Palette: TinyPaths brand blue + warm coral accent, cool-biased neutrals
   Type:    Plus Jakarta Sans (display) + Inter (body)
   ==========================================================================*/

/* --- Design Tokens --- */
:root {
    /* Brand */
    --brand-50:  #eef4ff;
    --brand-100: #dbe7ff;
    --brand-200: #b8ceff;
    --brand-400: #6a9bff;
    --brand-500: #3a7dff;   /* primary brand blue (recognizable) */
    --brand-600: #2664e6;
    --brand-700: #1b4fc4;
    --ink:       #101a30;    /* blue-biased near-black */
    --navy:      #0f1e3d;    /* hero ground */

    /* Warm accent (childcare warmth) — used sparingly */
    --accent:    #ff7a59;
    --accent-600:#f0603c;

    /* Neutrals (slight cool bias) */
    --text:        #232c3d;
    --text-muted:  #5b6678;
    --text-faint:  #8a93a4;
    --border:      #e5eaf2;
    --border-soft: #eef2f8;
    --surface:     #f5f8fc;
    --surface-2:   #eef3fa;
    --white:       #ffffff;

    /* Status */
    --success: #17a673;
    --success-bg: #e9f9f1;
    --danger:  #e5484d;
    --danger-bg: #fdecec;
    --star:    #f5a623;

    /* Typography */
    --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Shape & depth */
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 26, 48, 0.06), 0 2px 6px rgba(16, 26, 48, 0.04);
    --shadow:    0 8px 24px rgba(16, 26, 48, 0.08);
    --shadow-lg: 0 20px 50px rgba(16, 26, 48, 0.14);
    --shadow-brand: 0 12px 30px rgba(58, 125, 255, 0.28);

    /* Layout */
    --container: 1160px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    margin: 0;
    color: var(--text);
    line-height: 1.65;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip; /* guard against any accidental horizontal scroll on mobile */
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--brand-600); }
img { max-width: 100%; }

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

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* Shared section rhythm */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.section-head p { font-size: 1.08rem; color: var(--text-muted); margin: 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--brand-200); }

/* ============================================================================
   Header / Navigation
   ==========================================================================*/
.main-header {
    /* Solid background (no backdrop-filter): blurring the backdrop on a sticky
       header repaints every scroll frame and freezes high-DPR mobile devices. */
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(16, 26, 48, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.85rem var(--gutter);
    gap: 1rem;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo { height: 46px; width: auto; display: block; }
.logo--mini { display: none; }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.97rem;
    transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--brand-600); }

.nav-cta-group { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================================
   Buttons
   ==========================================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--brand-500);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 16px 36px rgba(58, 125, 255, 0.38); }

.btn--ghost {
    background: transparent;
    color: var(--brand-600);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-400); background: var(--brand-50); }

.btn--on-dark {
    background: var(--white);
    color: var(--brand-700);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.btn--on-dark:hover { background: #f2f6ff; }

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* Nav login buttons */
.btn--login {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    border: 2px solid var(--border);
    color: var(--text);
    background: var(--white);
}
.btn--login:hover { border-color: var(--brand-400); color: var(--brand-600); transform: none; }

.btn--login-parent {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    background: var(--brand-500);
    color: var(--white);
    border: 2px solid var(--brand-500);
    box-shadow: 0 6px 16px rgba(58, 125, 255, 0.24);
}
.btn--login-parent:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); }

/* ============================================================================
   Hero
   ==========================================================================*/
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 15% 0%, rgba(58, 125, 255, 0.35), transparent 55%),
        radial-gradient(70% 110% at 100% 20%, rgba(255, 122, 89, 0.22), transparent 50%),
        linear-gradient(160deg, #0f1e3d 0%, #163363 50%, #1f57b8 100%);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M48 0H0V48" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.6;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef2c1; box-shadow: 0 0 0 3px rgba(126, 242, 193, 0.25); }

.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
}
.hero h1 .accent-text {
    background: linear-gradient(100deg, #9ec2ff, #ffd0bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-trust {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust .tick { color: #7ef2c1; font-weight: 700; }

/* Hero visual — stacked "app" cards */
.hero-visual { position: relative; }
.hero-panel {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    color: var(--text);
}
.hero-panel-bar { display: flex; gap: 6px; margin-bottom: 0.9rem; }
.hero-panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.hero-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.hero-panel-row .pill { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; }
.pill--green { background: var(--success-bg); color: var(--success); }
.pill--blue  { background: var(--brand-50); color: var(--brand-600); }
.pill--amber { background: #fff3e0; color: #c26a00; }
.hero-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
}
.hero-badge .emoji { font-size: 1.4rem; }

/* Logo strip */
.trustbar { background: var(--white); border-bottom: 1px solid var(--border-soft); }
.trustbar .container { padding-block: 1.5rem; text-align: center; }
.trustbar p { color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.75rem; font-weight: 600; }
.trust-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); }
.trust-stat { text-align: center; }
.trust-stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.trust-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================================
   Pain points
   ==========================================================================*/
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.pain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pain-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.pain-card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ============================================================================
   Feature groups / cards
   ==========================================================================*/
.feature-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.feature-group-head h3 { font-size: 1.4rem; margin: 0; }
.feature-group-head .kicker { color: var(--text-faint); font-size: 0.9rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.feature-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .fc-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    border-radius: 12px;
    background: var(--brand-50);
    margin-bottom: 1rem;
}
.feature-card h4 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.feature-card .fc-tag {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-600);
    background: #fff1ec;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.feature-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-soft);
}

.learn-more {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}
.learn-more:hover { gap: 0.55rem; }

/* Split feature section (image + text) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
    background: linear-gradient(150deg, var(--brand-50), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.split-media img { border-radius: 14px; width: 100%; display: block; }
.split-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split-copy .checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.split-copy .checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.split-copy .checklist li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    width: 1.3rem; height: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--success-bg); color: var(--success);
    border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}

/* ============================================================================
   Parent Portal spotlight
   ==========================================================================*/
.portal-section { background: linear-gradient(160deg, #10254d, #1c4796); color: #fff; overflow: hidden; position: relative; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portal-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.portal-copy p { color: rgba(255,255,255,0.86); }
.portal-copy .checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.portal-copy .checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; color: rgba(255,255,255,0.92); }
.portal-copy .checklist li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center;
    background: rgba(126, 242, 193, 0.18); color: #7ef2c1; border-radius: 50%; font-size: 0.85rem; font-weight: 700;
}
.portal-card {
    background: #fff; color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
}
.portal-card h3 { font-size: 1.25rem; }
.portal-card .pc-option {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.portal-card .pc-option:hover { border-color: var(--brand-400); background: var(--brand-50); }
.portal-card .pc-option .pc-emoji { font-size: 1.5rem; }
.portal-card .pc-option b { display: block; font-family: var(--font-display); }
.portal-card .pc-option small { color: var(--text-muted); }

/* ============================================================================
   Pricing
   ==========================================================================*/
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2);
    border-radius: 999px;
    padding: 0.35rem;
    margin: 1.5rem auto 0;
}
.billing-toggle button {
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.billing-toggle button.active { background: var(--white); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.billing-toggle .save-badge { font-size: 0.7rem; background: var(--success-bg); color: var(--success); padding: 0.1rem 0.45rem; border-radius: 999px; font-weight: 700; margin-left: 0.3rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    max-width: var(--container);
    margin: 2.5rem auto 0;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.featured {
    border: 2px solid var(--brand-500);
    box-shadow: var(--shadow-lg);
}
.pricing-card .badge-popular {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand-500); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
    box-shadow: var(--shadow-brand);
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.pricing-card .tier-desc { color: var(--text-muted); font-size: 0.92rem; min-height: 2.6em; margin-bottom: 1rem; }
.price { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.25rem; }
.price .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.price .amount sup { font-size: 1.1rem; top: -1.1rem; font-weight: 700; }
.price .per { color: var(--text-muted); font-size: 0.95rem; }
.price-note { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 1.25rem; min-height: 1.2em; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.75rem; text-align: left; flex-grow: 1; }
.pricing-card li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; font-size: 0.94rem; color: var(--text); }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-card li.muted { color: var(--text-faint); }
.pricing-card li.muted::before { content: '—'; color: var(--text-faint); }
.pricing-card li.head { font-weight: 700; padding-left: 0; color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.4rem; }
.pricing-card li.head::before { content: ''; }

/* Storage note box */
.info-box {
    max-width: 900px; margin: 3rem auto 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-align: center;
}
.info-box h3 { margin-bottom: 0.75rem; }
.info-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; max-width: 700px; margin: 1.5rem auto 0; }
.info-stat { background: var(--white); border: 1px solid var(--border-soft); border-radius: 12px; padding: 1.25rem; }
.info-stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--brand-600); }
.info-stat span { color: var(--text-muted); font-size: 0.88rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table thead { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; }
.compare-table th { padding: 1.1rem 1rem; text-align: center; font-family: var(--font-display); font-size: 1rem; }
.compare-table th small { font-weight: 500; opacity: 0.85; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; width: 34%; }
.compare-table td { padding: 0.85rem 1rem; text-align: center; border-bottom: 1px solid var(--border-soft); }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-table tbody tr:hover { background: var(--surface); }
.compare-table .check { color: var(--success); font-size: 1.25rem; font-weight: 700; }
.compare-table .x { color: var(--text-faint); font-size: 1.1rem; }
.compare-table .cat td { background: var(--surface-2); font-family: var(--font-display); font-weight: 700; color: var(--ink); text-align: left; }

/* ============================================================================
   Testimonials
   ==========================================================================*/
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.testimonial {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: var(--star); font-size: 1.05rem; margin-bottom: 0.9rem; letter-spacing: 0.1em; }
.testimonial p { font-size: 1rem; color: var(--text); line-height: 1.7; }
.testimonial .who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.25rem; }
.testimonial .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700;
}
.testimonial .who b { display: block; color: var(--ink); font-family: var(--font-display); }
.testimonial .who span { color: var(--text-muted); font-size: 0.87rem; }

/* ============================================================================
   CTA band
   ==========================================================================*/
.cta-band {
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(255,122,89,0.25), transparent 55%),
        linear-gradient(150deg, #0f1e3d, #1f57b8);
    color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto 1.75rem; font-size: 1.08rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================================
   Contact form
   ==========================================================================*/
.contact-shell {
    max-width: 820px; margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--text); font-size: 0.92rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(58, 125, 255, 0.18);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-note { margin-top: 1rem; font-size: 0.82rem; color: var(--text-faint); text-align: center; }
.recaptcha-note a { color: var(--brand-600); }

.form-status-message { padding: 1.4rem; border-radius: var(--radius-sm); text-align: center; font-size: 1.05rem; font-weight: 500; display: none; margin-top: 1rem; }
.form-status-message.success { background: var(--success-bg); border: 1px solid #a7e8cb; color: #0f7a54; display: block; }
.form-status-message.error { background: var(--danger-bg); border: 1px solid #f5b5b7; color: #b32b30; display: block; }
.hidden { display: none; }

/* ============================================================================
   Page header (interior pages)
   ==========================================================================*/
.page-header {
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(60% 120% at 50% 0%, var(--brand-50), transparent 70%),
        var(--white);
    border-bottom: 1px solid var(--border-soft);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0.5rem auto 0; }

/* ============================================================================
   FAQ
   ==========================================================================*/
.faq-shell { max-width: 860px; margin: 0 auto; }
.faq-category { margin-bottom: 2.5rem; }
.faq-category h2 { font-size: 1.35rem; color: var(--brand-700); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.faq-question {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--brand-500); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { color: var(--text-muted); line-height: 1.65; display: none; padding-top: 0.85rem; font-size: 0.96rem; }
.faq-item.active .faq-answer { display: block; }
.faq-answer ul { margin-top: 0.5rem; padding-left: 1.4rem; }
.faq-answer li { margin-bottom: 0.4rem; }

/* ============================================================================
   Footer
   ==========================================================================*/
.main-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand img { height: 42px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.92rem; transition: color 0.18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================================
   Floating buttons
   ==========================================================================*/
.floating-demo-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 99;
    background: var(--brand-500); color: #fff;
    padding: 0.85rem 1.5rem; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    box-shadow: var(--shadow-brand); text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-demo-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(58,125,255,0.4); }

.back-to-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 99;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--white); color: var(--brand-600);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; cursor: pointer;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); color: var(--brand-700); }

.grecaptcha-badge { visibility: hidden; }

/* ============================================================================
   Comparison page (before / after, ROI)
   ==========================================================================*/
.compare-table .partial { color: #c26a00; font-weight: 600; font-size: 0.88rem; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-card { border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); }
.ba-card.before { background: #fff7f6; border-color: #f6d6cf; }
.ba-card.after { background: var(--brand-50); border-color: var(--brand-100); }
.ba-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.scenario { margin-bottom: 1.25rem; }
.scenario:last-child { margin-bottom: 0; }
.scenario h4 { font-size: 0.92rem; color: var(--brand-700); margin-bottom: 0.3rem; }
.ba-card.before .scenario h4 { color: var(--accent-600); }
.scenario p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }
.roi-band { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center; box-shadow: var(--shadow-sm); }
.roi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.roi-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--brand-600); letter-spacing: -0.03em; }
.roi-label { color: var(--text-muted); font-size: 0.9rem; }

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

/* ============================================================================
   Responsive
   ==========================================================================*/
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; margin: 1rem auto 0; }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .portal-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    /* Swap the wide wordmark for the compact square badge on mobile */
    .logo { height: 40px; }
    /* Let the collapsed menu wrap onto its own full-width rows below the logo/toggle */
    .main-nav { flex-wrap: wrap; row-gap: 0; }
    .nav-links,
    .nav-cta-group {
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: none;
    }
    .main-nav.open .nav-links,
    .main-nav.open .nav-cta-group { display: flex; }
    .nav-links { margin-top: 0.5rem; border-top: 1px solid var(--border-soft); }
    .nav-links a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--border-soft); }
    .nav-cta-group { padding: 0.85rem 0 0.4rem; gap: 0.6rem; }
    .nav-cta-group .btn { justify-content: center; width: 100%; }
}

@media (max-width: 620px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    /* Single-column card grids so nothing overflows on narrow phones */
    .feature-grid,
    .testimonials-grid,
    .pain-grid,
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .hero-actions,
    .cta-buttons { width: 100%; }
    .cta-buttons .btn { flex: 1 1 auto; justify-content: center; }
    .floating-demo-btn { bottom: 16px; right: 16px; padding: 0.75rem 1.2rem; }
    .back-to-top { bottom: 16px; left: 16px; width: 42px; height: 42px; }
    .billing-toggle { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .btn:hover, .feature-card:hover, .pain-card:hover, .testimonial:hover, .pricing-card:hover { transform: none; }
}
