/* ============================================================
   Geminus shared stylesheet
   Edit once, applies to every page.
   ============================================================ */

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

:root {
  --white: #ffffff;
  --off-white: #fafafb;
  --navy: #272c42;
  --navy-light: #3a4060;
  --ink: #0f1117;
  --gray-100: #f4f4f5;
  --gray-200: #e8e8ec;
  --gray-300: #d9d9e0;
  --gray-400: #9a9aaa;
  --gray-500: #71717d;
  --gray-600: #52525e;
  --accent: #3b82f6;
  --accent-soft: #eef4ff;
  --line: #e2e3e9;
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 1080px;
  --pad: clamp(20px, 5vw, 60px);
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--navy); }

/* ---------- NAV ---------- */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 400; color: var(--gray-600);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  font-weight: 500 !important; color: var(--navy) !important;
  border: 1px solid var(--gray-300);
  padding: 8px 16px; border-radius: var(--radius);
  transition: border-color 0.15s !important;
}
.nav-cta:hover { border-color: var(--navy); }
.nav-mobile-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--navy);
}
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 12px var(--pad) 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; color: var(--gray-600); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid var(--gray-100);
  transition: color 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--navy); }

/* ---------- SHARED LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section.band { padding: clamp(72px, 10vw, 136px) 0; }
section.band + section.band { border-top: 1px solid var(--gray-200); }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 28px;
}
h2.headline {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; line-height: 1.22; letter-spacing: -0.01em;
  color: var(--navy);
}

/* ---------- HERO ---------- */
.hero {
  border-bottom: 1px solid var(--gray-200);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(88px, 13vw, 176px) var(--pad) clamp(80px, 11vw, 152px);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(17px, 5vw, 54px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  color: var(--navy); margin-bottom: 36px;
}
.hero-line { display: block; white-space: nowrap; }
.hero-line + .hero-line { margin-top: 0.35em; }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); font-weight: 400;
  color: var(--gray-600); max-width: 580px;
  line-height: 1.7; margin-bottom: 48px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 4px;
  transition: border-color 0.15s;
}
.hero-cta:hover { border-color: var(--navy); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); font-size: 15.5px; font-weight: 500;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-light); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gray-600); font-family: var(--sans);
  font-size: 15.5px; font-weight: 400; text-decoration: none;
  transition: color 0.15s;
}
.btn-secondary:hover { color: var(--navy); }

/* ---------- PROBLEM ---------- */
.problem-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 40px 64px; align-items: start;
}
h2.problem-headline { font-size: clamp(18px, 2.55vw, 28px); }
.problem-headline .hero-line + .hero-line { margin-top: 0.3em; }
.problem-body { font-size: 17px; color: var(--gray-600); line-height: 1.8; }
.problem-body p + p { margin-top: 16px; }
.problem-body strong { color: var(--navy); font-weight: 500; }

/* ---------- HOW IT WORKS (the loop) ---------- */
.workflow-headline { max-width: 620px; margin-bottom: clamp(48px, 6vw, 80px); }
.loop { list-style: none; position: relative; max-width: 780px; }
.loop::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 1px; background: var(--gray-300);
}
.loop-step {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr;
  gap: 0 32px; align-items: baseline;
  padding: 0 0 clamp(44px, 5vw, 64px) clamp(36px, 4vw, 52px);
}
.loop-step:last-child { padding-bottom: 0; }
.loop-step::before {
  content: "";
  position: absolute; left: -3px; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.loop-num {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400; line-height: 1;
  color: var(--gray-300);
  letter-spacing: -0.02em;
}
.loop-step-title {
  font-family: var(--display); font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px; line-height: 1.3;
}
.loop-step-desc { font-size: 16px; color: var(--gray-600); line-height: 1.7; max-width: 56ch; }

/* ---------- DIFFERENTIATORS ---------- */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 48px;
}
.diff-card {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s;
}
.diff-card:hover { border-color: var(--gray-400); }
.diff-title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.diff-desc { font-size: 15px; color: var(--gray-600); line-height: 1.68; }

/* ---------- WHERE IT FITS ---------- */
.fits-headline { max-width: 560px; margin-bottom: clamp(40px, 5vw, 64px); }
.fits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.fits-item {
  border-top: 1px solid var(--gray-200);
  padding: 24px 0 28px;
}
.fits-name {
  font-size: 13px; font-weight: 600; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 8px;
}
.fits-role { font-size: 15.5px; color: var(--gray-600); line-height: 1.65; }

/* ---------- BLOG TEASER + CARDS ---------- */
.blog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.blog-all-link {
  font-size: 15px; font-weight: 500; color: var(--gray-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.blog-all-link:hover { color: var(--navy); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid-2 { grid-template-columns: 1fr 1fr; }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  text-decoration: none; overflow: hidden;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--gray-400); }
.post-card:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-card-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 13px; color: var(--gray-400); letter-spacing: 0.02em; }
.post-title {
  font-family: var(--display); font-size: 19px; font-weight: 700;
  color: var(--navy); line-height: 1.35;
}
.post-excerpt { font-size: 15px; color: var(--gray-600); line-height: 1.65; }
.post-readmore {
  margin-top: auto; padding-top: 16px;
  font-size: 14.5px; font-weight: 500; color: var(--gray-500);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- STATEMENT / CTA ---------- */
.statement-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad); }
.statement {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 72px);
}
.statement-quote {
  font-family: var(--display);
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 700; line-height: 1.28; letter-spacing: normal;
  max-width: 700px; margin-bottom: 22px; color: var(--white);
}
.statement-sub {
  font-size: 17px; color: rgba(255,255,255,0.72);
  max-width: 520px; line-height: 1.7; margin-bottom: 36px;
}
.btn-inv {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--navy);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  transition: opacity 0.15s;
}
.btn-inv:hover { opacity: 0.9; }
.statement-email { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,0.5); }
.statement-email span { color: rgba(255,255,255,0.88); font-weight: 500; user-select: all; }

/* ---------- FOOTER ---------- */
footer.site-footer { border-top: 1px solid var(--gray-200); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 40px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-logo img { height: 24px; width: auto; display: block; }
.footer-tag { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px;
}
.footer-col a { font-size: 14.5px; color: var(--gray-600); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--gray-200); }
.footer-bottom-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 13.5px; color: var(--gray-400); }

/* ---------- BLOG INDEX PAGE ---------- */
.page-header { border-bottom: 1px solid var(--gray-200); }
.page-header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--pad);
}
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700; line-height: 1.16; letter-spacing: -0.01em;
  color: var(--navy); margin-bottom: 18px;
}
.page-header p { font-size: 18px; color: var(--gray-600); max-width: 560px; line-height: 1.7; }

/* ---------- ARTICLE ---------- */
.article-wrap { max-width: calc(780px + 2 * var(--pad)); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); }
.article-meta { font-size: 14px; color: var(--gray-400); margin-bottom: 18px; letter-spacing: 0.02em; }
.article-wrap h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  color: #1a1a1a; margin-bottom: 24px;
}
.article-lede {
  font-size: 20px; color: var(--gray-600); line-height: 1.65;
  margin-bottom: 44px; font-weight: 300;
}
.article-body { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.75; color: #1a1a1a; }
.article-body p { margin-bottom: 20px; color: #1a1a1a; }
.article-body h2 {
  font-family: var(--display); font-size: 27px; font-weight: 700;
  color: #1a1a1a; letter-spacing: normal;
  margin: 48px 0 16px;
}
.article-body h3 {
  font-family: var(--display); font-size: 21px; font-weight: 700;
  color: #1a1a1a; margin: 34px 0 10px;
}
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: #1a1a1a; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: inherit; font-weight: 700; }
.article-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px; margin: 32px 0;
  font-size: 19px; color: #33333e; line-height: 1.65;
}
.article-body hr {
  border: none; border-top: 1px solid var(--gray-200);
  margin: 40px 0; background: none; height: auto;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 16.5px; line-height: 1.55;
}
.article-body th {
  text-align: left; font-family: var(--display); font-weight: 700;
  color: #1a1a1a; font-size: 15px;
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--gray-300);
}
.article-body td {
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--gray-200);
  color: #33333e; vertical-align: top;
}
.article-body td:first-child {
  font-weight: 700; color: #1a1a1a; white-space: nowrap;
}
.diagram-caption { font-size: 14px; color: var(--gray-400); margin-bottom: 10px; }
.post-iframe {
  width: 100%; height: 1100px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
}
.article-footer {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ---------- FADE-IN ---------- */
.fade-in { opacity: 1; transform: translateY(0); transition: opacity 0.35s ease-out, transform 0.35s ease-out; }
.fade-in.animate { opacity: 0; transform: translateY(8px); }
.fade-in.animate.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in.animate { opacity: 1 !important; transform: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
}
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .loop-step { grid-template-columns: 1fr; gap: 6px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .fits-list { grid-template-columns: 1fr; }
  .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .article-body td:first-child { white-space: normal; }
}
@media (max-width: 560px) {
  .diff-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .article-body { font-size: 18px; }
}
