/* ---------- tokens ---------- */
:root {
    --brand: #A06000;        /* primary brand and buttons; white text meets WCAG AA */
    --brand-deep: #754600;   /* dark bands */
    --brand-soft: #F3E8D8;
    --gold: #A06000;         /* brand accents and icons */
    --gold-text: #A06000;    /* gold for small text on light backgrounds (AA) */
    --gold-soft: #F6ECD6;
    --gold-light: #EDB95C;   /* gold for text on the dark photo sections */
    --night: #0D1410;        /* deep green-black under the photos */
    --night-rgb: 13,20,16;
    --red: #B42318;
    --paper: #F7F5EF;
    --white: #FFFFFF;
    --ink: #1F2421;
    --muted: #55605A;
    --line: #E2E0D8;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(31,36,33,.06), 0 12px 32px rgba(31,36,33,.10);
    --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Third-party overlays (HubSpot's, position: fixed) can't widen the page; on the root this doesn't affect the sticky header. */
html { overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 6px 18px rgba(160,96,0,.28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(160,96,0,.35); }
.btn-ghost:hover { border-color: var(--brand); background: var(--white); }
.btn-light { background: var(--white); color: var(--brand-deep); }
.btn-light:hover { background: var(--gold-soft); }
.btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.96); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s }
.site-head.scrolled { border-color: var(--line); background: rgba(247,245,239,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
@supports not (backdrop-filter: blur(1px)) { .site-head.scrolled { background: var(--paper); } }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; object-fit: contain; }
.brand-name { display: block; font: 800 23px/24px var(--display); color: var(--brand); letter-spacing: -0.02em; }
.brand-tagline { display: block; font: 500 11px/14px var(--body); color: var(--muted); letter-spacing: .02em; margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; line-height: 28px; }
.nav a:hover { color: var(--brand); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signin { display: block; text-decoration: none; font-weight: 600; color: var(--brand); line-height: 28px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
/* Over a full-width photo at the top of the page, the header is see-through with light text until the page scrolls
   (or the phone menu opens). Browsers without :has() keep the solid header. */
body:has(.cover-top) .site-head:not(.scrolled):not(:has(.nav.open)) { background: transparent; }
body:has(.cover-top) .site-head:not(.scrolled):not(:has(.nav.open)) :is(.brand-name, .nav a, .signin, .menu-btn) { color: var(--white); }
body:has(.cover-top) .site-head:not(.scrolled):not(:has(.nav.open)) .brand-tagline { color: rgba(255,255,255,.75); }
body:has(.cover-top) .site-head:not(.scrolled):not(:has(.nav.open)) .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-light); }
/* Get the app: pointing at the link shows the QR code. */
.app-pop { position: relative; }
.app-pop::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 18px; }
.app-pop-card { position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 0; width: 184px; padding: 16px 16px 12px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow); text-align: center; font-size: .8rem; color: var(--muted);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.app-pop-card::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: var(--white); transform: translateX(-50%) rotate(45deg); }
.app-pop-card img { width: 140px; height: 140px; margin: 0 auto 8px; }
.app-pop:hover .app-pop-card, .app-pop:focus-within .app-pop-card { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 1024px) { .app-pop { display: none; } }
@media (pointer: coarse) { .app-pop-card { display: none; } }
@media (max-width: 860px) {
    .nav, .head-actions .signin { display: none; }
    .head-actions .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
    .head-actions { margin-left: auto; }
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
    .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
    .nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
}

/* ---------- full-width photo sections (.cover) ---------- */
/* A sharp photo across the whole width under a deep green-black veil: darker on the left where the white text sits,
   lighter on the right where the people and cattle are. .cover-top slides under the header, which turns see-through
   over it. The photo settles from a slight zoom as the page opens. */
.cover { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--night); }
.cover-photo { position: absolute; inset: 0; z-index: -2; background: var(--photo) var(--photo-pos, center) / cover no-repeat; animation: settle 18s cubic-bezier(.2,.6,.2,1) both; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(var(--night-rgb),.55) 0, rgba(var(--night-rgb),0) 180px),
        linear-gradient(90deg, rgba(var(--night-rgb),.84) 0, rgba(var(--night-rgb),.58) 48%, rgba(var(--night-rgb),.12) 100%); }
.cover-top { margin-top: -72px; padding-top: 72px; }
.cover h1, .cover h2 { color: var(--white); }
.cover .lead, .cover p { color: rgba(255,255,255,.86); }
.cover .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); }
.cover .eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.cover .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.cover .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.photo-rancher { --photo: url(/assets/img/cover-rancher.webp); --photo-pos: 70% 35%; }
.photo-herd { --photo: url(/assets/img/cover-herd.webp); --photo-pos: center 60%; }
.photo-calves { --photo: url(/assets/img/cover-calves.webp); --photo-pos: center 65%; }
.photo-angus { --photo: url(/assets/img/cover-angus.webp); --photo-pos: center 40%; }
.photo-hereford { --photo: url(/assets/img/cover-hereford.webp); --photo-pos: center 45%; }
@media (max-width: 860px) {
    .photo-rancher { --photo: url(/assets/img/cover-rancher-960.webp); --photo-pos: 78% center; }
    .photo-herd { --photo: url(/assets/img/cover-herd-960.webp); }
    .photo-calves { --photo: url(/assets/img/cover-calves-960.webp); }
    .photo-angus { --photo: url(/assets/img/cover-angus-960.webp); --photo-pos: 75% center; }
    .photo-hereford { --photo: url(/assets/img/cover-hereford-960.webp); --photo-pos: 70% center; }
    .cover::before { background: rgba(var(--night-rgb),.66); }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
/* Fills the first screen; the product screenshot below rises over its bottom edge. */
.hero { min-height: clamp(680px, 100svh, 1060px); display: flex; align-items: center; padding-bottom: 200px; }
.hero-copy { padding-top: 64px; }
.hero-copy > * { max-width: 760px; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }
.hero-copy > :nth-child(6) { animation-delay: .38s; }
.hero-copy > :nth-child(7) { animation-delay: .44s; }
/* What's new, above the eyebrow: a frosted pill that jumps to its section. */
.news { display: flex; width: fit-content; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--white); font-size: .95rem; font-weight: 600; line-height: 1.3;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: background .2s, border-color .2s; }
.news:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.news b { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--gold-light); color: var(--night); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.news svg { flex-shrink: 0; width: 16px; height: 16px; transition: transform .2s; }
.news:hover svg { transform: translateX(3px); }
.hero-copy h1 { max-width: 900px; margin: 18px 0 22px; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.04; }
.hero-copy h1 em { font-style: normal; color: var(--gold-light); }
.hero-copy .lead { max-width: 640px; font-size: 1.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.fineprint { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--muted); }
.cover .fineprint { color: rgba(255,255,255,.78); }
.fineprint span { display: inline-flex; align-items: center; gap: 6px; }
.fineprint svg { width: 18px; height: 18px; color: var(--brand); }
.cover .fineprint svg { color: var(--gold-light); }
/* The phone app, as a frosted strip under the buttons: scan the code on a computer, tap a badge on a phone. */
.get-app { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; padding: 12px 18px 12px 12px; border-radius: 18px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.get-app-qr { width: 92px; height: 92px; flex-shrink: 0; padding: 4px; border-radius: 10px; background: var(--white); image-rendering: pixelated; transition: transform .2s; }
.get-app-qr:hover { transform: scale(1.6); }
.get-app { position: relative; transition: background .2s, border-color .2s; }
.get-app:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.get-app-body { display: grid; gap: 2px; text-decoration: none; }
/* The whole card opens the install page; the badges sit above it and go straight to their store. */
.get-app-body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.get-app-qr-link, .store-badges { position: relative; z-index: 1; flex-shrink: 0; line-height: 0; }
.get-app:hover .get-app-body strong { text-decoration: underline; text-underline-offset: 3px; }
.get-app-body strong { font: 700 1.1rem/1.2 var(--display); color: var(--white); }
.get-app-hint { font-size: .86rem; color: rgba(255,255,255,.75); }
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badges img { height: 40px; width: auto; }
/* On a phone or tablet there is nothing to scan: the badges link straight to the store. */
@media (max-width: 860px), (pointer: coarse) {
    .get-app-qr-link, .get-app-hint { display: none; }
}
.showcase { position: relative; margin-top: -150px; }
.hero-shot { position: relative; animation: rise 1s .45s cubic-bezier(.2,.7,.2,1) both; }
.browser { border-radius: 14px 14px 0 0; overflow: hidden; background: var(--white); box-shadow: 0 40px 100px rgba(13,20,16,.35), 0 2px 6px rgba(13,20,16,.12); border: 1px solid var(--line); border-bottom: 0; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #EFEDE6; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D0C6; }
.browser-bar span { margin-left: 14px; font-size: .75rem; color: var(--muted); background: var(--white); padding: 3px 12px; border-radius: 6px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1440 / 760; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 2%; bottom: 28px; width: clamp(150px, 20%, 230px); border-radius: 34px; padding: 9px; background: #121614; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.phone img, .phone video { border-radius: 26px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--paper); }
@media (max-width: 860px) {
    .hero { min-height: 0; padding-bottom: 48px; }
    .hero-copy { padding-top: 40px; }
    .get-app { display: flex; padding: 14px 16px; }
    .showcase { margin-top: 0; padding-top: 32px; }
    .hero-shot .browser { display: none; }
    .hero-shot .phone { position: relative; right: auto; bottom: auto; margin: 0 auto 40px; width: min(280px, 72%); }
}

/* ---------- proof strip ---------- */
.proof { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { display: flex; gap: 12px; align-items: flex-start; padding: 26px 22px; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.proof-item strong { display: block; font-weight: 700; }
.proof-item span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 960px) { .proof-row { grid-template-columns: 1fr 1fr; } .proof-item:nth-child(3) { border-left: 0; } .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) {
    .head-row { gap: 10px; }
    .site-head .brand { gap: 8px; }
    .site-head .brand img { width: 38px; height: 38px; border-radius: 9px; }
    .site-head .brand-name { font-size: 1.25rem; }
    .site-head .brand-tagline { max-width: 154px; font-size: .65rem; letter-spacing: 0; }
    .head-actions .btn { padding: 0 12px; font-size: .85rem; }
}
@media (max-width: 359px) {
    .head-row { gap: 6px; }
    .site-head .brand-tagline { max-width: 126px; }
    .head-actions .btn { padding: 0 9px; font-size: .8rem; }
    .menu-btn { width: 34px; }
}
@media (max-width: 560px) { .proof-row { grid-template-columns: 1fr; } .proof-item + .proof-item { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin: 12px 0 14px; }
@media (max-width: 720px) { section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* demo */
.demo-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.demo-video { position: relative; width: 300px; margin-inline: auto; border-radius: 40px; padding: 10px; background: #121614; box-shadow: var(--shadow); }
/* video player: the how-to recordings in a phone screen, with captions drawn on top (the browser's own captions are
   sized for a TV and run past a phone-width frame) and a small play/pause button instead of the full control bar. */
.player { position: relative; border-radius: 31px; overflow: hidden; background: var(--paper); isolation: isolate; }
.player video { width: 100%; aspect-ratio: 720 / 1558; object-fit: cover; cursor: pointer; }
.player .cap { position: absolute; inset-inline: 12px; bottom: 22px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto;
    padding: 7px 13px 8px; border-radius: 12px; background: rgba(18,22,20,.8); color: #fff; font: 600 .8rem/1.38 var(--body); letter-spacing: .005em;
    text-align: center; text-wrap: balance; box-shadow: 0 6px 18px rgba(0,0,0,.18); pointer-events: none;
    opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
@supports (backdrop-filter: blur(1px)) { .player .cap { background: rgba(18,22,20,.68); backdrop-filter: blur(8px) saturate(1.3); -webkit-backdrop-filter: blur(8px) saturate(1.3); } }
.player .cap.on { opacity: 1; transform: none; }
.vp-toggle { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; padding: 0;
    display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 10px 28px rgba(117,70,0,.4); cursor: pointer;
    transition: opacity .2s, transform .2s; }
.vp-toggle svg { width: 28px; height: 28px; grid-area: 1 / 1; }
.vp-toggle .i-pause, .player.playing .vp-toggle .i-play { display: none; }
.player.playing .vp-toggle .i-pause { display: block; }
.player.playing .vp-toggle { opacity: 0; transform: scale(.8); pointer-events: none; }
.player.playing:hover .vp-toggle, .player.playing .vp-toggle:focus-visible { opacity: .92; transform: none; pointer-events: auto; background: rgba(18,22,20,.6); box-shadow: none; }
.vp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(31,36,33,.08); pointer-events: none; }
.vp-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--brand); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); background: var(--brand-soft); color: var(--brand); }
.steps li strong { display: block; font-weight: 700; }
.steps li span { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } .demo-video { width: min(280px, 80%); } }

/* scenarios */
.scenario { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; padding: 48px 0; }
.scenario + .scenario { border-top: 1px solid var(--line); }
.scenario.flip .scenario-media { order: 2; }
.scenario-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 10px 0 18px; }
.pah { display: grid; gap: 14px; margin: 0; }
.pah div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.pah dt { font: 700 .78rem/1.9 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pah dd { margin: 0; }
.pah div:last-child dd { font-weight: 600; color: var(--brand-deep); }
.scenario-media { position: relative; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
.shot img { width: 100%; height: auto; }
.shot.phone-shot { width: min(300px, 70%); margin-inline: auto; border-radius: 34px; border: 9px solid #121614; }
.caption { margin-top: 14px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.caption::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
@media (max-width: 860px) { .scenario { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; } .scenario.flip .scenario-media { order: 0; } .pah div { grid-template-columns: 1fr; gap: 2px; } }

/* offline band */
.band { background: var(--brand-deep); color: #FBF5EB; }
.band h2, .band h3 { color: var(--white); }
.band .eyebrow { color: #E2B95A; }
.band .lead { color: #EEDCC3; }
.offline-grid { display: grid; grid-template-columns: 1fr 360px; gap: 72px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.facts li { display: flex; gap: 12px; }
.facts svg { flex: 0 0 auto; width: 22px; height: 22px; color: #E2B95A; margin-top: 3px; }
.band .shot { border-color: rgba(255,255,255,.08); }
@media (max-width: 860px) { .offline-grid { grid-template-columns: 1fr; gap: 40px; } }
.band .textlink { color: #E2B95A; }

/* readers and scales: the devices on the left, linked to a drawn phone that shows what they sent */
.devices { scroll-margin-top: 72px; }
.devices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.devices-brands { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .95rem; color: #EEDCC3; }
@media (max-width: 860px) { .devices-grid { grid-template-columns: 1fr; gap: 40px; } }
.rig { --rig-line: rgba(237,185,92,.55); --rig-card: rgba(255,255,255,.08); --rig-card-line: rgba(255,255,255,.18); --rig-text: #FBF5EB; --rig-sub: #E2B95A;
    display: grid; grid-template-columns: minmax(0, 250px) auto; justify-content: center; align-items: center; gap: 44px; }
.rig-light { --rig-line: rgba(160,96,0,.45); --rig-card: var(--white); --rig-card-line: var(--line); --rig-text: var(--ink); --rig-sub: var(--gold-text); }
.rig-devices { display: grid; gap: 22px; }
.rig-device { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--rig-card); border: 1px solid var(--rig-card-line); color: var(--rig-text); }
.rig-light .rig-device { box-shadow: var(--shadow); }
.rig-device svg { flex-shrink: 0; width: 34px; height: 34px; color: var(--rig-sub); }
.rig-device strong { display: block; font-weight: 700; line-height: 1.2; }
.rig-device span { font-size: .85rem; font-weight: 600; color: var(--rig-sub); }
/* The link to the phone: a dashed line with a dot travelling along it. */
.rig-device::before { content: ""; position: absolute; left: 100%; top: 50%; width: 44px; border-top: 2px dashed var(--rig-line); }
.rig-device::after { content: ""; position: absolute; left: 100%; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--rig-sub); animation: rig-send 1.8s ease-in-out infinite; }
.rig-device + .rig-device::after { animation-delay: .9s; }
@keyframes rig-send { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(36px); opacity: 0; } }
.rig-phone { width: 230px; padding: 9px; border-radius: 34px; background: #121614; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.rig-screen { display: grid; gap: 10px; padding: 22px 14px 16px; border-radius: 26px; background: var(--paper); color: var(--ink); text-align: center; }
.rig-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rig-scan { display: grid; gap: 2px; padding: 8px; border-radius: 10px; border: 2px solid var(--brand); background: var(--white); }
.rig-scan small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.rig-scan b { font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rig-animal { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.rig-tag { padding: 1px 8px; border-radius: 6px; background: #F2C230; color: var(--ink); font-weight: 800; }
.rig-weight { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 4px; }
.rig-weight b { font: 800 3.2rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rig-weight i { font-style: normal; font-weight: 700; color: var(--muted); }
.rig-stable { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: center; padding: 4px 12px; border-radius: 999px; background: #E3F1E4; color: #1E6B2E; font-size: .82rem; font-weight: 700; }
.rig-stable svg { width: 16px; height: 16px; }
.rig-save { margin-top: 6px; padding: 10px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: .88rem; font-weight: 600; }
/* On a narrow screen the devices sit side by side above the phone, linked downwards. */
@media (max-width: 560px) {
    .rig { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
    .rig-devices { grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
    .rig-device { flex-direction: column; text-align: center; gap: 6px; padding: 12px 8px; }
    .rig-device::before { left: 50%; top: 100%; width: 0; height: 36px; border-top: 0; border-left: 2px dashed var(--rig-line); }
    .rig-device::after { left: calc(50% - 3px); top: 100%; animation-name: rig-send-down; }
    .rig-phone { width: min(230px, 72%); }
}
@keyframes rig-send-down { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(28px); opacity: 0; } }

/* cycle */
.cycle-grid { display: grid; grid-template-columns: 480px 1fr; gap: 72px; align-items: center; }
.cycle svg { width: 100%; height: auto; }
.cycle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: 28px; }
.cycle-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.cycle-list strong { display: block; }
.cycle-list span { font-size: .93rem; color: var(--muted); }
@media (max-width: 960px) { .cycle-grid { grid-template-columns: 1fr; gap: 32px; } .cycle { max-width: 420px; margin-inline: auto; } }
@media (max-width: 560px) { .cycle-list { grid-template-columns: 1fr; } }

/* seedstock */
.seed { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seed-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.textlink { display: inline-flex; gap: 6px; align-items: center; margin-top: 22px; font-weight: 600; color: var(--brand); text-decoration: none; }
.textlink:hover { text-decoration: underline; }
@media (max-width: 860px) { .seed-grid { grid-template-columns: 1fr; gap: 32px; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 72px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--body); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* final cta: one line and two buttons over a wide photo of the herd */
.final-band { padding: clamp(104px, 14vw, 176px) 0; text-align: center; }
.final-band::before { background: rgba(var(--night-rgb),.6); }
.final-inner { max-width: 780px; }
.final-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.final-band p { max-width: 600px; margin: 18px auto 0; font-size: 1.15rem; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink); }
.foot-grid a:hover { color: var(--brand); text-decoration: underline; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; }
.placeholder { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--gold); }
.page-hero { padding: 72px 0 40px; background: radial-gradient(900px 380px at 90% 0%, var(--brand-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin: 12px 0 16px; max-width: 820px; }
.page-hero .lead { max-width: 720px; }
/* Features and About open on a full-width photo, the title low on it. */
.page-cover { min-height: clamp(440px, 64vh, 640px); display: flex; align-items: flex-end; padding-bottom: 72px; }
.page-cover .wrap > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.page-cover .wrap > :nth-child(2) { animation-delay: .08s; }
.page-cover .wrap > :nth-child(3) { animation-delay: .16s; }
.page-cover h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); letter-spacing: -0.03em; margin: 14px 0 18px; max-width: 880px; }
.page-cover .lead { max-width: 700px; }
@media (max-width: 860px) { .page-cover { min-height: 400px; padding-bottom: 44px; } }
/* Sections fade up as they come into view (site.js adds .reveal; nothing is hidden without it). */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* Install page: one card per store, each with its own QR code, link and buttons. */
.install-page { padding: 56px 0 96px; }
.install-intro { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.install-intro h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 12px 0 14px; }
.install-intro .lead { max-width: 760px; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.install-card { min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.install-card-head { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.install-card-head > a { flex-shrink: 0; }
.install-card-head h2 { font-size: 1.3rem; font-weight: 700; }
.install-card-head p { margin: 0; line-height: 1.3; }
.install-badge { display: block; height: 54px; width: auto; }
.install-qr { display: grid; place-items: center; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.install-qr img { display: block; width: 240px; max-width: 100%; height: auto; background: var(--white); image-rendering: pixelated; }
.install-url { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: var(--paper); font-size: .875rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.install-url:hover { border-color: var(--brand); }
.install-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
@media (max-width: 1050px) { .install-card-head { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 700px) {
    .install-page { padding: 32px 0 64px; }
    .install-grid { grid-template-columns: 1fr; gap: 20px; }
    .install-card { padding: 20px; }
    .install-card-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
/* On a phone or tablet there is nothing to scan or copy: only the two store buttons, large. */
.only-touch { display: none; }
@media (max-width: 700px), (pointer: coarse) {
    .only-pointer { display: none; }
    .only-touch { display: block; }
    .install-grid { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
    .install-card { gap: 0; }
    /* Badge and its two lines on one row, the same size in both cards: both badges share one height, and the text
       shrinks a little on a narrow phone so Google Play's wider badge still leaves it room. */
    .install-card-head { min-height: 0; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; }
    .install-card-head > div { min-width: 0; }
    .install-card-head h2 { font-size: clamp(12.5px, 4.5vw, 22px); white-space: nowrap; }
    .install-card-head p { font-size: clamp(10.5px, 3.4vw, 16px); white-space: nowrap; }
    /* Apple's badge is 3.0:1 and Google's 3.36:1; both are drawn in the same 3:1 box so the black parts match exactly. */
    .install-card-head { --badge-h: clamp(36px, 12.3vw, 54px); }
    .install-badge { height: var(--badge-h); width: calc(var(--badge-h) * 3); object-fit: fill; }
}
/* A very narrow screen (a small split-screen window, say): the badge above its two lines instead of beside them. */
@media (max-width: 339px) {
    .install-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .install-card-head h2, .install-card-head p { white-space: normal; }
}
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(247,245,239,.96); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
/* Wide enough to read every link: wrap onto a second line rather than hide one off the edge. */
@media (min-width: 861px) { .subnav ul { flex-wrap: wrap; overflow-x: visible; column-gap: 2px; } }
/* Where it wraps, tighter rows, and the sections stop below the taller bar. */
@media (min-width: 861px) and (max-width: 1240px) {
    .subnav ul { padding: 4px 0; }
    .subnav ul a { padding: 8px 12px; }
    .feature, #more { scroll-margin-top: 180px !important; }
}
/* A phone scrolls the row: the right edge fades to show there is more, and the padding lets the last link clear the fade. */
@media (max-width: 860px) {
    .subnav ul { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
.subnav a { display: inline-block; padding: 14px 12px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--brand); border-bottom-color: var(--gold); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-media { order: 2; }
.feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 10px 0 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
/* Drawn cards for features with no screenshot (a pasture, the logbook). */
.mock { width: min(440px, 100%); margin-inline: auto; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-head strong { font: 700 1.2rem/1.2 var(--display); }
.mock-chip { padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--brand-deep); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mock-sub { margin: 4px 0 14px; font-size: .9rem; color: var(--muted); }
.mock-label { margin: 22px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.comp-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.comp-bar i, .comp-legend b { background: var(--brand); }
.comp-bar i:nth-child(2), .comp-legend .c2 { background: #E2B95A; }
.comp-bar i:nth-child(3), .comp-legend .c3 { background: #6F8F5B; }
.comp-bar i:nth-child(4), .comp-legend .c4 { background: #3E4A43; }
.comp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.comp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.comp-legend b { width: 10px; height: 10px; border-radius: 3px; }
.heat, .heat-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(160,96,0,var(--a)); border: 1px solid rgba(160,96,0,.12); }
.heat-months span { font-size: .62rem; text-align: center; color: var(--muted); }
.log { list-style: none; margin: 14px 0 0; padding: 0; }
.log li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.log b { display: block; font-size: .95rem; }
.log small { font-size: .82rem; color: var(--muted); }
.log em { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #EFEDE6; font-size: .76rem; }
.who { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 700; }
.who.w2 { background: #6F8F5B; }
.who.w3 { background: #3E4A43; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.also div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.also h3 { font-size: 1.1rem; margin-bottom: 6px; }
.also p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; } .feature.flip .feature-media { order: 0; } .also { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .also { grid-template-columns: 1fr 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.plan { border-radius: 20px; padding: 36px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.plan.main { border: 2px solid var(--brand); }
.plan .price { font: 800 3rem/1 var(--display); color: var(--brand-deep); }
.plan .price small { font: 500 1rem/1 var(--body); color: var(--muted); margin-left: 6px; }
.plan .ticks { margin: 0; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.tag-line { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); align-self: flex-start; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps-row div { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--line); }
.steps-row div::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--white); font: 700 1rem/1 var(--display); margin-bottom: 14px; }
.steps-row h3 { margin-bottom: 8px; }
.steps-row p { color: var(--muted); }
@media (max-width: 860px) { .plans, .steps-row { grid-template-columns: 1fr; } }

/* about and contact */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col > * { min-width: 0; }
.prose p + p { margin-top: 16px; }
.prose h2 { margin-bottom: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.contact-lines { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.contact-lines li { display: flex; gap: 10px; }
.contact-lines li > span { min-width: 0; overflow-wrap: anywhere; }
.contact-lines strong { min-width: 74px; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* legal and 404 */
.legal { max-width: 760px; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.notice { margin: 28px 0; padding: 18px 20px; border-radius: 12px; background: #FFF6DB; border: 1px solid #EBD89A; }
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { margin: 16px 0; }
.not-found .hero-ctas { justify-content: center; }

/* pricing plans */
.plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.currency { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.currency button { min-width: 64px; border: 0; background: none; font: 600 .9rem/1 var(--body); letter-spacing: .04em; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.currency button[aria-pressed="true"] { background: var(--brand); color: var(--white); box-shadow: 0 4px 12px rgba(160,96,0,.25); }
.plan-group + .plan-group { margin-top: 64px; }
.plan-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.plan-group-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 22px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 24px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--white); font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { font-size: 1.3rem; }
.plan-size { color: var(--gold-text); font-weight: 600; }
.plan-card .price { margin-top: 18px; font: 800 3rem/1 var(--display); letter-spacing: -0.03em; color: var(--brand-deep); }
.plan-card .price sup { font-size: .45em; vertical-align: top; position: relative; top: .35em; margin-right: 2px; }
.plan-card .price small { font: 500 .95rem/1 var(--body); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan-card .price-talk { font-size: 2.2rem; }
.plan-year { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.plan-card p { flex: 1; color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 12px; }
.plan-card .btn { margin-top: 14px; align-self: flex-start; }
html:not(.js) .currency { display: none; }
.small-print { margin-top: 18px; font-size: .88rem; }
.count-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.count-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.count-list dt { font-weight: 700; color: var(--muted); }
.count-list div:first-child dt { color: var(--brand); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } .count-list div { grid-template-columns: 1fr; gap: 2px; } }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.install-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 20px; }
.install-steps p { margin: 0 0 10px; }
.install-note { margin: 0; color: var(--muted); }
.install-start { margin-top: 20px; }
/* An iPhone/iPad or an Android device (app.html marks the page): that store only, as a badge to tap, nothing to scan. */
.on-ios .only-pointer, .on-android .only-pointer, .on-ios .for-android, .on-android .for-ios { display: none; }
.on-ios .only-touch, .on-android .only-touch { display: block; }
.on-ios .install-grid, .on-android .install-grid { grid-template-columns: 1fr; max-width: 560px; }
#ios { scroll-margin-top: 96px; }

/* ---------- how-to videos ---------- */
.howto-cover { min-height: clamp(380px, 52vh, 520px); }
.howto { padding-top: 56px; }
.howto-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.howto-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); font: 600 .92rem/1 var(--body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.howto-filter span { font-size: .78rem; padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.howto-filter:hover { border-color: var(--brand); }
.howto-filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.howto-filter[aria-pressed="true"] span { background: rgba(255,255,255,.22); color: var(--white); }
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1040px) { .howto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .howto-grid { grid-template-columns: 1fr; gap: 22px; } }
.howto-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(31,36,33,.04); transition: box-shadow .25s, transform .25s; scroll-margin-top: 96px; }
.howto-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.howto-card[hidden] { display: none; }
/* The phone peeks up out of a warm panel; its screen is the app at work in that video. */
.howto-thumb { position: relative; display: block; width: 100%; height: 300px; padding: 30px 0 0; border: 0; cursor: pointer; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #FFF8EC 0%, var(--gold-soft) 55%, #EAD7B5 100%); }
.howto-phone { display: block; width: 58%; max-width: 220px; margin: 0 auto; border-radius: 30px 30px 0 0; border: 8px solid #121614; border-bottom: 0;
    overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px rgba(117,70,0,.22); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.howto-phone img { width: 100%; height: auto; }
.howto-card:hover .howto-phone, .howto-thumb:focus-visible .howto-phone { transform: translateY(-8px); }
.howto-play { position: absolute; left: 50%; top: 52%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: var(--white); box-shadow: 0 10px 26px rgba(117,70,0,.45), 0 0 0 6px rgba(255,255,255,.55); transition: transform .2s; }
.howto-play svg { width: 26px; height: 26px; } /* the path is already centred by its weight, not its box */
.howto-card:hover .howto-play { transform: scale(1.08); }
.howto-time { position: absolute; right: 14px; bottom: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(18,22,20,.78); color: var(--white); font: 600 .78rem/1 var(--body); }
.howto-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.howto-cat { align-self: flex-start; font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.howto-body h3 { font-size: 1.35rem; }
.howto-body p { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.howto-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: hs; display: grid; gap: 6px; }
.howto-steps li { counter-increment: hs; position: relative; padding-left: 30px; font-size: .9rem; line-height: 1.45; color: var(--ink); }
.howto-steps li::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font: 700 .72rem/1 var(--body); }
/* A card stays simple: title and one line. Its steps are only for the player window, which shows them beside the video. */
.howto-card .howto-steps { display: none; }

/* the player */
.howto-modal { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--paper);
    color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.45); overflow: auto; }
.howto-modal::backdrop { background: rgba(13,20,16,.72); backdrop-filter: blur(4px); }
.howto-modal[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
.howto-modal-inner { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 44px; padding: 36px 44px 36px 36px; align-items: center; }
.howto-stage .demo-video { width: 320px; }
.howto-side h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 22px; }
.howto-live li { padding: 9px 12px 9px 42px; border-radius: 12px; font-size: .98rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.howto-live li::before { left: 12px; top: 9px; width: 22px; height: 22px; }
.howto-live li:hover { background: rgba(160,96,0,.06); }
.howto-live li.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(31,36,33,.06), 0 6px 18px rgba(31,36,33,.06); }
.howto-live li.on::before { background: var(--brand); color: var(--white); }
.howto-live li.done::before { background: var(--brand); color: var(--white); opacity: .45; }
.howto-nav { display: flex; gap: 10px; margin-top: 26px; }
/* Same width, and less room on the arrow's side: an arrow is lighter than a letter, so even padding looks lopsided. */
.howto-nav .btn { min-height: 42px; min-width: 128px; gap: 6px; font-size: .92rem; line-height: 1; }
.howto-nav .btn[data-step="-1"] { padding: 0 20px 0 14px; }
.howto-nav .btn[data-step="1"] { padding: 0 14px 0 20px; }
.howto-nav .btn svg { width: 18px; height: 18px; flex: none; }
.howto-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; z-index: 2;
    background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.howto-close svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
    .howto-modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .howto-modal-inner { grid-template-columns: 1fr; gap: 22px; padding: 60px 16px 28px; }
    .howto-stage .demo-video { width: min(280px, 72vw); }
    .howto-side h2 { margin-bottom: 14px; text-align: center; }
    .howto-side .howto-cat { display: block; text-align: center; }
    .howto-nav { justify-content: center; }
}
.demo-more { margin-top: 26px; }
@media (max-width: 640px) {
    /* One row that slides sideways, rather than four rows of buttons above the first video. */
    .howto-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .howto-filters::-webkit-scrollbar { display: none; }
    .howto-filter { flex: 0 0 auto; }
}
