/* Canopy Scout — colours, type and layout, from the Canopy Scout Colours design system */
:root {
  --ground: #fbfbf9;
  --surface: #ffffff;
  --surface-soft: #f4f4f0;
  --sage: #eef0e9;
  --line: #ecebe6;
  --ink: #1d1d1b;
  --text-body: #4a4a46;
  --text-muted: #5f5f59;
  --text-caption: #6b6b65;
  --eucalyptus: #2e6b48;
  --on-brand: #ffffff;
  --field-border: #8f9286;
  --eucalyptus-bright: #56aa78;
  --night: #121411;
  --night-text: #f2f2ee;
  --night-muted: #b9bcb0;
  --canopy: #2a3326;
  --terrain-line: #8a8d82;
  --blackberry: #e834aa;
  --pick-yes: #2e8c54;
  --pick-no: #e2761c;
  --danger: #a3321f;
  --font-sans: "Geist", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--text-body); }
img, video { max-width: 100%; }

/* ---------- Shared header ---------- */
.cs-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.cs-nav { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.cs-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.cs-links a { text-decoration: none; color: var(--text-body); }
.cs-sec { min-height: 44px; display: inline-flex; align-items: center; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; color: var(--on-brand) !important; background: var(--eucalyptus); padding: 10px 18px; border-radius: 999px; font-weight: 500; white-space: nowrap; border: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.cs-btn:hover { background: #255a3c; }
.cs-btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); padding: 10px 20px; border-radius: 999px; font-weight: 500; font-family: inherit; font-size: inherit; cursor: pointer; }
.cs-btn-ghost:hover { background: var(--surface-soft); color: var(--ink); }
.cs-account-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Landing page (from the design) ---------- */
.cs-mobile-i { display: none; }
.cs-vid-m { display: none !important; }
.cs-grab { display: none; }
@media (max-width: 760px) {
  .cs-sec { display: none; }
  .cs-links { gap: 16px; }
  .cs-vidbox { border-radius: 20px !important; }
  .cs-grab { display: flex; }
  .cs-mapbox { aspect-ratio: 4 / 5 !important; border-radius: 20px !important; }
  .cs-hide-m { display: none; }
  .cs-mobile-i { display: inline; }
  .cs-jag { stroke-width: 4; } .cs-smooth { stroke-width: 6.5; }
  .cs-gums { aspect-ratio: 2.6 / 1 !important; border-radius: 18px !important; }
  .cs-gumimg { object-fit: fill !important; }
  .cs-vid-d { display: none !important; } .cs-vid-m { display: block !important; }
}
@keyframes cs-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes cs-hero { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cs-hero { animation: cs-hero .9s cubic-bezier(.2,.7,.2,1) both; }
.cs-hero.d2 { animation-delay: .12s; } .cs-hero.d3 { animation-delay: .24s; } .cs-hero.d4 { animation-delay: .36s; }
@supports (animation-timeline: view()) { .cs-reveal { animation: cs-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; } }
@media (prefers-reduced-motion: reduce) { .cs-hero, .cs-reveal { animation: none; } }

/* ---------- Account pages ---------- */
.cs-page { min-height: calc(100vh - 57px); display: flex; align-items: flex-start; justify-content: center; padding: clamp(48px, 10vw, 96px) 16px; }
.cs-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 6vw, 40px); }
.cs-card h1 { margin: 0; font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.cs-card p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--text-body); }
.cs-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.cs-form label { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.cs-input { width: 100%; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--field-border); background: var(--surface); font-family: inherit; font-size: 17px; color: var(--ink); }
.cs-input:focus { outline: 2px solid var(--eucalyptus); outline-offset: 2px; }
.cs-form .cs-btn { min-height: 52px; font-size: 17px; }
.cs-msg { margin-top: 16px; font-size: 15px; line-height: 1.5; padding: 14px 18px; border-radius: 16px; background: var(--sage); color: var(--ink); }
.cs-msg.err { background: #fbecea; color: var(--danger); }
.cs-status { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface-soft); }
.cs-status-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.cs-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.cs-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cs-pill.ok { background: #e2efe6; color: #1f5537; }
.cs-pill.warn { background: #fbeedf; color: #8a4510; }
.cs-pill.none { background: var(--line); color: var(--text-body); }
.cs-status-detail { font-size: 15px; color: var(--text-body); margin-top: 6px; }
.cs-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.cs-small { margin-top: 24px !important; font-size: 14px !important; color: var(--text-caption) !important; }
.cs-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--eucalyptus); text-decoration: underline; cursor: pointer; min-height: 44px; }
[hidden] { display: none !important; }

/* ---------- Scan a real map (Apple-style product section) ---------- */
.cs-scan { background: var(--night); color: var(--night-text); }
.cs-scan-in { max-width: 1120px; margin: 0 auto; padding: clamp(80px, 14vw, 160px) 24px; }
.cs-scan-head { max-width: 1040px; margin: 0 auto; text-align: center; }
.cs-eyebrow { margin: 0 0 14px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--eucalyptus-bright); }
.cs-scan-head h2 { margin: 0; font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.cs-scan-head h2 span { color: var(--night-muted); }
.cs-scan-intro { margin: 28px auto 0; max-width: 600px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; color: var(--night-muted); }
.cs-scan-grid { margin-top: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 340px); gap: clamp(40px, 6vw, 80px); justify-content: center; align-items: stretch; }
.cs-scan-map { min-width: 0; }
/* The stats column runs the full height of the map beside it. */
.cs-scan-stats { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cs-stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid rgba(242, 242, 238, 0.16); }
.cs-stat:first-child { border-top: 0; padding-top: 0; }
.cs-stat:last-child { padding-bottom: 0; }
.cs-stat-lbl { font-size: 15px; font-weight: 500; color: var(--night-muted); }
.cs-stat-num { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; color: var(--night-text); font-variant-numeric: tabular-nums; }
.cs-stat-green .cs-stat-num { color: var(--eucalyptus-bright); }
.cs-stat-unit { margin-left: 4px; font-size: 0.45em; letter-spacing: -0.01em; font-weight: 600; }
.cs-stat-sub { font-size: 15px; color: var(--night-muted); }
.cs-meter { height: 6px; margin-top: 4px; border-radius: 999px; background: rgba(242, 242, 238, 0.12); overflow: hidden; }
/* Chemical and flying time saved sit side by side as one row. */
.cs-stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px 0; border-top: 1px solid rgba(242, 242, 238, 0.16); }
.cs-stat-pair .cs-stat { padding: 0; border-top: 0; }
/* "How the flying time adds up" is the last section of the column. */
.cs-time { gap: 16px; }
.cs-time-h { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--night-text); }
.cs-time-bars { display: flex; flex-direction: column; gap: 16px; }
.cs-time-row { display: flex; flex-direction: column; gap: 8px; }
.cs-time-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--night-muted); }
.cs-time-val { font-weight: 600; color: var(--night-text); white-space: nowrap; }
.cs-time-bar { height: 8px; border-radius: 999px; }
.cs-time-key { font-size: 13px; line-height: 1.5; color: var(--night-muted); }
.cs-scan-fine { margin: clamp(48px, 7vw, 72px) auto 0; max-width: 760px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--terrain-line); }
@media (max-width: 900px) {
  .cs-scan-grid { grid-template-columns: minmax(0, 560px); gap: 8px; }
  .cs-scan-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .cs-stat, .cs-stat:first-child, .cs-stat:last-child { padding: 16px 0; border-top: 1px solid rgba(242, 242, 238, 0.16); }
  .cs-stat:nth-child(-n+2) { border-top: 0; }
  .cs-stat-pair, .cs-time { grid-column: 1 / -1; }
  .cs-stat-pair { padding: 16px 0; }
  .cs-stat-pair .cs-stat { padding: 0; border-top: 0; }
}
@media (max-width: 760px) {
  .cs-stat-num { font-size: 38px; }
  .cs-stat-lbl { font-size: 14px; }
}

/* "Get early access" button for the dark sections (Scan a real map, Over the canopy). */
.cs-cta-dark { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.cs-btn-bright { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--eucalyptus-bright); color: var(--night) !important; font-size: 17px; font-weight: 600; text-decoration: none; transition: background .2s; }
.cs-btn-bright:hover { background: #6cc08e; }
.cs-btn-bright:focus-visible { outline: 2px solid var(--night-text); outline-offset: 3px; }
