/* Breathe Well Website */

:root {
    --ink: #17201c;
    --ink-2: #26322d;
    --muted: #5f6e67;
    --paper: #f6f4ec;
    --paper-2: #ebe8da;
    --white: #ffffff;
    --line: rgba(23, 32, 28, 0.14);
    --teal: #0b8a80;
    --blue: #386fd1;
    --coral: #d96556;
    --plum: #6453a6;
    --gold: #b88831;
    --shadow: 0 24px 70px rgba(18, 25, 22, 0.22);
    --shadow-soft: 0 12px 32px rgba(18, 25, 22, 0.1);
    --radius: 8px;
    --max: 1180px;
    --display: "Fraunces", Georgia, serif;
    --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    width: 100%;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(23, 32, 28, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 32, 28, 0.045) 1px, transparent 1px),
        var(--paper);
    background-size: 42px 42px;
    font-family: var(--body);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(11, 138, 128, 0.5);
    outline-offset: 3px;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    min-width: 0;
}

section {
    position: relative;
    padding: 104px 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
    overflow-wrap: break-word;
}

h1,
h2 {
    font-family: var(--display);
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

h3,
h4 {
    line-height: 1.16;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

p {
    color: var(--muted);
}

ul {
    padding-left: 1.1rem;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 14px 0;
    background: rgba(246, 244, 236, 0.84);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(20px);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.navbar.scrolled {
    background: rgba(246, 244, 236, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(18, 25, 22, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(11, 138, 128, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.92rem;
    font-weight: 800;
}

.nav-links a {
    color: rgba(23, 32, 28, 0.68);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-cta {
    padding: 10px 15px;
    color: var(--white) !important;
    background: var(--ink);
    border-radius: var(--radius);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 2px;
}

.hero {
    min-height: 82svh;
    display: grid;
    align-items: end;
    padding: 112px 0 48px;
    color: var(--white);
    overflow: hidden;
    background: #101613;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(16, 22, 19, 0.9) 0%, rgba(16, 22, 19, 0.72) 42%, rgba(16, 22, 19, 0.16) 72%),
        linear-gradient(180deg, rgba(16, 22, 19, 0.18), rgba(16, 22, 19, 0.88));
    z-index: 2;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px);
    z-index: 3;
}

.hero-shot {
    position: absolute;
    width: 320px;
    border-radius: 34px;
    box-shadow: var(--shadow);
    transform-origin: center;
}

.hero-shot-main {
    right: 12%;
    top: 88px;
    z-index: 1;
    transform: rotate(3deg);
}

.hero-shot-coach {
    right: 34%;
    top: 174px;
    opacity: 0.72;
    transform: rotate(-9deg) scale(0.86);
}

.hero-shot-stats {
    right: -28px;
    top: 210px;
    opacity: 0.78;
    transform: rotate(10deg) scale(0.9);
}

.hero-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    z-index: 4;
    background: linear-gradient(180deg, transparent, rgba(16, 22, 19, 0.98));
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 820px;
    margin: 0 auto;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #8fe2d8;
}

.hero h1 {
    margin-top: 18px;
    font-size: 8.4rem;
    color: var(--white);
}

.hero-subtitle {
    max-width: 680px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.22rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 16px 34px rgba(11, 138, 128, 0.25);
}

.btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.btn-light {
    color: var(--ink);
    background: var(--white);
}

.apple-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin: 34px 0 0;
}

.hero-signals div {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-signals dt {
    color: var(--white);
    font-family: var(--display);
    font-size: 2.4rem;
    line-height: 1;
}

.hero-signals dd {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.launch-strip {
    padding: 20px 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.launch-grid p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.launch-grid strong {
    color: var(--white);
}

.split-layout,
.watch-layout,
.privacy-layout,
.premium-layout,
.cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    min-width: 0;
}

.section-copy h2,
.section-header h2,
.privacy-layout h2,
.cta-layout h2 {
    margin-top: 12px;
    font-size: 3.7rem;
    color: var(--ink);
    overflow-wrap: break-word;
}

.section-copy p:not(.eyebrow),
.section-header p:not(.eyebrow),
.privacy-points p {
    margin-top: 18px;
    font-size: 1.05rem;
}

.section-header {
    max-width: 780px;
    margin-bottom: 42px;
    min-width: 0;
}

.section-header.compact {
    max-width: 700px;
}

.rhythm-board,
.comparison-table,
.feature-card,
.faq-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.rhythm-board {
    padding: 16px;
}

.rhythm-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: var(--radius);
}

.rhythm-row + .rhythm-row {
    border-top: 1px solid rgba(23, 32, 28, 0.08);
}

.rhythm-row span {
    color: var(--muted);
    font-weight: 900;
}

.rhythm-row strong {
    color: var(--ink);
    font-size: 1.08rem;
}

.rhythm-row-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--ink), #1e5950);
}

.rhythm-row-active span,
.rhythm-row-active strong {
    color: var(--white);
}

.breath-meter {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.4fr 0.7fr;
    gap: 6px;
    margin-top: 14px;
}

.breath-meter span {
    height: 10px;
    border-radius: 999px;
    background: var(--teal);
    animation: breathMeter 4s ease-in-out infinite;
}

.breath-meter span:nth-child(2) {
    background: var(--blue);
    animation-delay: 0.25s;
}

.breath-meter span:nth-child(3) {
    background: var(--coral);
    animation-delay: 0.5s;
}

.breath-meter span:nth-child(4) {
    background: var(--plum);
    animation-delay: 0.75s;
}

@keyframes breathMeter {
    0%, 100% {
        transform: scaleX(0.35);
        transform-origin: left;
        opacity: 0.56;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 1;
    }
}

.feature-band,
.premium-section {
    background: rgba(255, 255, 255, 0.48);
    border-block: 1px solid rgba(23, 32, 28, 0.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 244px;
    padding: 24px;
}

.feature-kicker {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--teal);
    font-weight: 900;
}

.feature-card:nth-child(2) .feature-kicker {
    color: var(--blue);
}

.feature-card:nth-child(3) .feature-kicker {
    color: var(--coral);
}

.feature-card:nth-child(4) .feature-kicker {
    color: var(--plum);
}

.feature-card h3,
.faq-grid h3 {
    margin-bottom: 10px;
    font-size: 1.26rem;
}

.screens-section {
    overflow: hidden;
}

.screen-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.screen-rail figure {
    margin: 0;
    padding: 10px;
    border-radius: 34px;
    background: linear-gradient(145deg, #26322d, #0e1412);
    box-shadow: var(--shadow-soft);
}

.screen-rail figure:nth-child(even) {
    margin-top: 42px;
}

.screen-rail img {
    border-radius: 26px;
}

.screen-rail figcaption {
    padding: 12px 6px 4px;
    color: var(--white);
    font-weight: 900;
    text-align: center;
}

.watch-section {
    background: linear-gradient(135deg, rgba(235, 232, 218, 0.84), rgba(255, 255, 255, 0.4));
}

.watch-device {
    display: grid;
    place-items: center;
}

.watch-case {
    width: 276px;
    height: 336px;
    padding: 25px;
    border-radius: 58px;
    background: #111714;
    box-shadow: var(--shadow);
}

.watch-face {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    color: var(--white);
    border-radius: 40px;
    background:
        linear-gradient(160deg, rgba(11, 138, 128, 0.78), rgba(20, 26, 23, 0.94)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 28px);
}

.watch-pulse {
    width: 104px;
    height: 104px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: watchPulse 4s ease-in-out infinite;
}

.watch-face strong {
    font-size: 1.3rem;
}

.watch-face small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

@keyframes watchPulse {
    0%, 100% {
        transform: scale(0.78);
        opacity: 0.62;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding-left: 1.1rem;
    color: var(--ink);
    font-weight: 800;
}

.privacy-section {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(18, 25, 22, 0.96), rgba(25, 73, 67, 0.94)),
        url("screenshots/stats.png") center/cover;
}

.privacy-layout h2,
.privacy-section .eyebrow {
    color: var(--white);
}

.privacy-points {
    display: grid;
    gap: 18px;
}

.privacy-points p {
    color: rgba(255, 255, 255, 0.78);
}

.text-link {
    width: fit-content;
    color: #8fe2d8;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.comparison-table {
    overflow: hidden;
}

.comparison-table > div {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid rgba(23, 32, 28, 0.08);
}

.comparison-table > div:first-child {
    border-top: 0;
}

.comparison-head {
    color: var(--white);
    background: var(--ink);
    font-weight: 900;
}

.comparison-table span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.comparison-table [role="cell"]:first-child {
    color: var(--muted);
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.faq-grid article {
    padding: 22px;
}

.cta-section {
    padding: 86px 0;
    color: var(--white);
    background: var(--ink);
}

.cta-layout {
    grid-template-columns: 1fr auto;
}

.cta-layout h2,
.cta-layout .eyebrow {
    color: var(--white);
}

.site-footer {
    padding: 54px 0 28px;
    color: rgba(255, 255, 255, 0.76);
    background: #111714;
}

.footer-main,
.footer-bottom {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 34px;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: var(--teal);
    border-radius: var(--radius);
    font-weight: 900;
}

.brand-text {
    color: var(--white);
}

.brand-tagline {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.56);
}

.footer-links {
    display: flex;
    gap: 54px;
}

.footer-column h4 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer-column ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.legal-content,
.support-content {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 132px 0 86px;
}

.legal-content h1,
.support-content h1,
.support-hero h1 {
    margin-bottom: 12px;
    font-family: var(--display);
    font-size: 4.8rem;
    line-height: 1.02;
}

.legal-content h2,
.support-content h2 {
    margin: 38px 0 12px;
    font-family: var(--display);
    font-size: 1.9rem;
}

.legal-content h3,
.support-content h3 {
    margin: 28px 0 8px;
}

.legal-content p,
.legal-content li,
.support-content p,
.support-content li {
    margin-bottom: 12px;
    color: rgba(23, 32, 28, 0.72);
    line-height: 1.8;
}

.last-updated,
.support-intro {
    font-weight: 800;
}

.highlight-box,
.support-card,
.faq-item,
.contact-section,
.tip-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.highlight-box {
    margin: 26px 0;
    border-left: 5px solid var(--teal);
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--ink);
}

.support-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0 54px;
}

.support-card {
    text-align: left;
}

.support-card-icon {
    margin-bottom: 14px;
    color: var(--teal);
    font-size: 2rem;
    font-weight: 900;
}

.faq-section {
    margin-top: 54px;
}

.faq-item {
    margin-bottom: 14px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
}

.faq-toggle {
    color: var(--teal);
    font-size: 1.4rem;
    font-weight: 900;
    transition: transform 160ms ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
}

.faq-item.active .faq-answer {
    max-height: 520px;
}

.faq-answer-content {
    padding-top: 12px;
}

.contact-section {
    margin-top: 54px;
    text-align: center;
}

.contact-email {
    color: var(--teal);
    font-weight: 900;
}

.animate-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms ease, transform 560ms ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1080px) {
    .hero h1 {
        font-size: 6.6rem;
    }

    .hero-shot-main {
        right: 4%;
    }

    .hero-shot-coach {
        right: 26%;
    }

    .feature-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .launch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screen-rail {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 860px) {
    section {
        padding: 78px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(246, 244, 236, 0.98);
        box-shadow: var(--shadow-soft);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .split-layout,
    .watch-layout,
    .privacy-layout,
    .premium-layout,
    .cta-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero {
        min-height: auto;
        padding: 102px 0 42px;
    }

    .hero-media {
        opacity: 0.42;
    }

    .hero-media::before {
        background:
            linear-gradient(180deg, rgba(16, 22, 19, 0.82), rgba(16, 22, 19, 0.94)),
            linear-gradient(90deg, rgba(16, 22, 19, 0.4), rgba(16, 22, 19, 0.2));
    }

    .hero-shot {
        width: 230px;
    }

    .hero-shot-main {
        right: -28px;
        top: 118px;
    }

    .hero-shot-coach {
        right: 122px;
        top: 196px;
    }

    .hero-shot-stats {
        display: none;
    }

    .hero-content {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 4.8rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-signals,
    .launch-grid,
    .support-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .section-copy h2,
    .section-header h2,
    .privacy-layout h2,
    .cta-layout h2 {
        font-size: 2.35rem;
    }

    .rhythm-row,
    .comparison-table > div {
        grid-template-columns: 1fr;
    }

    .footer-main,
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container,
    .footer-main,
    .footer-bottom,
    .legal-content,
    .support-content {
        width: min(100% - 28px, var(--max));
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-actions,
    .hero-actions .btn,
    .cta-layout .btn {
        width: 100%;
    }

    .feature-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .screen-rail {
        grid-template-columns: repeat(4, 210px);
    }

    .screen-rail figure:nth-child(even) {
        margin-top: 0;
    }

    .watch-case {
        width: 230px;
        height: 286px;
        border-radius: 46px;
    }

    .watch-face {
        border-radius: 32px;
    }

    .legal-content h1,
    .support-content h1,
    .support-hero h1 {
        font-size: 3.2rem;
    }
}
