/* landing_chrome.css — the shell every public marketing page wears.
 *
 * Lifted out of index.html when the Partners page arrived. Two pages carrying
 * the same top bar is exactly how a nav entry ends up on one of them and not
 * the other, so the markup lives in partials/landing_topbar.html and its
 * styles live here. Both are loaded by every page that opens with that bar.
 *
 * Scoped rules keep their body.landing-shell prefix: any page including the
 * partial sets that body class, and the prefix is what stops these paddings
 * from reaching the signed-in app shell.
 */

/* ═══════════════════════════════════════════════════════════════════
   LANDING REDESIGN — light-first marketing surface, dark "product
   stage" panels. Same brand greens, inverted roles: green is now the
   accent, not the ambient light.
   Scoped to body.landing-shell so it cleanly overrides style.css.
   ═══════════════════════════════════════════════════════════════════ */
body.landing-shell {
  --bg: #f5f9f6;
  --fg: #14251b;
  --muted: #4b6355;
  --accent: #0a9e4b;
  --accent-deep: #06763a;
  --line: rgba(16, 64, 40, 0.14);
  --line-strong: rgba(10, 158, 75, 0.4);
  --card: #ffffff;
  --card-border: #e2ebe4;
  background: var(--bg);
}
body.landing-shell main.page-content-root,
body.landing-shell .landing-main,
body.landing-shell main {
  background: var(--bg);
  padding: 0;
  margin: 0;
  max-width: 100%;
}
body.landing-shell h1, body.landing-shell h2, body.landing-shell h3 { color: var(--fg); }
body.landing-shell p, body.landing-shell label, body.landing-shell li,
body.landing-shell a, body.landing-shell summary, body.landing-shell small,
body.landing-shell span { color: var(--muted); }
body.landing-shell a:hover { color: var(--accent-deep); }

/* Dark "product stage" zones re-scope the tokens locally */
body.landing-shell .zone-dark {
  --fg: #f2fff6;
  --muted: #a8c7b3;
  --accent: #0aff63;
  --line: rgba(10, 255, 99, 0.22);
  --card: rgba(10, 30, 20, 0.6);
  --card-border: rgba(10, 255, 99, 0.16);
}
body.landing-shell .zone-dark h1, body.landing-shell .zone-dark h2,
body.landing-shell .zone-dark h3 { color: var(--fg); }
body.landing-shell .zone-dark p, body.landing-shell .zone-dark li,
body.landing-shell .zone-dark span, body.landing-shell .zone-dark small,
body.landing-shell .zone-dark a { color: var(--muted); }


/* The dark band a marketing page opens with. Shared because the Partners page
   opens with one too, and a second copy of this gradient is a second thing to
   forget when the brand shifts. */
/* ── Hero (dark stage) ── */
.hero-zone {
  background:
    radial-gradient(ellipse at 12% -18%, rgba(16, 120, 66, 0.4), transparent 52%),
    radial-gradient(ellipse at 88% 0%, rgba(9, 70, 40, 0.35), transparent 46%),
    linear-gradient(168deg, #0b2318 0%, #0a1f15 55%, #081a12 100%);
  border-bottom: 1px solid rgba(10, 255, 99, 0.12);
}

/* Shared section wrap */
.landing-wrap { width: min(1180px, 92vw); margin: 0 auto; }
body.landing-shell .landing-section { margin: 0; padding: clamp(48px, 7vw, 84px) 0 0; }
body.landing-shell .landing-section:last-of-type { padding-bottom: clamp(48px, 7vw, 84px); }
.section-kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px;
}
body.landing-shell .landing-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em;
  margin-bottom: 10px; font-weight: 800;
}
.section-lede { font-size: .95rem; line-height: 1.6; max-width: 68ch; margin: 0 0 26px; }

/* ── Top bar ── */
.landing-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--card-border);
  position: sticky; top: 0; z-index: 200; backdrop-filter: blur(12px);
}
.topbar-brand img { height: 38px; width: auto; display: block; }
.topbar-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar-navlink {
  font-size: .84rem; font-weight: 600; color: #38513f; text-decoration: none;
  padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.topbar-navlink:hover { background: rgba(10, 158, 75, 0.08); color: #123222; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  font-size: .84rem; font-weight: 600; padding: 7px 16px; border-radius: 10px;
  text-decoration: none; transition: all .18s ease; white-space: nowrap;
}
.topbar-btn--ghost { color: #1f3a2b; border: 1px solid #d4e0d7; background: #ffffff; }
.topbar-btn--ghost:hover { border-color: var(--line-strong); background: #f4faf6; color: #123222; }
.topbar-btn--solid { color: #ffffff !important; background: var(--accent); border: 1px solid transparent; }
.topbar-btn--solid span { color: #ffffff !important; }
.topbar-btn--solid:hover { background: var(--accent-deep); color: #ffffff; }
.topbar-btn--ghost span { color: inherit; }
.lang-toggle { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 6px; border: none; cursor: pointer;
  background: transparent; color: #7b9184; transition: all .18s ease;
}
.lang-btn--active { color: var(--accent-deep); background: rgba(10, 158, 75, 0.1); }
.lang-btn:hover:not(.lang-btn--active) { color: #3c5647; }
.lang-sep { color: #c4d2c8; font-size: .85rem; margin: 0 1px; }
@media (max-width: 860px) { .topbar-nav { display: none; } }
/* Below ~480px the brand + auth buttons no longer fit on one line and the
   whole page inherits a horizontal scrollbar. Let the bar wrap instead. */
@media (max-width: 520px) {
  .landing-topbar { flex-wrap: wrap; row-gap: 8px; justify-content: center; }
  .topbar-right { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .topbar-btn { padding: 7px 12px; font-size: .82rem; }
}
