/* Marketing site styles. Layered on top of app.css design tokens.
   Aesthetic: tight typography, generous whitespace, hairline borders,
   restrained palette — Stripe/Linear-ish but using Ambar's warm red. */

/* ─────────────────────────────────────────────────────────────────────
   Layout primitives
   ───────────────────────────────────────────────────────────────────── */
.page-marketing {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    /* app.css sets `html, body { height: 100% }`, which caps this box at one
       viewport while the page scrolls far past it. position: sticky is bounded
       by its containing block, so the nav un-stuck the moment you scrolled
       beyond the first screen. Let the box grow with the content. */
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}
.page-marketing main { flex: 1; }

.m-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.m-section {
    padding: 6rem 0;
}
.m-section.tight { padding: 3.5rem 0; }
.m-section.bg-soft { background: var(--bg-soft); }
@media (max-width: 768px) {
    .m-section { padding: 4rem 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   Top nav
   ───────────────────────────────────────────────────────────────────── */
.marketing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.marketing-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.marketing-nav .brand { display: inline-flex; align-items: center; }
.marketing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.marketing-nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 120ms, color 120ms;
}
.marketing-nav-link:hover { background: var(--surface-2); }
.marketing-nav-link.active { color: var(--primary); }
.marketing-nav-spacer { flex: 1; }
.marketing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Hamburger — desktop-hidden, revealed with the drawer below --bp-md. */
.marketing-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.marketing-nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 180ms ease, opacity 140ms ease;
}
.marketing-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.marketing-nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.marketing-nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────
   Mobile drawer
   ───────────────────────────────────────────────────────────────────── */
.marketing-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 1rem 1.15rem 1.5rem;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 220ms ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.marketing-drawer.open { transform: translateX(0); }
.marketing-drawer[hidden] { display: none; }
.marketing-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.marketing-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.35rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.marketing-drawer-close:hover { background: var(--surface-2); color: var(--text); }
.marketing-drawer-links { display: flex; flex-direction: column; padding: 0.5rem 0; }
.marketing-drawer-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.65rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
}
.marketing-drawer-link:hover { background: var(--surface-2); }
.marketing-drawer-link.active { color: var(--primary); }
.marketing-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.marketing-drawer-actions .btn { min-height: 46px; }
.marketing-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity 220ms ease;
}
.marketing-drawer-backdrop.open { opacity: 1; }
.marketing-drawer-backdrop[hidden] { display: none; }
body.mnav-open { overflow: hidden; }

/* Below --bp-md the inline links and the desktop-only Sign in collapse into
   the drawer, leaving brand + primary CTA + burger on one comfortable row. */
@media (max-width: 900px) {
    .marketing-nav-inner { gap: 0.75rem; padding: 0.7rem 1rem; }
    .marketing-nav-links,
    .marketing-nav-actions .nav-signin { display: none; }
    .marketing-nav-burger { display: flex; }
}

/* Very narrow phones: the CTA label alone can crowd the burger. */
@media (max-width: 380px) {
    .marketing-nav-actions .theme-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .marketing-drawer,
    .marketing-drawer-backdrop,
    .marketing-nav-burger span { transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────────────── */
.hero {
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.hero-title {
    font-size: clamp(1.9rem, 1rem + 3.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 1.25rem;
}
.hero-title em {
    font-style: normal;
    color: var(--primary);
}
.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-lg {
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
}
.hero-meta {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Subtle hero accent — radial wash */
.hero::before {
    content: '';
    position: absolute;
    inset: -20% 0 auto 0;
    height: 60%;
    background: radial-gradient(ellipse at center top, var(--primary-soft) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────────────
   Section heading
   ───────────────────────────────────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-eyebrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: clamp(1.5rem, .95rem + 2.2vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    font-weight: 700;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────
   Feature grid
   ───────────────────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color 160ms, transform 160ms;
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-card--highlight {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}
.feature-card--highlight .feature-icon { background: var(--primary); color: #fff; }
.badge-new {
    display: inline-block; margin-left: 6px; padding: 2px 7px;
    background: var(--primary); color: #fff;
    font-size: 0.65rem; font-weight: 700; letter-spacing: .04em;
    border-radius: 999px; vertical-align: middle; text-transform: uppercase;
}
.feature-card .feature-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
    font-weight: 600;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   Split row (feature deep-dive)
   ───────────────────────────────────────────────────────────────────── */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4.5rem 0;
    border-top: 1px solid var(--border);
}
.split-row:first-child { border-top: none; }
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .split-row { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
}
.split-eyebrow {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.split-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.split-text {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 1rem;
}
.split-text ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.split-text li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
    color: var(--text);
}
.split-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--primary);
    font-weight: 700;
}
.split-art {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ─────────────────────────────────────────────────────────────────────
   Pricing
   ───────────────────────────────────────────────────────────────────── */
.pricing-toggle {
    display: inline-flex;
    margin: 0 auto 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.pricing-toggle button {
    background: transparent;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}
.pricing-toggle button.active {
    background: var(--primary);
    color: white;
}
.pricing-toggle-wrap {
    display: flex;
    justify-content: center;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}
.pricing-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 12px 36px -16px var(--primary-soft);
}
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
.pricing-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}
.pricing-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 2.6em;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.pricing-amount .amount {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.pricing-amount .period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.25rem;
}
.pricing-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    flex: 1;
}
.pricing-features li {
    padding: 0.45rem 0 0.45rem 1.6rem;
    position: relative;
    font-size: 0.94rem;
    color: var(--text);
    line-height: 1.5;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--primary);
    font-weight: 700;
}
.pricing-cta {
    display: block;
    text-align: center;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 120ms, border-color 120ms;
}
.pricing-cta:hover { background: var(--surface-2); border-color: var(--text); }
.pricing-card.highlight .pricing-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pricing-card.highlight .pricing-cta:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.pricing-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

/* ─────────────────────────────────────────────────────────────────────
   Logos strip (social proof placeholder)
   ───────────────────────────────────────────────────────────────────── */
.logos-strip {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3rem 0;
}
.logos-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 200ms;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0.75rem 0 0;
}

/* ─────────────────────────────────────────────────────────────────────
   CTA banner
   ───────────────────────────────────────────────────────────────────── */
.cta-banner {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 18px;
    padding: 3.5rem;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    font-weight: 700;
}
.cta-banner p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────
   Content pages (privacy, terms, about)
   ───────────────────────────────────────────────────────────────────── */
.prose-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.prose-page h1 {
    font-size: clamp(1.7rem, 1rem + 2.4vw, 2.8rem);
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}
.prose-page > .muted { margin-bottom: 2.5rem; }
.prose-page h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 0.5rem;
    letter-spacing: -0.01em;
}
.prose-page h3 {
    font-size: 1.1rem;
    margin: 2rem 0 0.5rem;
}
.prose-page p, .prose-page li {
    line-height: 1.7;
    color: var(--text);
    font-size: 1rem;
}
.prose-page ul, .prose-page ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}
.prose-page li { margin-bottom: 0.35rem; }

/* ─────────────────────────────────────────────────────────────────────
   Contact form
   ───────────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-intro h1 {
    font-size: clamp(1.5rem, .9rem + 2.2vw, 2.4rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.contact-intro p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.contact-details li { padding: 0.3rem 0; }
.contact-details a { color: var(--text); text-decoration: none; }
.contact-details a:hover { color: var(--primary); }
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
}
.contact-form-card .field + .field { margin-top: 1rem; }
.contact-sent {
    background: color-mix(in srgb, #10b981 12%, transparent);
    border: 1px solid color-mix(in srgb, #10b981 35%, transparent);
    color: #047857;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────── */
.marketing-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2rem;
    background: var(--bg-soft);
}
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 1rem 0 0;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.35rem 0; }
.footer-col a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 120ms;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   CONVERSION REBUILD — new components for home.php v2
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Hero v2 ──────────────────────────────────────────────────────── */
.hero-v2 {
    padding: 5.5rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Hero variants. These were six inline style="padding:…" attributes, which
   beat every media query and left those pages stuck at desktop spacing. */
.hero-v2.hero-compact { padding: 4.5rem 0 3.75rem; }
/* Secondary-page hero title — smaller ceiling than the home hero. Was five
   inline clamp() attributes whose 2.2rem floor never scaled below ~35px. */
.hero-title-v2.hero-title-sm { font-size: clamp(1.75rem, .9rem + 3.4vw, 3.8rem); }
.hero-v2.hero-left    { text-align: left; }
/* Dot-grid texture */
.hero-v2::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: .45;
    pointer-events: none;
}
/* Radial primary wash */
.hero-v2::after {
    content: '';
    position: absolute; inset: -10% 0 auto 0;
    height: 70%;
    background: radial-gradient(ellipse at center top, var(--primary-soft) 0%, transparent 68%);
    pointer-events: none;
}
.hero-v2 > * { position: relative; z-index: 1; }

.hero-announcement {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .8rem .35rem .45rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; font-size: .78rem; font-weight: 500;
    color: var(--text); text-decoration: none; margin-bottom: 2rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-announcement:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.hero-ann-badge {
    background: var(--primary); color: #fff;
    font-size: .68rem; font-weight: 700; padding: 2px 7px;
    border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}

.hero-title-v2 {
    font-size: clamp(2rem, 1rem + 4.5vw, 5rem);
    line-height: 1.03; letter-spacing: -.03em; font-weight: 700;
    margin: 0 0 1.25rem;
}
.hero-title-v2 em { font-style: normal; color: var(--primary); }

.hero-sub-v2 {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--text-muted); line-height: 1.65;
    max-width: 600px; margin: 0 auto 2.25rem;
}

.hero-cta-v2 {
    display: inline-flex; align-items: center; gap: .75rem;
    flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem;
}
.btn-xl {
    height: auto; min-height: 52px;
    padding: .85rem 1.75rem; font-size: 1rem; border-radius: 10px; font-weight: 600;
}
/* Long trial CTAs cannot fit one line on a phone; .btn's nowrap made them
   push the document sideways instead of wrapping. */
@media (max-width: 768px) {
    .btn-xl, .btn-lg {
        white-space: normal;
        height: auto;
        text-align: center;
        max-width: 100%;
    }
    .btn-xl { min-height: 50px; padding: .8rem 1.15rem; font-size: .95rem; }
    .btn-lg { min-height: 46px; padding: .7rem 1rem; }
}
.btn-outline-dark {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border-strong); border-radius: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; text-decoration: none; transition: all .15s ease;
}
.btn-outline-dark:hover { border-color: var(--text); background: var(--surface-2); }
.btn-outline-white {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,.5); border-radius: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; text-decoration: none; transition: all .15s ease;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-white {
    background: #fff; color: var(--primary);
    border-radius: 10px; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .15s ease;
}
.btn-white:hover { background: #f5f5f5; }

.hero-trust {
    font-size: .82rem; color: var(--text-muted);
    margin: .75rem 0 2rem;
}

/* Proof bar */
.hero-proof {
    display: inline-flex; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem 2rem; flex-wrap: wrap;
    justify-content: center; gap: 1rem;
    margin-top: .5rem;
}
.hero-proof-item { text-align: center; padding: 0 1.5rem; }
.hero-proof-item strong { display: block; font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.hero-proof-item span { font-size: .78rem; color: var(--text-muted); }
.hero-proof-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── Persona strip ────────────────────────────────────────────────── */
.persona-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 1.25rem 0;
}
.persona-strip .m-container { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.persona-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }
.persona-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.persona-chip {
    padding: .3rem .75rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--text);
    white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem;
}

/* ─── Tabler icons across the marketing site ───────────────────────── */
.pain-icon .ti, .feature-icon-v2 .ti, .feature-detail-icon .ti,
.about-value-icon .ti, .objection-cta-icon .ti { color: var(--primary); display: inline-block; }
.persona-chip .ti { color: var(--primary); font-size: 1rem; }
.features-nav-link .ti,
.feature-chapter-eyebrow .ti { font-size: 1.05em; vertical-align: -.12em; margin-right: .15rem; }
.features-nav-link { display: inline-flex; align-items: center; gap: .45rem; }
.feature-chapter-eyebrow .ti { color: var(--primary); }
.contact-details-v2 .ti { color: var(--primary); font-size: 1.1rem; }

/* ─── Pain section ─────────────────────────────────────────────────── */
.pain-section { background: var(--bg); }
.pain-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-bottom: 2.5rem;
}
.pain-card {
    padding: 1.5rem 1.75rem; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface);
    border-left: 3px solid var(--primary);
    transition: box-shadow .2s ease;
}
.pain-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.pain-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.pain-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.pain-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.pain-cta { text-align: center; }

/* ─── Stats bar ────────────────────────────────────────────────────── */
.stats-bar {
    background: #17171b;
    padding: 3rem 0;
}
[data-theme="dark"] .stats-bar {
    background: #0c0c0e;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    color: #fff; letter-spacing: -.03em; line-height: 1;
    margin-bottom: .4rem;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.4; }

/* ─── Pillars ──────────────────────────────────────────────────────── */
.pillars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.pillar-card {
    padding: 2rem; border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); position: relative;
    transition: box-shadow .2s ease;
}
.pillar-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.pillar-card--highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 32px color-mix(in srgb, var(--primary) 12%, transparent);
    background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}
.pillar-badge {
    position: absolute; top: -10px; left: 1.5rem;
    background: var(--primary); color: #fff;
    font-size: .68rem; font-weight: 700; padding: 3px 10px;
    border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
}
.pillar-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.pillar-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .75rem; letter-spacing: -.015em; }
.pillar-card p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; margin: 0 0 1.25rem; }
.pillar-list { list-style: none; padding: 0; margin: 0; }
.pillar-list li {
    padding: .35rem 0 .35rem 1.4rem; position: relative;
    font-size: .88rem; color: var(--text-muted);
}
.pillar-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--primary);
    font-weight: 700;
}

/* ─── Mid-CTA strip ────────────────────────────────────────────────── */
.mid-cta-strip {
    background: var(--primary-soft);
    border-top: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    padding: 2.5rem 0;
}
.mid-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.mid-cta-inner h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .25rem; }
.mid-cta-inner p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ─── Steps ────────────────────────────────────────────────────────── */
.steps-grid {
    display: flex; align-items: flex-start; gap: .5rem;
    flex-wrap: wrap; justify-content: center;
}
.step-card {
    flex: 1; min-width: 220px; max-width: 300px;
    padding: 2rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px;
    text-align: center;
}
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; }
.step-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; }
.step-time {
    display: inline-block; padding: .25rem .75rem;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.step-connector {
    font-size: 1.5rem; color: var(--border-strong); padding: 2rem .25rem 0;
    flex-shrink: 0;
}
@media (max-width: 768px) { .step-connector { display: none; } }

/* ─── Feature grid v2 ──────────────────────────────────────────────── */
.feature-grid-v2 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.feature-card-v2 {
    padding: 1.5rem 1.75rem; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.feature-card-v2:hover { border-color: var(--border-strong); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.feature-icon-v2 { font-size: 1.6rem; margin-bottom: .75rem; }
.feature-card-v2 h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.feature-card-v2 p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ─── Testimonials ─────────────────────────────────────────────────── */
.testimonials-section { }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    padding: 2rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px;
    display: flex; flex-direction: column; gap: 1.25rem;
    transition: box-shadow .2s ease;
}
.testimonial-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.testimonial-card--featured {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 3%, var(--surface));
    box-shadow: 0 0 0 1px var(--primary);
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-card blockquote {
    margin: 0; font-size: .95rem; line-height: 1.7;
    color: var(--text); font-style: italic;
    flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .78rem; color: var(--text-muted); }

/* ─── Compare table ────────────────────────────────────────────────── */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Fades the right edge while there is more table to scroll to. */
    background:
        linear-gradient(to right, var(--bg) 30%, transparent) left / 24px 100% no-repeat,
        linear-gradient(to left,  var(--bg) 30%, transparent) right / 24px 100% no-repeat,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.10), transparent) left / 12px 100% no-repeat,
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.10), transparent) right / 12px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
}
.compare-table {
    width: 100%; min-width: 620px; border-collapse: collapse;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
    padding: .85rem 1.1rem; text-align: center;
    font-size: .9rem; border-bottom: 1px solid var(--border);
}
.compare-table th:first-child, .compare-table td:first-child {
    text-align: left; font-weight: 500; color: var(--text); width: 36%;
}
.compare-table thead { background: var(--bg-soft); }
.compare-table th { font-size: .8rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.compare-table th.compare-us, .compare-table td.compare-us {
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
    color: var(--primary); font-weight: 700;
}
.compare-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.compare-table tbody tr:nth-child(even) td.compare-us { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.compare-yes { color: #15803d; font-weight: 700; }
.compare-no { color: #9ca3af; }
.compare-meh { color: #92400e; font-size: .82rem; }
.compare-table tbody tr:last-child td { border-bottom: none; font-weight: 600; }
[data-theme="dark"] .compare-yes { color: #4ade80; }
[data-theme="dark"] .compare-meh { color: #fbbf24; }

/* ─── Comparison page ──────────────────────────────────────────────── */
.compare-legend {
    display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
    margin-top: 1.25rem; font-size: .85rem; color: var(--text-muted);
}
.compare-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.compare-table .compare-yes { font-size: 1.05rem; }
.vs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.25rem;
}
.vs-card {
    padding: 1.75rem; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface);
}
.vs-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.vs-card-head .ti { font-size: 1.4rem; color: var(--primary); }
.vs-card-head h3 { font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.vs-block { margin-bottom: 1.1rem; }
.vs-block:last-child { margin-bottom: 0; }
.vs-block-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: .6rem;
}
.vs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.vs-list li { display: flex; gap: .5rem; font-size: .9rem; line-height: 1.5; color: var(--text); }
.vs-list li .ti { flex-shrink: 0; margin-top: .1rem; font-size: 1.05rem; }
.vs-win .vs-list li .ti { color: #15803d; }
[data-theme="dark"] .vs-win .vs-list li .ti { color: #4ade80; }
.vs-keep .vs-list li { color: var(--text-muted); }
.vs-keep .vs-list li .ti { color: var(--text-muted); }

/* ─── Objections ───────────────────────────────────────────────────── */
.objections-grid { display: flex; gap: 3rem; align-items: flex-start; flex-wrap: wrap; }
.objections-grid .faq-list { flex: 1; min-width: 280px; }
.objection-cta-card {
    width: 280px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 2rem; text-align: center;
    position: sticky; top: 88px;
}
.objection-cta-icon { font-size: 2rem; margin-bottom: 1rem; }
.objection-cta-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .6rem; }
.objection-cta-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 1.25rem; }
.objection-cta-note { font-size: .78rem; color: var(--text-muted); margin: .75rem 0 0; }
.objection-cta-note a { color: var(--primary); }
@media (max-width: 900px) {
    .objection-cta-card { width: 100%; position: static; }
    .objections-grid { flex-direction: column; }
}

/* ─── Pricing tease ────────────────────────────────────────────────── */
.pricing-tease-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.pricing-tease-card {
    padding: 2rem; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface);
    display: flex; flex-direction: column; gap: .75rem;
    position: relative;
}
.pricing-tease-card--highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.pricing-tease-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: .68rem; font-weight: 700; padding: 3px 12px;
    border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
}
.pricing-tease-name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.pricing-tease-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.pricing-tease-price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.pricing-tease-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.pricing-tease-list li {
    padding: .3rem 0 .3rem 1.3rem; position: relative;
    font-size: .88rem; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.pricing-tease-list li:last-child { border-bottom: none; }
.pricing-tease-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ─── Final CTA section ────────────────────────────────────────────── */
.final-cta-section {
    background: #17171b;
    padding: 6rem 0;
    text-align: center;
}
[data-theme="dark"] .final-cta-section {
    background: #0c0c0e;
    border-top: 1px solid rgba(255,255,255,.07);
}
.final-cta-inner { max-width: 720px; margin: 0 auto; }
.final-cta-badge {
    display: inline-block; margin-bottom: 1.5rem;
    padding: .35rem 1rem; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
    font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.8);
    letter-spacing: .04em;
}
.final-cta-section h2 {
    font-size: clamp(1.6rem, .9rem + 3vw, 3.2rem); font-weight: 700;
    letter-spacing: -.025em; line-height: 1.12;
    color: #fff; margin: 0 0 1.25rem;
}
.final-cta-section p { color: rgba(255,255,255,.65); font-size: 1.05rem; line-height: 1.65; margin: 0 0 2rem; }
.final-cta-trust { color: rgba(255,255,255,.45); font-size: .82rem; margin-top: 1.25rem; }

/* ─── Responsive overrides ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Horizontal gutters belong to .m-container — these must stay vertical-only. */
    .hero-v2 { padding: 4rem 0 3.5rem; }
    .hero-v2.hero-compact { padding: 3.25rem 0 2.75rem; }
    .final-cta-section { padding: 4rem 0; }
    .hero-proof { padding: 1rem 1.25rem; }
    .hero-proof-item { padding: 0 .75rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { flex-direction: column; align-items: center; }
    .mid-cta-inner { flex-direction: column; text-align: center; }
    .pillars-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .compare-table th, .compare-table td { padding: .65rem .7rem; font-size: .8rem; }
    .pricing-tease-grid { grid-template-columns: 1fr; }
}

/* Narrow phones. Ordered after the 768 block so these win where they overlap —
   the previous 600px .hero-proof-item rule lost to a later 720px one and was
   silently dead. */
@media (max-width: 480px) {
    .m-container { padding: 0 1rem; }
    .hero-proof-divider { display: none; }
    .hero-proof-item { padding: .5rem 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OTHER PAGES — features / textile / about / contact / pricing
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Shared hero eyebrow (plain, no border) ───────────────────────── */
.hero-eyebrow-plain {
    display: inline-block; font-size: .8rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 1.25rem;
}

/* ─── Features nav bar ─────────────────────────────────────────────── */
.features-nav-bar {
    /* --mnav-h is measured from the real header by the layout script; the old
       hard-coded 57px was already 2px off on desktop and ~40px off once the
       44px touch-target floor kicked in, hiding this bar under the nav. */
    position: sticky; top: var(--mnav-h, 59px); z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.features-nav {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.features-nav::-webkit-scrollbar { display: none; }
.features-nav-link {
    padding: .85rem 1.1rem; font-size: .88rem; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    border-bottom: 2.5px solid transparent; white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.features-nav-link:hover { color: var(--text); }
.features-nav-link.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Feature chapters ─────────────────────────────────────────────── */
.feature-chapter-head {
    text-align: center; margin-bottom: 3rem;
}
.feature-chapter-eyebrow {
    font-size: .88rem; font-weight: 700; color: var(--primary);
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.feature-chapter-head h2 {
    font-size: clamp(1.5rem, .95rem + 2.2vw, 2.6rem);
    letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .75rem;
}
.feature-chapter-head p {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.6;
    max-width: 600px; margin: 0 auto;
}
.feature-chapter-cta { text-align: center; margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }

/* ─── Feature detail grid ──────────────────────────────────────────── */
.feature-detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.feature-detail-card {
    padding: 1.5rem 1.75rem; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface);
    transition: box-shadow .2s ease;
}
.feature-detail-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.feature-detail-card--wide { grid-column: 1 / -1; }
.feature-detail-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.feature-detail-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; letter-spacing: -.01em; }
.feature-detail-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.feature-detail-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.feature-detail-tags span {
    padding: .2rem .65rem; background: var(--primary-soft);
    color: var(--primary); border-radius: 999px; font-size: .72rem; font-weight: 600;
}

/* ─── Inventory modes ──────────────────────────────────────────────── */
.inventory-modes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem; margin-bottom: 1.5rem;
}
.inventory-mode-card {
    padding: 1.75rem 2rem; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface);
}
.inventory-mode-card--highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px color-mix(in srgb, var(--primary) 10%, transparent);
    background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}
.inventory-mode-num {
    font-size: .75rem; font-weight: 800; color: var(--primary);
    letter-spacing: .1em; margin-bottom: .75rem;
}
.inventory-mode-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4rem; }
.inventory-mode-for { font-size: .8rem; color: var(--primary); font-weight: 600; margin: 0 0 .75rem; }
.inventory-mode-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ─── About page ───────────────────────────────────────────────────── */
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.25rem; margin-bottom: 3.5rem;
}
.about-value {
    padding: 1.5rem 1.75rem; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface);
}
.about-value-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.about-value h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.about-value p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.about-story h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; }
.about-story p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.about-story a { color: var(--primary); }

/* ─── Contact v2 ───────────────────────────────────────────────────── */
.contact-grid-v2 {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem; align-items: start;
}
@media (max-width: 768px) { .contact-grid-v2 { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-block h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.contact-info-block p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; margin: 0; }
.contact-details-v2 { list-style: none; padding: 0; margin: .75rem 0 0; }
.contact-details-v2 li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .92rem; color: var(--text-muted); }
.contact-details-v2 a { color: var(--primary); text-decoration: none; }
.contact-quick-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.contact-quick-links a { color: var(--primary); font-size: .92rem; font-weight: 500; text-decoration: none; }
.contact-quick-links a:hover { text-decoration: underline; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ─── Pricing trust bar ────────────────────────────────────────────── */
.pricing-trust-bar {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .75rem 2rem; margin-top: 2rem; padding: 1.5rem;
    background: var(--bg-soft); border-radius: 12px;
    border: 1px solid var(--border);
}
.pricing-trust-bar span { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────
   Mobile ergonomics
   Scoped to .page-marketing so the app/POS surfaces keep their own dense
   control sizing — those need the same iOS treatment, but on their own cache key.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* iOS Safari force-zooms the viewport on focus when a control's font-size
       is under 16px, and does not zoom back out — which reads as the page
       "breaking" for the rest of the session. */
    .page-marketing input,
    .page-marketing select,
    .page-marketing textarea {
        font-size: 16px;
        min-height: 46px;
    }
    .page-marketing textarea { min-height: 120px; }

    /* Touch-target floors for the link classes that are not .btn and so miss
       the 44px floor app.css applies to buttons. */
    .footer-col ul li { padding: 0; }
    .footer-col a,
    .contact-details-v2 a,
    .contact-quick-links a,
    .features-nav-link,
    .pricing-toggle button {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .contact-details-v2 li { padding: 0; min-height: 44px; }
    .contact-quick-links { gap: 0; }
    .pricing-toggle button { padding-inline: 1rem; }
}

/* Headline <br> tags are art-directed for desktop line breaks; on a phone they
   fight the natural wrap and strand single words on their own line. */
@media (max-width: 768px) {
    .hero-title br,
    .hero-title-v2 br,
    .section-title br,
    .final-cta-section h2 br,
    .feature-chapter-head h2 br { display: none; }
}

/* Last-resort guard: one mis-sized child should never side-scroll the page.
   `clip` rather than `hidden` so it cannot create a scroll container that
   breaks position: sticky on the nav. */
.page-marketing { overflow-x: clip; }
