/* RanchPilot website. Pasture green and copper; Archivo headings, Inter text. Phone first. */
:root {
  --bg: #f7f4ee; --surface: #ffffff; --surface-2: #efebe3; --ink: #1b1f1d; --muted: #565e58; --line: #dcd6cb;
  --brand: #1f4d3a; --brand-strong: #173a2c; --brand-ink: #ffffff; --brand-soft: #e3ede7;
  --accent: #b5652f; --accent-soft: #f6e6da; --frame: #1b1f1d;
  --shadow: 0 1px 2px rgb(27 31 29 / .06), 0 12px 32px -12px rgb(27 31 29 / .22);
  --display: Archivo, system-ui, sans-serif; --text: Inter, system-ui, sans-serif;
  --wrap: 1120px; --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513; --surface: #1a201d; --surface-2: #212825; --ink: #edeae4; --muted: #a7afa9; --line: #323b36;
    --brand: #3f8a66; --brand-strong: #5aa883; --brand-ink: #0c120f; --brand-soft: #1c2e25;
    --accent: #d98a55; --accent-soft: #3a2619; --frame: #050706;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -14px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
@media (prefers-color-scheme: light) { a { color: var(--brand); } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px var(--display); letter-spacing: -0.01em; margin-right: auto; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.signin { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(260px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--brand-soft); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (min-width: 860px) {
  .nav, .signin { display: flex; }
  .menu { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font: 600 16px var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink) !important; }
.btn-primary:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #4d9a75; } }
.btn-ghost { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-text { color: var(--ink) !important; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.btn-text:hover { background: var(--surface-2); }

/* Labels */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--brand-soft); color: var(--brand-strong); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.tag-live { background: var(--brand-soft); color: var(--brand-strong); }
.tag-coming { background: var(--accent-soft); color: var(--accent); }
.eyebrow { font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-green { background: var(--brand-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 40px 0 56px; overflow: hidden; }
.hero .contour { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: var(--brand); opacity: .14; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); font-weight: 800; margin: 18px 0 18px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .actions .btn { flex: 0 0 auto; } }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand-strong); }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone-back { display: none; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-phones { justify-content: flex-end; padding-right: 24px; }
  .hero-phones > .phone:not(.phone-back) { position: relative; z-index: 1; }
  .hero-phones .phone-back { display: block; position: absolute; right: 270px; top: 56px; transform: rotate(-6deg); }
}

/* Phone frame around app screenshots */
.phone { width: min(300px, 78vw); flex: none; border-radius: 40px; padding: 9px; background: var(--frame); box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / .08); }
.phone img, .phone picture { border-radius: 31px; overflow: hidden; width: 100%; aspect-ratio: 390 / 844; background: var(--surface-2); }
.phone.sm { width: 240px; border-radius: 34px; padding: 8px; }
.phone.sm img { border-radius: 26px; }

/* Species strip */
.species { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.species li { font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.band .card { background: var(--bg); }
.card h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card .tag { margin-top: 2px; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.icon svg { width: 22px; height: 22px; }
.icon.copper { background: var(--accent-soft); color: var(--accent); }

/* "One app" stack */
.stack { display: grid; gap: 12px; }
.stack-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stack-row strong { display: block; font-family: var(--display); font-size: 17px; }
.stack-row span.sub { color: var(--muted); font-size: 14px; }
.stack-sum { border-radius: 16px; background: var(--brand); color: var(--brand-ink); padding: 20px; display: flex; gap: 14px; align-items: center; }
.stack-sum img { width: 44px; height: 44px; border-radius: 11px; }
.stack-sum strong { font: 800 20px var(--display); display: block; }
.stack-sum span { opacity: .85; font-size: 15px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 800 18px var(--display); color: var(--brand-strong); }
.steps h3 { font-size: 19px; margin: 2px 0 4px; }
.steps p { color: var(--muted); }

/* Screens gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 0 -16px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 240px; }
.gallery figcaption strong { display: block; color: var(--ink); font-family: var(--display); font-size: 17px; }
@media (min-width: 720px) { .gallery { margin: 0 -28px; padding: 8px 28px 24px; } }

/* Notice */
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15px; margin-top: 24px; }

/* Coming list */
.coming { display: grid; gap: 14px; }
@media (min-width: 760px) { .coming { grid-template-columns: 1fr 1fr; } }
.coming-group h3 { font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 8px 0 12px; }
.coming-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.coming-group li { background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 14px; padding: 14px 16px; }
.coming-group li strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 2px; }
.coming-group li span { color: var(--muted); font-size: 15px; }

/* Early access block */
.cta { background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: 44px 22px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta .contour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--brand-ink); opacity: .12; }
.cta h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.cta p { margin: 14px auto 0; max-width: 34em; font-size: 18px; opacity: .9; }
.cta .actions { justify-content: center; }
.cta .btn-light { background: var(--bg); color: var(--ink) !important; }
.cta .btn-light:hover { background: var(--surface); }
.cta .btn-outline { border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); color: var(--brand-ink) !important; background: transparent; }
.cta .btn-outline:hover { background: color-mix(in srgb, var(--brand-ink) 10%, transparent); }
.cta .fine { font-size: 14px; opacity: .8; margin-top: 18px; }
@media (min-width: 720px) { .cta { padding: 64px 48px; } }

/* Page header (inner pages) */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(36px, 7vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p.lead { margin-top: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.jump a:hover { border-color: var(--brand); }

/* Feature modules */
.module { display: grid; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-top: 14px; }
.module > div > p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; align-self: center; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--brand-strong); }
.ticks li.soon svg { color: var(--accent); }
.ticks .tag { margin-left: 6px; }
@media (min-width: 860px) { .module { grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 40px 0; } }

/* What's new */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 760px; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.timeline time { font-size: 14px; font-weight: 600; color: var(--accent); }
.timeline h2, .timeline h3 { font-size: 21px; font-weight: 700; margin: 6px 0 8px; }
.timeline p { color: var(--muted); }
.timeline p + p { margin-top: 10px; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font: 700 18px/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.foot { display: grid; gap: 28px; }
.foot .logo { font-size: 19px; }
.foot p { margin-top: 10px; max-width: 30em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot h2 { font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.fineprint { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1fr 1fr; } }

/* Greenbow Labs credit, as on the other Greenbow sites. The logo is drawn for dark backgrounds, so it sits on a dark badge in both themes. */
.fineprint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fineprint p { margin: 0; }
.site-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 100%; text-decoration: none; opacity: .8; transition: opacity .25s, filter .25s; }
.site-credit__label { color: var(--muted); font-size: 15px; }
.site-credit__badge { display: inline-flex; max-width: 100%; background: #111513; border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; }
.site-credit img { width: 430px; max-width: 100%; height: auto; } /* about 78px tall, 3x the first version */
.site-credit:hover, .site-credit:focus-visible { opacity: 1; filter: drop-shadow(0 0 10px rgba(120, 220, 60, .35)); }
.site-credit:hover .site-credit__label { color: var(--ink); }
