/* ==========================================================================
   GeekyBooks theme: design tokens, components, header, footer
   Loaded after css/style.css on every page.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #13261b;
  --body: #3b4f42;
  --muted: #5b6e61;          /* darkened from #687a6e to pass AA on white and --tint */
  --paper: #ffffff;
  --tint: #f4f8f2;
  --rule: #dde7d9;
  --green: #4caf50;          /* icons, check marks, active states */
  --green-d: #2e7d32;        /* green text and links */
  --green-xl: #e8f5e9;       /* icon tiles, green tag backgrounds */
  --amber: #8a5207;          /* darkened from #a8640a to pass AA on --amber-xl */
  --amber-xl: #fdf1dc;
  --night: #102419;          /* the single dark section (AI agents) */
  --btn: #66ac4c;            /* solid button colour */
  --radius-card: 18px;
  --radius-btn: 12px;
  --container: 1200px;
  --font-mono: "Plus Jakarta Sans", sans-serif;   /* one font only */
  --font-display: "Plus Jakarta Sans", sans-serif;
}

/* ---------- 2. Base ---------- */
body { color: var(--body); }

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Buttons ---------- */
.button-primary,
.button-primary-small {
  background-image: none;
  background-color: var(--btn);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(102, 172, 76, .55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.button-primary { padding: 16px 28px; }
.button-primary-small { padding: 11px 20px; }
.button-primary:hover,
.button-primary-small:hover { color: #fff; }

.button-secondary {
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-btn);
  font-weight: 700;
  box-shadow: none;
}

/* ---------- 4. Components (used by the section rebuilds) ---------- */
.gb-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; line-height: 1.4;
  padding: 3px 10px; border-radius: 99px;
  background: var(--green-xl); color: var(--green-d);
}
.gb-tag--amber { background: var(--amber-xl); color: var(--amber); }
.gb-tag--grey { background: #eef1ed; color: var(--muted); }

.gb-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: none;
}
.gb-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px -40px rgba(19, 38, 27, .45);
  overflow: hidden;
}
.gb-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
  font-size: 14px; font-weight: 700; color: var(--ink);
}

.gb-icon-tile {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-xl); color: var(--green-d);
}

.gb-rule-list { list-style: none; margin: 0; padding: 0; }
.gb-rule-list > li { border-top: 1px solid var(--rule); padding: 22px 0; }
.gb-rule-list > li:last-child { border-bottom: 1px solid var(--rule); }

.gb-check-list { list-style: none; margin: 0; padding: 0; }
.gb-check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 15px; }
.gb-check-list li::before {
  content: "check"; position: absolute; left: 0; top: 1px;
  font-family: "Material Symbols Outlined"; font-size: 20px; line-height: 1; color: var(--green);
}

.gb-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(76, 175, 80, .18);
}

.gb-num { font-variant-numeric: tabular-nums; }

/* ---------- 5. Header ---------- */
.navbar { padding-top: 0; padding-bottom: 0; }
.navbar-bg {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--rule);
}
.nav-container { height: 76px; }
.nav-link { color: var(--ink); font-size: 15px; font-weight: 600; }
.nav-link-text.v2 { color: var(--ink); }
.nav-link.w--current .nav-link-text,
.nav-link.w--current .nav-link-text.v2 { color: var(--green-d); }

@media (min-width: 992px) {
  .nav-container { max-width: var(--container); padding-left: 32px; padding-right: 32px; gap: 24px; }
  .nav-manu-wrapper { margin-left: auto; }
  .nav-menu-links-wrapper {
    border: 0;
    background: none;
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    grid-column-gap: 28px;
  }
}
@media (max-width: 991px) {
  .nav-container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- 6. Footer ---------- */
.creative-footer { background: var(--paper) !important; border-top: 1px solid var(--rule); padding: 40px 0 !important; }
.creative-footer .copyright { color: var(--body); gap: 14px; }
.creative-footer .footer-brand { display: inline-flex; align-items: center; }
.creative-footer .footer-brand img { height: 28px; width: auto; display: block; }
.creative-footer .footer-col .fl-label { font-size: 13.5px; letter-spacing: .04em; color: var(--ink); text-transform: none; }
.creative-footer .footer-col a { font-size: 14.5px; color: var(--ink); }
.creative-footer .footer-col a:hover { color: var(--green-d); text-decoration-color: var(--green); }
.creative-footer .top-label { color: var(--ink); }

/* ---------- 7. Typography scale ---------- */
/* ui.css and style.css set heading sizes with !important, so these use !important too. */
body { font-size: 17px; line-height: 1.6; }
body h1 {
  text-wrap: balance;
  font-size: 46px !important; line-height: 1.08 !important; font-weight: 740 !important;
  letter-spacing: -.025em !important; margin-bottom: 20px !important; text-shadow: none !important; color: var(--ink);
}
body h2 {
  text-wrap: balance;
  font-size: 32px !important; line-height: 1.15 !important; font-weight: 700 !important;
  letter-spacing: -.025em !important; text-shadow: none !important; color: var(--ink);
}
body h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
/* One colour per heading: the old gradient words become plain heading text. */
h1 .gradient-text, h2 .gradient-text, h1 .gradient-shift, h2 .gradient-shift {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important; color: inherit !important;
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  body h1 { font-size: 28px !important; }
  body h2 { font-size: 24px !important; }
  body h3 { font-size: 18px; }
}

/* Legal pages keep their own, smaller scale */
body .lg-hero h1 { font-size: clamp(32px, 4vw, 46px) !important; margin-bottom: 0 !important; }
body .lg-article h2 { font-size: 26px !important; line-height: 1.15 !important; margin: 0 0 12px !important; }
@media (max-width: 767px) {
  body .lg-hero h1 { font-size: 28px !important; }
  body .lg-article h2 { font-size: 22px !important; }
}

/* ---------- 8. Ledger panel (rotating hero cards: p0, p1, p2) ---------- */
.stack { height: 468px; }
.ghost { border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--paper); }
.main-card {
  border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--paper);
  box-shadow: 0 30px 60px -40px rgba(19, 38, 27, .45);
}
.p0-top-strip, .p1-top-strip, .p2-top-strip { padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.p0-brand-name, .p1-brand-name, .p2-brand-name { font-size: 14px; color: var(--ink); }
.p0-feature-tag, .p1-feature-tag, .p2-feature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border: 0; border-radius: 99px;
  background: var(--green-xl); color: var(--green-d); letter-spacing: 0;
}
.p0-feature-tag::before, .p1-feature-tag::before, .p2-feature-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(76, 175, 80, .2);
}
.p0-hero, .p1-hero, .p2-hero { padding: 16px 18px 12px; }
.p0-hero-label, .p1-hero-label, .p2-hero-label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.p0-hero-number, .p1-hero-number, .p2-hero-number {
  font-size: 40px; font-weight: 760; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.p0-hero-sub, .p1-hero-sub, .p2-hero-sub { font-size: 12.5px; color: var(--muted); }
.ring-bg { stroke: var(--rule); }
.ring-fg { stroke: var(--green); }
.p0-ring-label, .p1-ring-label, .p2-ring-label { font-size: 12px; color: var(--green-d); }
.p0-ring-label small, .p1-ring-label small, .p2-ring-label small { font-size: 8px; color: var(--muted); }
.p0-row-list, .p1-row-list, .p2-row-list { padding: 0 18px; gap: 6px; }
.p0-row-item, .p1-row-item, .p2-row-item {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); padding: 7px 12px; margin: 0;
}
.p0-row-item.lit, .p1-row-item.lit, .p2-row-item.lit { background: var(--tint); border-color: rgba(76, 175, 80, .55); box-shadow: 0 2px 14px rgba(76, 175, 80, .09); }
.p0-row-emoji, .p1-row-emoji, .p2-row-emoji { background: var(--green-xl) !important; width: 34px; height: 34px; border-radius: 10px; }
.p0-row-name, .p1-row-name, .p2-row-name { font-size: 14px; font-weight: 650; color: var(--ink); }
.p0-row-meta, .p1-row-meta, .p2-row-meta { font-size: 12.5px; color: var(--muted); margin-top: 0; }
.p0-row-amt, .p1-row-amt, .p2-row-amt { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.p0-row-badge, .p1-row-badge, .p2-row-badge {
  font-size: 12.5px; font-weight: 700; color: var(--green-d); background: var(--green-xl); padding: 1px 8px; border-radius: 99px;
}
.p0-drawer, .p1-drawer, .p2-drawer { background: var(--tint); border-top: 1px solid var(--rule); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.p0-drawer-stat-label, .p1-drawer-stat-label, .p2-drawer-stat-label { font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.p0-drawer-stat-value, .p1-drawer-stat-value, .p2-drawer-stat-value { font-size: 24px; font-weight: 760; color: var(--green-d); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.p0-spark-months, .p1-spark-months, .p2-spark-months { font-size: 12.5px; color: var(--muted); }
.pdot { background: var(--rule); }
.pdot.active { background: var(--green); }

/* ---------- 9. Layout helpers ---------- */
.gb-section { padding: 104px 0; background: var(--paper); position: relative; }
.gb-section--tint { background: var(--tint); }
.gb-container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.gb-head { max-width: 760px; margin: 0 0 56px; }
.gb-head .gb-tag { margin-bottom: 16px; }
.gb-head h2 { margin: 0 0 16px !important; }
.gb-lead { font-size: 19px; line-height: 1.55; color: var(--body); margin: 0; }
.gb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; font-size: 16px; text-decoration: none; }
.gb-btn .material-symbols-outlined { font-size: 20px; }
@media (max-width: 767px) {
  .gb-section { padding: 64px 0; }
  .gb-container { padding: 0 16px; }
  .gb-head { margin-bottom: 36px; }
  .gb-lead { font-size: 17px; }
}

/* form labels (demo modal) meet the 12.5px minimum */
.form-label, .demo-modal label { font-size: 12.5px; }
.demo-modal .form-label, body .form-label { font-size: 12.5px !important; }
/* Demo form: the left panel heading stays white on the dark-green background (body h2 would make it dark). */
body .demo-modal .demo-left h2 { color: #fff !important; }

/* Footer column headings (Explore / Legal): non-clickable labels, styled distinct from the links below */
body .creative-footer .footer-col .fl-label {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-d, #2e7d32);
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 2px solid var(--green, #4caf50);
  cursor: default; user-select: none; pointer-events: none;
}
