/* Reset and root tokens */
:root {
    --primary: #23979e;
    --primary-dark: #13666b;
    --primary-light: #f0fbfc;
    --accent: #f6fdf8;
    --error: #CB3A31;
    --ink: #0b2e33;
    --ink-muted: #39575a;
    --surface: #ffffff;
    --shadow-soft: 0 20px 45px rgba(19, 102, 107, 0.08);
    --shadow-strong: 0 32px 60px rgba(19, 102, 107, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 35%, #f4fdfd 100%);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2.5rem 5rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(19, 102, 107, 0.08);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.brand img {
    height: 40px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    transition: background 0.2s ease;
}

.nav-link.active {
    background: rgba(35, 151, 158, 0.22);
    color: var(--primary-dark);
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(35, 151, 158, 0.12);
    color: var(--primary-dark);
}

.nav-link.active:hover,
.nav-link.active:focus-visible {
    background: rgba(35, 151, 158, 0.3);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(35, 151, 158, 0.12);
    padding: 0.25rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(19, 102, 107, 0.12);
}

.language-button {
    border: none;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-button:hover,
.language-button:focus-visible {
    background: rgba(35, 151, 158, 0.18);
    outline: none;
}

.language-button.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.button-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-strong);
}

.button-secondary {
    background: rgba(35, 151, 158, 0.12);
    color: var(--primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(35, 151, 158, 0.2);
}

.button-light {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow-soft);
}

.button-light:hover,
.button-light:focus-visible {
    background: var(--accent);
    transform: translateY(-1px);
}

/* Scroll affordances */
.scroll-controls {
    position: fixed;
    right: 1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 120;
}

.scroll-button {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.scroll-button.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-button:hover,
.scroll-button:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.scroll-button--up {
    background: rgba(11, 46, 51, 0.92);
}

.scroll-button--up:hover,
.scroll-button--up:focus-visible {
    background: rgba(11, 46, 51, 1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.05;
    color: var(--ink);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--ink-muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    background: linear-gradient(135deg, rgba(35, 151, 158, 0.14), rgba(19, 102, 107, 0.18));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Device frame */
.phone-frame {
    position: relative;
    display: inline-block;
    padding: 18px 12px; /* slimmer top/bottom bezels */
    background: linear-gradient(180deg, #0b0b0b, #141414);
    border-radius: 34px;
    border: 1px solid rgba(0,0,0,0.55);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone--portrait { width: clamp(180px, 23vw, 280px); }
.phone--small { width: clamp(160px, 20vw, 240px); }

.phone-frame::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    height: 8px;
    width: 36%;
    min-width: 70px;
    max-width: 120px;
    background: #0e0e0e;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.phone-screen-mask { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 9/19.5; background: #000; }
.phone-screen { width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; background: #000; }

/* Sections */
.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.section-header p {
    color: var(--ink-muted);
    max-width: 520px;
}

.value-grid,
.hypotheses-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--surface);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(19, 102, 107, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--ink-muted);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.approach-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.approach-copy ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    color: var(--ink-muted);
}

.approach-copy li {
    position: relative;
    padding-left: 1.5rem;
}

.approach-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    height: 10px;
    width: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.approach-visual {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-visual .phone-screen-mask { border-radius: 24px; }

.cta {
    display: flex;
    justify-content: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 980px;
}

.cta-grid .cta-card {
    max-width: none;
}

.cta-grid .form-actions { justify-content: center; }

.cta-card {
    max-width: 720px;
    text-align: center;
    padding: 3.5rem 3rem;
    background: linear-gradient(135deg, rgba(35, 151, 158, 0.9), rgba(19, 102, 107, 0.92));
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-followup {
    margin: 2.5rem auto 0;
    display: flex;
    justify-content: center;
}

.cta-followup .button {
    min-width: 280px;
}

/* Reviews */
.review-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(19, 102, 107, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.review-card img { height: 56px; width: 56px; border-radius: 50%; object-fit: cover; }
.review-card blockquote { color: var(--ink); font-size: 0.98rem; }
.review-card .reviewer { color: var(--ink-muted); font-weight: 600; font-size: 0.9rem; }

/* OS selection grid */
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.os-card { background: var(--surface); border: 1px solid rgba(19,102,107,0.08); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-soft); display:flex; align-items:center; justify-content:center; gap:0.75rem; font-weight:700; cursor:pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.os-card:hover, .os-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-strong); }

/* Map + form cards */
.form-card { background: var(--surface); border: 1px solid rgba(19,102,107,0.08); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-soft); }
.map-container { height: 420px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); margin: 1rem 0; }
.form-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.muted { color: var(--ink-muted); font-size: 0.95rem; }
.input { width: 100%; padding: 0.9rem 1rem; border: 1px solid rgba(19,102,107,0.18); border-radius: 10px; font-size: 1rem; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(35,151,158,0.18); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(203,58,49,0.12); }
.field.invalid label { color: var(--error); }
.error-text { color: var(--error); font-size: 0.85rem; }
.map-container.invalid { outline: 2px solid var(--error); }
.hint { font-size: 0.9rem; }
.two-col-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; align-items: start; }
.field { display:flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.checkbox-group { display:flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.select { appearance: none; background: white url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path fill=\"%2323979e\" d=\"M5.5 7.5l4.5 4.5 4.5-4.5\"/></svg>') no-repeat right 12px center; background-size: 18px 18px; }
.textarea { resize: vertical; min-height: 120px; }
/* Search */
.search-bar { margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.search-row { display:flex; gap: .5rem; align-items: center; }
.search-input { padding-right: 1rem; }
.powered-by { margin-top: .35rem; font-size: .78rem; color: var(--ink-muted); }
.small-note { font-size: 0.85rem; }

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ink-muted);
}

.footer-links {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
    text-decoration-thickness: 2px;
}

main > section {
    scroll-margin-top: 6.5rem;
}

main > section + section {
    margin-top: clamp(5.5rem, 9vw, 8.5rem);
}

/* Responsive */
@media (max-width: 992px) {
    main {
        padding: 5rem 1.75rem 4rem;
    }

    .hero,
    .approach-grid {
        grid-template-columns: 1fr;
    }
    .two-col-grid { grid-template-columns: 1fr; }

    .hero {
        text-align: center;
        align-items: center;
        gap: 2.5rem;
    }

    .hero-copy {
        align-items: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: 2;
        margin: 0 auto;
    }

    .approach-visual {
        order: -1;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-link {
        display: none;
    }

    .language-switch {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 0.85rem 1.25rem;
    }

    main {
        padding: 4rem 1.25rem 3.5rem;
    }

    .hero {
        gap: 1.75rem;
    }

    .hero-copy {
        gap: 1.25rem;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-visual {
        max-width: clamp(200px, 70vw, 260px);
    }

    /* Stretch buttons in content blocks, not in header */
    .hero-actions .button,
    .form-actions .button,
    .cta-card .button { flex: 1 1 auto; justify-content: center; }
    .nav-actions .button { flex: 0 0 auto; margin-left: auto;}
    .nav-actions { flex-wrap: wrap; gap: .5rem; }
    .nav-actions .button { padding: 0.7rem 1rem; font-size: .95rem; }
    .brand span { font-size: 1.15rem; }

    /* Tighter heading on very small screens */
    .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }

    .cta-card {
        padding: 3rem 1.75rem;
    }

    .scroll-controls {
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .scroll-button {
        width: 48px;
        height: 48px;
    }

    .cta-followup {
        margin-top: 2rem;
    }

    .cta-followup .button {
        width: 100%;
    }

    .button {
        white-space: normal;
        text-align: center;
    }
}
.store-badges { display:flex; align-items:center; gap: 0.75rem; flex-wrap: wrap; }
.store-badge img { display:block; height: 56px; width: auto; }
