/* ========================================
   Carenox — Home Page Styles
   ======================================== */

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: min(900px, 100svh);
    display: flex;
    align-items: center;
    padding: 150px 0 96px;
    overflow: hidden;
    background: #f7f2e9;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 54% 55% at 82% 20%, rgba(205, 220, 234, 0.78), transparent 72%),
        radial-gradient(ellipse 48% 52% at 10% 82%, rgba(222, 210, 229, 0.62), transparent 72%),
        radial-gradient(ellipse 45% 42% at 65% 82%, rgba(218, 229, 209, 0.72), transparent 70%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 26s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(164, 196, 184, 0.24);
    top: 10%;
    left: 20%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(190, 202, 225, 0.28);
    top: 50%;
    right: 10%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(57, 124, 112, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    color: #397c70;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    max-width: 900px;
    font-size: clamp(3rem, 6.4vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.02;
    margin-bottom: 24px;
}

.text-gradient {
    color: #397c70;
}

.hero-sub {
    max-width: 760px;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(57, 124, 112, 0.12);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.hero-trust-item .trust-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.feature-card {
    border: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 124, 112, 0.23);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #dfeae4;
    border: 1px solid rgba(57, 124, 112, 0.1);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-step {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 4px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.7;
}

/* ========================================
   ACCESS Tracks
   ======================================== */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.track-card {
    border: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.track-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 124, 112, 0.23);
    box-shadow: var(--shadow-md);
}

.track-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.track-abbr {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.track-header-bh { background: #e3dbe8; }
.track-header-msk { background: #eadfd5; }
.track-header-eckm { background: #dce8df; }
.track-header-ckm { background: #dbe5ed; }
.track-header-bh .track-abbr { background: #d4c4dc; color: #604a6a; }
.track-header-msk .track-abbr { background: #ddc9b8; color: #765846; }
.track-header-eckm .track-abbr { background: #c8dbce; color: #3c6850; }
.track-header-ckm .track-abbr { background: #c8d8e4; color: #405f74; }

.track-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.track-conditions {
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.track-conditions span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #edf1ec;
    border-radius: 20px;
    color: var(--text-secondary);
}

.track-carenox {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.track-carenox p {
    font-size: 0.8125rem;
    line-height: 1.6;
}

.access-note {
    border: 1px solid rgba(57, 124, 112, 0.14);
    background: #e5eee8;
    color: var(--text-secondary);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
}

.access-note p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.access-note strong {
    color: var(--text-primary);
}

/* ========================================
   Compliance / Transparency
   ======================================== */
#compliance {
    background: #e8edf2;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.transparency-card {
    border: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.transparency-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 124, 112, 0.23);
    box-shadow: var(--shadow-md);
}

.transparency-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #dfeae4;
    border: 1px solid rgba(57, 124, 112, 0.1);
    margin-bottom: 20px;
}

.transparency-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.transparency-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.transparency-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ========================================
   Pricing
   ======================================== */
.pricing-card-single {
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid rgba(57, 124, 112, 0.2);
    background: #fbf7ee;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 20px;
    background: #dce9e2;
    color: #2d655b;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 8px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
}

.price-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-range {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-no-commitment {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

/* ========================================
   FAQ
   ======================================== */
#faqs {
    background: #eee9f0;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Team
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.team-card {
    display: flex;
    gap: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition);
}

.team-card:hover {
    border-color: rgba(57, 124, 112, 0.23);
    box-shadow: var(--shadow-md);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e9e4;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(0.96);
}

.team-info h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-links {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.team-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.team-links a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.team-links svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   CTA / Contact Form
   ======================================== */
.section-cta {
    background: #dce8e1;
    color: var(--text-primary);
}

.cta-content {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px);
    border: 1px solid rgba(57, 124, 112, 0.14);
    border-radius: var(--radius-2xl);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.partner-form {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    background: #fffdf8;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(57, 124, 112, 0.09);
}

.form-field input::placeholder {
    color: #8b9791;
}

.form-submit {
    width: 100%;
}

.form-success {
    padding: 40px 0;
    text-align: center;
    color: var(--accent);
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
}

.form-error {
    margin-top: 12px;
    text-align: center;
    color: #9f4039;
    font-size: 0.875rem;
}

.cta-micro {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Home Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 130px 0 82px;
    }

    .hero-content {
        min-width: 0;
    }

    .hero-headline {
        max-width: 100%;
        font-size: clamp(2.35rem, 11.5vw, 3.2rem);
        overflow-wrap: break-word;
    }

    .hero-headline br {
        display: none;
    }

    .hero-eyebrow {
        max-width: 100%;
        font-size: 0.7rem;
        line-height: 1.4;
        white-space: normal;
    }

    .hero-ctas {
        flex-direction: column;
        margin-bottom: 42px;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-inline: 20px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
        line-height: 1.35;
    }

    .hero-trust {
        flex-direction: column;
    }

    .hero-trust-item {
        width: fit-content;
    }

    .section {
        padding: 82px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        border-radius: 24px;
    }
}

/* ========================================
   Sample Calls / Audio Demo Section
   ======================================== */

#sample-calls {
    background: var(--bg-primary);
    padding-top: clamp(64px, 7vw, 96px);
    padding-bottom: clamp(48px, 5vw, 72px);
}

#sample-calls + .section {
    padding-top: clamp(48px, 5vw, 72px);
}

.demo-calls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.demo-call-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-call-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.demo-call-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.demo-call-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--teal-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-call-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.demo-call-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.3;
}

.demo-call-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-600);
    background: var(--teal-50);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.demo-call-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.demo-call-audio {
    width: 100%;
    height: 40px;
    margin-top: auto;
    border-radius: var(--radius-full);
}

/* Custom audio styling (Webkit browsers) */
.demo-call-audio::-webkit-media-controls-panel {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

.demo-call-audio::-webkit-media-controls-current-time-display,
.demo-call-audio::-webkit-media-controls-time-remaining-display {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.demo-calls-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Responsive: Sample Calls ---- */
@media (max-width: 768px) {
    .demo-calls-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .demo-call-card {
        padding: 22px;
    }
}


/* ---- Multilingual Card Accent ---- */
.demo-call-card--multilingual {
    border-color: var(--teal-100);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--teal-50) 100%);
    grid-column: 1 / -1;
}

.demo-call-card--multilingual:hover {
    border-color: var(--teal-200);
}

.demo-call-icon--multilingual {
    background: var(--teal-100);
}

.demo-call-badge--lang {
    background: var(--teal-100);
    color: var(--teal-700);
}

/* ---- Language Support Callout ---- */
.demo-calls-languages {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.demo-calls-languages-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.demo-calls-languages-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-calls-languages-header svg {
    stroke: var(--accent);
    flex-shrink: 0;
}

.demo-calls-lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lang-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.demo-calls-lang-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Responsive: Language Callout ---- */
@media (max-width: 768px) {
    .demo-calls-languages {
        padding: 20px 18px;
    }

    .demo-calls-lang-tags {
        gap: 8px;
    }

    .lang-tag {
        font-size: 0.78rem;
        padding: 4px 11px;
    }
}
