:root {
    --trail-green: #258038;
    --trail-green-dark: #1b6b2c;
    --navy: #12213a;
    --navy-light: #1c3358;
    --text-muted: #5a6472;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html, body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1f2933;
    line-height: 1.5;
}

h1:focus {
    outline: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--trail-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--trail-green);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--trail-green-dark);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eceff1;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.header-cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--trail-green-dark) 130%);
    color: #fff;
    text-align: center;
    padding: 5rem 0 5.5rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.hero-logo {
    max-width: min(70%, 320px);
    width: 100%;
    height: auto;
}

.hero-subtitle {
    max-width: 640px;
    font-size: 1.15rem;
    color: #dbe4ee;
    margin: 0;
}

.hero-note {
    margin: -0.75rem 0 0;
    color: #b9c6d6;
    font-size: 0.95rem;
}

/* USPs */
.usps {
    padding: 4.5rem 0;
    background-color: #f7f9fb;
}

.usps h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.9rem;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.75rem;
}

.usp-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(18, 33, 58, 0.06);
}

.usp-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.usp-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.usp-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How a round works */
.steps {
    padding: 4.5rem 0;
}

.steps h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.9rem;
}

.step-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.step-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--trail-green);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
}

/* Feature detail */
.features {
    padding: 4.5rem 0;
    background-color: #f7f9fb;
}

.features h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.9rem;
}

.feature-grid {
    display: grid;
    /* 340px keeps this to two wide columns on desktop — four narrow ones would
       wrap every bullet, and three would leave the fourth column alone on a row.
       min(…, 100%) is load-bearing: a bare 340px track stays 340px wide on a
       narrower phone and scrolls the whole page sideways (measured: +44px at
       320px, +4px at 360px). Every auto-fit grid here needs the same guard. */
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2.5rem 3rem;
}

.feature-col h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: var(--navy);
    border-bottom: 2px solid var(--trail-green);
    padding-bottom: 0.4rem;
}

.feature-col h3 ~ h3 {
    margin-top: 2rem;
}

.feature-col ul {
    margin: 0;
    padding-left: 1.15rem;
}

.feature-col li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 4rem 0;
}

.pricing-inner {
    max-width: 720px;
    text-align: center;
}

.pricing h2 {
    margin: 0 0 1rem;
    font-size: 1.9rem;
}

.pricing p {
    color: #dbe4ee;
    margin: 0 0 1rem;
}

.pricing-points {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pricing-points li {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Get started */
.get-started {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    text-align: center;
    /* Every "Get the app" scrolls here; keep the heading clear of the sticky header. */
    scroll-margin-top: 64px;
}

.store-icon {
    display: block;
    width: 128px;
    height: 128px;
    margin: 0.5rem auto 0.75rem;
    filter: drop-shadow(0 10px 22px rgba(18, 33, 58, 0.22));
}

.get-started-inner .store-name {
    margin: 0 0 0.5rem;
    color: #1f2933;
    font-weight: 600;
}

/* Launch window only (AppStoreListing.IsLaunchWindow), after Apple's "New Launch" creative: a light
   gradient with confetti in the brand's greens and navy. */
.get-started--launch {
    overflow: hidden;
    background: linear-gradient(180deg, #f7f9fb 0%, #e9eef3 100%);
}

.get-started--launch .get-started-inner {
    position: relative;
}

.get-started-inner .launch-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--trail-green);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.get-started--launch h2 {
    margin-top: 0;
    font-size: 2.4rem;
    letter-spacing: -0.01em;
}

.confetti span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: calc(34px * var(--s, 1));
    height: calc(16px * var(--s, 1));
    background-color: var(--c);
    border-radius: 3px;
    transform: rotate(var(--r)) skewX(-18deg);
    opacity: 0.85;
}

/* Below 900px the text spans the width and there is no empty margin left for confetti: it landed
   on the headline and the requirements note at 375px. The launch styling keeps everything else. */
@media (max-width: 900px) {
    .confetti {
        display: none;
    }
}

@media (max-width: 600px) {
    .get-started--launch h2 {
        font-size: 2rem;
    }
}

/* Hero: the "New" pill, launch window only */
.launch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.9rem 0.3rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

.launch-pill:hover {
    background-color: rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.launch-pill-tag {
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background-color: var(--trail-green);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.get-started-inner p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Apple's badge artwork, shown as supplied. The 14px margin is its required clear space (a quarter
   of the 54px height); no background, border or radius may be added to it. */
.app-store-badge {
    display: inline-block;
    margin: 14px;
    line-height: 0;
}

.app-store-badge img {
    display: block;
    height: 54px;
    width: auto;
}

.get-started-inner .get-started-note {
    margin: 1.5rem auto 0;
    max-width: 460px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Document pages (privacy, support) */
.doc-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.doc-hero h1 {
    margin: 0;
    font-size: 2.2rem;
}

.doc-meta {
    margin: 0.5rem 0 0;
    color: #b9c6d6;
    font-size: 0.95rem;
}

.doc-page {
    padding: 3rem 0 4.5rem;
}

.doc-body {
    max-width: 760px;
}

.doc-body h2 {
    margin: 2.75rem 0 0.75rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.doc-body h3 {
    margin: 2rem 0 0.5rem;
    font-size: 1.08rem;
    color: var(--navy);
}

.doc-body p,
.doc-body li {
    color: #33404f;
}

.doc-body ul {
    padding-left: 1.25rem;
}

.doc-body li {
    margin-bottom: 0.6rem;
}

.doc-body a {
    text-decoration: underline;
}

.doc-callout {
    background-color: #f2f8f3;
    border-left: 4px solid var(--trail-green);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.35rem;
    margin-bottom: 2rem;
}

.doc-callout p {
    margin: 0;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #eceff1;
}

.footer-links {
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--trail-green);
    text-decoration: underline;
}

@media (max-width: 400px) {
    .brand-logo {
        height: 28px;
    }

    .header-cta {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3.5rem 0 4rem;
    }

    .usps, .steps, .features, .get-started {
        padding: 3rem 0;
    }

    .pricing {
        padding: 3rem 0;
    }

    .doc-hero {
        padding: 2.5rem 0 2rem;
    }

    .doc-hero h1 {
        font-size: 1.7rem;
    }

    .doc-page {
        padding: 2rem 0 3rem;
    }
}
