/* Scout Recorder: landing page sections (base.css holds the shared design) */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 72% 45%, #3a5030 0%, transparent 70%),
    var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
  padding-top: calc(120px + env(safe-area-inset-top));
}
.hero__topo { color: color-mix(in srgb, var(--cream) 7%, transparent); }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: min(820px, calc(100svh - 170px));
  padding-bottom: 40px;
}
.hero__copy h1 { margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}
.hero__facts li { border-top: 1.5px solid var(--line-light); padding-top: 12px; }
.hero__facts strong { display: block; color: var(--cream); font-weight: 700; }

.hero__stage { position: relative; height: min(720px, 78svh); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shadow {
  position: absolute;
  left: 22%; right: 22%; bottom: 7%;
  height: 34px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
  filter: blur(6px);
  pointer-events: none;
}
.ticker {
  position: relative;
  border-top: 1.5px solid var(--line-light);
  background: var(--marigold);
  color: var(--forest-ink);
  overflow: hidden;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.005em;
}
.ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  animation: tick 38s linear infinite;
}
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

@media (max-width: 900px) {
  .hero { padding-top: calc(96px + env(safe-area-inset-top)); }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { height: 440px; order: -1; margin: -10px calc(-1 * var(--gutter)) 0; }
  .hero__facts { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .hero__facts li { padding-top: 10px; }
  .hero__facts strong { display: inline; margin-right: 4px; }
}

/* ---------- Chain (how it fits) ---------- */
.chain { padding: clamp(80px, 12vw, 150px) 0; background: var(--paper); }
.chain__row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr;
  align-items: center;
  margin: 64px auto 0;
  max-width: 1000px;
}
.chain__node { display: grid; justify-items: center; text-align: center; gap: 4px; }
.chain__node b { margin-top: 14px; font-size: 18px; color: var(--forest); }
.chain__node span { font-size: 14px; color: var(--text-soft); }
.chain__icon { height: 130px; width: auto; fill: var(--forest); overflow: visible; }
.chain__node--scout .chain__icon { height: 150px; filter: drop-shadow(0 14px 18px rgba(31, 42, 27, .3)); }
.chain__icon .fill-cream { fill: var(--cream); }
.chain__icon .stroke { fill: none; stroke: var(--forest); stroke-width: 9; stroke-linecap: round; }
.chain__icon .stroke--thin { stroke-width: 3; }
.fill-forest { fill: var(--forest); }
.fill-forest-deep { fill: var(--forest-deep); }
.fill-sand { fill: #e6dcc0; }
.fill-case { fill: #b1b5b5; }
.fill-gold { fill: var(--marigold); }
.chain__icon .ring { fill: #f4f4f1; }
.chain__icon .glow { fill: #9b6bff; filter: drop-shadow(0 0 6px #9b6bff); }
.chain__wire { position: relative; height: 4px; background: var(--forest); border-radius: 4px; margin: 0 -6px; }
.chain__label {
  position: absolute;
  left: 50%; top: -34px;
  translate: -50%;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--cedar);
  background: var(--paper);
  padding: 0 8px;
  white-space: nowrap;
}
.chain__pulse {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--marigold) 30%, transparent);
  animation: travel 2.4s var(--ease) infinite;
}
.chain__pulse--b { animation-delay: 1.2s; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chain__pulse { animation: none; left: 50%; } }

.channels {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--forest);
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  font-size: 15px;
  line-height: 1.45;
}
.channels b { color: var(--cream); }
.channels__ch { display: flex; gap: 14px; align-items: flex-start; }
.channels__tag {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--marigold);
  color: var(--forest-ink);
  font-weight: 900;
}
.channels__tag--r { background: var(--vermilion); color: var(--cream); }
.channels__wave { height: 96px; }
.channels__wave canvas { width: 100%; height: 100%; display: block; }

@media (max-width: 760px) {
  .chain__row { grid-template-columns: 1fr; gap: 0; justify-items: center; margin-top: 40px; }
  .chain__wire { width: 4px; height: 70px; margin: 14px 0; }
  .chain__label { top: 50%; left: 18px; translate: 0 -50%; }
  .chain__pulse { left: 50%; margin-left: -6px; animation-name: travel-y; }
  @keyframes travel-y { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
  .chain__icon { height: 100px; }
  .chain__node--scout .chain__icon { height: 116px; }
  .channels { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; padding: 22px; }
  .channels__wave { height: 70px; order: -1; }
}

/* ---------- Who it's for ---------- */
.who {
  position: relative;
  background: var(--forest-deep);
  color: var(--cream);
  padding: clamp(80px, 11vw, 140px) 0;
  overflow: hidden;
}
.who__topo { color: color-mix(in srgb, var(--cream) 6%, transparent); }
.who__inner { position: relative; }
.who__lead {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  margin-top: 56px;
  padding: clamp(26px, 4vw, 44px);
  background: color-mix(in srgb, var(--cream) 7%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--marigold) 45%, transparent);
}
.who__lead.rec h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 16px; }
.who__lead .who__lead-main > p:last-child { font-size: 18px; line-height: 1.55; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.who__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.who__points li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}
.who__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--marigold);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 36%, transparent 58%, #000 60%);
          mask: radial-gradient(circle, #000 34%, transparent 36%, transparent 58%, #000 60%);
}
.who__points b { color: var(--cream); }
.who__points .who__consent { padding-left: 0; margin-top: 4px; font-size: 13.5px; font-style: italic; color: color-mix(in srgb, var(--cream) 55%, transparent); }
.who__points .who__consent::before { display: none; }
.who__also {
  margin: 48px 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.who__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 36px;
}
/* Each card reads like a row in the app's Recordings list */
.rec {
  padding: 22px 24px 26px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-light);
  transition: background .3s, transform .3s var(--ease);
}
.who__lead:hover { background: color-mix(in srgb, var(--cream) 9%, transparent); }
.rec__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
}
.rec__title span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec__title span::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--vermilion);
  vertical-align: 1px;
}
.rec__title time { font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--cream) 45%, transparent); }
.rec__title.is-live time { color: var(--cream); }
.rec__title.is-live span::before { animation: rec-pulse 1.6s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec__title.is-live span::before { animation: none; } }
.rec h3 { font-size: 21px; letter-spacing: -.02em; color: var(--marigold); margin-bottom: 8px; }
.rec.rec--small { padding: 0; background: none; box-shadow: none; }
.rec--small .rec__title { font-size: 12.5px; padding-bottom: 10px; margin-bottom: 12px; }
.rec--small h3 { font-size: 17px; color: var(--cream); margin-bottom: 4px; }
.rec--small p:last-child { font-size: 14px; }
.rec p:last-child { font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--cream) 75%, transparent); }
@media (max-width: 1000px) { .who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .who__lead { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; } }
@media (max-width: 560px) { .who__list { grid-template-columns: 1fr; } }

/* ---------- Split head ---------- */
.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.split-head__aside { max-width: 26em; color: var(--text-soft); font-size: 18px; }
@media (max-width: 860px) { .split-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; } }

/* ---------- Standalone ---------- */
.solo { padding: clamp(80px, 12vw, 150px) 0; background: var(--cream); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.badge { min-width: 0; }
.badge h3 { font-size: 20px; letter-spacing: -.02em; color: var(--forest); margin: 18px 0 8px; }
.badge p { font-size: 15px; color: var(--text-soft); line-height: 1.5; }
/* Icon tile: Lucide icon in the tile's colour on a soft tint */
.badge__patch {
  --c: var(--forest);
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c);
}
.badge__patch svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge__patch--purple { --c: #6b4fb0; }
.badge__patch--gold { --c: #a98318; }
.badge__patch--forest { --c: var(--forest); }
.badge__patch--cedar { --c: var(--cedar); }
.badge__patch--sand { --c: #6f6a43; }
.badge__patch--vermilion { --c: var(--vermilion); }

@media (max-width: 900px) { .badges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .badges { grid-template-columns: 1fr; gap: 28px; }
  .badge { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; }
  .badge__patch { width: 48px; height: 48px; grid-row: span 2; }
  .badge__patch svg { width: 24px; height: 24px; }
  .badge h3 { margin: 4px 0 6px; font-size: 18px; }
}

/* ---------- App ---------- */
.app {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  padding: clamp(80px, 11vw, 140px) 0;
  overflow: hidden;
}
.app__topo { color: color-mix(in srgb, var(--cream) 6%, transparent); }
.app__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app__stage { position: relative; height: min(780px, 90svh); }
.app__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.app__stage::after {
  content: "";
  position: absolute;
  left: 30%; right: 30%; bottom: 6%;
  height: 30px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent);
  filter: blur(8px);
  pointer-events: none;
}
.app__fallback {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 52%;
  border-radius: 34px;
  border: 8px solid #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.has-webgl .app__fallback { display: none; }
.app__copy .lede { margin-top: 24px; }
.feats {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.feats b { grid-column: 2; font-size: 16px; color: var(--marigold); letter-spacing: -.01em; }
.feats span { grid-column: 2; }
.feats svg { grid-row: 1 / span 2; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--marigold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feats span { color: color-mix(in srgb, var(--cream) 72%, transparent); }
@media (max-width: 900px) {
  .app__grid { grid-template-columns: 1fr; }
  .app__stage { height: 560px; margin: -20px calc(-1 * var(--gutter)) 0; }
}
@media (max-width: 540px) {
  .feats { grid-template-columns: 1fr; gap: 16px; }
  .app__stage { height: 480px; }
}

/* ---------- Privacy ---------- */
.privacy { padding: clamp(80px, 12vw, 150px) 0; background: var(--paper); }
.privacy__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.privacy__mascot { width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(116, 73, 35, .2)); }
.privacy__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.privacy__cols p { font-size: 15px; color: var(--text-soft); line-height: 1.5; border-top: 2px solid var(--forest); padding-top: 14px; }
.privacy__cols b { display: block; color: var(--forest); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .privacy__grid { grid-template-columns: 1fr; gap: 24px; }
  .privacy__mascot { max-width: 260px; }
  .privacy__cols { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Notify ---------- */
.notify {
  position: relative;
  background: var(--cream);
  padding: clamp(80px, 11vw, 140px) 0;
  overflow: hidden;
}
.notify__topo { color: color-mix(in srgb, var(--forest) 9%, transparent); }
.notify__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.notify__mascot { width: clamp(160px, 22vw, 300px); }
.notify .lede { margin: 22px 0 34px; }
.display--dark { color: var(--forest); }
.display--dark em { color: var(--cedar); }
.lede--dark { color: var(--text-soft); }
@media (max-width: 760px) { .notify__inner { grid-template-columns: 1fr; gap: 20px; } .notify__mascot { width: 150px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
