:root {
    --trail-green: #258038;
    --trail-green-dark: #1b6b2c;
    --navy: #12213a;
    --navy-light: #1c3358;
    --text-muted: #5a6472;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

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 {
    padding: 4.5rem 0 5.5rem;
    text-align: center;
}

.get-started-inner p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.get-started-inner .beta-note {
    margin: 1.5rem auto 0;
    max-width: 520px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    background-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

a.app-store-badge:hover {
    background-color: var(--navy-light);
    text-decoration: none;
}

/* Non-link status chip until A6 replaces it with a real App Store URL */
.app-store-badge--soon {
    margin-top: 1.75rem;
    background-color: transparent;
    border: 1px solid #d7dde4;
    color: var(--text-muted);
    font-weight: 500;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}

.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;
    }
}
