/* ============================================================
   INFLO — Main Stylesheet
   Color palette: Cyan #00C5E8, Navy #0D1B2A, Black #111111
   Inspired by hulp.in editorial aesthetic
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:       #00C5E8;
  --cyan-dark:  #009BB8;
  --navy:       #0D1B2A;
  --navy-mid:   #1A2E42;
  --black:      #111111;
  --gray-900:   #1F2937;
  --gray-600:   #616366;
  --gray-400:   #9CA3AF;
  --gray-200:   #E5E7EB;
  --gray-100:   #F3F4F6;
  --white:      #FFFFFF;
  --off-white:  #FAFAFA;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:  1160px;
  --nav-h:  72px;
  --radius: 4px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-sans); }
p  { color: var(--gray-600); }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.section-label-dark {
  color: var(--navy-mid);
}

.section-heading { margin-bottom: 1rem; color: var(--gray-600);}
.section-heading-light { color: var(--white); }
.section-heading-dark { color: var(--navy); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 680px; }

.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-light { background: var(--off-white); }
.section-dark  { background: var(--navy); }
.section-cyan  { background: var(--cyan); }

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header-row .section-heading { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.btn-primary:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover { background: var(--navy-mid); }

.btn-full { width: 100%; text-align: center; }

.text-link {
  color: var(--cyan-dark);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.text-link:hover { border-color: var(--cyan-dark); }


/* ── HEADER / NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-900);
  border-radius: var(--radius);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan-dark); }
.nav-link.active { font-weight: 500; }

.nav-cta {
  background: var(--cyan);
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--cyan-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s;
}


/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
}
.hero-inner {}
.hero-headline { color: var(--gray-600); margin: 0.5rem 0 1.5rem; }
.hero-sub { font-size: 1.1rem; color: var(--gray-600); max-width: 480px; margin-bottom: 2.5rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-graphic { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 500px;
  border-left: 5px solid var(--cyan);
}
.hero-card-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-card-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.45;
  color: var(--white);
  font-style: italic;
}


/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; }
.about-text .text-link { margin-top: 0.5rem; display: inline-block; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.pillar { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.pillar-icon { grid-row: 1 / span 2; color: var(--cyan); font-size: 1rem; margin-top: 0.2rem; }
.pillar h3 { grid-column: 2; font-size: 1rem; font-family: var(--font-sans); margin-bottom: 0.25rem; }
.pillar p { grid-column: 2; font-size: 0.9rem; }


/* ── SOLUTIONS ── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}
.solution-card {
  background: var(--navy);
  padding: 2.5rem;
  transition: background 0.18s;
}
.solution-card:hover { background: var(--navy-mid); }
.solution-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.solution-card h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.1rem; }
.solution-card p { color: var(--gray-400); font-size: 0.92rem; }


/* ── CARDS GRID (publications) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pub-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.pub-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.pub-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.pub-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-card-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--cyan); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em;
}

.pub-card-body { padding: 1.25rem; }
.pub-card-date { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.pub-card-title { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; color: var(--black); margin-bottom: 0.5rem; line-height: 1.4; }
.pub-card-title a { color: inherit; }
.pub-card-title a:hover { color: var(--cyan-dark); text-decoration: underline; }
.pub-card-title a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pub-card-desc { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.pub-card-link { font-size: 0.85rem; color: var(--cyan-dark); font-weight: 500; }
.pub-card-link:hover { text-decoration: underline; }


/* ── VIDEO FEATURE ── */
.video-feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-feature-text h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.75rem; }
.video-feature-text p { margin-bottom: 1.5rem; }

.video-embed-large { border-radius: var(--radius-lg); }


/* ── CTA SECTION ── */
.cta-sub { font-size: 1.05rem; margin: 1rem 0 2rem; color: var(--navy); max-width: 500px; margin-left: auto; margin-right: auto; }
.section-cyan .section-label { color: var(--navy-mid); }
.section-cyan .section-heading { color: var(--navy); }
.section-cyan .cta-sub { color: var(--navy-mid); }
.section-cyan { text-align: center; }


/* ── PAGE HERO ── */
.page-hero {
  background: var(--off-white);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero-tall { min-height: 70vh; display: flex; align-items: center; }
.page-hero-title { color: var(--gray-600); margin: 0.5rem 0 1rem; }
.page-hero-sub { font-size: 1.05rem; color: var(--gray-600); max-width: 560px; }


/* ── NEWSLETTERS PAGE ── */
.newsletters-grid { display: flex; flex-direction: column; gap: 3rem; }

.nl-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-200);
}
.nl-card:last-child { border-bottom: none; padding-bottom: 0; }

.nl-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.nl-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.nl-card-preview .nl-drive-img { position: absolute; inset: 0; object-position: top; background: var(--white); }
.nl-card-preview iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--white); }
.nl-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1.5rem; text-align: center;
}
.nl-thumb-placeholder span {
  font-size: 2rem; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.nl-thumb-placeholder p { color: var(--gray-400); font-size: 0.9rem; }

.nl-preview-btn {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.nl-preview-btn:hover { background: rgba(0,197,232,0.85); color: var(--navy); }

.nl-date { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.nl-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.3; }
.nl-desc { color: var(--gray-600); margin-bottom: 1.5rem; }


/* ── VIDEOS PAGE ── */
.video-featured-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}
.video-featured-meta h2 { color: var(--navy); font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.video-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.video-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.03); }

.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,42,0.45);
  color: var(--white);
  transition: background 0.2s;
}
.video-card:hover .play-btn { background: rgba(0,197,232,0.6); }
.play-btn svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }

.video-card-meta { padding: 1rem; }
.video-card-meta h3 { font-size: 0.95rem; color: var(--black); margin-bottom: 0.25rem; line-height: 1.4; }
.video-card-desc { font-size: 0.82rem; color: var(--gray-600); }

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(4px);
}
.video-modal-inner {
  position: relative; z-index: 1;
  width: 90vw; max-width: 900px;
}
.modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none;
  color: var(--white); font-size: 2rem;
  cursor: pointer; line-height: 1;
}
#modalEmbed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
#modalEmbed iframe { width: 100%; height: 100%; border: 0; }


/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 2rem; }
.contact-detail { margin-bottom: 2rem; }
.contact-detail-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 0.4rem;
}
.contact-detail a { display: block; color: var(--cyan-dark); font-size: 0.95rem; }
.contact-detail a:hover { text-decoration: underline; }
.contact-detail p { color: var(--gray-600); font-size: 0.92rem; }
.contact-disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--cyan);
}
.contact-disclaimer p { font-size: 0.78rem; color: var(--gray-600); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--gray-900); }
.required { color: var(--cyan-dark); }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,197,232,0.12);
}
.form-group textarea { resize: vertical; }
.has-error input,
.has-error textarea { border-color: #dc2626; }
.field-error { font-size: 0.8rem; color: #dc2626; }


/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 5rem 0; }
.empty-state h2 { color: var(--navy); margin: 0.5rem 0 1rem; }
.empty-state p { max-width: 400px; margin: 0 auto 2rem; }

/* ── CONTACT CONFIRMATION ── */
.confirm-section { padding: 4rem 0 5rem; }
.confirm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 3rem 3rem 2.5rem;
}
.confirm-mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--cyan-dark); color: var(--cyan-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.confirm-title { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--navy); margin-bottom: 0.75rem; }
.confirm-lead { max-width: 52ch; margin-bottom: 2rem; }
.confirm-steps {
  list-style: none; counter-reset: step;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.confirm-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--gray-200);
}
.confirm-steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  font-size: 0.85rem; font-weight: 600; color: var(--cyan-dark); padding-top: 0.1rem;
}
.confirm-steps strong { color: var(--navy); font-size: 0.95rem; }
.confirm-steps span { font-size: 0.9rem; color: var(--gray-600); }
.confirm-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; font-size: 0.9rem; }
.confirm-links > span { color: var(--gray-600); }
@media (max-width: 640px) { .confirm-card { padding: 2rem 1.5rem; } }


/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.footer-logo { height: 36px; width: auto; background: var(--white); padding: 0.4rem 0.75rem; box-sizing: content-box; border-radius: 6px; margin-bottom: 1rem; }
.footer-tagline { font-size: 1rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.footer-reg { font-size: 0.78rem; color: var(--gray-600); line-height: 1.6; }

.footer-links { display: flex; gap: 3rem; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-title {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 0.25rem;
}
.footer-col a { font-size: 0.9rem; color: var(--gray-400); transition: color 0.15s; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--navy-mid);
  padding: 1.25rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.75rem; color: var(--gray-600); }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
  }
  .hero-graphic { order: -1; }
  .hero-card { max-width: 100%; padding: 2.25rem 1.75rem; }
  .hero-card-text { font-size: 1.45rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .solutions-grid { grid-template-columns: 1fr; gap: 1.5px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .video-feature { grid-template-columns: 1fr; }
  .video-featured-wrap { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }

  .nl-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .nl-card-preview { aspect-ratio: 16/9; max-width: 100%; }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* The menu folds into the ☰ button before its items would wrap onto two lines */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 0.25rem;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 0.7rem 0; border-bottom: 1px solid var(--gray-100); width: 100%; }
  .nav-link:last-child { border-bottom: none; }
  .nav-cta { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .cards-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.5rem 0 2.5rem; }
}


/* ── BACKTEST PAGE ── */
.bt-context {
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white);
  margin-bottom: 2rem; overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.bt-context-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; padding: 1.4rem 1.6rem; align-items: center; }
.bt-context p { font-size: 0.86rem; line-height: 1.6; }
.bt-context strong { color: var(--navy); font-weight: 600; }
.bt-context .bt-context-tag {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-dark);
}
.bt-context h2 { font-size: 1.2rem; color: var(--navy); line-height: 1.3; margin: 0.2rem 0 0.45rem; }
.bt-context .bt-context-key { color: var(--navy); margin-top: 0.7rem; }
.bt-context-key strong { background: linear-gradient(transparent 62%, #D6F3F9 62%); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bt-recover { border-left: 1px solid var(--gray-200); padding-left: 2rem; }
.bt-recover figcaption { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.7rem; }
.bt-recover ul { list-style: none; }
.bt-recover-row { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.75rem; align-items: center; font-size: 0.82rem; color: var(--gray-600); }
.bt-recover li { padding: 0.28rem 0; }
.bt-recover-cols { font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.2rem; }
.bt-recover-bar { display: flex; align-items: center; gap: 0.5rem; }
.bt-recover-bar i { display: block; height: 10px; border-radius: 0 3px 3px 0; background: #B9C4D0; width: calc((100% - 3.8rem) * var(--p)); flex: 0 0 auto; }
.bt-recover-bar b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.bt-recover .is-big, .bt-recover .is-big b { color: #A8433A; font-weight: 700; }
.bt-recover .is-big i { background: #C4655B; }

.bt-context-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem;
  background: var(--off-white); border-top: 1px solid var(--gray-200); padding: 0.85rem 1.6rem;
}
.bt-context-foot p { font-size: 0.78rem; line-height: 1.55; }
.bt-context-foot a { font-weight: 600; color: var(--cyan-dark); white-space: nowrap; }
.bt-context-foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .bt-context-main, .bt-context-foot { grid-template-columns: 1fr; gap: 1rem; padding-left: 1.1rem; padding-right: 1.1rem; }
  .bt-context-foot { gap: 0.5rem; }
  .bt-recover { border-left: 0; padding-left: 0; border-top: 1px solid var(--gray-200); padding-top: 0.9rem; }
}

/* Funds | Indices switch above both backtest forms */
.bt-tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem; }
.bt-tabs a { padding: 0 0.15rem 0.7rem; margin-bottom: -1px; font-weight: 600; color: var(--gray-600); border-bottom: 3px solid transparent; }
.bt-tabs a:hover { color: var(--navy); }
.bt-tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--cyan); }

.bt-form {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.bt-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 180px; }
.bt-field-wide { flex: 1 1 320px; }
.bt-field label { font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.bt-field select, .bt-field input {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white); color: var(--black);
}
.bt-field select:focus, .bt-field input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* Searchable scheme dropdown (static/js/scheme-search.js) */
.bt-field select[hidden] { display: none; }
.bt-combo { position: relative; }
.bt-field .bt-combo input {
  width: 100%; padding-right: 2.25rem; text-overflow: ellipsis;
}
.bt-combo::after {                      /* the dropdown arrow */
  content: ""; position: absolute; right: 1rem; top: 1.1rem; pointer-events: none;
  width: 7px; height: 7px; border: solid var(--gray-600); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bt-combo-panel {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.14);
}
.bt-combo-panel[hidden] { display: none; }
.bt-combo-panel ul { list-style: none; max-height: min(320px, 50vh); overflow-y: auto; position: relative; overscroll-behavior: contain; }
.bt-combo-panel li { padding: 0.65rem 0.85rem; font-size: 0.92rem; line-height: 1.35; color: var(--black); cursor: pointer; }
.bt-combo-panel li:hover { background: var(--gray-100); }
.bt-combo-panel li[aria-selected="true"] { font-weight: 600; }
.bt-combo-panel li.is-active { background: var(--navy); color: var(--white); }
.bt-combo-empty { padding: 0.65rem 0.85rem; font-size: 0.9rem; }
.bt-combo-empty:empty { padding: 0; }
.bt-error { margin: -1rem 0 1.5rem; color: #b42318; font-size: 0.92rem; }

.bt-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bt-card {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white);
}
.bt-card span { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; }
.bt-card strong { font-size: 1.35rem; color: var(--navy); line-height: 1.25; }
.bt-card small { font-size: 0.8rem; color: var(--gray-600); }
.bt-card-strat { border-color: var(--cyan); background: #f0fbfe; }
.bt-trend { margin: 1rem 0 1.5rem; font-size: 0.9rem; color: var(--gray-600); }

.bt-table-wrap { overflow-x: auto; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.bt-table th, .bt-table td { padding: 0.65rem 0.85rem; text-align: right; border-bottom: 1px solid var(--gray-200); }
.bt-table th:first-child, .bt-table td:first-child { text-align: left; }
.bt-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); }
.bt-table tbody th { font-weight: 500; color: var(--gray-600); }
.bt-table .c-strat { color: var(--cyan-dark); }
.bt-table .c-static { color: #c77a2a; }
.bt-table .c-fund { color: #7c6fe0; }
.bt-buy { color: #2e9e4f; font-weight: 600; }
.bt-sell { color: #d64545; font-weight: 600; }

.bt-h { font-size: 1.15rem; color: var(--navy); margin: 2.5rem 0 1rem; }
.bt-chart { position: relative; height: 420px; }
.bt-chart-short { height: 260px; }

.bt-cta { margin-top: 3rem; padding: 2rem; text-align: center; background: var(--navy); border-radius: var(--radius-lg); }
.bt-cta h2 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.bt-cta p { color: var(--gray-400); margin-bottom: 1.25rem; }
.bt-disclaimer { margin-top: 2.5rem; font-size: 0.78rem; color: var(--gray-600); line-height: 1.6; }
.bt-disclaimer-bold { margin-top: 0.75rem; font-size: .85rem; color: #000; }

@media (max-width: 800px) {
  .bt-summary { grid-template-columns: repeat(2, 1fr); }
  .bt-chart { height: 320px; }
}
@media (max-width: 480px) {
  .bt-summary { grid-template-columns: 1fr; }
  .bt-form .btn { width: 100%; }
}

/* SIP / Lumpsum toggle + monthly returns table */
.bt-label { font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.bt-seg { display: inline-flex; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.bt-seg label { margin: 0; cursor: pointer; }
.bt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bt-seg span { display: block; padding: 0.7rem 1.2rem; font-size: 0.92rem; color: var(--gray-600); }
.bt-seg input:checked + span { background: var(--navy); color: var(--white); }
.bt-seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: -2px; }
.bt-monthly { font-size: 0.82rem; min-width: 720px; }
.bt-monthly th, .bt-monthly td { padding: 0.45rem 0.55rem; }
.bt-monthly thead th { text-align: right; }
.bt-monthly thead th:first-child, .bt-monthly tbody th { text-align: left; }
.bt-bold { font-weight: 700; }
.bt-monthly .bt-buy, .bt-monthly .bt-sell { font-weight: 500; }
.bt-monthly .bt-bold { font-weight: 700; }

/* Drawdown hero + stacked growth/drawdown charts */
.bt-h-first { margin-top: 1.5rem; }
.bt-dd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.bt-dd-tile {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--gray-200); border-top: 4px solid var(--c, var(--gray-400));
  border-radius: var(--radius-lg);
}
.bt-dd-tile span { font-size: 0.78rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }
.bt-dd-tile strong { font-size: 2rem; line-height: 1.1; color: var(--black); font-variant-numeric: tabular-nums; }
.bt-dd-tile small { font-size: 0.8rem; color: var(--gray-600); line-height: 1.4; }
/* outcome colours: smaller fall = green, bigger fall = red */
.bt-tone-good { background: #effaf3; border-color: #b7e4c7; }
.bt-tone-good strong { color: #15803d; }
.bt-tone-bad { background: #fdf1f0; border-color: #f3c1bd; }
.bt-tone-bad strong { color: #b91c1c; }
.bt-tone-flat strong { color: var(--navy); }
.bt-dd-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,0.07); overflow: hidden; margin: 0.2rem 0 0.35rem; }
.bt-dd-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gray-400); }
.bt-tone-good .bt-dd-bar i { background: #22a35a; }
.bt-tone-bad .bt-dd-bar i { background: #dc3b32; }

/* highlighted difference */
.bt-diff {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem;
  margin-top: 1rem; padding: 0.9rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid transparent;
}
.bt-diff strong { font-size: 1.35rem; line-height: 1.2; }
.bt-diff span { font-size: 0.95rem; }
.bt-diff-good { background: #15803d; color: var(--white); }
.bt-diff-bad { background: #b91c1c; color: var(--white); }
.bt-diff-flat { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-200); font-weight: 600; }

/* collapsible signals table */
.bt-details { margin-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.bt-details summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 1rem 0;
}
.bt-details summary::-webkit-details-marker { display: none; }
.bt-details summary .bt-h { margin: 0; }
.bt-details summary::after {
  content: ""; margin-left: auto; width: 0.6rem; height: 0.6rem; flex: none;
  border-right: 2px solid var(--gray-600); border-bottom: 2px solid var(--gray-600);
  transform: rotate(45deg); transition: transform 0.15s;
}
.bt-details[open] summary::after { transform: rotate(-135deg); }
.bt-details summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.bt-count { color: var(--gray-600); font-size: 0.95rem; }

.bt-stack { display: flex; flex-direction: column; }
.bt-stack .bt-chart { height: auto; }
.bt-chart-top { height: 340px !important; }
.bt-chart-dd { height: 240px !important; margin-top: 0.25rem; }
.bt-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gray-600); }

@media (max-width: 800px) {
  .bt-chart-top { height: 280px !important; }
  .bt-chart-dd { height: 210px !important; }
  .bt-dd-tile strong { font-size: 1.7rem; }
}

/* ── Lumpsum: trade-off banner, pain table, "would you have stayed?" ── */
.bt-tradeoff {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem 1.25rem; align-items: center;
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
}
.bt-trade-col { display: flex; flex-direction: column; gap: 0.2rem; }
.bt-trade-col span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-400); }
.bt-trade-col strong { font-size: 1.7rem; line-height: 1.15; }
.bt-trade-col small { font-size: 0.8rem; color: var(--gray-400); }
.bt-trade-good strong { color: #5ee08f; }
.bt-trade-arrow { font-size: 0.9rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.1em; }
.bt-tradeoff p { grid-column: 1 / -1; margin: 0.25rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; color: #d6dde6; }

.bt-pain td small { display: block; font-size: 0.75rem; color: var(--gray-400); font-weight: 400; }
.bt-pain td.bt-win { color: #15803d; font-weight: 700; background: #effaf3; }

.bt-panic { margin-top: 3rem; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius-lg); }
.bt-panic .bt-h { margin-top: 0; }
.bt-panic-intro { color: var(--gray-600); margin-bottom: 1rem; max-width: 62ch; }
.bt-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.bt-pills label { margin: 0; cursor: pointer; }
.bt-pills input { position: absolute; opacity: 0; pointer-events: none; }
.bt-pills span {
  display: block; padding: 0.55rem 1.1rem; border: 1px solid var(--gray-200); border-radius: 999px;
  background: var(--white); font-weight: 600; font-size: 0.95rem; color: var(--gray-600); font-variant-numeric: tabular-nums;
}
.bt-pills input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.bt-pills input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.bt-panic-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bt-panic-card {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--gray-200); border-top: 4px solid var(--c, var(--gray-400)); border-radius: var(--radius-lg);
}
.bt-panic-card > span { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); }
.bt-panic-card p { margin: 0; font-size: 0.95rem; color: var(--gray-900); }
.bt-tag { align-self: flex-start; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.bt-tag-sold { background: #fdecea; color: #b91c1c; }
.bt-tag-stayed { background: #e5f6ec; color: #15803d; }
.bt-panic-end { margin-top: 0.25rem; display: flex; flex-direction: column; }
.bt-panic-end small, .bt-panic-card > small { font-size: 0.78rem; color: var(--gray-600); }
.bt-panic-end strong { font-size: 1.7rem; line-height: 1.15; color: var(--navy); }
.bt-panic-card .bt-lost { color: #b91c1c; }
.bt-verdict { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); font-size: 0.98rem; line-height: 1.5; }
.bt-verdict-good { background: #15803d; color: var(--white); }
.bt-verdict-bad { background: #b91c1c; color: var(--white); }
.bt-verdict-flat { background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-900); }

@media (max-width: 800px) {
  .bt-tradeoff { grid-template-columns: 1fr; }
  .bt-trade-arrow { justify-self: start; }
  .bt-panic-cards { grid-template-columns: 1fr; }
}


/* ── TEAM PAGE ── */
.team-member {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.team-member:first-child { padding-top: 0; }
.team-member:last-child { border-bottom: none; padding-bottom: 0; }
.team-member-alt { grid-template-columns: 1fr 340px; }
.team-member-alt .team-photo { order: 2; }

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.12);
}
.team-photo::after {                       /* thin cyan accent along the bottom edge */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--cyan);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }

.team-name { font-size: 2rem; color: var(--navy); margin-bottom: 1rem; line-height: 1.2; }
.team-bio p { color: var(--gray-600); margin-bottom: 1rem; max-width: 60ch; }
.team-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.team-tags li {
  font-size: 0.78rem; font-weight: 500; color: var(--navy);
  padding: 0.35rem 0.8rem; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--off-white);
}

@media (max-width: 800px) {
  .team-member, .team-member-alt { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0; }
  .team-member-alt .team-photo { order: 0; }
  .team-photo { max-width: 320px; }
}

/* Tighter hero + first section (Team page) */
.page-hero-compact { padding: 2.75rem 0 2.25rem; }
.section-tight { padding-top: 3rem; }
@media (max-width: 800px) {
  .page-hero-compact { padding: 2rem 0 1.5rem; }
  .section-tight { padding-top: 2rem; }
}

/* ── Research cards: source badge + filter chips ── */
.pub-card-thumb { position: relative; }
.pub-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(13, 27, 42, 0.88); color: var(--white);
}
.pub-badge-newsletter { background: var(--cyan); color: var(--navy); }
.pub-badge-medium { background: #111; }
.pub-badge-x { background: #000; }
.pub-badge-linkedin { background: #0a66c2; }
.pub-badge-other { background: var(--navy-mid); }
.pub-card-link { display: inline-block; margin-top: 0.25rem; }

.research-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  padding: 0.5rem 1.1rem; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white);
  font-size: 0.9rem; font-weight: 600; color: var(--gray-600); text-decoration: none;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip-active, .chip-active:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Anchor targets sit below the sticky header */
#research { scroll-margin-top: var(--nav-h); }

/* ── FUND BACKTEST PAGE ── */
.bk-hero .container > * { max-width: 760px; }
.bk-hero .page-hero-sub + .page-hero-sub { margin-top: 0.9rem; }
.page-hero-title.bk-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.18; }
.bk-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.bk-tool { padding: 3.5rem 0; scroll-margin-top: var(--nav-h); }
.bk-tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 3rem; align-items: start; }
.bk-tip { margin-top: 0.75rem; font-size: 0.88rem; font-style: italic; color: var(--cyan-dark); }
.bk-card { background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--cyan); border-radius: var(--radius-lg); padding: 1.5rem; }
.bk-card .empty-state { padding: 2rem 0; }
.bt-form.bt-form-card { flex-direction: column; align-items: stretch; background: none; padding: 0; margin: 0; }
.bt-form-card .bt-field-wide { flex: none; }
.bt-form-card .bt-seg { align-self: flex-start; }
.bt-form-card .btn { width: 100%; cursor: pointer; }
.bk-card .bt-error { margin: 0.75rem 0 0; }
.bk-card-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--gray-600); }
.bk-results > .bt-context { margin-top: 2.5rem; }
.bk-results > [id^="bt-results"] { padding: 0 0 3rem; }
.bk-results > .bt-context[hidden] + div:not([hidden]) { padding-top: 2.5rem; }
.bk-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bk-features .pr-type h3 { margin-top: 0; }
.bk-features .bk-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-dark); border: 1px solid var(--gray-200); border-radius: 999px; padding: 0.1rem 0.6rem; margin-bottom: 0.6rem; }
.bk-how { margin-top: 3rem; }
.bk-how h3 { font-family: var(--font-sans); font-size: 0.95rem; color: var(--navy); margin: 1rem 0 0.4rem; }
.bk-how p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.bk-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pr-disclaimer .bt-disclaimer-bold { font-size: 0.85rem; }
@media (max-width: 900px) {
  .bk-tool-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bk-features { grid-template-columns: 1fr; }
  .bk-card { padding: 1.1rem; }
  .bk-hero-actions .btn, .bk-cta-actions .btn { width: 100%; text-align: center; }
}

/* ── PORTFOLIO REVIEW LANDING PAGE ── */
.pr-actions { align-items: center; }
.pr-terms { font-size: 0.85rem; color: var(--gray-600); }
.pr-small { font-size: 0.82rem; color: var(--gray-600); margin-top: 0.9rem; }
.pr-small + .pr-small { margin-top: 0.35rem; }
.hero-card.pr-need { max-width: 340px; padding: 1.75rem 2rem; background: #2E5077; }
.pr-need .hero-card-label { font-size: 0.74rem; font-weight: 700; margin-bottom: 0.9rem; color: #7BE3F7; }
.pr-need-list { list-style: none; }
.pr-need-list li { color: var(--white); font-size: 1.05rem; padding: 0.3rem 0; }
.pr-need .pr-need-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #C9D6E5; margin: 1.1rem 0 0.4rem; }
.pr-need .pr-need-not { font-size: 0.95rem; color: #E3EAF3; }
.pr-h { font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.pr-lead { margin-bottom: 2rem; }
.pr-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pr-type { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; }
.pr-type h3 { font-size: 1.1rem; color: var(--navy); margin: 1rem 0 0.6rem; }
.pr-type p { font-size: 0.92rem; }
.pr-icon { width: 30px; height: 30px; color: var(--cyan-dark); }
.pr-type-best { background: var(--navy); border-color: var(--navy); }
.pr-type-best h3 { color: var(--white); }
.pr-type-best p { color: #D5DEE8; }
.pr-type-best .pr-icon { color: var(--cyan); }
.pr-punch { margin-top: 2rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.pr-finds { list-style: none; }
.pr-finds li { padding: 0.7rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; color: var(--gray-600); }
.pr-finds strong { color: var(--navy); }
.pr-steps { list-style: none; counter-reset: pr; }
.pr-steps li { counter-increment: pr; display: flex; gap: 1rem; align-items: flex-start; padding: 0.7rem 0; }
.pr-steps li::before { content: counter(pr); flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.pr-steps p { font-size: 0.95rem; }
.pr-steps strong { color: var(--navy); }
.pr-who { background: var(--gray-100); border-radius: var(--radius-lg); padding: 2.25rem; }
.pr-who p { margin-bottom: 0.9rem; }
.pr-faq-wrap { max-width: 960px; }
.pr-h.pr-faq-title { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.pr-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.pr-faq-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.pr-faq-mark { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #E0F8FC; color: var(--cyan-dark); font-family: var(--font-heading); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pr-faq h3 { font-size: 1.05rem; color: var(--navy); line-height: 1.4; margin: 0.25rem 0 0.5rem; }
.pr-faq p { font-size: 0.93rem; line-height: 1.65; }
.section-cyan .pr-cta-title { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; margin-bottom: 1.5rem; }
.pr-cta-terms { margin-top: 1rem; font-size: 0.85rem; color: var(--navy-mid); }
.section-cyan .pr-cta-terms { color: var(--navy-mid); }
.pr-disclaimer { background: var(--white); padding: 1.5rem 0; }
.pr-disclaimer p { font-size: 0.78rem; line-height: 1.6; }
.pr-disclaimer p + p { margin-top: 0.5rem; }
@media (max-width: 900px) {
  .pr-hero .hero-graphic { order: 0; }
  .hero-card.pr-need { max-width: 100%; padding: 1.5rem; }
  .pr-types, .pr-two { grid-template-columns: 1fr; }
  .pr-two { gap: 2.5rem; }
}
@media (max-width: 640px) {
  .pr-faq { grid-template-columns: 1fr; gap: 0.75rem; }
  .pr-faq-item { padding: 1.15rem; gap: 0.75rem; }
  .pr-who { padding: 1.5rem; }
  .pr-actions .btn { text-align: center; }
  .pr-terms { text-align: center; }
}

/* ── ANALYSE PORTFOLIO ── */
.an-form { max-width: 860px; margin: 0 auto; }
.an-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 0.5rem 1.5rem 1.5rem; margin-bottom: 1.5rem; min-width: 0; }
.an-card legend { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--navy); padding: 0 0.5rem; margin-left: -0.5rem; }
.an-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.75rem; align-items: start; }
.an-method { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.an-hint { font-size: 0.82rem; color: var(--gray-600); margin: 0.75rem 0; }
.an-head, .an-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 2.25rem; column-gap: 0.75rem; align-items: start; }
.an-head { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 0.35rem; }
.an-rows { list-style: none; }
.an-row { margin-bottom: 0.6rem; }
.an-row input { width: 100%; min-width: 0; font: inherit; font-size: 0.95rem; padding: 0.7rem 0.85rem; border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--black); background: var(--white); }
.an-row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,197,232,0.12); }
.an-number input { text-align: right; font-variant-numeric: tabular-nums; }
.an-share { display: block; text-align: right; font-size: 0.75rem; color: var(--gray-600); min-height: 0; }
.an-remove { height: 2.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--gray-600); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.an-remove:hover { border-color: #dc2626; color: #dc2626; }
.an-remove[hidden] { display: block; visibility: hidden; }
.an-row .field-error { grid-column: 1 / -1; margin-top: 0.25rem; }
.an-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.an-add { cursor: pointer; padding: 0.55rem 1.1rem; }
.an-add[hidden] { display: none; }
.an-add:disabled, .an-submit:disabled { opacity: 0.6; cursor: default; }
.an-total { margin-left: auto; font-weight: 600; color: var(--navy); padding: 0.45rem 0.9rem; border-radius: var(--radius); background: var(--gray-100); }
.an-total.is-ok { background: #E9F7EF; color: #14532D; }
.an-total.is-off { background: #FEF3E2; color: #7A4B00; }
.an-consent label { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: var(--gray-900); cursor: pointer; }
.an-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.an-consent .field-error { margin-top: 0.35rem; }
.an-error { margin-top: 0.75rem; font-size: 0.9rem; }
.an-submit { margin-top: 1.25rem; cursor: pointer; }
.an-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error p { margin: 0; color: #991b1b; }
@media (max-width: 760px) { .an-details { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .an-card { padding: 0.5rem 1rem 1.25rem; }
  .an-head { display: none; }
  .an-row { grid-template-columns: minmax(0, 1fr) 2.75rem; row-gap: 0.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gray-200); }
  .an-row input[name="scheme"] { grid-column: 1 / -1; }
  .an-total { margin-left: 0; width: 100%; }
  .an-submit { width: 100%; }
}

.form-error { margin-bottom: 1rem; padding: 0.75rem 1rem; background: #fdf1f0; border: 1px solid #f3c1bd; border-radius: var(--radius); font-size: 0.9rem; }
