/* GB financial education — editorial layout */
:root {
  --ink: #14201c;
  --muted: #5c6b64;
  --line: #d5ddd8;
  --paper: #f3f6f4;
  --surface: #ffffff;
  --forest: #1f6b4a;
  --forest-deep: #134833;
  --moss: #2d8a62;
  --mist: #e4efe9;
  --amber: #c48a2a;
  --header-h: 108px;
  --max: 1100px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
}

a:hover {
  color: var(--forest-deep);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Gate */
#page-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 138, 98, 0.35), transparent 50%),
    linear-gradient(160deg, #0d2e22 0%, #134833 55%, #1f6b4a 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#page-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-inner {
  text-align: center;
  color: #fff;
}

.gate-ring {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: gate-spin 0.85s linear infinite;
}

@keyframes gate-spin {
  to { transform: rotate(360deg); }
}

.gate-label {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.gate-dots span {
  animation: gate-dot 1.2s infinite;
}

.gate-dots span:nth-child(2) { animation-delay: 0.15s; }
.gate-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gate-dot {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Header — two-tier editorial bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 246, 244, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  flex-direction: column;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.brand-wordmark:hover {
  color: var(--forest);
}

.header-aside {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.nav-desktop a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 14px;
}

.nav-desktop a:first-child {
  padding-left: 0;
}

.nav-desktop a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

.nav-desktop a:hover {
  color: var(--ink);
}

.header-link {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  border-bottom: 1.5px solid var(--moss);
  padding-bottom: 2px;
  letter-spacing: -0.01em;
}

.header-link:hover {
  color: var(--forest-deep);
  border-bottom-color: var(--forest-deep);
}

.header-link span {
  display: inline-block;
  transition: transform 0.2s;
}

.header-link:hover span {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 0;
  background: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  padding: 8px 20px 20px;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-mobile a:hover {
  color: #fff;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(13, 46, 34, 0.92) 0%, rgba(19, 72, 51, 0.78) 42%, rgba(19, 72, 51, 0.35) 100%),
    linear-gradient(to top, rgba(13, 46, 34, 0.75) 0%, transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
  color: #fff;
  max-width: 640px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
}

.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 22px;
  color: #fff;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 28ch;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 42ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.btn-primary {
  background: #fff;
  color: var(--forest-deep);
}

.btn-primary:hover {
  background: var(--mist);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  color: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-solid {
  background: var(--forest);
  color: #fff;
}

.btn-solid:hover {
  background: var(--forest-deep);
  color: #fff;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--tint {
  background: var(--mist);
}

.section-head {
  margin-bottom: 44px;
}

.section-head.center {
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss);
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 750;
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

/* Trust strip (after hero — not in first viewport clutter) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest-deep);
  letter-spacing: -0.02em;
}

.trust-item span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Pillars — list style, not card cluster */
.pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--moss);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.pillar h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--forest-deep);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy .section-title {
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--forest), var(--forest)) center / 8px 2px no-repeat,
    linear-gradient(var(--forest), var(--forest)) center / 2px 8px no-repeat;
  border: 2px solid var(--forest);
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(45deg);
}

.seo-edu-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.seo-edu-block p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.seo-edu-block p:last-child {
  margin-bottom: 0;
}

/* Topics — horizontal rows */
.topics-list {
  display: grid;
  gap: 12px;
}

.topic-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.topic-row:hover {
  border-color: var(--moss);
  transform: translateX(4px);
  color: inherit;
}

.topic-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.topic-meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 4px;
}

.topic-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topic-arrow {
  font-size: 1.25rem;
  color: var(--moss);
  font-weight: 300;
}

/* Path / method */
.path {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.path::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--moss), var(--line));
}

.path-step {
  position: relative;
  padding: 0 0 36px 24px;
}

.path-step:last-child {
  padding-bottom: 0;
}

.path-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--moss);
}

.path-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.path-step p {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
}

.path-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 6px;
}

/* Reviews */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-card {
  padding: 28px 0;
  border-top: 2px solid var(--ink);
}

.quote-card p {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-foot img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-foot strong {
  display: block;
  font-size: 0.92rem;
}

.quote-foot span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stars {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-left: auto;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-q {
  width: 100%;
  padding: 20px 8px 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.faq-q::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--moss);
  font-family: var(--font-body);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-a {
  max-height: 220px;
  padding-bottom: 20px;
}

.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  padding-right: 32px;
}

/* Footer — centered wordmark stack */
.site-footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 138, 98, 0.22), transparent 55%),
    var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 32px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}

.footer-wordmark:hover {
  color: var(--mist);
}

.footer-tagline {
  margin: 0 0 24px;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.footer-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1.5px solid var(--moss);
  padding-bottom: 3px;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.footer-mail:hover {
  color: var(--mist);
  border-bottom-color: var(--mist);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin-bottom: 40px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 16px;
  position: relative;
}

.footer-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bar {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-media {
    aspect-ratio: 16/10;
    max-height: 320px;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .topic-row {
    grid-template-columns: 88px 1fr;
  }

  .topic-arrow {
    display: none;
  }

  .topic-row img {
    width: 88px;
    height: 64px;
  }

  .header-bottom,
  .header-aside {
    display: none;
  }

  .header-top {
    padding: 14px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-copy {
    padding: 56px 0 64px;
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }

  .pillar {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .footer-nav a {
    padding: 6px 12px;
  }

  .footer-nav a::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 85vh;
  }

  .section {
    padding: 56px 0;
  }
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .reveal-up {
    transform: translateY(32px);
  }

  .reveal-down {
    transform: translateY(-20px);
  }

  .reveal-left {
    transform: translateX(-32px);
  }

  .reveal-right {
    transform: translateX(32px);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
