/* ========================================
   HOWDY - WARM LANDING PAGE
   Colors from HowdyTheme.swift
   ======================================== */

:root {
    --soft-cream: #FFF9F0;
    --paper-cream: #FAF7F0;
    --deep-charcoal: #2C2C2C;
    --ink-blue: #1A1A2E;
    --soft-mint: #A8E6CF;
    --acid-green: #B8FF00;
    --warm-coral: #FFB5B5;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --highlight-yellow: #FFE619;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Scroll Snap Targets */
/* Scroll Snap Targets */
section,
footer {
    scroll-snap-align: start;
    scroll-margin-top: 0;
    /* No offset needed if 100vh */
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile browser friendly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Ensure content doesn't overflow comfortably */
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Specific adjustments for hero */
.hero {
    scroll-margin-top: 0;
}

body {
    font-family: var(--font-mono);
    background: var(--soft-cream);
    color: var(--deep-charcoal);
    line-height: 1.5;
    font-size: 18px;
    /* Prevent horizontal scroll */
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    /* Safe Area Support */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, var(--soft-cream) 0%, white 100%);
}

.logo-tape {
    background: var(--highlight-yellow);
    padding: 0.3em 0.6em;
    display: inline-block;
    transform: rotate(-3deg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.logo-tape.small {
    transform: rotate(-2deg);
    margin-bottom: 1.5rem;
}

.logo-tape.small .logo-text {
    font-size: 2.5rem;
}

.logo-text {
    font-size: clamp(2.5rem, 12vw, 7rem);
    /* Reduced lower bound for real phones */
    font-weight: 900;
    color: var(--deep-charcoal);
    line-height: 1;
}

.hero-tagline {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 500px;
    opacity: 0.8;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.4;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ========================================
   ZIG-ZAG LAYOUT (Modern Split Sections)
   ======================================== */

.zig-zag-section {
    padding: 8rem 2rem;
    overflow: hidden;
}

.zig-zag-section.meds-section {
    background: white;
}

.zig-zag-section.safety-section {
    background: var(--soft-cream);
}

.zig-zag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}



/* Text Side */
.zig-zag-text h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.zig-zag-text p {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Image Side with Glow */
.zig-zag-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 255, 0, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glow-bg.warning {
    background: radial-gradient(circle, rgba(255, 152, 0, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Specific Feature Styling */
.meds-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meds-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.meds-feature::before {
    content: '✓';
    color: var(--success-green);
    font-weight: 900;
    background: rgba(76, 175, 80, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.large-alert {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 152, 0, 0.15);
    position: relative;
    z-index: 1;
    background: white;
}

/* ========================================
   PROBLEM SECTION
   ======================================== */

.problem-section {
    padding: 10rem 2rem;
    background: white;
}

.big-text {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.sub-text {
    font-size: 1.3rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--warm-coral);
    background: rgba(255, 181, 181, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: inline-block;
    max-width: 500px;
}

/* ========================================
   CONVERSATION SECTION (Scroll-triggered bubbles)
   ======================================== */

.convo-section {
    padding: 3rem 2rem 4rem;
    background: var(--paper-cream);
}

.convo-track {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Individual bubble */
.convo-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.convo-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Left / Right alignment */
.convo-left {
    align-self: flex-start;
}

.convo-right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.convo-avatar {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.convo-msg {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.2rem 1.6rem;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--deep-charcoal);
    opacity: 0.85;
    line-height: 1.5;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.05);
    max-width: 340px;
}

/* Tail direction */
.convo-left .convo-msg {
    border-bottom-left-radius: 4px;
}

.convo-right .convo-msg {
    border-bottom-right-radius: 4px;
}

/* Coda (punchline) */
.convo-coda {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.convo-coda.visible {
    opacity: 1;
    transform: translateY(0);
}

.convo-coda p {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--deep-charcoal);
}

.convo-coda em {
    background: var(--highlight-yellow);
    padding: 0.05em 0.3em;
    font-style: normal;
    transform: rotate(-1deg);
    display: inline-block;
}

/* ========================================
   VOICE SECTION (Human Voice Demo)
   ======================================== */

.voice-section {
    padding: 6rem 2rem;
    background: white;
}

.voice-section h2 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.voice-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 420px;
}

/* iOS-style notification banner */
.voice-notif-ios {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

.voice-notif-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.voice-notif-text {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.voice-notif-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.voice-notif-text span {
    display: block;
    font-size: 0.8rem;
    color: #3a3a3c;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-notif-time {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8e8e93;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* Notification - Hidden (before scroll trigger) */
.voice-notif-hidden {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
}

/* Notification - Pop in animation (iOS spring) */
.voice-notif-pop {
    animation: notif-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes notif-pop {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   TIME GREETING (after check-in success)
   ======================================== */

.time-greeting {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    animation: greeting-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.time-greeting.show {
    display: flex;
}

@keyframes greeting-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.greeting-emoji {
    font-size: 2.5rem;
}

.greeting-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--deep-charcoal);
}

.greeting-time {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.5;
    color: var(--deep-charcoal);
}

/* ========================================
   RESPONSIVE - New Sections
   ======================================== */

@media (max-width: 500px) {
    .convo-section {
        padding: 2rem 1rem 3rem;
    }

    .convo-track {
        gap: 2rem;
    }

    .convo-msg {
        font-size: 1rem;
        padding: 1rem 1.2rem;
        max-width: 260px;
    }

    .voice-section {
        padding: 5rem 1rem;
    }
}

/* ========================================
   DEMO SECTION
   ======================================== */

.demo-section {
    padding: 8rem 2rem 10rem;
    background: var(--soft-cream);
}

.demo-section h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.demo-section>.container>p {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-bottom: 3rem;
}

.demo-phone {
    margin: 3rem auto;
}

.phone-frame {
    background: var(--deep-charcoal);
    border-radius: 40px;
    padding: 12px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    background: var(--paper-cream);
    border-radius: 32px;
    padding: 2rem 1.5rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* App-matching screen with decorative elements */
.phone-screen.app-screen {
    justify-content: flex-start;
    padding-top: 2.5rem;
}

/* Decorative yellow circle - matches app's scribble background */
.app-bg-circle {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 140px;
    height: 140px;
    border: 25px solid var(--highlight-yellow);
    border-radius: 50%;
    opacity: 0.3;
}

/* Decorative blue stripe - matches app's rotated rectangle */
.app-bg-stripe {
    position: absolute;
    bottom: 30px;
    left: -20px;
    width: 120px;
    height: 10px;
    background: var(--ink-blue);
    opacity: 0.1;
    transform: rotate(10deg);
}

/* Tilted tape title - matches app's "Howdy" cutout */
.app-title-tape {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink-blue);
    background: var(--highlight-yellow);
    padding: 0.15em 0.5em;
    transform: rotate(-3deg);
    margin-bottom: 1.5rem;
    z-index: 2;
}

.app-header {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: auto;
    color: var(--ink-blue);
    background: var(--highlight-yellow);
    padding: 0.2em 0.5em;
    transform: rotate(-2deg);
}

/* ========================================
   BIG BUTTON - WATER FILL ANIMATION
   Matches app's SeniorHomeView.swift
   ======================================== */

.button-container {
    position: relative;
    width: 180px;
    height: 180px;
}

/* Outer breathing ring */
.button-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 200px;
    height: 200px;
    border: 5px solid var(--acid-green);
    border-radius: 50%;
    opacity: 0.6;
}

.big-button {
    position: relative;
    width: 180px;
    height: 180px;
    background: var(--paper-cream);
    border: 4px solid black;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
    user-select: none;
    overflow: hidden;
    z-index: 1;
}

/* Water fill effect - matches app's Wave animation */
.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--acid-green);
    transition: height 2s linear;
    z-index: 0;
}

/* SVG wave overlay */
.water-fill::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 200%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23B8FF00' d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x;
    animation: wave-pause 1s linear infinite;
    animation-play-state: paused;
}

.big-button.holding .water-fill::before {
    animation-play-state: running;
}

@keyframes wave-pause {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.big-button.holding .water-fill {
    height: 100%;
}

.big-button:hover {
    transform: scale(1.02);
}

/* Scaled down when pressing - matches app's 0.92 */
.big-button.holding {
    transform: scale(0.92);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

/* Success state - filled with acid green */
.big-button.success {
    background: var(--acid-green);
    transform: scale(1);
    animation: success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
    0% {
        transform: scale(0.92);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.big-button.success .water-fill {
    height: 100%;
}

/* Button text - absolute positioned above water */
.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-5deg);
}

.button-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--ink-blue);
    line-height: 1;
}

.button-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-blue);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.big-button.success .button-text {
    color: black;
}

.big-button.success .button-sub {
    color: black;
}

/* App Footer - Status text inside phone */
.app-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    opacity: 0.6;
    text-align: center;
}

.demo-instruction {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ========================================
   CONFETTI - Matches app's ConfettiView
   ======================================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 1;
    animation: confetti-fall 1.5s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(200px) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   RESULT SECTION
   ======================================== */

.result-section {
    padding: 8rem 2rem;
    background: white;
}

.result-section h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: 2rem;
}

.notification-demo {
    background: rgba(168, 230, 207, 0.3);
    border: 2px solid var(--soft-mint);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.notif-icon {
    width: 50px;
    height: 50px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: white;
}

.notif-content {
    text-align: left;
}

.notif-content strong {
    display: block;
    font-size: 1.2rem;
}

.notif-content span {
    font-size: 1rem;
    opacity: 0.6;
}

.result-text {
    font-size: 1.4rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* ========================================
   ALERT DEMO (Safety Section)
   ======================================== */

.alert-demo {
    background: white;
    border: 2px solid var(--warm-coral);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    padding: 1.2rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: left;
    min-width: unset;
    /* Remove fixed width constraint */
    width: 100%;
    max-width: 360px;
}

.alert-icon {
    width: 50px;
    height: 50px;
    background: var(--warm-coral);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert-content strong {
    display: block;
    font-size: 1.2rem;
    color: var(--deep-charcoal);
    margin-bottom: 0.2rem;
}

.alert-content span {
    display: block;
    font-size: 1rem;
    color: var(--warm-coral);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   FALL DETECTION SECTION
   ======================================== */

.fall-section {
    background: white;
}

.fire-section {
    background: var(--soft-cream);
}

/* Emergency glow variant */
.glow-bg.emergency {
    background: radial-gradient(circle, rgba(255, 69, 69, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

.glow-bg.fire {
    background: radial-gradient(circle, rgba(255, 152, 0, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Fall detection phone screen */
.fall-screen {
    background: #1A1A2E !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 350px;
}

.fall-icon-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fall-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 69, 69, 0.3);
    animation: fall-pulse 1.5s ease-out infinite;
}

@keyframes fall-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.fall-icon {
    font-size: 2.5rem;
    z-index: 1;
    animation: fall-shake 0.6s ease-in-out infinite;
}

@keyframes fall-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.fall-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FF4545;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fall-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    animation: fall-blink 1s ease-in-out infinite;
}

@keyframes fall-blink {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.fall-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.fall-location span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.fall-pin {
    font-size: 1rem;
}

/* Fire alarm alert style */
.fire-alert {
    border-color: #FF6B35;
}

.fire-icon {
    background: #FF6B35 !important;
}

.fire-alert .alert-content span {
    color: #FF6B35;
}

/* ========================================
   ONBOARDING-STYLE ICON SHOWCASE
   (Matches app's D+E animation system)
   ======================================== */

.orb-showcase {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow halo — breathing pulse */
.orb-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbBreathe 3s ease-in-out infinite alternate;
}

@keyframes orbBreathe {
    0% {
        transform: scale(0.92);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}

/* Rotating shimmer ring — uses conic-gradient background + mask */
.orb-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color, rgba(255, 255, 255, 0.5)),
            transparent 40%,
            var(--ring-color, rgba(255, 255, 255, 0.25)) 80%,
            transparent);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
    animation: orbSpin 12s linear infinite;
}

@keyframes orbSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Main icon */
.orb-icon {
    position: relative;
    z-index: 2;
    animation: iconPulse 3s ease-in-out infinite alternate;
}

.orb-icon svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 10px 28px var(--icon-shadow, rgba(0, 0, 0, 0.2)));
}

@keyframes iconPulse {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.06);
    }
}

/* Floating orb particles */
.orb-particles {
    position: absolute;
    inset: -30px;
    overflow: hidden;
    border-radius: 50%;
}

.orb-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.orb-particle:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.orb-particle:nth-child(2) {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.orb-particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 25%;
    right: 18%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.orb-particle:nth-child(4) {
    width: 6px;
    height: 6px;
    top: 75%;
    right: 22%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.orb-particle:nth-child(5) {
    width: 9px;
    height: 9px;
    top: 45%;
    left: 8%;
    animation-delay: 3s;
    animation-duration: 5.5s;
}

.orb-particle:nth-child(6) {
    width: 7px;
    height: 7px;
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-16px) translateX(8px);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-6px) translateX(-10px);
        opacity: 0.5;
    }

    75% {
        transform: translateY(10px) translateX(5px);
        opacity: 0.7;
    }
}

/* Label under the showcase */
.orb-label {
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 800px) {
    .orb-showcase {
        width: 280px;
        height: 280px;
    }

    .orb-glow {
        width: 200px;
        height: 200px;
    }

    .orb-ring {
        width: 170px;
        height: 170px;
    }

    .orb-icon svg {
        width: 76px;
        height: 76px;
    }
}

/* ========================================
   APPLE WATCH SECTION
   ======================================== */

.watch-section {
    padding: 8rem 2rem;
    background: var(--soft-cream);
    color: var(--deep-charcoal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.watch-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border: 3px solid rgba(44, 44, 44, 0.05);
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
}

.watch-section h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Coming Soon Badge */
.watch-coming-soon {
    display: inline-block;
    background: var(--acid-green);
    color: var(--deep-charcoal);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.4em 1em;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.watch-section .watch-subhead {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.5;
    max-width: 550px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.howdy-highlight {
    background: var(--highlight-yellow);
    color: var(--deep-charcoal);
    padding: 0.1em 0.35em;
    font-weight: 900;
    opacity: 1;
    border-radius: 2px;
    transform: rotate(-1deg);
    display: inline-block;
}

/* CSS Apple Watch Mockup */
.watch-mockup-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.watch-body {
    position: relative;
    width: 160px;
    height: 195px;
    background: #3a3a3c;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Watch band hints */
.watch-body::before,
.watch-body::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background: #2a2a2c;
    border-radius: 4px;
}

.watch-body::before {
    top: -14px;
}

.watch-body::after {
    bottom: -14px;
}

/* Digital Crown */
.watch-crown {
    position: absolute;
    right: -8px;
    top: 50px;
    width: 8px;
    height: 28px;
    background: linear-gradient(to right, #555, #666);
    border-radius: 3px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
}

.watch-crown::after {
    content: '';
    position: absolute;
    right: 0;
    top: 32px;
    width: 8px;
    height: 10px;
    background: linear-gradient(to right, #555, #666);
    border-radius: 3px;
}

/* Watch Screen */
.watch-screen {
    width: 130px;
    height: 162px;
    background: #1a1a1a;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10px;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

/* Screen glow pulse */
.watch-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 30px rgba(184, 255, 0, 0.06);
    animation: watch-glow 3s ease-in-out infinite;
}

@keyframes watch-glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.watch-app-title {
    font-size: 7px;
    font-weight: 800;
    color: var(--acid-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.watch-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d8a00, #4aad00);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 0 rgba(184, 255, 0, 0.4);
    animation: watchBreathe 3s ease-in-out infinite;
}

@keyframes watchBreathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(184, 255, 0, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 8px rgba(184, 255, 0, 0.15);
        transform: scale(1.06);
    }
}

.watch-button-text {
    font-size: 7px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.05em;
}

.watch-button-check {
    font-size: 12px;
    color: white;
    margin-top: 1px;
}

.watch-status {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Watch Meds Screen */
.watch-meds-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2px 8px;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.watch-meds-header {
    text-align: center;
    margin-bottom: 1px;
}

.watch-meds-label {
    font-size: 5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

.watch-meds-title {
    font-size: 9px;
    font-weight: 900;
    color: var(--highlight-yellow);
    letter-spacing: 0.08em;
    display: block;
}

.watch-med-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3px 5px;
}

.watch-med-name {
    font-size: 6px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.watch-med-time {
    font-size: 5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.watch-meds-done {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8a00, #4aad00);
    border-radius: 4px;
    padding: 3px;
    margin-top: 2px;
}

.watch-meds-done-text {
    font-size: 6px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.08em;
}

/* Watch Feature Strip (chip pills) */
.watch-feature-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.watch-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.6em 1.2em;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.watch-chip:hover {
    background: rgba(184, 255, 0, 0.1);
    border-color: var(--acid-green);
    color: white;
    transform: translateY(-2px);
}

/* Responsive — Watch Section */
@media (max-width: 800px) {
    .watch-section {
        padding: 5rem 1.5rem;
    }

    .watch-feature-strip {
        gap: 0.5rem;
    }

    .watch-chip {
        font-size: 0.78rem;
        padding: 0.5em 1em;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 12rem 2rem;
    background: var(--highlight-yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-text {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 3rem;
    line-height: 1.2;
    max-width: 600px;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.download-btn:hover {
    transform: scale(1.1) rotate(-2deg);
}

.download-btn img {
    height: 54px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--deep-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    color: white;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 800px) {

    /* Increased breakpoint to catch tablets/large phones */
    .phone-frame {
        max-width: 260px;
        width: 100%;
        /* Ensure it shrinks */
    }

    .button-container {
        width: 150px;
        height: 150px;
    }

    .button-ring {
        width: 170px;
        height: 170px;
        top: -10px;
        left: -10px;
    }

    .big-button {
        width: 150px;
        height: 150px;
    }

    .button-text {
        font-size: 1.8rem;
    }

    .notification-demo,
    .alert-demo {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .notif-content,
    .alert-content {
        text-align: center;
    }

    /* Stack Zig-Zag Grid on Mobile */
    .zig-zag-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .zig-zag-text h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .zig-zag-text p {
        font-size: 1.2rem;
    }

    .meds-features {
        align-items: center;
    }

    /* Restore order for reverse grid (Image top, Text bottom) */
    .zig-zag-grid.reverse {
        direction: ltr;
    }

    /* Global Section Padding Reduction for Mobile */
    .zig-zag-section,
    .problem-section,
    .voice-section,
    .demo-section,
    .cta-section,
    .result-section,
    .meds-section,
    .why-teaser {
        padding: 4rem 1.5rem;
    }

    /* Ensure no horizontal overflow */
    .zig-zag-image {
        max-width: 100%;
        /* overflow: hidden; Removed to fix shadow clipping */
    }

    /* DISABLE SCROLL SNAP ON MOBILE/TABLET
       Fixes "double scroll" issue where content taller than screen gets stuck */
    html {
        scroll-snap-type: none;
        scroll-behavior: auto;
        /* fast scroll */
    }

    section,
    footer {
        scroll-snap-align: none;
        min-height: auto;
        /* Allow content to flow naturally */
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Force full width */
    max-width: 100vw;
    /* Strict overflow protection */
    box-sizing: border-box;
    /* Include padding in width */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    /* Reduced horizontal padding for safety */
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth slide up/down */
}

/* Hide Nav State */
.site-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--deep-charcoal);
    text-decoration: none;
    background: var(--highlight-yellow);
    padding: 0.2em 0.5em;
    transform: rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--deep-charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Language Picker */
.nav-lang {
    opacity: 0.5;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85rem !important;
}

.nav-lang:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
    background: var(--highlight-yellow);
    padding: 0.2em 0.5em;
    opacity: 1;
    transform: rotate(-1deg);
    display: inline-block;
    color: var(--deep-charcoal);
}

.nav-download {
    background: var(--deep-charcoal) !important;
    color: white !important;
    padding: 0.5em 1em !important;
    border-radius: 20px;
    margin-left: 0.5rem;
    transform: none !important;
    opacity: 1 !important;
}

.nav-download:hover {
    transform: scale(1.05) !important;
    opacity: 1 !important;
}

/* ========================================
   MEDICATION SECTION
   ======================================== */

.meds-section {
    padding: 5rem 2rem;
    background: white;
}




.meds-demo {
    margin: 2rem auto;
}

.phone-frame.small {
    max-width: 240px;
    padding: 10px;
}

.phone-screen.meds-screen {
    background: var(--paper-cream);
    min-height: 320px;
    padding: 1.5rem 1rem;
}

.meds-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.meds-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-blue);
    opacity: 0.6;
}

.meds-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink-blue);
    background: var(--highlight-yellow);
    padding: 0.1em 0.4em;
    transform: rotate(2deg);
}

.meds-list {
    background: white;
    border: 2px solid var(--deep-charcoal);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.med-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-blue);
}

.med-item+.med-item {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.med-time {
    opacity: 0.5;
}

.meds-button {
    background: var(--acid-green);
    border: 3px solid black;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
}

.meds-button span:first-child {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--ink-blue);
}

.meds-button-sub {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--ink-blue);
}

.meds-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.meds-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.2rem;
}

/* ========================================
   WHY TEASER SECTION
   ======================================== */

.why-teaser {
    padding: 5rem 2rem;
    background: var(--paper-cream);
}

.why-teaser h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.comparison-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.compare-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.compare-item.dimmed {
    opacity: 0.4;
}

.compare-icon {
    font-size: 2rem;
}

.why-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--deep-charcoal);
    font-weight: 700;
    text-decoration: none;
    padding: 0.8em 1.5em;
    background: var(--highlight-yellow);
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.why-link:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

/* ========================================
   WHY HOWDY PAGE - SIMPLE VERSION
   ======================================== */

.why-hero {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(180deg, var(--soft-cream) 0%, white 100%);
    text-align: center;
}

.why-hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
}

/* Simple Comparison Cards */
.simple-compare {
    padding: 6rem 2rem 8rem;
    background: white;
}

.container-wide {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compare-card {
    background: var(--paper-cream);
    border: 3px solid var(--deep-charcoal);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr auto auto auto;
    align-items: center;
    gap: 2rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: start;
}

.card-emoji {
    font-size: 2rem;
}

.card-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
}

.card-problem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 181, 181, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.problem-icon {
    font-size: 1.2rem;
}

.card-vs {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-howdy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 255, 0, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

.howdy-icon {
    font-size: 1.2rem;
}

/* ========================================
   ZINE CARD & FAQ (Help/Contact Page)
   ======================================== */

.zine-card {
    background: var(--paper-cream);
    border: 3px solid var(--deep-charcoal);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tilt-slight {
    transform: rotate(-1deg);
}

.highlight {
    background: var(--neon-pink);
    color: white;
    padding: 0.2rem 0.6rem;
    transform: skew(-5deg);
    display: inline-block;
    border-radius: 4px;
}

.highlight-green {
    background: var(--acid-green);
    color: var(--deep-charcoal);
    padding: 0.2rem 0.6rem;
    transform: skew(-5deg);
    display: inline-block;
    border-radius: 4px;
}

/* FAQ STYLES */
details {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

details:last-child {
    border-bottom: none;
}

summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--deep-charcoal);
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin-top: 0.5rem;
    line-height: 1.6;
    opacity: 0.8;
    padding-right: 2rem;
}

/* Bottom Line */
.bottom-line {
    padding: 8rem 2rem;
    background: var(--highlight-yellow);
    text-align: center;
}

.bottom-line h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 3px solid var(--deep-charcoal);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.key-icon {
    font-size: 1.5rem;
}

.key-text {
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--deep-charcoal);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
}

/* Footer links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================
   RESPONSIVE - Why Howdy
   ======================================== */

@media (max-width: 700px) {
    .compare-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .card-header {
        justify-self: center;
    }

    .card-problem,
    .card-howdy {
        justify-content: center;
    }

    .site-nav {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .comparison-preview {
        gap: 1.5rem;
    }
}

/* ========================================
/* ========================================
   RESPONSIVE - Mobile Navigation (Scrollable)
   ======================================== */
@media (max-width: 600px) {
    .site-nav {
        flex-direction: column;
        padding: 0.5rem 0.5rem;
        /* Tighter padding */
        gap: 0.5rem;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        justify-content: center;
        /* Center links if possible */
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 0.4rem;
        /* Reduce gap */
        /* Hide scrollbar */
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 0.3rem 0.6rem;
        /* Smaller touch targets */
        background: rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        font-size: 0.75rem;
        /* Smaller text */
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    /* Footer Fix for 390px */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-links {
        gap: 0.8rem;
    }

    .footer a {
        margin: 0 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   AI SECTION — "Intelligence that protects"
   Warm cream section with animated cards
   ======================================== */

.ai-section {
    background: var(--soft-cream);
    position: relative;
    overflow: hidden;
    color: var(--deep-charcoal);
}

/* Neural dot constellation background */
.ai-bg-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ai-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--deep-charcoal);
    border-radius: 50%;
    opacity: 0.06;
    animation: aiDotPulse 4s ease-in-out infinite;
}

.ai-dot:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.ai-dot:nth-child(2) {
    top: 25%;
    left: 30%;
    animation-delay: 0.8s;
    width: 3px;
    height: 3px;
}

.ai-dot:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 1.6s;
}

.ai-dot:nth-child(4) {
    top: 40%;
    left: 50%;
    animation-delay: 0.4s;
    width: 5px;
    height: 5px;
}

.ai-dot:nth-child(5) {
    top: 70%;
    left: 70%;
    animation-delay: 1.2s;
}

.ai-dot:nth-child(6) {
    top: 20%;
    left: 80%;
    animation-delay: 2s;
    width: 3px;
    height: 3px;
}

.ai-dot:nth-child(7) {
    top: 80%;
    left: 40%;
    animation-delay: 0.6s;
}

.ai-dot:nth-child(8) {
    top: 45%;
    left: 90%;
    animation-delay: 1.8s;
    width: 6px;
    height: 6px;
}

.ai-dot:nth-child(9) {
    top: 10%;
    left: 60%;
    animation-delay: 2.4s;
}

.ai-dot:nth-child(10) {
    top: 85%;
    left: 85%;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.ai-dot:nth-child(11) {
    top: 55%;
    left: 25%;
    animation-delay: 3s;
}

.ai-dot:nth-child(12) {
    top: 35%;
    left: 75%;
    animation-delay: 2.8s;
    width: 4px;
    height: 4px;
}

/* Connecting lines between dots */
.ai-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44, 44, 44, 0.04), transparent);
    transform-origin: left center;
    animation: aiLinePulse 6s ease-in-out infinite;
}

.ai-line:nth-child(13) {
    top: 20%;
    left: 10%;
    width: 200px;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.ai-line:nth-child(14) {
    top: 50%;
    left: 30%;
    width: 300px;
    transform: rotate(-8deg);
    animation-delay: 2s;
}

.ai-line:nth-child(15) {
    top: 70%;
    left: 50%;
    width: 250px;
    transform: rotate(22deg);
    animation-delay: 4s;
}

.ai-line:nth-child(16) {
    top: 35%;
    left: 60%;
    width: 180px;
    transform: rotate(-15deg);
    animation-delay: 1s;
}

@keyframes aiDotPulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.8);
    }
}

@keyframes aiLinePulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Section content */
.ai-section .container {
    position: relative;
    z-index: 2;
}

.ai-section h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--deep-charcoal);
}

.ai-subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    opacity: 0.5;
    color: var(--deep-charcoal);
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* AI Cards Grid */
.ai-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.ai-card {
    background: white;
    border: 2px solid var(--deep-charcoal);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(44, 44, 44, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-6px);
    border-color: var(--acid-green);
    box-shadow: 4px 8px 0 rgba(184, 255, 0, 0.2);
}

/* Card icon containers */
.ai-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brain/Neural animation */
.ai-brain {
    width: 48px;
    height: 48px;
    border: 3px solid var(--acid-green);
    border-radius: 50%;
    position: relative;
    animation: brainPulse 2.5s ease-in-out infinite;
}

.ai-brain::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid var(--acid-green);
    border-radius: 50%;
    opacity: 0.5;
    animation: brainPulse 2.5s ease-in-out infinite reverse;
}

.ai-brain::after {
    content: '🧠';
    position: absolute;
    font-size: 22px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-brain-ring {
    position: absolute;
    inset: -8px;
    border: 1px solid var(--acid-green);
    border-radius: 50%;
    opacity: 0;
    animation: brainRing 2.5s ease-out infinite;
}

@keyframes brainPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes brainRing {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Sound waveform animation */
.ai-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 48px;
}

.ai-wave-bar {
    width: 4px;
    background: var(--acid-green);
    border-radius: 4px;
    animation: waveBar 1.2s ease-in-out infinite;
}

.ai-wave-bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.ai-wave-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.1s;
}

.ai-wave-bar:nth-child(3) {
    height: 32px;
    animation-delay: 0.2s;
}

.ai-wave-bar:nth-child(4) {
    height: 24px;
    animation-delay: 0.3s;
}

.ai-wave-bar:nth-child(5) {
    height: 40px;
    animation-delay: 0.15s;
}

.ai-wave-bar:nth-child(6) {
    height: 28px;
    animation-delay: 0.25s;
}

.ai-wave-bar:nth-child(7) {
    height: 16px;
    animation-delay: 0.35s;
}

.ai-wave-bar:nth-child(8) {
    height: 36px;
    animation-delay: 0.05s;
}

.ai-wave-bar:nth-child(9) {
    height: 20px;
    animation-delay: 0.2s;
}

@keyframes waveBar {

    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Adaptive clock animation */
.ai-clock {
    width: 48px;
    height: 48px;
    border: 3px solid var(--acid-green);
    border-radius: 50%;
    position: relative;
}

.ai-clock::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 14px;
    background: var(--acid-green);
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
    animation: clockAdapt 8s ease-in-out infinite;
}

.ai-clock::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 10px;
    background: var(--acid-green);
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(90deg);
    animation: clockHourAdapt 24s linear infinite;
}

.ai-clock-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--acid-green);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-clock-label {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--acid-green);
    color: var(--ink-blue);
    font-size: 0.55rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 6px;
    animation: clockLabelPulse 3s ease-in-out infinite;
}

@keyframes clockAdapt {
    0% {
        transform: translate(-50%, -100%) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -100%) rotate(45deg);
    }

    50% {
        transform: translate(-50%, -100%) rotate(120deg);
    }

    75% {
        transform: translate(-50%, -100%) rotate(200deg);
    }

    100% {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

@keyframes clockHourAdapt {
    to {
        transform: translate(-50%, -100%) rotate(450deg);
    }
}

@keyframes clockLabelPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Card text */
.ai-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--deep-charcoal);
}

.ai-card-desc {
    font-size: 0.85rem;
    opacity: 0.5;
    color: var(--deep-charcoal);
    line-height: 1.5;
}

/* Privacy badge */
.ai-privacy {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    opacity: 0.6;
}

.ai-privacy svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-cards {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 1rem;
    }

    .ai-card {
        padding: 1.5rem 1.2rem;
    }

    .ai-card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 0.8rem;
    }
}

/* ========================================
   MOBILE OVERFLOW FIXES
   ======================================== */

/* notification-demo can overflow as inline-flex on narrow screens */
.notification-demo {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .container {
        padding: 2rem 1rem;
    }

    .notification-demo,
    .alert-demo {
        max-width: 100%;
    }
}

/* Watch devices: scale down on very narrow phones */
@media (max-width: 420px) {
    .watch-section .zig-zag-image > div {
        gap: 1rem !important;
    }
}

/* ========================================
   MOBILE FIXES — iPhone 375-430px
   ======================================== */

/* Nav: compact wrap on small phones */
@media (max-width: 480px) {
    .site-nav {
        flex-direction: column;
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
        white-space: normal;
        overflow-x: visible;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-download {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.7rem !important;
        margin-left: 0 !important;
    }

    .nav-logo {
        font-size: 1.1rem;
    }
}

/* Hero: tighter on small phones */
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }

    .logo-tape {
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    /* CTA section */
    .cta-section {
        padding: 4rem 1rem !important;
    }

    .cta-text {
        font-size: 1.5rem;
    }

    /* Footer — remove forced min-height */
    footer {
        min-height: auto !important;
        padding: 1.5rem 1rem;
    }

    footer a {
        margin: 0 0.5rem;
        font-size: 0.75rem;
    }

    /* Inline sections — tighter padding */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Quote blocks */
    .quote {
        font-size: 1.3rem;
        padding: 1rem 1.2rem;
    }

    /* Comparison cards */
    .compare-card {
        padding: 1.5rem 1.2rem;
    }

    /* Download buttons */
    .download-btn img {
        height: 40px;
    }

    /* Watch section */
    .watch-section {
        padding: 3rem 1rem !important;
    }

    .watch-section .zig-zag-grid {
        gap: 2rem;
    }

    /* Pricing cards — force stack */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Testimonial cards — force stack */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Zig-zag text */
    .zig-zag-text h2 {
        font-size: 1.8rem;
    }

    .zig-zag-text p {
        font-size: 1rem;
    }

    /* Big text sections */
    .big-text {
        font-size: 2rem;
    }

    .sub-text {
        font-size: 1.1rem;
    }
}