:root {
  --bg: #fafaf7;
  --bg-elevated: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #5a5a5a;
  --ink-muted: #a0a0a0;
  --line: #e8e8e3;
  --accent: #2f5e3f;
  --accent-soft: #e8f0ea;
  --highlight: #d9ff5e;
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

nav {
  position: sticky; top: 0; z-index: 50;
  padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(250, 250, 247, 0.75);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  width: 26px; height: 26px; background: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark::after {
  content: ''; width: 8px; height: 8px;
  background: var(--highlight); border-radius: 50%;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 10px 18px; border: none; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: white; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--ink); color: white; border: none;
  padding: 16px 28px; font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  padding: 16px 28px; font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; border-radius: 100px; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--ink); }

/* PAGE LAYOUT */
.page-hero {
  padding: 80px 32px 64px;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero.wide { max-width: 1200px; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent); margin-bottom: 24px; font-weight: 500;
}
.page-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
h1.page-title {
  font-size: clamp(44px, 6vw, 72px); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 500;
  margin-bottom: 24px;
}
h1.page-title .serif { color: var(--accent); }
.page-lede {
  font-size: 19px; line-height: 1.5; color: var(--ink-soft);
  max-width: 620px; margin-bottom: 24px;
}

/* CONTENT */
.page-content {
  max-width: 720px; margin: 0 auto;
  padding: 32px 32px 80px;
}
.page-content h2 {
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.025em; margin: 48px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h2 .serif { color: var(--accent); }
.page-content h3 {
  font-size: 18px; font-weight: 500;
  margin: 32px 0 8px;
}
.page-content p {
  color: var(--ink-soft); font-size: 16px;
  line-height: 1.65; margin-bottom: 16px;
}
.page-content ul {
  color: var(--ink-soft); font-size: 16px;
  line-height: 1.65; margin-bottom: 16px; padding-left: 20px;
}
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--ink); font-weight: 500; }
.page-content a { color: var(--accent); }

/* CARDS GRID */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px 80px;
}
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--accent);
}
.feature-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.02em; }
.feature-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* CTA SECTION */
.cta-band {
  margin: 0 32px 32px; padding: 80px 32px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-radius: 32px; text-align: center; border: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 500;
  margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.cta-band h2 .serif { color: var(--accent); }
.cta-band p { color: var(--ink-soft); margin-bottom: 28px; font-size: 16px; }

/* FOOTER */
footer { padding: 48px 32px 32px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; color: var(--ink-soft); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-col a {
  display: block; color: var(--ink-soft); text-decoration: none;
  font-size: 14px; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; gap: 12px;
}

/* JOURNAL */
.journal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px 80px;
}
.article-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.article-thumb {
  height: 180px; background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  position: relative;
}
.article-card:nth-child(2) .article-thumb { background: linear-gradient(135deg, var(--highlight), #8ba832); }
.article-card:nth-child(3) .article-thumb { background: linear-gradient(135deg, #f5e6d3, #c89a5f); }
.article-card:nth-child(4) .article-thumb { background: linear-gradient(135deg, #e8f0ea, var(--ink)); }
.article-card:nth-child(5) .article-thumb { background: linear-gradient(135deg, #fae3d0, var(--accent)); }
.article-card:nth-child(6) .article-thumb { background: linear-gradient(135deg, var(--ink), var(--accent)); }
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-size: 12px; color: var(--accent); margin-bottom: 8px; font-weight: 500;
}
.article-card h3 {
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px;
}
.article-card p {
  color: var(--ink-soft); font-size: 14px; line-height: 1.5;
  flex: 1; margin-bottom: 16px;
}
.article-meta { font-size: 12px; color: var(--ink-muted); }

/* CAREERS LIST */
.job-list {
  max-width: 880px; margin: 0 auto;
  padding: 0 32px 80px;
}
.job-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 28px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.2s; text-decoration: none; color: inherit;
}
.job-card:hover { border-color: var(--ink); transform: translateX(4px); }
.job-info h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em; }
.job-info p { font-size: 13px; color: var(--ink-muted); }
.job-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}

/* PRICING */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 960px; margin: 0 auto; padding: 0 32px 80px;
}
.price-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px;
}
.price-card.featured { background: var(--ink); color: white; border-color: var(--ink); }
.price-card.featured .price-meta { color: rgba(255,255,255,0.6); }
.price-card.featured ul li { color: rgba(255,255,255,0.85); }
.price-card.featured ul li::before { background: var(--highlight); }
.price-tag {
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.price-card.featured .price-tag { color: var(--highlight); }
.price-amount {
  font-size: 56px; line-height: 1; letter-spacing: -0.04em;
  font-weight: 500; margin-bottom: 8px;
}
.price-amount .serif { color: var(--accent); }
.price-card.featured .price-amount .serif { color: var(--highlight); }
.price-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 32px; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 32px; }
.price-card ul li {
  font-size: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.price-card.featured ul li { border-color: rgba(255,255,255,0.1); }
.price-card ul li::before {
  content: '✓'; width: 18px; height: 18px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; font-size: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

@media (max-width: 880px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .page-hero, .page-content, .job-list { padding-left: 20px; padding-right: 20px; }
  .card-grid, .journal-grid, .pricing-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .cta-band { margin-left: 16px; margin-right: 16px; padding-left: 24px; padding-right: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .job-card { padding: 20px; }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-inner {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { display: block; font-size: 14px; margin-bottom: 4px; font-weight: 500; }
.cookie-text p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.4; margin: 0; }
.cookie-text a { color: var(--highlight); text-decoration: none; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn-primary, .cookie-btn-secondary {
  padding: 10px 16px; border-radius: 100px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cookie-btn-primary { background: var(--highlight); color: var(--ink); border: none; }
.cookie-btn-primary:hover { background: white; }
.cookie-btn-secondary {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-btn-secondary:hover { border-color: white; }

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
  display: none;
}
@media (max-width: 880px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    z-index: 40;
    gap: 8px;
  }
  .sticky-cta a, .sticky-cta button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    font-family: inherit; font-size: 14px; font-weight: 500;
    text-align: center; text-decoration: none;
    border: none; cursor: pointer;
  }
  .sticky-cta .sticky-primary { background: var(--ink); color: white; }
  .sticky-cta .sticky-secondary {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
  }
  /* Push body content up so sticky doesn't cover footer */
  body { padding-bottom: 80px; }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  max-width: 880px; margin: 0 auto;
  padding: 80px 32px;
}
.faq-section .section-eyebrow { margin-bottom: 16px; }
.faq-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em; font-weight: 500;
  line-height: 1.02; margin-bottom: 48px;
}
.faq-section h2 .serif { color: var(--accent); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  padding: 24px 0;
  background: none; border: none;
  font-family: inherit; font-size: 19px; font-weight: 500;
  text-align: left; cursor: pointer;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-icon {
  background: var(--accent); color: white;
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--ink-soft); font-size: 16px; line-height: 1.6;
  max-width: 720px;
}
.faq-a-inner a { color: var(--accent); }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
  max-width: 1080px; margin: 0 auto;
  padding: 80px 32px;
}
.comparison-table {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 48px;
}
.comparison-header, .comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
}
.comparison-header {
  background: var(--bg); padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
}
.comparison-header > div { text-align: center; }
.comparison-header > div:first-child { text-align: left; }
.comparison-header .col-us {
  color: var(--accent);
}
.comparison-row {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row > div { text-align: center; color: var(--ink-soft); }
.comparison-row > div:first-child {
  text-align: left;
  color: var(--ink); font-weight: 500;
}
.check-yes { color: var(--accent); font-weight: 600; }
.check-no { color: var(--ink-muted); }
@media (max-width: 720px) {
  .comparison-header, .comparison-row {
    grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr;
    font-size: 12px;
    padding: 14px 12px;
  }
  .comparison-header { padding: 14px 12px; }
}

/* ============================================
   TRUST STRIP (under hero)
   ============================================ */
.trust-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 32px;
}
.trust-bar-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft);
}
.trust-bar-inner > div {
  display: flex; align-items: center; gap: 8px;
}
.trust-bar-inner .serif { color: var(--accent); font-size: 16px; }
@media (max-width: 720px) {
  .trust-bar-inner { gap: 20px; font-size: 12px; }
}

/* ============================================
   ACCESSIBILITY: SKIP TO CONTENT LINK
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -40px; left: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 8px;
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

/* ============================================
   MOBILE OPTIMISATION — small phones (≤480px)
   ============================================ */
@media (max-width: 480px) {
  /* Tighter padding on hero and page sections */
  .page-hero, section.how, .testimonial, .page-content {
    padding-left: 16px; padding-right: 16px;
  }
  .page-hero { padding-top: 48px; padding-bottom: 32px; }

  /* Headlines fit narrow viewports */
  h1.page-title { font-size: 36px; letter-spacing: -0.025em; }
  h1.headline { font-size: 44px !important; line-height: 1; }

  /* Cookie banner stays clear of sticky CTA */
  #cookie-banner { bottom: 80px; left: 8px; right: 8px; padding: 16px 18px; }
  #cookie-banner .cookie-text p { font-size: 12px; }
  #cookie-banner .cookie-actions { width: 100%; }
  #cookie-banner .cookie-btn-primary,
  #cookie-banner .cookie-btn-secondary { flex: 1; }

  /* Sticky CTA tighter */
  .sticky-cta { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 6px; }
  .sticky-cta a, .sticky-cta button { padding: 12px 14px; font-size: 13px; }

  /* Trust bar wraps gracefully */
  .trust-bar { padding: 16px; }
  .trust-bar-inner { gap: 12px; font-size: 12px; }

  /* Hero dashboard internal padding tighter */
  .hero-dashboard { padding: 12px; border-radius: 16px; }
  .dash-top { padding-bottom: 12px; margin-bottom: 16px; }
  .dash-pills { gap: 4px; }
  .dash-pill { padding: 5px 10px; font-size: 11px; }
  .adviser-card { padding: 16px; }

  /* Comparison table — small phones */
  .comparison { padding: 48px 16px; }
  .comparison-header, .comparison-row {
    font-size: 11px; padding: 12px 10px;
    grid-template-columns: 1.4fr 0.6fr 0.6fr 0.6fr;
  }

  /* Quiz modal tighter */
  .quiz-modal { border-radius: 16px; }
  .quiz-body { padding: 20px 18px 24px !important; }
  .quiz-question { font-size: 20px !important; line-height: 1.2; }
  .quiz-option { padding: 14px 14px; font-size: 14px; }
  .quiz-input-group input { padding: 14px 14px; font-size: 16px; }
  /* iOS: font-size 16px prevents zoom-on-focus */

  /* FAQ tighter */
  .faq-section { padding: 56px 16px; }
  .faq-q { font-size: 16px; padding: 18px 0; }

  /* Steps cards tighter */
  .step { padding: 24px 20px; }
  .step-num { font-size: 60px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; }
  footer { padding: 32px 16px 24px; }
}

/* iOS form input zoom-prevention */
input, select, textarea { font-size: 16px; }
@media (min-width: 481px) {
  /* Allow smaller fonts back on desktop */
  .quiz-input-group input { font-size: 15px; }
}
