/* OTITEST - Figma Pixel-Perfect CSS
 * Design tokens extracted from Figma Frame 2047 (Home)
 * Canvas 1920px wide, content column 943px centered.
 *   Colors:  bg #F3EDE6, blue #0061FE, darkblue #000206, lightblue #E0EBFA
 *   Fonts:   DM Sans (400/600), Instrument Serif (italic accents)
 *   Headings: hero 72px, display 54px, section 32px
 */

:root {
    --bg: #F3EDE6;
    --blue: #0061FE;
    --dark: #000206;
    --light-blue: #E0EBFA;
    --muted: #5b595d;
    --white: #ffffff;
    --content-width: 943px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
strong { font-weight: 700; }
.blue { color: var(--blue) !important; }
.text-center { text-align: center; }
.text-muted { color: #888; font-size: 15px; }

.page-container { max-width: var(--content-width); margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
.section-sm { padding: 20px 0; }
.section-lg { padding: 100px 0; }

/* ========= NAVBAR (Figma: logo left, plain dark text links right) ========= */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background: var(--bg);
    padding: 22px 0 14px;
    transition: background 0.3s ease;
}
/* When mobile menu is open, navbar becomes transparent over dark overlay */
body.menu-open .navbar {
    background: transparent;
    border-bottom: none;
}
body.menu-open .nav-logo-img {
    filter: brightness(0) invert(1);
}
.nav-container {
    max-width: var(--content-width); margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.nav-logo-img { height: 42px; width: auto; }
.nav-links {
    display: flex; align-items: center; gap: 26px;
}
.nav-links a {
    font-size: 12px; font-weight: 400; color: var(--blue);
    letter-spacing: 1px;
    transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 0.65; }
.nav-links a.active { font-weight: 700; }
/* Hamburger button */
.nav-hamburger {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 200;
    border-radius: 50%;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(0, 97, 254, 0.08); }
.nav-hamburger .hamburger-line {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, background 0.2s;
}
.nav-hamburger .hamburger-line:nth-child(1) { top: 16px; }
.nav-hamburger .hamburger-line:nth-child(2) { top: 21px; }
.nav-hamburger .hamburger-line:nth-child(3) { top: 26px; }

.nav-hamburger.open .hamburger-line { background: #fff; }
.nav-hamburger.open .hamburger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}
.nav-hamburger.open { background: rgba(255, 255, 255, 0.1); }

/* ========= MOBILE MENU OVERLAY ========= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Soft blue glow in the corner */
.mobile-menu-bg-glow {
    position: absolute;
    top: -100px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 97, 254, 0.32) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.1s;
}
.mobile-menu.open .mobile-menu-bg-glow {
    opacity: 1;
}

.mobile-menu-inner {
    position: relative;
    min-height: 100vh;
    padding: 110px 28px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    max-width: 560px;
    margin: 0 auto;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease,
                color 0.25s ease;
}
.mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.16s, 0.16s, 0s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.22s, 0.22s, 0s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.28s, 0.28s, 0s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.34s, 0.34s, 0s; }

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--blue);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
}
.mobile-link:hover::before,
.mobile-link.active::before {
    transform: translateY(-50%) scaleY(1);
}
.mobile-link:hover .mobile-link-text,
.mobile-link.active .mobile-link-text {
    transform: translateX(14px);
    color: #fff;
}
.mobile-link:hover .mobile-link-arrow,
.mobile-link.active .mobile-link-arrow {
    transform: translateX(-2px) rotate(-45deg);
    color: var(--blue);
    opacity: 1;
}

.mobile-link-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s;
}
.mobile-link-text em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--blue);
    margin-left: 4px;
}

.mobile-link-arrow {
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.25s ease,
                opacity 0.25s;
    flex-shrink: 0;
}

/* CTA button at the bottom of the mobile menu */
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 18px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 97, 254, 0.35);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.40s,
                opacity 0.5s ease 0.40s,
                background 0.2s ease,
                box-shadow 0.25s ease;
}
.mobile-menu.open .mobile-cta-btn {
    transform: translateY(0);
    opacity: 1;
}
.mobile-cta-btn em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: #fff;
}
.mobile-cta-btn:hover,
.mobile-cta-btn:active {
    background: #0050d4;
    box-shadow: 0 12px 36px rgba(0, 97, 254, 0.45);
}

/* Lock body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========= SLIM FOOTER (mirrors navbar — horizontal, minimal) ========= */
.footer-slim {
    background: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 64px;
}
.footer-slim-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-slim-logo img {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}
.footer-slim-logo:hover img { opacity: 0.7; }

.footer-slim-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.footer-slim-nav a {
    font-size: 12px;
    font-weight: 400;
    color: var(--blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.15s;
}
.footer-slim-nav a:hover { opacity: 0.6; }

@media (max-width: 600px) {
    .footer-slim { margin-top: 48px; }
    .footer-slim-container {
        flex-direction: column;
        gap: 16px;
        padding: 22px 20px;
    }
    .footer-slim-logo img { height: 26px; }
    .footer-slim-nav { gap: 14px 18px; flex-wrap: wrap; justify-content: center; }
    .footer-slim-nav a { font-size: 11px; }
}

/* ========= TYPOGRAPHY (Figma values) ========= */
/* Hero title: DM Sans 400, 72px, line-height 1, centered */
.hero-title {
    font-weight: 400; font-size: 72px; line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.hero-title em { font-family: 'Instrument Serif', serif; font-size: 1.05em; }
.hero-icon {
    display: inline-block; width: 62px; height: 54px;
    vertical-align: middle; margin: 0 6px;
}
/* Hero subtitle: 24-26px on 943 column */
.hero-sub {
    font-size: 22px; color: var(--dark); line-height: 1.45;
    max-width: 720px; margin: 0 auto;
}

/* Display headings (sections like "Why we created", "Together for healthy ears") */
.heading-lg { font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 24px; }
.heading-lg em { font-family: 'Instrument Serif', serif; font-size: 1.05em; }
.heading-md { font-weight: 400; font-size: 54px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 22px; }
.heading-md em { font-family: 'Instrument Serif', serif; font-size: 1.05em; }
.heading-sm { font-weight: 400; font-size: 32px; line-height: 1.3; margin-bottom: 16px; }
.heading-sm em { font-family: 'Instrument Serif', serif; font-size: 1.1em; }

.body-text { font-size: 18px; color: var(--dark); line-height: 1.5; margin-bottom: 14px; }
.body-text-lg { font-size: 20px; color: var(--dark); line-height: 1.55; }

.full-img { width: 100%; display: block; }
.rounded-lg { border-radius: 28px; }
.rounded-xl { border-radius: 40px; }
.card-rounded { border-radius: 28px; overflow: hidden; }
.light-blue-bg { background: var(--light-blue); }

.btn-blue {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--blue); color: #fff;
    font-weight: 400; font-size: 18px; padding: 14px 32px;
    border-radius: 999px; border: none; cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.btn-blue em { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.15em; line-height: 1; }
.btn-blue:hover { background: #004ed4; transform: translateY(-1px); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: transparent; color: var(--blue);
    font-weight: 500; font-size: 16px; padding: 14px 32px;
    border: 1.5px solid var(--blue); border-radius: 999px;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Stats bar — large blue pill with big numbers */
.stats-bar {
    display: flex; background: var(--blue); border-radius: 20px;
    padding: 28px 12px; gap: 8px;
}
.stat { flex: 1; text-align: center; position: relative; }
.stat + .stat::before {
    content: ''; position: absolute; left: 0; top: 15%; bottom: 15%;
    width: 1px; background: rgba(255,255,255,0.25);
}
.stat-num {
    font-weight: 500; font-size: 54px; line-height: 1;
    color: #fff; letter-spacing: -0.02em;
}
.stats-descriptions {
    display: flex; gap: 8px; margin-top: 18px;
}
.stat-desc {
    flex: 1; text-align: center;
    font-size: 13px; color: var(--dark); line-height: 1.4;
    padding: 0 12px;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.align-center { align-items: center; }

/* Press */
.press-img { max-width: 500px; margin: 0 auto; }
.cta-img { max-width: 500px; margin: 0 auto; }

/* Collage grid (mom+daughter main photo + two smaller) */
.collage { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.collage-side { display: flex; flex-direction: column; gap: 14px; }
.collage-img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; min-height: 220px; }
.collage-main .collage-img { min-height: 460px; }

/* Partners */
.partners-img { max-width: 540px; margin: 0 auto; }

/* ========= BENEFITS ========= */
.benefit-card { background: #fff; border-radius: 14px; padding: 24px; }
.benefit-icon {
    width: 44px; height: 44px; background: rgba(0,97,254,0.08);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.benefit-icon .material-symbols-outlined { font-size: 22px; color: #0061fe; }
.benefit-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.benefit-text { font-size: 13px; color: #5b595d; line-height: 1.6; }

/* Product */
.product-label { font-weight: 700; font-size: 20px; color: #000206; line-height: 1.35; margin-bottom: 14px; }
.product-render { max-width: 260px; margin: 0 auto; }
.screen-render { max-width: 240px; margin-top: 12px; }
.feature-tags { display: flex; flex-direction: column; gap: 8px; }
.feature-tag {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #5b595d;
}
.feature-tag .material-symbols-outlined { font-size: 20px; color: #0061fe; }
.feature-list p {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; margin-bottom: 8px;
}
.feature-list .material-symbols-outlined { font-size: 20px; }
.stat-line {
    display: flex; align-items: center; gap: 20px;
    border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 28px 0;
}
.stat-big { font-size: 80px; font-weight: 400; color: #000206; line-height: 1; }
.stat-label { font-size: 14px; color: #5b595d; flex: 1; }
.stat-search { font-size: 36px; }
.app-preview-small { max-width: 320px; margin: 0 auto; }

/* ========= CEO ========= */
.ceo-card { position: relative; border-radius: 20px; overflow: hidden; }
.ceo-photo { width: 100%; min-height: 450px; object-fit: cover; }
.ceo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,2,6,0.9), rgba(0,2,6,0.5), transparent);
    padding: 70px 28px 28px;
}
.tag-outline-blue {
    display: inline-block; border: 1px solid #0061fe; color: #0061fe;
    font-size: 13px; padding: 5px 16px; border-radius: 100px; margin-bottom: 14px;
}
.ceo-quote-text { font-size: 16px; color: #f3ede6; line-height: 1.55; }
.ceo-quote-text em { font-family: 'Instrument Serif', serif; }

/* ========= TEAM ========= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.team-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.team-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.team-role { font-size: 11px; color: #5b595d; }

/* ========= COMMUNITY ========= */
.community-card {
    background: #0061fe; border-radius: 18px; padding: 44px 28px; text-align: center;
}
.community-text { font-size: 24px; font-weight: 400; color: #fff; line-height: 1.35; }
.community-text em { font-family: 'Instrument Serif', serif; }

/* ========= BLOG ========= */
.blog-labels { display: flex; margin-bottom: 14px; }
.blog-cat { flex: 1; font-size: 11px; font-weight: 600; color: #888; letter-spacing: 1px; }
.article-card { background: #fff; border-radius: 14px; padding: 24px; }
.article-title { font-size: 22px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.article-text { font-size: 13px; color: #5b595d; line-height: 1.65; margin-bottom: 10px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #888; margin-top: 12px; }
.meta-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ========= JOIN form flash messages ========= */
.join-flash {
    padding: 12px 18px; border-radius: 10px; margin-bottom: 12px;
    font-size: 14px; font-weight: 500;
}
.join-flash-success { background: rgba(14,163,92,0.12); color: #0ea35c; }
.join-flash-info { background: rgba(0,97,254,0.10); color: #0061fe; }
.join-flash-danger { background: rgba(220,53,69,0.10); color: #dc3545; }
.join-flash-warning { background: rgba(245,158,11,0.12); color: #f59e0b; }
.join-err { color: #dc3545; font-size: 12px; display: block; margin-top: 4px; }

/* ========= JOIN FORM ========= */
.join-form { max-width: 500px; margin: 28px auto 0; text-align: left; }
.form-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.form-arrow { font-size: 20px; color: #0061fe; }
.form-field { flex: 1; }
.form-field label { display: block; font-size: 10px; color: #888; letter-spacing: 1px; margin-bottom: 4px; }
.form-field input {
    width: 100%; border: none; border-bottom: 1px solid #ccc; background: transparent;
    font-family: 'DM Sans', sans-serif; font-size: 15px; padding: 8px 0; outline: none;
}
.form-field input:focus { border-bottom-color: #0061fe; }

/* ========= TIMELINE (Figma: light-blue cards + blue pill badges + dark text) ========= */
.timeline-wrapper {
    background: var(--light-blue);
    border-radius: 24px;
    padding: 48px 48px 32px;
}
.timeline {
    position: relative; padding-left: 28px;
    display: flex; flex-direction: column; gap: 18px;
}
.timeline::before {
    content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px;
    width: 2px; background: rgba(0,97,254,0.25);
}
.tl-item {
    position: relative; padding-left: 20px;
    background: var(--white);
    border-radius: 16px;
    padding: 18px 22px 18px 32px;
}
.tl-dot {
    position: absolute; left: -27px; top: 22px;
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(0,97,254,0.3);
    border: 2px solid var(--bg);
}
.tl-dot.active { background: var(--blue); }
.tl-item.done .tl-dot { background: #22c55e; }
.tl-body { color: var(--dark); }
.tl-body h4 {
    font-size: 16px; font-weight: 600; color: var(--dark);
    margin: 6px 0 4px;
}
.tl-body p {
    font-size: 13px; color: var(--dark); opacity: 0.75;
    line-height: 1.5;
}
.tl-badge {
    display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.4px;
    padding: 4px 12px; border-radius: 100px;
    background: var(--blue); color: var(--light-blue);
}
.tl-badge.green { background: #22c55e; color: #fff; }
.tl-badge.live { background: var(--blue); color: #fff; }
.tl-thumb {
    width: 140px; height: 90px; object-fit: cover;
    border-radius: 10px; margin-top: 10px;
}

/* Join hero heading and subtitle */
.join-hero h1 { color: var(--dark); }
.join-hero .body-text { color: var(--dark); }

/* ========= HERO APP PREVIEW CARD ========= */
.hero-preview {
    background: var(--light-blue);
    border-radius: 40px;
    padding: 40px;
    overflow: hidden;
}
.hero-preview img { width: 100%; border-radius: 24px; display: block; }

/* ========= HIGH-TECH PROTECTION CARD — fully coded blue card ========= */
.hightech-card-coded {
    background: var(--blue);
    border-radius: 40px;
    padding: 50px 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.hightech-title, .hightech-subtitle {
    color: #fff;
    font-size: 48px; font-weight: 400; line-height: 1;
    letter-spacing: -0.01em;
    margin: 0;
}
.hightech-subtitle em { font-family: 'Instrument Serif', serif; font-size: 1.05em; }
.inline-icon { display: inline-block; width: 40px; height: 36px; vertical-align: middle; margin-left: 6px; }
.hightech-device {
    max-width: 220px; width: auto; height: auto; display: block;
    margin: 10px auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}
.discover-more {
    display: block; text-align: center;
    font-size: 16px; color: var(--dark);
    margin-top: 18px; cursor: pointer;
    transition: opacity 0.15s;
}
.discover-more::after { content: '  ↓'; }
.discover-more:hover { opacity: 0.65; }

/* ========= TOGETHER FOR HEALTHY EARS — heading + pure photo + stats overlay ========= */
.together-heading {
    font-size: 40px; font-weight: 400; line-height: 1.1;
    text-align: center; color: var(--dark);
    letter-spacing: -0.01em; margin-bottom: 24px;
}
.together-heading em {
    font-family: 'Instrument Serif', serif; font-style: italic;
    color: var(--blue); font-size: 1em;
}

/* ========= EARS CARE, ANYWHERE — photo + overlay title + benefits card ========= */
.ears-care-coded {
    position: relative;
    border-radius: 32px; overflow: hidden;
    min-height: 620px;
}
.ears-care-bg {
    width: 100%; height: 100%; display: block;
    position: absolute; top: 0; left: 0;
    object-fit: cover;
    z-index: 0;
}
.ears-care-title {
    position: relative; z-index: 2;
    color: #fff; font-size: 56px; font-weight: 400;
    line-height: 1; letter-spacing: -0.02em;
    padding: 56px 56px 40px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ears-care-title em {
    font-family: 'Instrument Serif', serif; font-size: 1.05em;
}
.ears-care-benefits {
    position: absolute; left: 24px; right: 24px; bottom: 24px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
    border-radius: 16px; padding: 20px 24px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
    z-index: 2;
}
.benefit-item {
    text-align: center;
}
.benefit-icon-img { width: 30px; height: 30px; margin: 0 auto 8px; display: block; }
.benefit-ico {
    display: block; margin: 0 auto 8px; width: 32px; height: 32px;
}
.benefit-item p {
    font-size: 12px; color: var(--dark); line-height: 1.4; margin: 0;
}

/* ========= SUCCESS CASE TESTIMONIAL — photo right + HTML card left overlay ========= */
.success-case-card {
    position: relative;
    border-radius: 28px; overflow: hidden;
    min-height: 380px;
    background: linear-gradient(90deg, #1a3a8f 0%, #2447a8 55%, transparent 60%);
}
.success-bg {
    position: absolute; top: 0; right: 0; width: 55%; height: 100%;
    object-fit: cover; z-index: 0;
}
.success-overlay {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: space-between;
    width: 50%; min-height: 380px;
    padding: 28px 32px;
    color: #fff;
}
.success-badge {
    display: inline-block; align-self: flex-start;
    background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
    padding: 5px 14px; border-radius: 999px;
}
.success-quote p {
    font-size: 22px; line-height: 1.3; font-weight: 400;
    margin-bottom: 10px;
}
.success-quote em { font-family: 'Instrument Serif', serif; font-size: 1.08em; }
.success-author { font-size: 13px; opacity: 0.85; }

/* ========= DESIGNED FOR FAMILIES — testimonial grid ========= */
.heading-lg-display {
    font-size: 54px; font-weight: 400; line-height: 1.1;
    letter-spacing: -0.01em; margin-bottom: 40px;
}
.heading-lg-display em {
    font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.05em;
}
.testimonial-grid {
    display: flex; flex-direction: column; gap: 40px;
    max-width: 640px; margin: 0 auto;
}
.testimonial {
    display: grid; grid-template-columns: 240px 240px;
    gap: 40px; align-items: start; text-align: left;
    justify-content: start;
}
.testimonial.testimonial-reverse {
    grid-template-columns: 240px 240px;
    justify-content: end;
}
.testimonial-photo {
    width: 240px; height: 260px; object-fit: cover;
    border-radius: 16px;
}
.testimonial-body {
    padding-top: 12px;
}
.quote-mark {
    display: block; font-size: 40px; line-height: 0.8;
    color: var(--dark); font-family: 'Instrument Serif', serif;
    margin-bottom: 10px;
}
.testimonial-text {
    font-size: 15px; line-height: 1.55; color: var(--dark);
    margin-bottom: 18px;
}
.testimonial-author {
    font-size: 12px; color: var(--dark); opacity: 0.7;
}

/* ========= REDEFINING EAR CARE FOR THE WHOLE FAMILY ========= */
.redefining-family {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
.redefining-text { padding: 20px 0; }
.redefining-title {
    font-size: 48px; font-weight: 400; line-height: 1.1;
    color: var(--blue); margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.redefining-title em {
    font-family: 'Instrument Serif', serif; font-style: italic;
    color: var(--blue); font-size: 1em;
}
.redefining-title .inline-icon {
    width: 44px; height: 40px; vertical-align: middle;
}
.redefining-avatars { max-width: 220px; margin-bottom: 16px; }
.redefining-logo { height: 32px; width: auto; }
.redefining-photo img { width: 100%; max-width: 440px; margin: 0 auto; display: block; }

/* ========= MORE ABOUT US / HOW IT WORKS ========= */
.more-about-sub {
    font-size: 26px; color: var(--dark);
    line-height: 1.2; margin: 0 auto 40px;
    max-width: 600px;
}
.how-it-works-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    background: var(--light-blue);
    border-radius: 24px; padding: 28px;
}
.step-card {
    display: flex; flex-direction: column; gap: 12px;
    text-align: left;
}
.step-photo {
    width: 100%; aspect-ratio: 3/4;
    border-radius: 16px; overflow: hidden;
}
.step-photo img { width: 100%; height: 100%; object-fit: cover; }
.step-badge {
    display: inline-block; align-self: flex-start;
    background: var(--blue); color: #fff;
    font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
    padding: 5px 16px; border-radius: 999px;
    margin-top: 4px;
}
.step-desc {
    font-size: 14px; color: var(--dark); line-height: 1.5;
    margin: 0; padding-right: 8px;
}

/* ========= MORE ABOUT US (split card) ========= */
.split-card {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 28px; overflow: hidden;
    background: var(--white);
    min-height: 320px;
}
.split-card-img { background: #ddd; overflow: hidden; }
.split-card-img img { width: 100%; height: 100%; object-fit: cover; }
.split-card-body {
    padding: 36px 32px;
    display: flex; flex-direction: column; justify-content: center;
}
.split-card-body h3 { font-size: 28px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.split-card-body h3 em { font-family: 'Instrument Serif', serif; font-size: 1.1em; }
.split-card-body p { font-size: 15px; color: #3a3a3a; line-height: 1.55; margin-bottom: 18px; }
.split-card-stat { font-size: 54px; font-weight: 500; color: var(--blue); line-height: 1; }

/* ========= TOGETHER FOR HEALTHY EARS (image + stats overlay card) ========= */
.together-wrapper { position: relative; }
.together-img {
    width: 100%; display: block;
    border-radius: 24px; overflow: hidden;
}
.stats-card {
    position: absolute; left: 40px; right: 40px; bottom: 40px;
    background: rgba(224, 235, 250, 0.96);
    backdrop-filter: blur(4px);
    border-radius: 16px; padding: 20px 24px;
}
.stats-badge {
    display: inline-block; font-size: 11px; letter-spacing: 0.6px;
    color: var(--blue); border: 1px solid var(--blue);
    padding: 3px 10px; border-radius: 999px;
    margin-bottom: 12px;
}
.stats-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
}
.stat-item { padding-right: 10px; }
.stat-item + .stat-item { border-left: 1px solid rgba(0,97,254,0.15); padding-left: 18px; }
.stat-num-blue {
    display: block; font-size: 38px; font-weight: 400;
    color: var(--blue); line-height: 1; margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-desc-dark {
    font-size: 11px; color: var(--blue); line-height: 1.4;
    margin: 0;
}

/* ========= CAN YOU HEAR US? (plain heading + wide blue pill button) ========= */
.btn-pill-wide {
    display: block; margin: 0 auto;
    width: 100%; max-width: 520px;
    padding: 18px 32px; font-size: 22px; font-weight: 500;
    letter-spacing: 2px;
}

/* ========= BLOG ARTICLE PREVIEW (Figma: centered, blue headline, meta row) ========= */
.article-preview-centered { text-align: center; }
.article-label-sm {
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    color: var(--dark); margin-bottom: 20px;
    text-align: left;
}
.article-headline-blue {
    font-size: 44px; font-weight: 400; line-height: 1.1;
    color: var(--blue); margin-bottom: 24px;
}
.article-body {
    max-width: 560px; margin: 0 auto 24px;
    text-align: left;
}
.article-body .body-text { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.article-meta-row {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 560px; margin: 0 auto;
    font-size: 12px; color: var(--dark);
}
.article-author {
    display: flex; align-items: center; gap: 8px;
}
.article-author-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.article-date { color: var(--dark); }

/* ========= PRESS LOGOS ROW (Figma: 3 light cards with logos centered) ========= */
.press-logos-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 20px; padding: 16px 0;
}
.press-logo-card {
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    padding: 28px;
}
.press-logo-card img { max-width: 100%; max-height: 80px; object-fit: contain; }
.press-logo-card svg { max-width: 100%; max-height: 80px; }

/* ========= PARTNERS BAR (logos row) ========= */
.logos-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
    padding: 24px 40px;
    background: var(--white);
    border-radius: 20px;
}
.logos-bar img {
    height: 40px; width: auto; object-fit: contain;
    opacity: 0.85;
}
/* PRR / PT2030 / EU banner — full-width image, not constrained */
.partners-banner {
    width: 100%; max-width: 700px; height: auto; display: block;
    margin: 0 auto; padding: 24px 0;
}

/* ========= FOLLOW OUR JOURNEY (blue card, LEFT-aligned per Figma) ========= */
.journey-card {
    background: var(--blue); color: #fff;
    border-radius: 32px; padding: 48px 48px;
}
.journey-card-left { text-align: left; }
.journey-title {
    font-size: 42px; font-weight: 400; line-height: 1.1;
    margin-bottom: 28px; color: #fff;
}
.journey-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.1em; }
.journey-socials {
    display: flex; gap: 14px;
}
.journey-card-left .journey-socials { justify-content: flex-start; }
.journey-socials a {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.journey-socials a:hover { background: rgba(255,255,255,0.3); }

/* ========= FAQ BOX ========= */
.faq-box {
    background: var(--white); border-radius: 14px;
    padding: 18px 28px;
    display: flex; justify-content: center; align-items: center; gap: 12px;
    font-size: 14px; color: var(--dark);
    text-align: center;
}
.faq-box strong { font-weight: 600; }
.faq-link { color: var(--blue); text-decoration: underline; }
.faq-emoji { font-size: 22px; }

/* ========= FINAL CTA ========= */
.final-cta { text-align: center; padding: 60px 0; }
.final-cta h2 {
    font-size: 54px; font-weight: 400; line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}
.final-cta h2 em { font-family: 'Instrument Serif', serif; font-size: 1.08em; }
.btn-big {
    font-size: 22px; padding: 18px 36px;
}

/* ====================================================
   OTITEST PRODUCT PAGE
   ==================================================== */
.hightech-oti { min-height: 600px; padding: 60px 80px 40px; }
.hightech-device-white {
    max-width: 360px; width: 80%; height: auto; display: block;
    margin: 10px auto;
    transform: rotate(-15deg);
    filter: drop-shadow(0 25px 60px rgba(0,0,0,0.25));
}

.oti-intro {
    text-align: center;
    max-width: 720px;
}
.oti-intro p {
    font-size: 22px; line-height: 1.45;
    color: var(--dark);
}
.oti-intro-blue {
    color: var(--blue); display: block; margin-bottom: 10px;
}

/* Benefits grid 2x3 — icon top-right illustration style */
.benefits-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--light-blue);
    border-radius: 24px;
    padding: 20px;
}
.benefits-wrap .benefit-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin: 0;
    position: relative;
    min-height: 260px;
    display: flex; flex-direction: column;
}
.benefit-icon-box {
    position: absolute;
    top: 20px; right: 24px;
    width: 72px; height: 72px;
    background: transparent;
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0;
}
.benefit-icon-box svg { width: 64px; height: 64px; }
.benefits-wrap .benefit-title {
    font-size: 22px; font-weight: 400; line-height: 1.15;
    margin-top: 80px; margin-bottom: 14px;
    color: var(--blue);
}
.benefits-wrap .benefit-title.blue { color: var(--blue); }
.benefits-wrap .benefit-text {
    font-size: 13px; color: var(--dark); line-height: 1.5;
    margin-top: auto;
}

/* Interactive interface — white card with flame effect + decorations */
.oti-feature-split {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px; align-items: stretch;
    min-height: 420px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative; overflow: hidden;
}
.oti-feature-text {
    padding: 10px 0;
    display: flex; flex-direction: column; justify-content: space-between;
}
.oti-feature-title {
    font-size: 30px; font-weight: 400; line-height: 1.2;
    color: var(--dark);
}
.oti-feature-title strong { font-weight: 700; }
.oti-feature-list {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: auto;
}
.oti-feature-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: var(--dark);
}

/* Device display with flame + decorations */
.oti-feature-img {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.oti-feature-img img {
    max-width: 280px; width: 80%;
    position: relative; z-index: 2;
    transform: rotate(15deg);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
}
.oti-flame {
    position: absolute;
    top: -20px; right: 20%;
    width: 180px; height: 280px;
    background: linear-gradient(180deg,
        rgba(255,107,53,0) 0%,
        rgba(255,200,87,0.35) 30%,
        rgba(76,175,80,0.3) 60%,
        rgba(255,107,53,0.4) 100%);
    filter: blur(24px);
    transform: rotate(35deg);
    z-index: 1;
}
.oti-deco {
    position: absolute; z-index: 3;
}
.oti-deco-sparkle { top: 18%; right: 14%; }
.oti-deco-cloud { top: 25%; right: 4%; }
.oti-deco-snow { bottom: 18%; left: 20%; opacity: 0.75; }

/* Split cards for thermometer + safe tip */
.oti-split-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.oti-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    min-height: 360px;
    display: flex; flex-direction: column;
}
.oti-card-title {
    font-size: 24px; font-weight: 400; line-height: 1.2;
    color: var(--dark);
    margin-bottom: 18px;
}
.oti-card-title strong { font-weight: 700; }
.oti-card-media {
    margin-top: auto; text-align: center; padding-top: 20px;
    display: flex; align-items: center; justify-content: center;
}
.oti-card-media img { max-width: 70%; border-radius: 10px; }
.oti-tip-body {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex: 1; gap: 18px; margin-top: 10px;
}
.oti-tip-img {
    flex-shrink: 0; width: 140px;
}
.oti-tip-img img {
    width: 100%; transform: rotate(25deg);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}
.oti-card-list {
    display: flex; flex-direction: column; gap: 16px;
    flex: 1; padding-top: 10px;
}
.oti-ck-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    font-size: 14px; color: var(--dark); line-height: 1.3;
}
.oti-ck-item svg { display: block; }
.dim { color: #888; font-size: 13px; }

/* 97% stat card */
.oti-stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.oti-stat-left { flex: 1; }
.oti-stat-num {
    font-size: 76px; font-weight: 400; line-height: 1;
    color: var(--dark); letter-spacing: -0.03em;
    display: block; margin-bottom: 8px;
}
.oti-stat-desc {
    font-size: 14px; color: #555; margin: 0;
}
.oti-stat-icon svg { display: block; }

/* iOS and Android app section */
.oti-app-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px; align-items: end;
    background: transparent;
}
.oti-app-text { padding: 20px 0; }
.oti-app-title {
    font-size: 30px; font-weight: 400; line-height: 1.25;
    color: var(--dark); margin-bottom: 28px;
}
.oti-app-title strong { font-weight: 700; }
.oti-app-stores {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.oti-store-badge {
    display: inline-block; height: 44px;
    border-radius: 8px; overflow: hidden;
}
.oti-store-badge svg {
    height: 44px; width: auto; display: block;
    background: #fff; border: 1px solid #000; border-radius: 8px;
    padding: 2px 10px;
}
.oti-store-ico {
    width: 44px; height: 44px; background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
.oti-store-ico img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.oti-app-phone img {
    max-width: 100%; height: auto; display: block;
    margin-left: auto;
}

/* Section 12 — Our app is your personal */
.oti-app-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
.oti-app-lead {
    font-size: 22px; line-height: 1.4; color: var(--dark);
    margin-bottom: 28px;
}
.oti-app-lead strong { font-weight: 700; }
.oti-feature-row {
    display: flex; flex-direction: column; gap: 18px;
}
.oti-feat-line {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: var(--dark); line-height: 1.35;
}
.oti-feat-ico {
    font-size: 24px; color: var(--blue);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.oti-app-phone2 { text-align: center; }
.oti-app-phone2 img { max-width: 320px; margin: 0 auto; }

/* ========= ANIMATIONS ========= */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========= RESPONSIVE — TABLET (≤1024px) ========= */
@media (max-width: 1024px) {
    .page-container, .nav-container { padding: 0 32px; }
    .section { padding: 56px 0; }
    .section-lg { padding: 72px 0; }

    /* Typography scale-down */
    .hero-title { font-size: 56px; }
    .hero-icon { width: 50px; height: 44px; }
    .heading-lg, .heading-lg-display { font-size: 48px; }
    .heading-md { font-size: 38px; }

    /* Sections that need to stack early */
    .oti-feature-split, .oti-split-cards, .oti-app-split, .oti-app-features {
        grid-template-columns: 1fr;
    }
    .benefits-wrap { padding: 20px; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========= RESPONSIVE — MOBILE (≤768px) ========= */
@media (max-width: 768px) {
    /* Navbar */
    .page-container, .nav-container { padding: 0 20px; }
    .navbar { padding: 14px 0 12px; }
    .nav-logo-img { height: 36px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; align-items: center; justify-content: center; }

    /* Section spacing */
    .section { padding: 40px 0; }
    .section-sm { padding: 14px 0; }
    .section-lg { padding: 56px 0; }

    /* Typography */
    .hero-title { font-size: 36px; line-height: 1.1; margin-bottom: 20px; }
    .hero-sub { font-size: 15px; }
    .hero-icon { width: 36px; height: 32px; margin: 0 3px; }
    .heading-lg, .heading-lg-display { font-size: 32px; }
    .heading-md { font-size: 28px; }
    .heading-sm { font-size: 22px; }
    .body-text { font-size: 15px; }
    .body-text-lg { font-size: 17px; }

    /* Grids → single column */
    .grid-2, .collage, .split-card { grid-template-columns: 1fr; gap: 16px; }
    .benefits-wrap { grid-template-columns: 1fr; padding: 16px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-clean-nav { gap: 14px 18px; }

    /* Stats */
    .stat-num { font-size: 36px; }
    .stat-big, .oti-stat-num { font-size: 52px; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-item + .stat-item {
        border-left: none;
        border-top: 1px solid rgba(0,97,254,0.15);
        padding-left: 0; padding-top: 12px; margin-top: 12px;
    }
    .stats-card { position: relative; left: 0; right: 0; bottom: 0; margin-top: 16px; }

    /* Imagery & cards */
    .collage-main .collage-img, .collage-img { min-height: 220px; }
    .blog-labels { flex-direction: column; gap: 4px; }
    .article-headline { font-size: 24px; }
    .article-card { padding: 20px; }
    .article-card-cover { height: 160px; }

    /* Hightech / dark cards */
    .hightech-title, .hightech-subtitle { font-size: 28px; }
    .hightech-card-coded { padding: 28px 22px; min-height: auto; }
    .hightech-device { max-width: 160px; }
    .hightech-card-text { font-size: 22px; top: 24px; left: 24px; right: 24px; }

    /* Ears care */
    .ears-care-title { font-size: 30px; padding: 22px; }
    .ears-care-benefits {
        grid-template-columns: 1fr; padding: 16px; gap: 12px;
        position: relative; left: 0; right: 0; bottom: 0; margin-top: 16px;
        border-radius: 0 0 20px 20px;
    }
    .ears-care-coded { min-height: auto; display: flex; flex-direction: column; }
    .ears-care-bg { position: relative; height: 320px; }

    /* Testimonials */
    .testimonial, .testimonial.testimonial-reverse {
        grid-template-columns: 1fr; text-align: left;
    }
    .testimonial-photo { height: 220px; }

    /* CTAs */
    .cta-dark { padding: 32px 22px; }
    .cta-dark h2 { font-size: 26px; }
    .journey-card, .cta-dark { border-radius: 24px; }
    .final-cta h2 { font-size: 28px; }
    .split-card-body { padding: 22px; }

    /* Otitest page */
    .oti-feature-split { padding: 22px; }
    .oti-stat-card { flex-direction: column; text-align: center; padding: 22px; }
    .oti-intro p { font-size: 17px; }
    .oti-feature-title { font-size: 24px; }
    .oti-app-title { font-size: 22px; }
    .oti-app-lead { font-size: 17px; }

    /* About page */
    .how-it-works-grid { grid-template-columns: 1fr; }
    .together-heading { font-size: 26px; }
    .more-about-sub { font-size: 17px; }
    .success-quote p { font-size: 16px; }

    /* Forms */
    .join-form { padding: 0 4px; }
    .form-row { gap: 10px; }

    /* Generic image radii */
    .rounded-lg { border-radius: 16px; }

    /* Buttons stay tappable */
    .btn-blue, .btn-outline {
        min-height: 44px;
        padding: 12px 22px;
        font-size: 14px;
    }
}

/* ========= RESPONSIVE — SMALL PHONE (≤420px) ========= */
@media (max-width: 420px) {
    .page-container, .nav-container { padding: 0 18px; }
    .section { padding: 32px 0; }

    .hero-title { font-size: 30px; }
    .hero-icon { width: 30px; height: 26px; }
    .heading-lg, .heading-lg-display { font-size: 28px; }
    .heading-md { font-size: 24px; }

    .team-grid { grid-template-columns: 1fr; }
    .footer-clean-nav { gap: 12px 16px; }
    .footer-clean-nav a { font-size: 12px; }

    .stat-big, .oti-stat-num { font-size: 44px; }

    /* Mobile menu typography */
    .mobile-link-text { font-size: 30px; }
    .mobile-menu-inner { padding: 90px 22px 32px; }
}
