/* FlowWell landing site — shared styles (dark theme) */

:root {
    --bg: #080d1a;
    --bg-soft: #0d1526;
    --card: #111c33;
    --card-2: #16233d;
    --line: #1e2c49;
    --ink: #e9efff;
    --body: #b4c1da;
    --muted: #8093b1;
    --blue: #3b82f6;
    --sky: #38bdf8;
    --radius: 18px;
    --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.85);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--sky);
}

.wrap {
    width: min(1140px, 100% - 2.5rem);
    margin-inline: auto;
}

.eyebrow {
    color: var(--sky);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    margin: 0.6rem 0 0;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.section-intro {
    max-width: 44rem;
    margin: 0.9rem 0 0;
    color: var(--body);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(8 13 26 / 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand img {
    width: 34px;
    height: 34px;
}

.header-links {
    display: flex;
    align-items: center;
}

.header-links a {
    color: var(--body);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* store badges */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.store-badges a {
    display: inline-flex;
    align-items: center;
}

.store-badge {
    display: block;
    height: var(--badge-h, 40px);
    width: auto;
    border-radius: 8px;
}

.store-badge:hover {
    opacity: 0.88;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
    background: radial-gradient(
            55rem 28rem at 12% -12%,
            rgb(59 130 246 / 0.22),
            transparent 62%
    ),
    radial-gradient(
            45rem 26rem at 96% -6%,
            rgb(56 189 248 / 0.16),
            transparent 58%
    );
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 920px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

h1 {
    margin: 1.4rem 0 0;
    font-size: clamp(2.3rem, 5.6vw, 3.8rem);
    font-weight: 800;
}

h1 em {
    font-style: normal;
    background: linear-gradient(115deg, var(--blue), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin: 1.2rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.02rem, 1.8vw, 1.15rem);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.cta .store-badge {
    --badge-h: 60px;
}

@media (max-width: 900px) {
    .cta .store-badge {
        --badge-h: 50px;
    }
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.fact strong {
    display: block;
    color: var(--ink);
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.fact span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- device frames ---------- */

.devices {
    display: flex;
    justify-content: center;
    gap: clamp(0.9rem, 2.5vw, 1.75rem);
}

.device {
    width: clamp(190px, 25vw, 248px);
    padding: 8px;
    border-radius: 30px;
    background: #04070e;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.device img {
    width: 100%;
    height: auto;
    border-radius: 23px;
}

/* ---------- sections ---------- */

section {
    padding: clamp(2.75rem, 6vw, 5rem) 0;
}

.section-rule {
    border-top: 1px solid var(--line);
}

/* ---------- screenshot gallery ---------- */

.gallery {
    margin-top: 2.5rem;
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.shot {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.7rem 0.7rem 1.1rem;
}

.shot .device {
    width: 100%;
    padding: 6px;
    border-radius: 24px;
    box-shadow: none;
}

.shot .device img {
    border-radius: 19px;
}

.shot figcaption {
    margin-top: 0.9rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.shot figcaption span {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: 0.84rem;
    margin-top: 0.1rem;
}

/* ---------- features ---------- */

.features {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.45rem;
}

.feature svg {
    width: 24px;
    height: 24px;
    color: var(--sky);
}

.feature h3 {
    margin: 0.8rem 0 0;
    font-size: 1.02rem;
    letter-spacing: -0.015em;
}

.feature p {
    margin: 0.35rem 0 0;
    font-size: 0.93rem;
}

/* ---------- privacy teaser ---------- */

.legal {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    grid-template-columns: 1fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}

@media (min-width: 760px) {
    .legal {
        grid-template-columns: 1.4fr 1fr;
    }

    .legal > :nth-child(2) {
        text-align: right;
    }
}

.legal h3 {
    margin: 0;
    font-size: 1.15rem;
}

.legal p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--card-2);
    transition: transform 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
}

/* ---------- footer ---------- */

footer {
    border-top: 1px solid var(--line);
    padding: 2.25rem 0 3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--body);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--sky);
}

/* ---------- privacy page ---------- */

.legal-page {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.legal-page article {
    max-width: 46rem;
}

.legal-page h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin: 0;
}

.legal-page .updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

.legal-page h2 {
    margin: 2.5rem 0 0;
    font-size: 1.3rem;
}

.legal-page h3 {
    margin: 1.75rem 0 0;
    font-size: 1.05rem;
}

.legal-page p {
    margin: 0.9rem 0 0;
}

.legal-page ul,
.legal-page ol {
    margin: 0.9rem 0 0;
    padding-left: 1.35rem;
}

.legal-page li {
    margin-bottom: 0.55rem;
}

.legal-page ul {
    list-style: none;
    padding-left: 0.5rem;
}

.legal-page ul > li::before {
    content: "– ";
    color: var(--muted);
}

.legal-page ol > li > ul {
    margin-top: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--ink);
}

@media (max-width: 900px) {
    /* both store badges live in the hero on small screens */
    .header-links .store-badge {
        display: none;
    }
}

@media (max-width: 560px) {
    .devices {
        gap: 0.7rem;
    }

    .device {
        width: 47%;
        padding: 6px;
        border-radius: 24px;
    }

    .device img {
        border-radius: 19px;
    }

    .facts {
        gap: 1.25rem;
    }
}
