.platform-hero {
    display: flex;
    align-items: center;
    gap: var(--space-4xl);
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: var(--space-4xl) var(--container-padding) var(--space-2xl);
}

.hero-content {
    flex: 1;
    max-width: var(--container-sm);
}

.hero-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-light);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    margin-bottom: var(--space-8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-text {
    margin-bottom: var(--space-12);
}

.hero-title {
    margin-bottom: var(--space-6);
}

.hero-title h1 {
    font-size: var(--font-size-h3-fluid);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-snug);
    color: #ffffff;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    word-break: keep-all;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6e82, #f6861f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 var(--space-6) 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.hero-description {
    margin: 0 0 var(--space-10) 0;
}

.hero-description p {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 480px;
}

.hero-description strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-normal);
}

.hero-actions {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    flex-wrap: wrap;
}

.primary-action a,
.secondary-action a {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--border-radius-button);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.primary-action a {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: 2px solid transparent;
}

.primary-action a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #d84315);
}

.secondary-action a {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.secondary-action a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    max-width: 500px;
}

/* Lead Capture Form Styling */
.lead-capture-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: var(--space-10) var(--space-8);
    transition: all var(--duration-normal) var(--ease-out);
}

.lead-capture-form:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.form-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 var(--space-3) 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-subtitle {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

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

.form-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input,
.form-select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: var(--space-3) var(--space-4);
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(255, 110, 130, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(255, 110, 130, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #2a2a3a;
    color: #ffffff;
}

.form-submit {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 12px;
    padding: var(--space-4) var(--space-8);
    color: white;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    margin-top: var(--space-2);
}

.form-submit:hover {
    background: linear-gradient(135deg, #ff5252, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

/* H-02 / F1: HubSpot embed styling — map .hs-form / .hs-input / .hs-button
   to the dark-glass treatment that the legacy custom form used. */
.platform-hero .ph-form-embed .hs-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.platform-hero .ph-form-embed .hs-form .hs-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-bottom: 0;
}

.platform-hero .ph-form-embed .hs-form .hs-form-field > label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.platform-hero .ph-form-embed .hs-form .hs-form-field > label .hs-form-required {
    color: #ff6e82;
    margin-left: 4px;
}

.platform-hero .ph-form-embed .hs-form .input {
    margin-right: 0;
}

.platform-hero .ph-form-embed .hs-form .hs-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: var(--space-3) var(--space-4);
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
    box-sizing: border-box;
}

.platform-hero .ph-form-embed .hs-form .hs-input:focus {
    border-color: rgba(255, 110, 130, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(255, 110, 130, 0.1);
}

.platform-hero .ph-form-embed .hs-form .hs-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.platform-hero .ph-form-embed .hs-form .hs-button,
.platform-hero .ph-form-embed .hs-form input[type="submit"] {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 12px;
    padding: var(--space-4) var(--space-8);
    color: white;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    margin-top: var(--space-2);
    width: 100%;
}

.platform-hero .ph-form-embed .hs-form .hs-button:hover,
.platform-hero .ph-form-embed .hs-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff5252, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.platform-hero .ph-form-embed .hs-form .hs-error-msgs,
.platform-hero .ph-form-embed .hs-form .hs-error-msg {
    color: #ff6e82;
    font-size: 12px;
    margin: 4px 0 0 0;
    list-style: none;
    padding-left: 0;
}

.platform-hero .ph-form-embed .submitted-message {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: var(--space-6) 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .platform-hero .ph-form-embed .hs-form .hs-input {
        font-size: 16px !important; /* iOS zoom guard */
    }
}

.platform-hero .meetings-iframe-container {
    width: 100%;
    min-height: 720px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.platform-hero .meetings-iframe-container::before {
    content: "Loading scheduler\2026";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
    z-index: 0;
}

.platform-hero .meetings-iframe-container iframe {
    width: 100% !important;
    min-height: 720px;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .platform-hero .meetings-iframe-container,
    .platform-hero .meetings-iframe-container iframe {
        min-height: 880px;
    }
}

/* Responsive Design - Enhanced with better breakpoints */

/* iPad Landscape & Small Desktop (1024px-1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .platform-hero {
        gap: var(--space-12);
        padding: var(--space-3xl) var(--space-8) var(--space-2xl);
    }
    
    .hero-title h1 {
        font-size: 44px;
    }
    
    .hero-visual {
        max-width: 450px;
    }
}

/* Tablet Landscape (901px-1023px) */
@media (min-width: 901px) and (max-width: 1023px) {
    .platform-hero {
        flex-direction: row;
        gap: var(--space-10);
        padding: var(--space-3xl) var(--space-6) var(--space-2xl);
    }
    
    .hero-content {
        flex: 1.2;
    }
    
    .hero-visual {
        flex: 0.8;
        max-width: 380px;
    }
    
    .hero-title h1 {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

/* iPad Portrait (768px-900px) - ENHANCED FOR BETTER EXPERIENCE */
@media (min-width: 768px) and (max-width: 900px) {
    .platform-hero {
        flex-direction: row; /* Keep side-by-side on iPad Portrait */
        gap: var(--space-8);
        padding: var(--space-3xl) var(--space-6) var(--space-2xl);
        align-items: flex-start;
        text-align: left;
    }
    
    .hero-content {
        flex: 1;
        max-width: none;
    }
    
    .hero-visual {
        flex: 0.9;
        max-width: 350px;
    }
    
    .hero-title h1 {
        font-size: var(--font-size-h3-fluid);
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description p {
        font-size: 15px;
        max-width: 420px;
    }
    
    .hero-actions {
        flex-wrap: wrap;
    }
    
    .primary-action a,
    .secondary-action a {
        min-height: 44px; /* Touch-friendly */
        padding: var(--space-3) var(--space-6);
    }
    
    .lead-capture-form {
        padding: var(--space-8) var(--space-6);
    }
    
    .form-submit {
        min-height: 44px; /* Touch-friendly */
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .platform-hero {
        padding: var(--space-xl) var(--container-padding) var(--space-lg);
        gap: 32px;
    }
    
    .hero-title h1 {
        font-size: var(--font-size-h3-fluid); /* Fluid scaling for mobile */
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description p {
        font-size: var(--font-size-body-fluid); /* Fluid scaling for mobile */
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .primary-action a,
    .secondary-action a {
        padding: 14px 24px;
        text-align: center;
    }
    
    .lead-capture-form {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 13px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 16px !important; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-submit {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* H-15 — hero product-demo video (active replaces the meeting widget). */
.hero-visual--h15-video {
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(8, 0, 29, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-visual--h15-video .hero-video {
    width: 100%;
    height: auto;
    display: block;
}

/* H-20 — pre-meeting context capture (renders ABOVE the calendar). */
.h20-context-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px 18px 14px;
    margin-bottom: 16px;
    color: #fff;
}

.h20-context-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.h20-context-form__row label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.h20-context-form__row .h20-optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 4px;
}

.h20-context-form__row textarea,
.h20-context-form__row select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.h20-context-form__row textarea:focus,
.h20-context-form__row select:focus {
    outline: none;
    border-color: rgba(178, 102, 246, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.h20-context-form__submit {
    background: linear-gradient(135deg, #ff6e82, #f6861f);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h20-context-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 110, 130, 0.32);
}

.h20-context-form__status {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(178, 102, 246, 0.95);
}

/* Mobile Hubbot defensive fix (Phase 0b-ext, 2026-05-08).
   The HubSpot conversations widget (#hubspot-messages-iframe-container)
   is position:fixed bottom-right and on mobile <=768px its launcher
   and open panel overlap the Meetings "Confirm" tap-target on the
   scheduler page, driving the reported 10-visits / 0-bookings drop-off.
   Real fix: a HubSpot Chatflow Targeting rule that excludes
   /meetings/* from loading the widget (manual HubSpot UI step).
   This CSS is the belt-and-suspenders fallback for any meetings
   embed that renders INSIDE a quilt.bio-served page (e.g. /platform).
   It does NOT reach `/meetings/*` pages rendered by HubSpot's
   Meetings product — those need the Chatflow Targeting rule. */
@media (max-width: 768px) {
    body .platform-hero .meetings-iframe-container ~ #hubspot-messages-iframe-container,
    body:has(.meetings-iframe-container) #hubspot-messages-iframe-container {
        bottom: 96px !important;
    }
}
