/* ==========================================================================
   CFdating homepage (one responsive page)
   Tokens: Ink #0F2A24 · Body #3F5A53 · Muted #5E7670 · Deep green #13705A
           Green #1E9E80 · Light green #35BF9C · Mint #8FE3C7
           Page bg #F6FBF9 · Tint #E1F2EC · Card #FFFFFF · Rule #C5DDD4
   Breakpoints: 980px (header collapses to menu button)
                640px (mobile layout: stacked buttons, swipe tour,
                       accordion footer, sticky app bar)
   ========================================================================== */

.home *, .home *::before, .home *::after { box-sizing: border-box; }

body.home {
    margin: 0;
    background: #F6FBF9;
    font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
    color: #0F2A24;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.home a { color: #1E9E80; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.home a:hover { color: #0F2A24; }
.home img { max-width: 100%; }
.home h1, .home h2, .home h3, .home p, .home figure, .home blockquote { margin: 0; }
.home :focus-visible { outline: 3px solid #1E9E80; outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.kicker { font: 700 14px/1 'Space Grotesk', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #13705A; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section-head h2 { font: 700 clamp(30px, 4vw, 48px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -0.03em; text-wrap: balance; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Store buttons ---------- */
.store-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn { height: 58px; padding: 0 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 12px; }
.store-btn svg { flex: none; }
.store-btn-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.store-btn-text small { font: 500 11px/1 'Space Grotesk', sans-serif; opacity: .8; }
.store-btn-text strong { font: 700 19px/1 'Space Grotesk', sans-serif; }
.home a.store-btn--dark { background: #0F2A24; color: #FFFFFF; }
.home a.store-btn--dark:hover { background: #1E9E80; color: #FFFFFF; }
.store-btn--dark svg { fill: #8FE3C7; }
.home a.store-btn--light { background: #FFFFFF; color: #0F2A24; }
.home a.store-btn--light:hover { background: #8FE3C7; color: #0F2A24; }
.store-btn--light svg { fill: #0F2A24; }
.store-btn--sm { height: 48px; padding: 0 16px; border-radius: 10px; gap: 10px; }
.store-btn--sm .store-btn-text small { font-size: 10px; }
.store-btn--sm .store-btn-text strong { font-size: 16px; }

/* ---------- Phone crops (images are pre-cropped to the device) ---------- */
.phone { position: relative; overflow: hidden; aspect-ratio: 560 / 1200; border-radius: 9.78% / 4.56%; background: #0A0A0A; flex: none; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Above the fold ---------- */
.atf { background: #E1F2EC; position: relative; overflow: hidden; }
.atf-ring { position: absolute; width: 640px; height: 640px; border-radius: 50%; top: 330px; left: 50%; pointer-events: none; }
.atf-ring--1 { margin-left: -560px; border: 60px solid rgba(53, 191, 156, .22); }
.atf-ring--2 { margin-left: -80px; border: 60px solid rgba(30, 158, 128, .16); }

/* Header */
.site-header { position: relative; z-index: 10; }
.site-header-inner { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-item { position: relative; }
.nav-trigger { font: 500 15px/1 'Space Grotesk', sans-serif; color: #0F2A24; background: none; border: 0; padding: 14px 4px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-trigger:hover, .nav-item:focus-within .nav-trigger, .nav-trigger[aria-expanded="true"] { color: #13705A; }
.nav-trigger svg { transition: transform .15s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: -14px; z-index: 20; width: 280px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel { background: #FFFFFF; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 42, 36, .16); padding: 8px; display: flex; flex-direction: column; }
.home .dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #0F2A24; font: 500 15px/1.2 'Space Grotesk', sans-serif; }
.home .dropdown a:hover { background: #E1F2EC; color: #0F2A24; }
.dd-icon { width: 32px; height: 32px; border-radius: 9px; background: #E1F2EC; display: flex; align-items: center; justify-content: center; flex: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.home a.link-login { color: #0F2A24; padding: 13px 10px; font: 500 15px/1 'Space Grotesk', sans-serif; }
.home a.link-login:hover { color: #13705A; }
.home a.btn-ghost { color: #0F2A24; padding: 13px 16px; border-radius: 999px; font: 500 15px/1 'Space Grotesk', sans-serif; }
.home a.btn-ghost:hover { background: #FFFFFF; color: #0F2A24; }
.home a.btn-pill { background: #0F2A24; color: #FFFFFF; padding: 13px 20px; border-radius: 999px; font: 700 15px/1 'Space Grotesk', sans-serif; white-space: nowrap; }
.home a.btn-pill:hover { background: #1E9E80; color: #FFFFFF; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }

/* Mobile menu sheet (shown ≤980px when opened) */
.menu-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 42, 36, .4); }
.menu-sheet[hidden] { display: none; }
.menu-panel { background: #FFFFFF; border-radius: 0 0 28px 28px; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 24px 60px rgba(15, 42, 36, .25); max-height: 100vh; overflow-y: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.menu-close { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #E1F2EC; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-label { font: 700 12px/1 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #13705A; padding: 14px 0 4px; }
.menu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home .menu-tiles a { background: #E1F2EC; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: #0F2A24; }
.menu-tiles strong { font: 700 16px/1.1 'Space Grotesk', sans-serif; }
.menu-tiles span { font: 400 13px/1.2 'Space Grotesk', sans-serif; color: #3F5A53; }
.home .menu-link { font: 500 17px/1 'Space Grotesk', sans-serif; padding: 14px 0; color: #0F2A24; }
.menu-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid #E1F2EC; }
.home .menu-auth a { height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 700 15px/1 'Space Grotesk', sans-serif; }
.home .menu-auth .btn-outline { border: 1.5px solid #0F2A24; color: #0F2A24; }
.home .menu-auth .btn-solid { background: #0F2A24; color: #FFFFFF; }

/* Hero */
.hero { position: relative; padding-top: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero h1 { font: 700 clamp(44px, 6.6vw, 88px)/0.98 'Space Grotesk', sans-serif; letter-spacing: -0.045em; max-width: 900px; text-wrap: balance; }
.hero-intro { font: 400 19px/1.55 'Space Grotesk', sans-serif; color: #3F5A53; max-width: 700px; text-wrap: pretty; }
.hero .store-btns { justify-content: center; }
.home a.hero-web-link { font: 500 15px/1.3 'Space Grotesk', sans-serif; color: #13705A; }
.hero-phones { margin-top: 36px; width: 100%; max-width: 900px; height: 520px; display: flex; justify-content: center; align-items: flex-start; }
.phone--center { width: 290px; box-shadow: 0 40px 80px rgba(15, 42, 36, .28); z-index: 2; }
.phone--side { width: 240px; margin-top: 90px; box-shadow: 0 30px 60px rgba(15, 42, 36, .22); z-index: 1; }
.phone--left { margin-right: -30px; transform: rotate(-6deg); }
.phone--right { margin-left: -30px; transform: rotate(6deg); }

/* ---------- Stats ---------- */
.stats { background: #0F2A24; color: #FFFFFF; }
.stats-inner { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font: 700 40px/1 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
.stat-label { font: 400 15px/1.4 'Space Grotesk', sans-serif; color: #B9D3CB; }

/* ---------- Why CFdating ---------- */
.why { padding-top: 104px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.why-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.home a.text-link { font: 700 15px/1 'Space Grotesk', sans-serif; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: #FFFFFF; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-num { font: 700 14px/1 'Space Grotesk', sans-serif; color: #13705A; }
.feature h3 { font: 700 22px/1.2 'Space Grotesk', sans-serif; }
.feature p { font: 400 16px/1.55 'Space Grotesk', sans-serif; color: #3F5A53; }

/* ---------- Inside the app ---------- */
.tour { background: #E1F2EC; }
.tour-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.tour-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tour-card { display: flex; flex-direction: column; gap: 14px; }
.tour-card img { width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 16px 36px rgba(15, 42, 36, .12); }
.tour-card figcaption { font: 500 15px/1.4 'Space Grotesk', sans-serif; color: #3F5A53; }
.tour-card figcaption strong { color: #0F2A24; }
.tour-dots { display: none; }

/* ---------- Testimonials + press ---------- */
.proof { padding-top: 104px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote { background: #FFFFFF; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.quote img { width: 56px; height: auto; display: block; }
.quote blockquote p { font: 500 24px/1.4 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
.quote figcaption { font: 400 15px/1 'Space Grotesk', sans-serif; color: #5E7670; }
.press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px; }
.press-label { font: 700 13px/1 'Space Grotesk', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #5E7670; }
.press-list { display: contents; }
.home .press a { font: 700 22px/1 'Space Grotesk', sans-serif; color: #3F5A53; }
.home .press a:hover { color: #0F2A24; }

/* ---------- CTA band ---------- */
.cta { padding: 0 32px 72px; }
.cta-inner { max-width: 1200px; margin: 0 auto; background: #0F2A24; border-radius: 36px; padding: 72px 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; position: relative; overflow: hidden; }
.cta-ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; }
.cta-ring--1 { top: -180px; left: -120px; border: 48px solid rgba(53, 191, 156, .14); }
.cta-ring--2 { bottom: -200px; right: -100px; border: 48px solid rgba(53, 191, 156, .10); }
.cta h2 { position: relative; font: 700 clamp(30px, 4.4vw, 52px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -0.03em; color: #FFFFFF; max-width: 720px; text-wrap: balance; }
.cta p { position: relative; font: 400 18px/1.5 'Space Grotesk', sans-serif; color: #B9D3CB; max-width: 520px; }
.cta .store-btns { position: relative; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #E1F2EC; position: relative; overflow: hidden; }
.footer-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -260px; pointer-events: none; }
.footer-ring--1 { right: -120px; border: 52px solid rgba(53, 191, 156, .18); }
.footer-ring--2 { right: -420px; border: 52px solid rgba(30, 158, 128, .12); }
.footer-inner { position: relative; padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand img.footer-logo { height: 34px; width: auto; align-self: flex-start; }
.footer-brand p { font: 400 16px/1.55 'Space Grotesk', sans-serif; color: #3F5A53; }
.store-btns--footer { gap: 10px; }
.footer-nav { flex: 2 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fcol-heading { margin: 0; font: inherit; }
.fcol-toggle { all: unset; display: block; font: 700 13px/1 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #13705A; cursor: default; }
.fcol-toggle svg { display: none; }
.fcol-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font: 400 15px/1.4 'Space Grotesk', sans-serif; }
.home .site-footer a { color: #3F5A53; }
.home .site-footer a:hover { color: #0F2A24; }
.home .site-footer a.store-btn--dark, .home .site-footer a.store-btn--dark:hover { color: #FFFFFF; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid #C5DDD4; font: 400 14px/1.4 'Space Grotesk', sans-serif; color: #3F5A53; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.home .social a { width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: #0F2A24; }
.home .social a:hover { background: #0F2A24; color: #FFFFFF; }

/* Sticky app bar (mobile only) */
.app-bar { display: none; }
body.menu-open .app-bar { display: none !important; }

/* ==========================================================================
   ≤ 980px: collapse header nav into the menu button
   ========================================================================== */
@media (max-width: 980px) {
    .main-nav, .link-login, .btn-ghost { display: none !important; }
    .menu-btn { display: flex; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   ≤ 640px: mobile layout
   ========================================================================== */
@media (max-width: 640px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .site-header-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .logo img { height: 26px; }
    .home a.btn-pill { height: 44px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; }
    .header-actions { gap: 8px; }

    .atf-ring { width: 340px; height: 340px; top: auto; bottom: -120px; }
    .atf-ring--1 { margin-left: -260px; border-width: 34px; }
    .atf-ring--2 { margin-left: -70px; border-width: 34px; }

    .hero { padding-top: 32px; gap: 18px; }
    .kicker { font-size: 12px; }
    .hero h1 { font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
    .hero-intro { font-size: 16px; }
    .hero .store-btns { width: 100%; flex-direction: column; gap: 10px; margin-top: 4px; }
    .store-btn { width: 100%; justify-content: center; height: 56px; }
    .store-btn-text { flex-direction: row; align-items: baseline; gap: 6px; }
    .store-btn-text small { font-size: 17px; font-weight: 700; opacity: 1; }
    .store-btn-text strong { font-size: 17px; }
    .home a.hero-web-link { font-size: 14px; padding: 8px 0; }
    .hero-phones { margin-top: 8px; height: 380px; }
    .phone--center { width: 190px; }
    .phone--side { width: 150px; margin-top: 60px; }
    .phone--left { margin-right: -26px; }
    .phone--right { margin-left: -26px; }

    .stats-inner { padding-top: 32px; padding-bottom: 32px; gap: 24px 16px; }
    .stat-value { font-size: 30px; }
    .stat-label { font-size: 14px; }

    .why { padding-top: 64px; padding-bottom: 56px; gap: 28px; }
    .section-head { gap: 12px; }
    .section-head h2 { font-size: 30px; }
    .why-head { order: 0; }
    .why .text-link { order: 2; padding: 12px 0; }
    .feature-grid { grid-template-columns: 1fr; gap: 12px; order: 1; }
    .feature { border-radius: 20px; padding: 22px; gap: 10px; }
    .feature h3 { font-size: 20px; }
    .feature p { font-size: 15px; }

    .tour-inner { padding: 56px 0; gap: 24px; }
    .tour .section-head { padding: 0 16px; }
    .tour-track { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
    .tour-track::-webkit-scrollbar { display: none; }
    .tour-card { flex: none; width: 230px; scroll-snap-align: start; gap: 12px; }
    .tour-card img { border-radius: 18px; }
    .tour-card figcaption { font-size: 14px; }
    .tour-dots { display: flex; justify-content: center; gap: 6px; }
    .tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: #9FC4B8; transition: width .2s ease, background-color .2s ease; }
    .tour-dots span.is-active { width: 18px; background: #0F2A24; }

    .proof { padding-top: 64px; padding-bottom: 40px; gap: 36px; }
    .quote-grid { grid-template-columns: 1fr; gap: 14px; }
    .quote { border-radius: 22px; padding: 26px; gap: 16px; }
    .quote img { width: 44px; }
    .quote blockquote p { font-size: 19px; line-height: 1.45; }
    .press { flex-direction: column; gap: 16px; }
    .press-list { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; text-align: center; }
    .home .press a { font-size: 17px; }

    .cta { padding: 16px 16px 48px; }
    .cta-inner { border-radius: 28px; padding: 48px 20px; gap: 20px; }
    .cta-ring { width: 260px; height: 260px; border-width: 34px; }
    .cta h2 { font-size: 32px; }
    .cta p { font-size: 16px; }
    .cta .store-btns { width: 100%; flex-direction: column; gap: 10px; }

    .footer-inner { padding-top: 48px; padding-bottom: 104px; gap: 28px; }
    .footer-top { flex-direction: column; gap: 28px; }
    .footer-brand { max-width: none; gap: 14px; }
    .footer-brand img.footer-logo { height: 30px; }
    .footer-brand p { font-size: 15px; }
    .store-btns--footer { display: none; }
    .footer-nav { display: flex; flex-direction: column; gap: 0; }
    .fcol { border-top: 1px solid #C5DDD4; }
    .fcol:last-child { border-bottom: 1px solid #C5DDD4; }
    .fcol-toggle { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
    .fcol-toggle svg { display: block; transition: transform .15s ease; }
    .fcol-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .fcol-links { margin: 0; gap: 0; padding-bottom: 12px; }
    .fcol-links a { display: block; padding: 10px 0; }
    .fcol[data-open="false"] .fcol-links { display: none; }
    .footer-bottom { flex-direction: column-reverse; align-items: flex-start; border-top: 0; padding-top: 0; }
    .footer-legal { flex-direction: column-reverse; gap: 10px; font-size: 13px; }

    .app-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
    .app-bar-inner { background: #0F2A24; border-radius: 18px; padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(15, 42, 36, .3); }
    .app-bar-inner img { width: 34px; height: auto; flex: none; }
    .app-bar-text { flex: 1; display: flex; flex-direction: column; gap: 3px; color: #FFFFFF; }
    .app-bar-text strong { font: 700 14px/1.1 'Space Grotesk', sans-serif; }
    .app-bar-text span { font: 400 12px/1.2 'Space Grotesk', sans-serif; color: #B9D3CB; }
    .home a.app-bar-btn { background: #8FE3C7; color: #0F2A24; height: 44px; padding: 0 16px; border-radius: 12px; display: flex; align-items: center; font: 700 14px/1 'Space Grotesk', sans-serif; }
}

@media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { transition: none !important; scroll-behavior: auto !important; }
}
