/* Some Cows marketing site.
   Brand green matches the in-app share-card banner (PhotoShareCard.swift:
   UIColor(red: 0.23, green: 0.49, blue: 0.17) == #3b7d2b). Light and dark are
   both first-class; the palette is driven entirely by the variables below. */

:root {
    color-scheme: light dark;

    --green: #3b7d2b;
    --green-deep: #2b5d1f;
    --green-bright: #4e9b39;
    --sky: #a8d8f0;

    --bg: #f4faee;
    --bg-alt: #eaf4e0;
    --panel: #ffffff;
    --panel-edge: #d8e8cc;
    --ink: #17250f;
    --ink-soft: #4c6040;
    --ink-faint: #6f8462;
    --accent: #3b7d2b;
    --accent-ink: #ffffff;
    --chip: #e6f3dc;
    --shadow: 0 1px 2px rgba(23, 37, 15, .06), 0 8px 24px rgba(23, 37, 15, .07);
    --shadow-lift: 0 2px 4px rgba(23, 37, 15, .08), 0 18px 44px rgba(23, 37, 15, .12);
    --radius: 18px;

    --measure: 66ch;
    --wide: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10170c;
        --bg-alt: #16200f;
        --panel: #1b2615;
        --panel-edge: #2c3d23;
        --ink: #eaf3e2;
        --ink-soft: #b8ccab;
        --ink-faint: #8ba57c;
        --accent: #78c95e;
        --accent-ink: #0d1409;
        --chip: #24331b;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
        --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .5);
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

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

/* The UA default for figure is `margin: 1em 40px`, which quietly steals 80px of
   horizontal room on phones. */
figure {
    margin: 0;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--green-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.15rem, 6vw, 3.9rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 800;
}

h3 {
    font-size: 1.16rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 12px 18px;
    z-index: 100;
    border-radius: 0 0 10px 0;
    font-weight: 700;
}

.skip:focus {
    left: 0;
}

.wrap {
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 22px;
}

.lede {
    font-size: clamp(1.06rem, 2.1vw, 1.3rem);
    color: var(--ink-soft);
    max-width: var(--measure);
}

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

.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--panel-edge);
}

.site-head .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
}

.site-nav {
    margin-left: auto;
    display: flex;
    gap: 6px 20px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--accent);
}

@media (max-width: 720px) {
    .site-head {
        position: static;
    }

    .site-nav {
        display: none;
    }
}

/* ---------- buttons ---------- */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 14px;
    padding: 0;
    list-style: none;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    background: var(--ink);
    color: var(--bg);
    border-radius: 14px;
    padding: 11px 20px 11px 17px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.store-btn .glyph {
    font-size: 1.6rem;
    line-height: 1;
}

.store-btn .stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn .small {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    opacity: .75;
    font-weight: 700;
}

.store-btn .big {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust li {
    background: var(--chip);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .85rem;
    font-weight: 650;
}

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

.hero {
    padding: clamp(38px, 7vw, 78px) 0 clamp(28px, 5vw, 56px);
    background:
        radial-gradient(1100px 460px at 84% -8%, color-mix(in srgb, var(--green-bright) 20%, transparent), transparent 70%),
        radial-gradient(760px 380px at 6% 4%, color-mix(in srgb, var(--sky) 26%, transparent), transparent 70%);
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 900px) {
    /* minmax(0, 1fr), never a bare 1fr: the automatic minimum of a bare 1fr
       column is the item's min-content width, and the aspect-ratio map card
       below derives one from its max-height. That pushed the whole hero wider
       than a phone viewport and scrolled the page sideways. */
    .hero .wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--chip);
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
    .eyebrow {
        color: var(--accent);
    }
}

.hero h1 .accent {
    color: var(--green);
    display: block;
}

@media (prefers-color-scheme: dark) {
    .hero h1 .accent {
        color: var(--accent);
    }
}

/* Stylised map card. Deliberately an illustration, not a screenshot. */

.map-card {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 100%;
    max-height: 560px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--panel-edge);
    background:
        linear-gradient(180deg, #bfe3f5 0%, #bfe3f5 26%, #cfe6b4 26%, #bcdb9f 62%, #a9d18c 100%);
}

@media (prefers-color-scheme: dark) {
    .map-card {
        background:
            linear-gradient(180deg, #29506b 0%, #29506b 26%, #33502a 26%, #2c4724 62%, #253d1e 100%);
    }
}

.map-card .road {
    position: absolute;
    inset: 0;
}

.map-card .road span {
    position: absolute;
    background: color-mix(in srgb, #ffffff 66%, transparent);
    border-radius: 999px;
}

.map-card .road span:nth-child(1) {
    left: -6%;
    right: -6%;
    top: 47%;
    height: 13px;
    transform: rotate(-7deg);
}

.map-card .road span:nth-child(2) {
    left: -6%;
    right: -6%;
    top: 74%;
    height: 9px;
    transform: rotate(4deg);
}

.map-card .road span:nth-child(3) {
    top: 26%;
    bottom: -10%;
    left: 62%;
    width: 10px;
    transform: rotate(9deg);
}

.map-card .pin {
    position: absolute;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

.map-card .pin.count {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green-deep);
}

/* Pin placement for the hero illustration. Kept here rather than on the
   elements themselves so the markup carries no inline CSS. */

.map-card .p1 {
    left: 24%;
    top: 38%;
}

.map-card .p2 {
    left: 56%;
    top: 30%;
}

.map-card .p3 {
    left: 74%;
    top: 54%;
}

.map-card .p4 {
    left: 33%;
    top: 66%;
}

.map-card .p5 {
    left: 52%;
    top: 57%;
}

.map-card .pin.me {
    background: var(--green);
    color: #fff;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    font-size: 1.6rem;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 26%, transparent), 0 3px 12px rgba(0, 0, 0, .3);
}

.map-card .float {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: color-mix(in srgb, #ffffff 92%, transparent);
    color: #17250f;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    max-width: 92%;
}

.map-card .float.top {
    top: 18px;
}

.map-card .float.mid {
    bottom: 74px;
}

.map-card .float.bottom {
    bottom: 20px;
    background: var(--green);
    color: #fff;
    font-size: .98rem;
    padding: 12px 26px;
}

.figcap {
    margin: 12px 0 0;
    font-size: .82rem;
    color: var(--ink-faint);
    text-align: center;
}

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

section {
    padding: clamp(44px, 7vw, 88px) 0;
}

section.tinted {
    background: var(--bg-alt);
}

.sec-head {
    max-width: var(--measure);
    margin-bottom: clamp(26px, 4vw, 44px);
}

.sec-head p:last-child {
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card .icon {
    font-size: 1.9rem;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.card h3 {
    margin-bottom: .4em;
}

.card p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: .97rem;
}

/* numbered steps */

.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
}

.steps li {
    counter-increment: step;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 24px 24px 24px 24px;
    box-shadow: var(--shadow);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.steps h3 {
    margin-bottom: .35em;
}

.steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .97rem;
}

/* two-column feature blocks */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}

.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checks li {
    position: relative;
    padding-left: 32px;
    color: var(--ink-soft);
}

.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--chip);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
}

@media (prefers-color-scheme: dark) {
    .checks li::before {
        color: var(--accent);
    }
}

.checks strong {
    color: var(--ink);
}

/* bingo card mock */

.bingo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    max-width: 380px;
}

.bingo div {
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8px;
    font-size: .72rem;
    font-weight: 650;
    color: var(--ink-soft);
    line-height: 1.25;
    box-shadow: var(--shadow);
}

.bingo div .em {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 3px;
}

.bingo div.done {
    background: color-mix(in srgb, var(--green) 16%, var(--panel));
    border-color: color-mix(in srgb, var(--green) 40%, var(--panel-edge));
    color: var(--ink);
}

/* field guide mock */

.guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 10px;
    max-width: 430px;
}

.guide div {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: 13px;
    padding: 12px 6px;
    text-align: center;
    font-size: .72rem;
    font-weight: 650;
    color: var(--ink-soft);
    box-shadow: var(--shadow);
}

.guide div .em {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.guide div.locked {
    color: var(--ink-faint);
}

.guide div.locked .em {
    filter: grayscale(1);
    opacity: .34;
}

/* stat strip */

.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stats li {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stats .n {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--green);
    line-height: 1.1;
}

@media (prefers-color-scheme: dark) {
    .stats .n {
        color: var(--accent);
    }
}

.stats .l {
    font-size: .92rem;
    color: var(--ink-soft);
}

/* animal marquee */

.animals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.animals li {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: 999px;
    padding: 7px 15px 7px 12px;
    font-size: .93rem;
    font-weight: 650;
    color: var(--ink-soft);
    box-shadow: var(--shadow);
}

/* faq */

.faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.faq details {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: 14px;
    padding: 4px 20px;
    box-shadow: var(--shadow);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 16px 0;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq details p {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

/* safety callout */

.callout {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-left: 5px solid #c4442b;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    max-width: 760px;
}

.callout h3 {
    margin-bottom: .35em;
}

.callout p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
}

/* closing cta */

.closer {
    text-align: center;
    background:
        radial-gradient(900px 340px at 50% 0%, color-mix(in srgb, var(--green-bright) 22%, transparent), transparent 72%);
}

.closer .cta-row,
.closer .trust {
    justify-content: center;
}

.closer .lede {
    margin-left: auto;
    margin-right: auto;
}

.closer img.mark {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: var(--shadow-lift);
    margin-bottom: 20px;
}

/* footer */

.site-foot {
    border-top: 1px solid var(--panel-edge);
    padding: 34px 0 46px;
    color: var(--ink-faint);
    font-size: .9rem;
    background: var(--bg-alt);
}

.site-foot .cols {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.site-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-foot a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
}

.site-foot a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-foot p {
    margin: 0 0 .6em;
    max-width: 74ch;
}

.site-foot p:last-child {
    margin-bottom: 0;
}
