/* ====== CHIROAPP MARKETING WEBSITE ====== */
@import url('./vendor/fonts/fonts.css');   /* LEGAL-1672: self-hosted Inter (was Google Fonts) */

:root {
    --w-brand: #355E3B;
    --w-brand-dark: #2a4d30;
    --w-brand-light: #4a7d52;
    --w-brand-pale: #e8f0e9;
    --w-brand-gradient: linear-gradient(135deg, #355E3B 0%, #4a7d52 100%);
    --w-bg: #ffffff;
    --w-bg-alt: #f8faf8;
    --w-text: #1a1a2e;
    --w-text-muted: #5a6270;
    --w-border: #e2e8f0;
    --w-radius: 16px;
    --w-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --w-shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --w-max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--w-text); background: var(--w-bg); line-height: 1.6; }

/* ====== UTILITIES ====== */
.container { max-width: var(--w-max-width); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--w-text-muted); }
.section { padding: 6rem 0; }
.section-alt { background: var(--w-bg-alt); }

/* ====== BUTTONS ====== */
.btn-w {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600;
    font-size: 1rem; text-decoration: none; border: none; cursor: pointer;
    font-family: inherit; transition: all 0.3s ease;
}
.btn-w-primary {
    background: var(--w-brand-gradient); color: white;
    box-shadow: 0 4px 15px rgba(53,94,59,0.3);
}
.btn-w-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(53,94,59,0.4); }
.btn-w-outline {
    background: transparent; color: var(--w-brand); border: 2px solid var(--w-brand);
}
.btn-w-outline:hover { background: var(--w-brand); color: white; }
.btn-w-white { background: white; color: var(--w-brand); }
.btn-w-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-w-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ====== ACCESSIBILITY (LEGAL-1672, WCAG 2.1 AA) ====== */
/* "Skip to main content": the first stop for keyboard users; hidden until it has focus. */
.w-skip-link {
    position: absolute; left: 0.75rem; top: -200px; z-index: 2000;
    background: var(--w-brand); color: #fff; font-weight: 700; font-size: 0.95rem;
    padding: 0.75rem 1.1rem; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.w-skip-link:focus { top: calc(0.75rem + env(safe-area-inset-top, 0px)); outline: 3px solid #fff; outline-offset: -6px; }
/* A clear keyboard focus ring (mouse clicks are unaffected: :focus-visible only). */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--w-brand); outline-offset: 2px;
}
.w-footer a:focus-visible, .w-cta a:focus-visible, .w-cta button:focus-visible, .w-feedback-card button:focus-visible,
.btn-w-primary:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--w-brand-dark); }
main[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ====== NAVBAR ====== */
.w-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    padding-top: env(safe-area-inset-top, 0px);
}
.w-nav-inner {
    max-width: var(--w-max-width); margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
/* NAVTABLET-1674 (owner 2026-11-13, iPad Safari ~810 px): nav labels never wrap, the logo never shrinks into the links
   (min gap between the three header groups). The compact (hamburger) menu engages below 1100 px, see the media block below. */
.w-nav-inner { gap: 1rem; }
.w-nav-logo { flex: 0 0 auto; white-space: nowrap; }
.w-nav-links a, .w-nav-login, .w-nav-actions .btn-w { white-space: nowrap; }
.w-nav-actions { flex: 0 0 auto; }
.w-nav-links { flex-wrap: nowrap; }
.w-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--w-text); }
.w-nav-logo img { height: 36px; }
.w-nav-logo span { font-size: 1.25rem; font-weight: 800; }
.w-nav-logo .brand-dot { color: var(--w-brand); }
.w-nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.w-nav-links a {
    text-decoration: none; color: var(--w-text-muted); font-weight: 500;
    font-size: 0.9rem; transition: color 0.2s;
}
.w-nav-links a:hover { color: var(--w-brand); }
.w-nav-actions { display: flex; align-items: center; gap: 1rem; }
.w-nav-login { text-decoration: none; color: var(--w-text); font-weight: 600; font-size: 0.95rem; }
.w-mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--w-text); }

/* ====== HERO ====== */
.w-hero {
    padding: 10rem 0 8rem;
    background: linear-gradient(160deg, #f8faf8 0%, #e8f0e9 30%, #ffffff 70%);
    position: relative; overflow: hidden;
}
.w-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(53,94,59,0.06) 0%, transparent 70%);
}
.w-hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; z-index: 1;
}
.w-hero-text h1 {
    font-size: 3.2rem; font-weight: 900; line-height: 1.1;
    margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.w-hero-text h1 .highlight {
    background: var(--w-brand-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.w-hero-text p { font-size: 1.1rem; color: var(--w-text-muted); margin-bottom: 2rem; max-width: 520px; line-height: 1.7; }
.w-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.w-hero-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* ====== PHONE MOCKUP ====== */
.phone-frame {
    width: 270px; height: 520px; border-radius: 40px;
    background: #1a1a2e; padding: 12px; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.1);
}
.phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 28px; background: #1a1a2e; border-radius: 0 0 16px 16px;
    z-index: 5; display: flex; align-items: center; justify-content: center;
}
.phone-camera {
    width: 10px; height: 10px; border-radius: 50%;
    background: #2a2a3e; border: 1px solid #3a3a4e;
}
.phone-screen {
    width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
    background: #f8fafc; position: relative;
}
.phone-carousel { position: relative; height: 100%; overflow: hidden; }
.phone-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease;
}
.phone-slide.active { opacity: 1; }

/* ====== PHONE MOCKUP — exact match of real app CSS ====== */
/* Source of truth: index.css design tokens and component styles */

/* Mobile header: .mobile-header from index.css:256-270 */
.app-mobile-header {
    background: rgba(255,255,255,0.6); /* --bg-glass */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148,163,184,0.3); /* --border-color */
    padding: 8px 12px; display: flex;
    align-items: center; justify-content: space-between;
}
/* Hamburger: .mobile-menu-btn span from index.css:247-254 */
.app-hamburger {
    width: 18px; height: 12px; display: flex; flex-direction: column;
    justify-content: space-between; cursor: pointer;
}
.app-hamburger span {
    display: block; height: 2px; background: #0f172a; /* --text-primary */
    border-radius: 2px; width: 100%;
}
/* Icon button: loosely matches header-qr-btn / logout btn */
.app-icon-btn {
    width: 22px; height: 22px; border-radius: 6px; display: flex;
    align-items: center; justify-content: center;
    background: none; border: none;
    font-size: 0.8rem; color: #94a3b8; /* --text-muted */
}
/* Body: matches --bg-primary + body::before radial gradients */
.app-body {
    padding: 10px; height: calc(100% - 34px); overflow: hidden;
    background: #f8fafc; /* --bg-primary */
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(53,94,59,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(20,184,166,0.05) 0%, transparent 50%);
}
/* Greeting: .dashboard-greeting-header h1 from index.css:526-532 */
.app-greeting {
    font-size: 0.82rem; font-weight: 700;
    background: linear-gradient(135deg, #355E3B, #2a4d30);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 2px;
}
/* Page title: .page-header h1 from index.css:430-434 */
.app-page-title {
    font-size: 0.85rem; font-weight: 700; color: #0f172a; margin-bottom: 2px;
}
.app-page-title i { color: #355E3B; margin-right: 4px; }
/* Tab bar: .modal-tabs from real app */
.app-tab-bar {
    display: flex; gap: 2px; margin-bottom: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.app-tab {
    font-size: 0.45rem; padding: 3px 6px; border-radius: 6px;
    font-weight: 600; color: #94a3b8; background: transparent;
    border: 1px solid rgba(148,163,184,0.2); white-space: nowrap;
}
.app-tab.active {
    background: linear-gradient(135deg, #355E3B, #2a4d30);
    color: white; border-color: #355E3B;
}
/* SOAP letter badge: .soap-letter from real app */
.app-soap-letter {
    width: 22px; height: 22px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800; color: white;
    flex-shrink: 0;
}

/* .card.glass from index.css:444-455 */
.app-card-glass {
    background: rgba(255,255,255,0.6); /* --bg-glass */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148,163,184,0.3); /* --border-color */
    box-shadow: 0 4px 16px rgba(15,23,42,0.06); /* --shadow-color */
    border-radius: 12px; /* --radius-xl scaled down */
    padding: 10px; margin-bottom: 8px;
}
/* Card h3: index.css:457-461 */
.app-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.app-card-title {
    font-size: 0.72rem; font-weight: 600; color: #0f172a;
}
/* btn btn-sm btn-secondary from index.css:1240+1260 */
.app-card-btn {
    font-size: 0.48rem; font-weight: 600; color: #475569;
    background: transparent; border: 1px solid rgba(148,163,184,0.3);
    padding: 2px 6px; border-radius: 6px;
}
/* .appointments-section-title from index.css:890-897 */
.app-sub-heading {
    font-size: 0.55rem; font-weight: 600; color: #475569;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 6px;
}
/* entity-avatar from index.css:1107-1128 — ROUNDED SQUARE, transparent bg */
.app-entity-avatar {
    width: 26px; height: 26px;
    border-radius: 8px; /* --radius-lg scaled: rounded square, NOT circle */
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(148,163,184,0.3); /* --border-color */
}
/* Status badge from upcomingAppointmentItem inline styles */
.app-badge {
    font-size: 0.38rem; padding: 1px 4px; border-radius: 3px;
    color: white; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; vertical-align: middle; margin-left: 4px;
}
/* Appointment item: .recent-item from components.js:1951-1980 */
.app-appointment-item {
    background: rgba(255,255,255,0.8); /* --bg-card */
    border: 1px solid rgba(148,163,184,0.3); /* --border-color */
    border-radius: 10px; /* --radius-lg */
    padding: 8px; margin-bottom: 5px;
    transition: all 0.2s ease;
}
/* Detail section: bg-secondary + colored left border */
.app-detail-section {
    margin-top: 5px; padding: 5px 7px; border-radius: 6px;
    background: #f1f5f9; /* --bg-secondary */
    border-left: 3px solid #355E3B;
    font-size: 0.5rem; color: #475569; line-height: 1.3;
}
.app-detail-label {
    font-size: 0.42rem; text-transform: uppercase; font-weight: 700;
    color: #94a3b8; letter-spacing: 0.05em; margin-bottom: 2px;
}
.app-loc-badge {
    font-size: 0.48rem; padding: 2px 5px; border-radius: 4px;
    background: rgba(0,0,0,0.04); font-weight: 600; color: #475569;
}

/* SOAP Note form: .form-section from index.css:1286-1295 */
.app-form-section {
    margin-bottom: 8px;
}
.app-form-label {
    font-size: 0.6rem; font-weight: 600; color: #0f172a;
    margin-bottom: 4px; padding-bottom: 3px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}
.app-form-textarea {
    font-size: 0.55rem; color: #475569; line-height: 1.4;
    background: rgba(255,255,255,0.8); border-radius: 8px; padding: 6px;
    border: 1px solid rgba(148,163,184,0.2);
}

/* Toggle buttons: .anatomy-toggle-btn from index.css:1548-1579 */
.app-toggle-row { display: flex; flex-wrap: wrap; gap: 3px; }
.app-toggle {
    font-size: 0.48rem; padding: 3px 7px;
    border-radius: 9999px; /* --radius-full = pill shape */
    background: rgba(255,255,255,0.8); /* --bg-card */
    color: #475569; /* --text-secondary */
    border: 1px solid rgba(148,163,184,0.3); /* --border-color */
    font-weight: 500;
}
.app-toggle.active {
    background: linear-gradient(135deg, #355E3B, #2a4d30);
    color: white; border-color: #355E3B;
    box-shadow: 0 2px 6px rgba(53,94,59,0.3);
}

/* Anatomy rows */
.app-anatomy-row {
    margin-bottom: 6px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(148,163,184,0.1);
}
.app-anatomy-row:last-child { border-bottom: none; }
.app-anatomy-label {
    font-size: 0.6rem; font-weight: 600; color: #0f172a; margin-bottom: 3px;
}

/* Invoice styles */
.app-status-badge {
    font-size: 0.5rem; padding: 2px 8px; border-radius: 9999px; font-weight: 600;
}
.app-status-badge.paid { background: rgba(34,197,94,0.15); color: #16a34a; }
.app-invoice-client { font-size: 0.8rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.app-invoice-date { font-size: 0.55rem; color: #94a3b8; margin-bottom: 10px; }
.app-invoice-line {
    display: flex; justify-content: space-between; padding: 5px 0;
    border-bottom: 1px solid rgba(148,163,184,0.1);
    font-size: 0.6rem; color: #475569;
}
.app-invoice-total {
    display: flex; justify-content: space-between; padding: 7px 0;
    font-size: 0.75rem; font-weight: 800; color: #0f172a;
    border-top: 2px solid rgba(148,163,184,0.2); margin-top: 4px;
}
.app-invoice-btn {
    margin-top: 8px; text-align: center; padding: 7px;
    background: linear-gradient(135deg, #355E3B, #2a4d30);
    color: white; border-radius: 10px; font-size: 0.65rem; font-weight: 600;
    box-shadow: 0 4px 12px rgba(53,94,59,0.3);
}

.phone-dots {
    display: flex; justify-content: center; gap: 6px; padding: 8px 0;
    position: absolute; bottom: 4px; left: 0; right: 0; z-index: 5;
}
.phone-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #d1d5db;
    transition: all 0.3s; cursor: pointer;
}
.phone-dot.active { background: #355E3B; width: 18px; border-radius: 3px; }

/* ====== MULTI-DEVICE SHOWCASE ====== */
.device-showcase {
    position: relative;
    width: 560px;
    height: 540px;
}
.device-laptop {
    position: absolute;
    top: -10px;
    left: -60px;
    z-index: 1;
    transform: perspective(1500px) rotateY(5deg);
    transition: transform 0.5s ease;
}
.device-laptop:hover { transform: perspective(1500px) rotateY(2deg) translateY(-4px); }
.laptop-lid {
    background: #1a1a2e;
    border-radius: 10px 10px 0 0;
    padding: 8px 8px 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.laptop-screen {
    width: 340px; height: 213px; border-radius: 3px;
    overflow: hidden; background: #f8fafc;
    background-image: radial-gradient(ellipse at 20% 20%, rgba(53,94,59,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(20,184,166,0.04) 0%, transparent 50%);
}
.laptop-base {
    width: 380px; height: 10px;
    background: linear-gradient(to bottom, #2a2a3e, #22223a);
    border-radius: 0 0 6px 6px;
    margin: 0 auto; position: relative;
}
.laptop-base::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: #3a3a4e; border-radius: 0 0 3px 3px;
}
/* Laptop internals */
.mock-desktop { display: flex; height: 100%; }
.mock-sidebar {
    width: 38px; background: #1e293b;
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 0; gap: 2px; flex-shrink: 0;
}
.mock-sidebar-logo {
    width: 22px; height: 22px; border-radius: 5px;
    background: linear-gradient(135deg, #355E3B, #4a7d52);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px; overflow: hidden;
}
.mock-sidebar-logo img { height: 13px; filter: brightness(10); }
.mock-sidebar-item {
    width: 26px; height: 26px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: #64748b;
}
.mock-sidebar-item.active { background: rgba(53,94,59,0.2); color: #4ade80; }
.mock-main { flex: 1; padding: 8px; overflow: hidden; }
.mock-main-title {
    font-size: 0.6rem; font-weight: 700; color: #0f172a; margin-bottom: 6px;
    display: flex; align-items: center;
}
.mock-stats { display: flex; gap: 5px; margin-bottom: 8px; }
.mock-stat-card {
    flex: 1; background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.2); border-radius: 6px;
    padding: 5px 4px; text-align: center;
}
.mock-stat-card .num { font-size: 0.6rem; font-weight: 800; color: #355E3B; }
.mock-stat-card .label { font-size: 0.3rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.mock-section-title {
    font-size: 0.42rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.mock-row {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 5px; background: rgba(255,255,255,0.6);
    border: 1px solid rgba(148,163,184,0.12); border-radius: 5px;
    margin-bottom: 2px; font-size: 0.4rem; color: #475569;
}
.mock-row-avatar {
    width: 14px; height: 14px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.35rem; background: rgba(148,163,184,0.08);
    border: 1px solid rgba(148,163,184,0.15); flex-shrink: 0;
}
.mock-row-name { font-weight: 600; color: #0f172a; }
.mock-row-meta { color: #94a3b8; font-size: 0.36rem; margin-left: auto; white-space: nowrap; }

/* Tablet */
.device-tablet {
    position: absolute; bottom: 40px; left: 150px; z-index: 2;
    transform: perspective(1500px) rotateY(-3deg);
    transition: transform 0.5s ease;
}
.device-tablet:hover { transform: perspective(1500px) rotateY(0deg) translateY(-4px); }
.tablet-bezel {
    width: 190px; height: 280px; background: #1a1a2e;
    border-radius: 16px; padding: 12px 9px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.tablet-screen {
    width: 100%; height: 100%; border-radius: 5px;
    overflow: hidden; background: #f8fafc; position: relative;
    background-image: radial-gradient(ellipse at 20% 20%, rgba(53,94,59,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(20,184,166,0.04) 0%, transparent 50%);
    padding: 8px;
}
.mock-portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mock-portal-greeting {
    font-size: 0.58rem; font-weight: 700;
    background: linear-gradient(135deg, #355E3B, #2a4d30);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mock-portal-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #355E3B, #4a7d52);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.38rem; color: white; font-weight: 700;
}
.mock-portal-section {
    font-size: 0.42rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #64748b; margin-bottom: 5px;
}
.mock-portal-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.2); border-radius: 7px;
    padding: 7px; margin-bottom: 5px;
}
.mock-portal-card .p-date { font-size: 0.44rem; font-weight: 700; color: #0f172a; margin-bottom: 1px; }
.mock-portal-card .p-detail { font-size: 0.38rem; color: #94a3b8; }
.mock-portal-card .p-badge {
    display: inline-block; font-size: 0.32rem; padding: 1px 5px;
    border-radius: 3px; background: rgba(53,94,59,0.1); color: #355E3B;
    font-weight: 700; margin-top: 2px;
}
.mock-portal-nav {
    position: absolute; bottom: 8px; left: 8px; right: 8px;
    display: flex; justify-content: space-around; padding: 5px 0;
    background: rgba(255,255,255,0.9); border-radius: 7px;
    border: 1px solid rgba(148,163,184,0.12);
}
.mock-portal-nav i { font-size: 0.6rem; color: #94a3b8; }
.mock-portal-nav i.active { color: #355E3B; }

/* Phone positioning */
.device-phone { position: absolute; bottom: 0; right: 0; z-index: 3; }

/* Disclaimer */
.device-disclaimer {
    text-align: center; font-size: 0.75rem; color: var(--w-text-muted);
    font-style: italic; margin-top: 8px;   /* LEGAL-1672: full strength (opacity 0.6 read at 2.6:1) */
}
/* LEGAL-1672 (WCAG 2.2.2): pause / play the phone slideshow; a small text button under the phone. */
.phone-pause {
    display: block; margin: 10px auto 0; background: none; border: 0; padding: 6px 10px; min-height: 32px;
    font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--w-brand); text-decoration: underline; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .phone-slide, .portal-phone-slide { transition: none !important; }
}


/* ====== FEATURES GRID ====== */
.w-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-feature-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2rem; transition: all 0.3s ease; text-align: center;
}
.w-feature-card:hover { transform: translateY(-4px); box-shadow: var(--w-shadow-lg); border-color: var(--w-brand); }
.w-feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    background: var(--w-brand-pale); color: var(--w-brand); margin: 0 auto 1.25rem;
}
.w-feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.w-feature-card p { font-size: 0.9rem; color: var(--w-text-muted); line-height: 1.6; }

/* ====== MULTI-SPECIES SECTION ====== */
.w-species-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem;
}
.w-species-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 1.5rem; text-align: center; transition: all 0.3s ease;
}
.w-species-card:hover { transform: translateY(-4px); box-shadow: var(--w-shadow-lg); border-color: var(--w-brand); }
.w-species-icon {
    width: 56px; height: 56px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    background: var(--w-brand-gradient); color: white; margin: 0 auto 1rem;
}
.w-species-card h3, .w-species-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.w-species-card p { font-size: 0.8rem; color: var(--w-text-muted); line-height: 1.5; }


.w-species-callouts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-callout-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2rem; text-align: center; transition: all 0.3s ease;
}
.w-callout-card:hover { transform: translateY(-3px); box-shadow: var(--w-shadow); }
.w-callout-card i {
    font-size: 2rem; color: var(--w-brand); margin-bottom: 1rem; display: block;
}
.w-callout-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.w-callout-card p { font-size: 0.88rem; color: var(--w-text-muted); line-height: 1.6; }

/* ====== CLINICAL DOCUMENTATION SECTION ====== */
.w-clinical-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-clinical-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2rem; transition: all 0.3s ease; text-align: center;
}
.w-clinical-card:hover { transform: translateY(-4px); box-shadow: var(--w-shadow-lg); border-color: var(--w-brand); }
.w-clinical-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.3rem;
    background: var(--w-brand-pale); color: var(--w-brand); margin: 0 auto 1rem;
}
.w-clinical-card h3, .w-clinical-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.w-clinical-card p { font-size: 0.88rem; color: var(--w-text-muted); line-height: 1.6; }

/* ====== AI FEATURES SECTION ====== */
.w-ai-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-ai-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden; text-align: center;
}
.w-ai-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--w-brand-gradient);
}
.w-ai-card:hover { transform: translateY(-4px); box-shadow: var(--w-shadow-lg); }
.w-ai-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.w-ai-card h3, .w-ai-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.w-ai-card p { font-size: 0.88rem; color: var(--w-text-muted); line-height: 1.7; }

.w-ai-note {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2rem;
    background: var(--w-brand-pale); border-radius: var(--w-radius); padding: 1.25rem 2rem; text-align: center;
}
.w-ai-note i { font-size: 1.5rem; color: var(--w-brand); flex-shrink: 0; }
.w-ai-note p { font-size: 0.9rem; color: var(--w-text); margin: 0; }

/* ====== FEATURE SPOTLIGHT ====== */
.w-spotlight-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-spotlight-item {
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 2rem; background: white;
    border: 1px solid var(--w-border); border-radius: var(--w-radius);
    transition: all 0.3s ease; text-align: center;
}
.w-spotlight-item:hover { transform: translateY(-3px); box-shadow: var(--w-shadow-lg); border-color: var(--w-brand); }
.w-spotlight-icon {
    width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    background: var(--w-brand-gradient); color: white;
}
.w-spotlight-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--w-text); }
.w-spotlight-content p { font-size: 0.88rem; color: var(--w-text-muted); line-height: 1.7; }
.w-spotlight-content strong { color: var(--w-brand-dark); font-weight: 600; }

/* ====== HOW IT WORKS ====== */
.w-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-step { text-align: center; position: relative; }
.w-step-num {
    width: 48px; height: 48px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 1rem;
    background: var(--w-brand); color: white; font-weight: 800; font-size: 1.1rem;
}
.w-step h3, .w-step h4 { font-size: 1em; font-weight: 700; margin-bottom: 0.4rem; }   /* LEGAL-1672: h3 (heading order) at the old h4 size */
.w-step p { font-size: 0.85rem; color: var(--w-text-muted); }

/* ====== PRICING ====== */
.w-pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-pricing-card {
    background: white; border: 2px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2.5rem; position: relative; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.w-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--w-shadow-lg); }
.w-pricing-card.popular { border-color: var(--w-brand); }
.w-pricing-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--w-brand-gradient); color: white; padding: 0.3rem 1.5rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.w-pricing-tier { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--w-brand); margin-bottom: 0.5rem; }
.w-pricing-price { margin-bottom: 1.5rem; }
.w-pricing-price .amount { font-size: 3rem; font-weight: 900; color: var(--w-text); }
.w-pricing-price .period { font-size: 1rem; color: var(--w-text-muted); }
.w-pricing-desc { font-size: 0.9rem; color: var(--w-text-muted); margin-bottom: 1.5rem; }
.w-pricing-features { list-style: none; margin-bottom: auto; padding-bottom: 2rem; flex-grow: 1; }
.w-pricing-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 0.5rem 0; font-size: 0.9rem; color: var(--w-text);
}
.w-pricing-features li::before {
    content: '✓'; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: var(--w-brand-pale);
    color: var(--w-brand); font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.w-pricing-features li.disabled { color: #6b7280; }   /* LEGAL-1672: readable (was 50% opacity, contrast 2.2:1) */
.w-pricing-features li.disabled::before { background: #f1f5f9; color: #94a3b8; }

/* ====== TESTIMONIALS ====== */
.w-testimonial-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.w-testimonial-card {
    background: white; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 2rem; text-align: left; transition: all 0.3s ease;
}
.w-testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--w-shadow-lg); }
.w-testimonial-stars {
    color: #f59e0b; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 1rem;
}
.w-testimonial-card p {
    font-size: 0.92rem; color: var(--w-text-muted); line-height: 1.7;
    font-style: italic; margin-bottom: 1.25rem;
}
.w-testimonial-author strong { display: block; font-size: 0.9rem; color: var(--w-text); font-style: normal; }
.w-testimonial-author span { font-size: 0.8rem; color: var(--w-text-muted); font-style: normal; }

/* ====== TRUST BAR ====== */
.w-trust-bar {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding: 3rem 0; border-top: 1px solid var(--w-border); border-bottom: 1px solid var(--w-border);
}
.w-trust-item { text-align: center; }
.w-trust-item .num { font-size: 2rem; font-weight: 900; color: var(--w-brand); }
.w-trust-item .label { font-size: 0.85rem; color: var(--w-text-muted); }

/* ====== FAQ ====== */
.w-faq-list {
    max-width: 800px; margin: 2rem auto 0;
}
.w-faq-item {
    border: 1px solid var(--w-border); border-radius: var(--w-radius);
    margin-bottom: 0.75rem; overflow: hidden; transition: all 0.3s ease;
}
.w-faq-item:hover { border-color: var(--w-brand); }
.w-faq-item summary {
    padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1rem;
    cursor: pointer; list-style: none; display: flex; align-items: center;
    justify-content: space-between; color: var(--w-text);
    transition: background 0.2s;
}
.w-faq-item summary:hover { background: var(--w-bg-alt); }
.w-faq-item summary::after {
    content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--w-brand);
    transition: transform 0.3s;
}
.w-faq-item[open] summary::after { content: '−'; }
.w-faq-item summary::-webkit-details-marker { display: none; }
.w-faq-item p {
    padding: 0 1.5rem 1.25rem; font-size: 0.92rem; color: var(--w-text-muted);
    line-height: 1.7;
}
.w-faq-item p strong { color: var(--w-brand-dark); }

/* ====== PROFESSIONAL ORGANIZATIONS ====== */
.w-orgs-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.w-org-link {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1.5rem; background: white; border: 1px solid var(--w-border);
    border-radius: var(--w-radius); text-decoration: none; color: var(--w-text);
    transition: all 0.3s ease;
}
.w-org-link:hover { transform: translateY(-3px); box-shadow: var(--w-shadow); border-color: var(--w-brand); }
.w-org-link strong { font-size: 1.1rem; color: var(--w-brand); }
.w-org-link span { font-size: 0.8rem; color: var(--w-text-muted); text-align: center; }

/* ====== CTA ====== */
.w-cta {
    background: var(--w-brand-gradient); padding: 5rem 0; text-align: center; color: white;
}
.w-cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.w-cta p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ====== FOOTER ====== */
.w-footer {
    background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 4rem 0 2rem;
}
.w-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.w-footer-brand h3 { color: white; font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.w-footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.w-footer-col h4 { color: white; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.w-footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; padding: 0.25rem 0; transition: color 0.2s; }
.w-footer-col a:hover { color: white; }
.w-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
    display: flex; justify-content: space-between; font-size: 0.85rem;
}

/* ====== SIGNUP FORM ====== */
.w-signup-card {
    background: white; border-radius: var(--w-radius); padding: 3rem;
    box-shadow: var(--w-shadow-lg); max-width: 500px; margin: 0 auto;
    border: 1px solid var(--w-border);
}
.w-form-group { margin-bottom: 1.25rem; }
.w-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--w-text); }
.w-form-group input:not([type="checkbox"]), .w-form-group select {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--w-border);
    border-radius: 10px; font-size: 0.95rem; font-family: inherit; color: var(--w-text);
    transition: border-color 0.2s;
}
.w-form-group input:not([type="checkbox"]):focus, .w-form-group select:focus { outline: none; border-color: var(--w-brand); box-shadow: 0 0 0 3px rgba(53,94,59,0.35); }   /* LEGAL-1672: a visible focus ring (was 10% opacity) */
.w-form-group label.w-checkbox-label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-weight: 400; color: #4a5568; margin-bottom: 0;
}
.w-form-group label.w-checkbox-label input[type="checkbox"] {
    width: auto; margin-top: 3px; accent-color: var(--w-brand);
    flex-shrink: 0; cursor: pointer;
}
.w-form-error { color: #ef4444; font-size: 0.85rem; margin-top: 1rem; }

/* ====== SECTION HEADINGS ====== */
.section-heading { margin-bottom: 1rem; }
.section-heading h1, .section-heading h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.section-heading p { font-size: 1.1rem; color: var(--w-text-muted); max-width: 650px; margin: 0.75rem auto 0; line-height: 1.6; }
.section-heading .heading-badge {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
    background: var(--w-brand-pale); color: var(--w-brand); font-size: 0.8rem;
    font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
}

/* ====== HERO SUBTITLE ====== */
.w-hero-subtitle {
    display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
    background: var(--w-brand-pale); color: var(--w-brand); font-size: 0.9rem;
    font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.5px;
}

/* ====== FEEDBACK / LEAD CAPTURE SECTION ====== */
.w-feedback {
    background: linear-gradient(135deg, #1a2e1f 0%, #2a4d30 40%, #355E3B 100%);
    padding: 5rem 0; position: relative; overflow: hidden;
}
.w-feedback::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.w-feedback::after {
    content: ''; position: absolute; bottom: -20%; left: -5%;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}
.w-feedback .container { position: relative; z-index: 1; }
.w-feedback-heading {
    text-align: center; color: white; margin-bottom: 2.5rem;
}
.w-feedback-heading .heading-badge {
    background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
}
.w-feedback-heading h2 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.w-feedback-heading p {
    font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 600px;
    margin: 0 auto; line-height: 1.7;
}
.w-feedback-card {
    max-width: 560px; margin: 0 auto;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 20px;
    padding: 2.5rem;
}
.w-feedback-card .w-form-group { margin-bottom: 1.25rem; }
.w-feedback-card label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 0.4rem; color: rgba(255,255,255,0.85);
}
.w-feedback-card input,
.w-feedback-card textarea {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 10px; font-size: 0.95rem; font-family: inherit;
    color: white; background: rgba(255,255,255,0.06);
    transition: border-color 0.2s, background 0.2s;
}
.w-feedback-card input::placeholder,
.w-feedback-card textarea::placeholder {
    color: rgba(255,255,255,0.35);
}
.w-feedback-card input:focus,
.w-feedback-card textarea:focus {
    outline: none; border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.45);   /* LEGAL-1672: a visible focus ring */
}
.w-feedback-card textarea { resize: vertical; min-height: 100px; }
.w-feedback-submit {
    width: 100%; padding: 0.9rem; border: none; border-radius: 50px;
    background: white; color: var(--w-brand); font-size: 1rem;
    font-weight: 700; font-family: inherit; cursor: pointer;
    transition: all 0.3s ease; margin-top: 0.5rem;
}
.w-feedback-submit:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.w-feedback-submit:disabled {
    opacity: 0.6; cursor: not-allowed; transform: none;
}
.w-feedback-success {
    text-align: center; color: white; padding: 2rem 0;
}
.w-feedback-success i {
    font-size: 3rem; color: #4ade80; display: block; margin-bottom: 1rem;
}
.w-feedback-success h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem;
}
.w-feedback-success p {
    font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
@media (max-width: 768px) {
    .w-feedback { padding: 3.5rem 0; }
    .w-feedback-heading h2 { font-size: 1.6rem; }
    .w-feedback-card { padding: 1.75rem; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.fade-in-visible, .fade-in:not(.fade-in-scroll) { animation: fadeInUp 0.6s ease both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .w-hero-content { grid-template-columns: 1fr; text-align: center; }
    .w-hero-text p { margin-left: auto; margin-right: auto; }
    .w-hero-actions { justify-content: center; }
    .w-hero-visual { margin-top: 2rem; }
    .w-features-grid { grid-template-columns: repeat(2, 1fr); }
    .w-spotlight-grid { grid-template-columns: 1fr; }
    .w-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .w-steps { grid-template-columns: repeat(2, 1fr); }
    .w-footer-grid { grid-template-columns: 1fr 1fr; }
    .w-species-callouts { grid-template-columns: 1fr; }
    .w-clinical-grid { grid-template-columns: repeat(2, 1fr); }
    .w-ai-grid { grid-template-columns: 1fr; }
    .w-testimonial-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .w-orgs-grid { grid-template-columns: repeat(3, 1fr); }
    .device-laptop { display: none; }
    .device-showcase { width: 440px; height: 500px; }
    .device-tablet { left: 20px; bottom: 20px; }
}
/* NAVTABLET-1674: tablets (iPad portrait 744-834 px and landscape up to 1080 px) use the compact menu; the inline links need ~1100 px. */
@media (max-width: 1100px) {
    .w-nav-links { display: none; position: absolute; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; background: white; flex-direction: column; align-items: flex-start; padding: 1rem 2rem; border-bottom: 1px solid var(--w-border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .w-nav-links.show { display: flex; }
    .w-nav-links li { width: 100%; }
    .w-nav-links a { display: block; padding: 0.6rem 0; font-size: 1rem; }
    .w-mobile-toggle { display: block; margin-left: 0.25rem; min-width: 44px; min-height: 44px; }
    .w-nav-actions { gap: 1rem; margin-left: auto; }
}
@media (max-width: 768px) {
    .w-nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem 2rem; border-bottom: 1px solid var(--w-border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .w-nav-links.show { display: flex; }
    .w-mobile-toggle { display: block; margin-left: 0.75rem; }
    .w-nav-inner { padding: 0 1rem; height: 60px; gap: 0.25rem; }
    .w-mobile-toggle { min-width: 0; min-height: 0; margin-left: 0.75rem; }   /* NAVTABLET-1674: phones keep the compact bar (the 44 px target is for tablets) */
    .w-nav-logo img { height: 28px; }
    .w-nav-logo span { font-size: 1.05rem; }
    .w-nav-actions { gap: 0.75rem; margin-left: auto; }
    .w-nav-actions .btn-w { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .w-nav-login { font-size: 0.8rem; }
    .w-hero { padding: 7rem 0 3rem; }
    .w-hero-text h1 { font-size: 1.8rem; }
    .w-hero-text p { font-size: 0.95rem; }
    .w-hero-actions .btn-w { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .section { padding: 3.5rem 0; }
    .section-heading h2 { font-size: 1.6rem; }
    .section-heading p { font-size: 0.95rem; }
    .container { padding: 0 1.25rem; }
    .w-features-grid { grid-template-columns: 1fr; }
    .w-clinical-grid { grid-template-columns: 1fr; }
    .w-steps { grid-template-columns: 1fr 1fr; }
    .w-footer-grid { grid-template-columns: 1fr; }
    .w-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .w-trust-bar { gap: 1.5rem; }
    .w-trust-item .num { font-size: 1.5rem; }
    .w-orgs-grid { grid-template-columns: repeat(2, 1fr); }
    .w-ai-note { flex-direction: column; text-align: center; }
    .w-cta h2 { font-size: 1.8rem; }
    .w-cta p { font-size: 1rem; }
    .w-spotlight-item { flex-direction: column; align-items: center; }
    .device-tablet { display: none; }
    .device-showcase { width: auto; height: auto; position: static; display: flex; flex-direction: column; align-items: center; }
    .device-phone { position: static; }
}

/* Extra small screens (iPhone SE, small phones) */
@media (max-width: 420px) {
    .w-nav-inner { padding: 0 0.75rem; height: 56px; }
    .w-nav-logo > span ~ span { display: none; }   /* NAVTABLET-1674: the portal page's 'Patient Portal' badge (a second span) leaves no room for the menu button on a phone */
    .w-nav-logo img { height: 24px; }
    .w-nav-logo span { font-size: 0.95rem; }
    .w-nav-actions .btn-w { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
    .w-nav-login { font-size: 0.75rem; }
    .w-hero { padding: 6rem 0 2.5rem; }
    .w-hero-text h1 { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
    .section-heading h2 { font-size: 1.4rem; }
    .w-cta h2 { font-size: 1.5rem; }
    .btn-w-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

/* Landscape mode on phones (height is short, but width can be 900px+) */
@media (max-height: 500px) and (orientation: landscape) {
    .w-nav-inner { height: 48px; padding: 0 1rem; }
    .w-nav-logo img { height: 24px; }
    .w-nav-logo span { font-size: 0.95rem; }
    /* Use hamburger menu in landscape — nav links are too cramped otherwise */
    .w-nav-links { display: none; position: absolute; top: 48px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--w-border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 100; }
    .w-nav-links.show { display: flex; }
    .w-mobile-toggle { display: block; margin-left: 0.5rem; }
    .w-nav-actions { gap: 0.75rem; margin-left: auto; margin-right: 0.75rem; }
    .w-nav-actions .btn-w { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
    .w-nav-login { font-size: 0.8rem; }
    .w-hero { padding: 4.5rem 0 1.5rem; }
    .w-hero-text h1 { font-size: 1.6rem; }
    .w-hero-text p { font-size: 0.9rem; }
    .w-hero-actions .btn-w { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .section { padding: 2rem 0; }
    .section-heading h2 { font-size: 1.4rem; }
    .section-heading p { font-size: 0.9rem; }
    .w-cta { padding: 2.5rem 0; }
    .w-cta h2 { font-size: 1.6rem; }
    .w-cta p { font-size: 0.9rem; }
}

/* Consistent section heading centering on all screens */
.section-heading { text-align: center; }
.section-heading p { margin-left: auto; margin-right: auto; }
.w-faq-list { text-align: left; }

/* Feature comparison table mobile fix */
@media (max-width: 768px) {
    #featureComparisonTable { overflow-x: visible; }
    #featureComparisonTable table { font-size: 0.68rem; table-layout: fixed; width: 100%; }
    #featureComparisonTable th { padding: 0.4rem 0.25rem !important; font-size: 0.65rem; word-wrap: break-word; }
    #featureComparisonTable td { padding: 0.4rem 0.25rem !important; word-wrap: break-word; }
    #featureComparisonTable th:first-child,
    #featureComparisonTable td:first-child { width: 40%; text-align: left; }
    #featureComparisonTable th:not(:first-child),
    #featureComparisonTable td:not(:first-child) { width: 20%; text-align: center; }
}
/* v2.5 - compact comparison table */

/* ====== IOSZOOM-1674 (owner 2026-11-13: tapping a form field on an iPhone zoomed the page in) ======
   iOS Safari auto-zooms the page when a text-entry control whose computed font-size is under 16px takes focus, which shifts the
   layout left and cuts it off. User zoom stays enabled (accessibility); instead every text-entry control on a touch screen is
   at least 16px. The rule is late and !important so it also beats a small class font-size and an inline style="font-size:..".
   Check boxes, radios, ranges, colour / file pickers and buttons never zoom, so they are left alone. */
@media (pointer: coarse), (max-width: 1100px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
    select,
    textarea,
    [contenteditable=""],
    [contenteditable="true"],
    [contenteditable="plaintext-only"] {
    font-size: max(16px, 1rem) !important;
  }
}
