/* ==========================================================================
   GainGerms — Public site (site.css)
   Home, about, blog, FAQ, contact, white paper, legal pages and auth screens.
   Depends on theme.css for tokens and shared components.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  /* Wide enough that the headline sets in two lines in the display face and
     in the wider system fallback, rather than orphaning its last word. */
  max-width: 19ch;
}
.hero-lead {
  color: var(--text-dim);
  font-size: 1.04rem;
  max-width: 60ch;
}
.hero-lead b, .hero-lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Statistics sit on a rule, like a table footer. */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
}
.hero-stat {
  padding: 16px 28px 0 0;
  margin-right: 28px;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.hero-stat:last-child { border-right: 0; margin-right: 0; }
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.hero-stat span {
  display: block;
  margin-top: 2px;
  font-size: .74rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.hero-art { position: relative; }
.hero-art svg, .hero-art img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---------- Feature cards ---------- */
.feature { padding: 26px 24px; }
.feature-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--brand);
}
.feature-icon.i-green { background: var(--brand-soft); color: var(--brand); }
.feature-icon.i-violet { background: var(--brand-2-soft); color: var(--brand-2); }
.feature-icon.i-teal { background: var(--info-soft); color: var(--info); }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--text-dim); margin: 0; font-size: .95rem; }

/* ---------- Split content rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split.reverse .split-art { order: -1; }
.split-art { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.split-art svg, .split-art img { width: 100%; height: auto; }
.split-copy p { color: var(--text-dim); max-width: 58ch; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.post {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.post:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.post-thumb img, .post-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.post-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: .18rem .5rem;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.14rem; margin-bottom: .45rem; line-height: 1.3; }
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--brand); text-decoration: none; }
.post-excerpt { color: var(--text-dim); font-size: .93rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--text-mute); }
.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: var(--text-dim); max-width: 56ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Checklists ---------- */
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-dim); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .62em;
  width: 9px; height: 5px;
  border: solid var(--brand);
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}

/* ---------- White paper layout ---------- */
.wp-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.wp-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.wp-toc h4 { font-family: var(--font); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--text-mute); margin-bottom: 12px; }
.wp-toc ul { list-style: none; margin: 0; padding: 0; }
.wp-toc li { margin: 0; }
.wp-toc a {
  display: block;
  padding: .38rem 0 .38rem 12px;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .88rem;
}
.wp-toc a:hover { color: var(--text); border-left-color: var(--text-mute); text-decoration: none; }
.wp-toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.wp-section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.wp-section:last-child { border-bottom: 0; }
.wp-section h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: .8rem; }
.wp-section h3 { font-size: 1.06rem; margin: 1.5rem 0 .5rem; }
.wp-section p, .wp-section li { color: var(--text-dim); max-width: 74ch; }
.wp-section strong { color: var(--text); }
.wp-lede {
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 64ch;
}

/* ---------- Contact page ---------- */
.map-placeholder {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-size: .88rem;
}

/* ---------- About page ---------- */
.value-card h3 { margin-bottom: .4rem; }
.value-card p { color: var(--text-dim); margin: 0; font-size: .95rem; }
.mission-card .badge { margin-bottom: 12px; }
.team-card { text-align: center; padding: 26px 20px; }
.roadmap-col ul { list-style: none; padding: 0; margin: 0; }
.roadmap-col li { padding: 9px 0 9px 20px; position: relative; color: var(--text-dim); font-size: .93rem; border-bottom: 1px solid var(--line); }
.roadmap-col li:last-child { border-bottom: 0; }
.roadmap-col li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 7px; height: 1px; background: var(--brand); }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 220px; }

/* ---------- Auth screens (login / register) ---------- */
/* The auth pages carry no navbar, so the split runs the full viewport. */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art {
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 64px);
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.auth-art-inner { max-width: 420px; }
.auth-art svg, .auth-art img { width: 100%; height: auto; margin-bottom: 26px; }
.auth-art h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-art p { color: var(--text-dim); font-size: .95rem; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); font-size: .93rem; }
.auth-points i {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-style: normal;
  font-size: .7rem;
  margin-top: 2px;
}
.auth-panel { display: grid; place-items: center; padding: clamp(30px, 5vw, 56px) 20px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { margin-bottom: 26px; }
.auth-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--text-mute); font-weight: 600; }
.auth-box h1 { font-size: 1.85rem; margin: .3rem 0 1.4rem; }
.auth-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-dim); }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 60px; }
.pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  padding: .35rem .6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-mute);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--brand); background: var(--surface-2); }
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter i { flex: 1; height: 3px; border-radius: 1px; background: var(--surface-3); transition: background .25s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 480px; }
  .hero h1 { max-width: none; }
  .wp-layout { grid-template-columns: 1fr; }
  .wp-toc { position: static; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
}

@media (max-width: 760px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .hero-stats { gap: 0; }
  .hero-stat { border-right: 0; padding-right: 0; margin-right: 24px; }
}
