/* Public landing page. Scoped to keep the signed-in app and auth screens independent. */
html:has(.marketing-body) { background: #fbfcfd; scroll-behavior: smooth; scroll-padding-top: 0; }
.marketing-body, .public-explore-body, .public-profile-navigation { --marketing-ink: #082d43; --marketing-muted: #536b79; --marketing-blue: #086bec; --marketing-teal: #009ea8; }
.marketing-body { background: #fbfcfd; color: var(--marketing-ink); color-scheme: light; -webkit-font-smoothing: antialiased; }
.marketing-body::before { display: none; }
.marketing-body .page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.marketing-body .pwa-notices:has(.pwa-notice:not([hidden])) { position: fixed; z-index: 100; inset: 100px 16px auto; }
.marketing-page { --gutter: clamp(24px, 5.55vw, 88px); }
.public-profile-navigation { position: sticky; top: 0; z-index: 50; color: var(--marketing-ink); color-scheme: light; }
.marketing-page h1, .marketing-page h2, .marketing-page h3 { color: var(--marketing-ink); }
.marketing-page a, .marketing-page button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.marketing-page a:focus-visible, .marketing-page button:focus-visible { outline: 3px solid #009ea8; outline-offset: 6px; }
.marketing-header { position: sticky; top: 0; z-index: 50; background: #fbfcfdf5; backdrop-filter: blur(18px); border-bottom: 1px solid #092d430c; }
.marketing-nav-inner { max-width: 1600px; min-height: 88px; margin: auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 40px; }
.marketing-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; font-size: 29px; font-weight: 700; letter-spacing: -1.3px; }
.marketing-brand img { width: 40px; height: 40px; border-radius: 11px; }
.marketing-navigation { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 2.4vw, 40px); margin: 0 auto; }
.marketing-navigation a, .marketing-login { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 14px; font-weight: 650; white-space: nowrap; }
.marketing-navigation a, .marketing-login, .marketing-hero-link { transition: color 180ms; }
.marketing-navigation a:hover, .marketing-navigation a[aria-current], .marketing-login:hover { color: var(--marketing-blue); }
.marketing-account { display: flex; align-items: center; gap: 26px; }
.marketing-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 13px 22px; gap: 26px; border: 1px solid transparent; border-radius: 12px; background: var(--marketing-blue); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 180ms, transform 180ms, box-shadow 180ms; }
.marketing-button:hover { background: #005bd0; box-shadow: 0 6px 20px #0064de25; transform: translateY(-2px); }
.marketing-button:active { transform: translateY(0) scale(.98); box-shadow: none; }
.marketing-arrow { display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.marketing-menu-toggle { display: none; }
.marketing-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 690px; min-height: min(820px, calc(100svh - 88px)); padding: 76px var(--gutter) 114px; background: #064c64 url('../img/landing/coral-hero.jpg') center / cover; color: #fff; scroll-margin-top: 88px; }
.marketing-hero::before { position: absolute; content: ''; inset: 0; z-index: -1; background: linear-gradient(90deg, #002a3ce0 0%, #002d3f98 37%, #003c4620 72%, #003b4410), linear-gradient(0deg, #002a3a4d, transparent 35%); }
.marketing-hero-inner { width: 100%; max-width: 1424px; margin: auto; }
.marketing-eyebrow { margin: 0 0 25px; color: #a6e7e8; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: 2.5px; text-transform: uppercase; }
.marketing-hero h1 { margin: 0 0 25px; color: #fff; font-size: clamp(88px, 9.3vw, 144px); line-height: .95; font-weight: 700; letter-spacing: -.065em; }
.marketing-intro { max-width: 570px; margin: 0; color: #e4f0f2; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; font-weight: 450; }
.marketing-intro > span { display: block; max-width: 550px; margin-bottom: 16px; color: white; font-size: clamp(25px, 2.3vw, 32px); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.marketing-hero .welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin: 30px 0 0; }
.marketing-hero-cta { min-height: 56px; padding: 16px 25px; font-size: 15px; background: #fff; color: #083a50; }
.marketing-hero-cta:hover { background: #def7f6; }
.marketing-hero-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 14px; font-size: 14px; font-weight: 600; }
.marketing-hero-link:hover { color: #a6e7e8; }
.marketing-product { overflow: clip; padding: 40px var(--gutter) 90px; scroll-margin-top: 88px; }
.product-section { --section-accent: #009da6; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(45px, 7vw, 105px); max-width: 1180px; min-height: 800px; margin: 0 auto; padding: 70px 0; }
.product-section + .product-section { border-top: 1px solid #dce7eb; }
.product-copy, .product-visual { transition: opacity 600ms ease, translate 600ms cubic-bezier(.2, .7, .2, 1); }
.product-section[data-reveal-pending] .product-copy, .product-section[data-reveal-pending] .product-visual { opacity: 0; translate: 0 18px; }
.product-visual { transition-delay: 80ms; }
.product-copy { position: relative; z-index: 2; }
.product-eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; color: #667e8b; font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: 1.7px; text-transform: uppercase; }
.product-eyebrow > span { color: var(--section-accent); font-size: 12px; letter-spacing: 1px; }
.product-copy h2 { margin: 0 0 36px; font-size: clamp(66px, 7.4vw, 104px); font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.product-copy h2 > span { color: var(--section-accent); }
.product-list { display: grid; gap: 21px; margin: 0; padding: 0; list-style: none; }
.product-list > li { display: grid; grid-template-columns: 23px 1fr; align-items: start; gap: 14px; color: #405d6e; font-size: 18px; font-weight: 500; line-height: 1.65; }
.product-list > li::before { content: ''; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%; background-color: #e3f3f3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 10 2.5 2.5L14 7' stroke='%23008f9b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-list { gap: 18px; }
.product-stat { margin-right: 3px; color: var(--marketing-ink); font-size: 27px; line-height: 1; font-weight: 700; letter-spacing: -.7px; }
.plan-list > li:nth-child(-n+3)::before { margin-top: 7px; }
.product-visual { position: relative; isolation: isolate; min-width: 0; height: 660px; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; }
.product-visual::before { content: ''; position: absolute; inset: 45px -10px 65px; z-index: -2; border-radius: 47% 45% 42% 43%; background: #e8f3f5; transform: rotate(-6deg); }
.visual-orbit { position: absolute; inset: 90px -28px 95px; z-index: -1; border: 1px solid #a9ced266; border-radius: 50%; transform: rotate(-30deg); }
.visual-orbit::before { content: ''; position: absolute; inset: 27px -18px; border: 1px solid #a9ced24d; border-radius: 50%; }
.product-phone { position: relative; width: 278px; flex: 0 0 auto; padding: 7px; background: #15232c; border: 1px solid #71808a; border-radius: 40px; box-shadow: inset 0 0 0 2px #36454e, 0 25px 44px -14px #062d4340, 0 5px 12px #062d4320; transform: rotate(5deg); }
.product-phone::before { position: absolute; content: ''; top: 112px; left: -3px; width: 3px; height: 43px; border-radius: 2px 0 0 2px; background: #56656e; box-shadow: 0 52px #56656e; }
.product-phone::after { position: absolute; content: ''; top: 155px; right: -3px; width: 3px; height: 64px; border-radius: 0 2px 2px 0; background: #56656e; }
.phone-screen { position: relative; overflow: hidden; border-radius: 32px; background: #f1f7fa; aspect-ratio: var(--screen-aspect); }
.phone-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-island { position: absolute; top: 1.5%; left: 38%; width: 24%; height: 2.7%; border-radius: 20px; background: #10171d; }
/* Presentation overlays preserve the supplied screen while anonymizing its avatar. */
.phone-avatar { position: absolute; top: var(--avatar-top, 7.3%); left: 87%; width: 9.45%; aspect-ratio: 1; border: 1px solid #fff; border-radius: 50%; background: #19516a; display: grid; place-items: center; }
.phone-dive { --avatar-top: 7.5%; }
/* Extend the supplied depth card over the adjacent photo peek without changing its trace. */
.phone-depth-profile { position: absolute; left: 7.6%; top: 25.39%; width: 84.96%; height: 29.22%; background: url('../img/landing/connect.jpg') 29.68% 35.87% / 134.45% 342.25% no-repeat; }
.phone-avatar svg { width: 72%; height: 72%; stroke: #c7e4f0; stroke-width: 1.6; }
.phone-battery { position: absolute; left: 85.8%; top: 2.18%; width: 8%; height: 1.85%; background: #f1f7fa; }
.phone-battery::before { position: absolute; content: ''; inset: 8% 11% 8% 3%; border: 1px solid #151c21; border-radius: 2px; background: #151c21; box-shadow: inset 0 0 0 1px #f1f7fa; }
.phone-battery::after { position: absolute; content: ''; right: 2%; top: 32%; width: 7%; height: 36%; border-radius: 0 1px 1px 0; background: #151c21; }
.phone-home { position: absolute; bottom: .65%; left: 34%; width: 32%; height: .6%; border-radius: 20px; background: #0e293a; }
.phone-air .phone-home { left: 31.9%; width: 36.2%; bottom: .85%; height: .75%; }
.product-reversed .product-copy { grid-column: 2; grid-row: 1; }
.product-reversed .product-visual { grid-column: 1; grid-row: 1; }
.product-log { --section-accent: #086bec; }
.paired-visual { height: 690px; }
.log-visual::before { inset: 80px -30px 70px; background: #eaf1ff; border-radius: 42% 48% 44% 43%; transform: rotate(6deg); }
.paired-visual .product-phone { width: 248px; }
.paired-visual .phone-secondary { position: absolute; top: 30px; left: -6px; transform: rotate(-9deg); }
.paired-visual .phone-primary { position: absolute; right: -6px; top: 105px; transform: rotate(7deg); }
.product-track { --section-accent: #009ba5; }
.track-visual::before { background: #e4f3ef; transform: rotate(9deg); }
.track-visual .product-phone { transform: rotate(-5deg); }
.product-connect { --section-accent: #1175cd; }
.product-connect h2 { font-size: clamp(65px, 6.8vw, 96px); }
.connect-visual::before { background: #e9f1fa; border-radius: 44% 45% 43% 48%; }
.connect-visual .product-phone { transform: rotate(5deg); }
.marketing-support { padding: 70px var(--gutter) 0; background: #062d43; color: #fff; scroll-margin-top: 88px; }
.marketing-support-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1180px; margin: 0 auto 68px; gap: 70px; }
.marketing-support .product-eyebrow { color: #90bfcb; margin-bottom: 18px; }
.marketing-support h2 { color: #fff; font-size: clamp(36px, 4vw, 54px); line-height: 1.15; letter-spacing: -2px; font-weight: 650; }
.marketing-support h2 span { color: #4ec7cc; }
.support-contact p { color: #afc4ce; font-size: 15px; margin: 0 0 14px; }
.support-contact > a { display: inline-flex; align-items: center; gap: 20px; max-width: 100%; color: #fff; font-size: clamp(16px, 1.85vw, 25px); font-weight: 600; letter-spacing: -.4px; padding-bottom: 9px; border-bottom: 1px solid #ffffff55; }
.support-contact > a:hover { color: #84dce1; }
.marketing-footer { max-width: 1424px; margin: auto; padding: 24px 0; border-top: 1px solid #ffffff20; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.marketing-footer .marketing-brand { font-size: 20px; letter-spacing: -.8px; }
.marketing-footer .marketing-brand img { width: 28px; height: 28px; border-radius: 8px; }
.marketing-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; color: #9bb5c2; font-size: 10px; }
.marketing-footer > div > a { padding-block: 14px; }
.marketing-footer > div > a:hover { color: #fff; }
@media (min-width: 1600px) { .marketing-hero-inner { padding-left: calc((100vw - 1600px) / 2); } }
@media (max-width: 1100px) {
    .marketing-nav-inner { gap: 24px; }
    .marketing-navigation { gap: 20px; }
    .marketing-brand { font-size: 25px; }
    .marketing-account { gap: 20px; }
    .marketing-signup { gap: 16px; padding-inline: 18px; }
    .product-section { gap: 50px; }
    .product-phone { width: 253px; }
    .product-visual { height: 610px; }
    .paired-visual { height: 650px; }
    .paired-visual .product-phone { width: 226px; }
    .paired-visual .phone-secondary { left: -6px; }
    .paired-visual .phone-primary { right: -6px; }
    .product-list > li { font-size: 17px; }
}
@media (max-width: 900px) {
    .marketing-hero, .marketing-product, .marketing-support { scroll-margin-top: 81px; }
    .marketing-nav-inner { min-height: 76px; gap: 20px; }
    .marketing-brand { margin-right: auto; }
    .marketing-brand img { width: 34px; height: 34px; }
    .marketing-menu-toggle:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; width: 42px; height: 44px; padding: 9px; border: 1px solid #dae5eb; border-radius: 7px; background: transparent; }
    .marketing-menu-toggle > span { height: 2px; width: 20px; background: #082d43; transition: transform 180ms; }
    .marketing-menu-toggle[aria-expanded='true'] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .marketing-menu-toggle[aria-expanded='true'] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .marketing-navigation { order: 4; flex-wrap: wrap; flex-basis: 100%; margin: 0; padding: 6px 0 12px; justify-content: flex-start; gap: 28px; }
    .marketing-nav-inner { flex-wrap: wrap; gap: 12px 22px; }
    .marketing-page[data-navigation-ready] .marketing-navigation { display: none; }
    .marketing-page[data-navigation-ready] .marketing-navigation { position: absolute; top: calc(100% + 8px); right: var(--gutter); width: min(288px, calc(100vw - 2 * var(--gutter))); flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border: 1px solid #dbe7ed; border-radius: 12px; background: #fbfcfd; box-shadow: 0 16px 40px #062d4326, 0 3px 8px #062d430d; }
    .marketing-page[data-navigation-ready] .marketing-navigation a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; border-radius: 8px; color: #082d43; font-size: 14px; font-weight: 600; }
    .marketing-page[data-navigation-ready] .marketing-navigation a:hover, .marketing-page[data-navigation-ready] .marketing-navigation a[aria-current] { color: #086bec; background: #edf4fc; }
    .marketing-page[data-menu-open] .marketing-navigation { display: flex; }
    .marketing-hero { min-height: 710px; padding-block: 85px 120px; scroll-margin-top: 76px; }
    .marketing-intro { max-width: 510px; }
    .product-section { min-height: 730px; gap: 40px; }
    .product-copy h2 { font-size: 76px; }
    .product-connect h2 { font-size: 66px; }
    .product-visual { height: 580px; }
    .product-phone { width: 234px; }
    .product-list > li { font-size: 16px; gap: 10px; }
    .product-stat { font-size: 23px; }
    .paired-visual .product-phone { width: 200px; }
    .paired-visual .phone-secondary { top: 28px; left: -10px; }
    .paired-visual .phone-primary { top: 112px; right: -8px; }
    .marketing-support-inner { gap: 40px; }
    .support-contact > a { gap: 12px; }
}
@media (max-width: 700px) {
    .marketing-hero, .marketing-product, .marketing-support { scroll-margin-top: 76px; }
    .marketing-page { --gutter: 24px; }
    .marketing-nav-inner { gap: 12px; }
    .marketing-brand { font-size: 24px; gap: 7px; }
    .marketing-account { gap: 16px; }
    .marketing-login { font-size: 12px; }
    .marketing-signup { min-height: 44px; padding: 10px 15px; font-size: 12px; }
    .marketing-signup .marketing-arrow { display: none; }
    .marketing-navigation { justify-content: space-between; gap: 12px; }
    .marketing-navigation a { font-size: 13px; }
    .marketing-hero { min-height: 730px; min-height: max(670px, calc(93svh - 76px)); padding-top: 70px; padding-bottom: 115px; background-position: 55% center; }
    .marketing-hero::before { background: linear-gradient(90deg, #002a3cce, #002d3f70), linear-gradient(0deg, #002a3a40, transparent); }
    .marketing-hero h1 { font-size: clamp(76px, 17vw, 116px); margin-bottom: 30px; }
    .marketing-eyebrow { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 24px; }
    .marketing-intro { max-width: 440px; font-size: 16px; }
    .marketing-intro > span { font-size: 25px; line-height: 1.4; margin-bottom: 18px; }
    .marketing-hero .welcome-actions { gap: 13px 24px; margin-top: 26px; }
    .marketing-hero-cta { min-height: 51px; font-size: 13px; padding: 14px 18px; gap: 20px; }
    .marketing-hero-link { font-size: 12px; gap: 8px; }
    .marketing-product { padding-top: 10px; padding-bottom: 20px; }
    .product-section { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 35px; padding: 65px 0 55px; }
    .product-copy, .product-reversed .product-copy { grid-column: 1; grid-row: auto; }
    .product-visual, .product-reversed .product-visual { grid-column: 1; grid-row: auto; }
    .product-copy h2, .product-connect h2 { margin-bottom: 28px; font-size: 76px; }
    .product-eyebrow { margin-bottom: 16px; font-size: 10px; }
    .product-list { gap: 17px; }
    .product-list > li { font-size: 16px; line-height: 1.6; grid-template-columns: 21px 1fr; gap: 12px; }
    .product-stat { font-size: 25px; }
    .product-visual { height: 650px; width: min(100%, 430px); margin-inline: auto; }
    .product-phone { width: 265px; }
    .product-visual::before { inset: 50px -5px 60px; }
    .visual-orbit { inset: 80px -5px 100px; }
    .visual-orbit::before { inset-inline: -5px; }
    .paired-visual { height: 650px; }
    .paired-visual .product-phone { width: 225px; }
    .paired-visual .phone-secondary { top: 25px; left: 16px; }
    .paired-visual .phone-primary { top: 110px; right: 16px; }
    .marketing-support { padding-top: 55px; }
    .marketing-support-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 44px; }
    .marketing-support h2 { font-size: 42px; }
    .support-contact p { font-size: 13px; }
    .support-contact > a { font-size: 19px; }
    .marketing-footer { align-items: flex-start; flex-direction: column; padding-bottom: 24px; gap: 12px; }
    .marketing-footer > div { column-gap: 20px; row-gap: 0; }
}
@media (max-width: 370px) {
    .marketing-page { --gutter: 20px; }
    .marketing-nav-inner { gap: 8px; }
    .marketing-brand { font-size: 20px; gap: 5px; }
    .marketing-brand img { width: 29px; height: 29px; }
    .marketing-account { gap: 10px; }
    .marketing-signup { padding-inline: 11px; }
    .marketing-menu-toggle:not([hidden]) { width: 36px; }
    .marketing-navigation a { font-size: 12px; }
    .product-connect h2 { font-size: 68px; }
    .marketing-intro > span { font-size: 23px; }
    .marketing-hero .welcome-actions { gap: 7px 16px; }
    .product-visual { height: 590px; }
    .product-phone { width: 239px; }
    .paired-visual .product-phone { width: 199px; }
    .paired-visual .phone-primary { top: 105px; }
    .support-contact > a { font-size: 17px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.marketing-body) { scroll-behavior: auto; }
    .marketing-page *, .marketing-page *::before, .marketing-page *::after { transition: none !important; animation: none !important; }
    .marketing-button:hover, .marketing-button:active { transform: none; }
    .product-section[data-reveal-pending] .product-copy, .product-section[data-reveal-pending] .product-visual { opacity: 1; translate: none; }
}
