/* Refenture Static Pages — shared styles
   Matches the MUI theme: navy primary, Inter font, 12px radius */

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

:root {
  --primary-900: #0E2A50;
  --primary-700: #123769;
  --primary-600: #174785;
  --primary-500: #1E57A3;
  --accent-600: #1C9E6F;
  --accent-300: #86D7BE;
  --neutral-50: #F7F8FA;
  --neutral-100: #F1F2F4;
  --neutral-200: #E6E8EB;
  --neutral-700: #4E5762;
  --neutral-900: #222A33;
  --error: #C1352A;
  --radius: 12px;
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px; }

/* ── AppBar ─────────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 100;
  background: white;
  border-bottom: 1px solid var(--neutral-200);
  transition: all .3s ease;
}
.appbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.appbar__logo {
  font-weight: 700; font-style: italic; font-size: 1.25rem;
  color: var(--primary-600); text-decoration: none;
}
.appbar__logo:hover { text-decoration: none; }
.appbar__nav { display: flex; gap: 4px; }
.appbar__link {
  padding: 8px 16px; border-radius: 8px; font-size: 0.938rem; font-weight: 500;
  color: var(--neutral-700); text-decoration: none; transition: color .2s;
}
.appbar__link:hover, .appbar__link--active {
  color: var(--primary-600); text-decoration: none;
}
.appbar__link--active { font-weight: 600; }
.appbar__right { display: flex; align-items: center; gap: 16px; }
.appbar__signin {
  font-size: 0.938rem; font-weight: 500; color: var(--neutral-700);
  text-decoration: none; padding: 8px 12px;
}
.appbar__signin:hover { color: var(--primary-600); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.938rem; text-align: center;
  text-decoration: none; border-radius: var(--radius); padding: 10px 24px;
  transition: all .3s ease; cursor: pointer; border: none;
}
.btn:hover { text-decoration: none; }
.btn--gradient {
  background: linear-gradient(135deg, #174785 0%, #1C9E6F 100%);
  color: #fff; box-shadow: 0 2px 12px rgba(23,71,133,0.25);
}
.btn--gradient:hover {
  background: linear-gradient(135deg, #123769 0%, #178a5f 100%);
  box-shadow: 0 4px 20px rgba(23,71,133,0.35); transform: translateY(-1px);
}
.btn--white {
  background: #fff; color: var(--primary-900); font-weight: 700; font-size: 1.05rem;
  padding: 14px 40px;
  box-shadow: 0 0 40px rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.2);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(255,255,255,0.2), 0 12px 40px rgba(0,0,0,0.25); }
.btn--outlined {
  background: transparent; color: var(--primary-600);
  border: 1px solid var(--primary-600); padding: 10px 24px;
}
.btn--outlined:hover { background: var(--neutral-100); border-color: var(--primary-700); }
.btn--full { width: 100%; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0E2A50 0%, #123769 25%, #174785 50%, #0E2A50 75%, #123769 100%);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
  color: #fff;
  padding: 96px 0 120px;
  position: relative; overflow: visible;
  text-align: center;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__badge {
  display: inline-block; margin-bottom: 24px; padding: 4px 16px;
  background: rgba(28,158,111,0.15); color: var(--accent-300);
  border: 1px solid rgba(28,158,111,0.25); border-radius: 20px;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  max-width: 760px; margin: 0 auto 24px;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 400;
  line-height: 1.65; color: rgba(255,255,255,0.75);
  max-width: 620px; margin: 0 auto 40px;
}
.hero__supporting {
  margin-top: 20px; color: rgba(255,255,255,0.5); font-size: 0.85rem;
}
.hero__preview {
  margin-top: 48px;
  margin-bottom: -96px;
  position: relative;
  z-index: 2;
  padding: 0 32px;
}
.hero__preview img {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero + .section { padding-top: 128px; }
.hero__wave {
  position: absolute; bottom: -1px; left: 0; width: 100%;
  line-height: 0;
}
.hero__wave svg { display: block; width: 100%; height: auto; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--lg { padding: 96px 0; }
.section--gray { background: var(--neutral-50); }
.section--white { background: #fff; }
.section--dot-bg {
  background-image: radial-gradient(circle, rgba(14,42,80,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section__title {
  font-weight: 800; text-align: center; margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.01em;
}
.section__subtitle {
  text-align: center; color: var(--neutral-700); margin-bottom: 48px;
  font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
.section__text {
  color: var(--neutral-700); font-size: 1.1rem; line-height: 1.7; margin-bottom: 24px;
}
.section__text--bold { font-weight: 700; color: var(--neutral-900); }

/* ── Stat Callouts ──────────────────────────────────────── */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; margin: 40px 0; }
.stat { text-align: center; }
.stat__value { font-size: 2.5rem; font-weight: 800; color: var(--neutral-900); }
.stat__value--accent { color: var(--accent-600); }
.stat__label { font-size: 0.875rem; color: var(--neutral-700); margin-top: 4px; }

/* ── Pull Quote ─────────────────────────────────────────── */
.pullquote {
  border-top: 2px solid transparent; border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #1C9E6F, transparent) 1;
  padding: 24px 0; margin-top: 32px; text-align: center;
}
.pullquote p {
  font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--accent-600); line-height: 1.5;
}

/* ── Problem Cards ──────────────────────────────────────── */
.problem-cards { display: flex; flex-direction: column; gap: 20px; }
.problem-card {
  border-left: 4px solid var(--error);
  background: rgba(193,53,42,0.03);
  border: 1px solid rgba(193,53,42,0.08);
  border-left: 4px solid var(--error);
  border-radius: var(--radius); padding: 24px;
  transition: all .3s ease;
}
.problem-card:hover { background: rgba(193,53,42,0.05); box-shadow: 0 4px 16px rgba(193,53,42,0.08); }
.problem-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.problem-card p { color: var(--neutral-700); line-height: 1.7; }

/* ── Pillars (3 col) ───────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.pillar {
  padding: 32px 24px; border-radius: 16px;
  background: #fff; border: 1px solid var(--neutral-200);
  box-shadow: 0 6px 24px rgba(17,24,39,0.06);
  transition: all .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(17,24,39,0.1); }
.pillar h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.pillar p { color: var(--neutral-700); line-height: 1.7; font-size: 0.95rem; }

/* ── Steps (How It Works) ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step { text-align: center; padding: 0 16px; }
.step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #174785 0%, #1C9E6F 100%);
  color: #fff; font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(23,71,133,0.25);
  margin-bottom: 20px;
}
.step__label { color: var(--accent-600); font-weight: 700; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; }
.step h3 { font-weight: 600; margin: 8px 0; }
.step p { color: var(--neutral-700); line-height: 1.7; font-size: 0.875rem; }

.steps__supporting {
  max-width: 600px; margin: 48px auto 0; text-align: center;
  background: rgba(28,158,111,0.06); border: 1px solid rgba(28,158,111,0.12);
  border-radius: var(--radius); padding: 12px 24px;
  color: var(--neutral-700); font-weight: 500;
}

/* ── Bullet List Section ────────────────────────────────── */
.bullets { padding: 64px 0; }
.bullets__list { list-style: none; padding: 0; }
.bullets__list li {
  position: relative; padding-left: 28px; margin-bottom: 16px;
  color: var(--neutral-700); font-size: 1rem; line-height: 1.7;
}
.bullets__list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(28,158,111,0.15);
  border: 2px solid var(--accent-600);
}
.bullets__intro { color: var(--neutral-700); font-size: 1.05rem; margin-bottom: 24px; }
.bullets__outro { color: var(--neutral-700); font-size: 1.05rem; margin-top: 24px; }
.bullets__outro a { color: var(--accent-600); font-weight: 600; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; }
.pricing-card {
  background: #fff; border: 1px solid var(--neutral-200); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(17,24,39,0.06);
  transition: all .3s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(17,24,39,0.1); }
.pricing-card--highlighted {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #174785, #1C9E6F);
  background-origin: border-box; background-clip: padding-box, border-box;
  transform: scale(1.05); position: relative;
}
.pricing-card--highlighted:hover { transform: scale(1.05); box-shadow: 0 20px 60px rgba(23,71,133,0.2); }
.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-600); color: #fff;
  padding: 4px 20px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  box-shadow: 0 2px 8px rgba(28,158,111,0.3);
}
.pricing-card h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.pricing-card__price { font-weight: 800; font-size: 2.5rem; }
.pricing-card__price--gradient {
  background: linear-gradient(135deg, #174785 0%, #1C9E6F 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card__period { color: var(--neutral-700); font-size: 0.875rem; }
.pricing-card__desc { color: var(--neutral-700); font-size: 0.875rem; margin: 4px 0 24px; }
.pricing-card__features { list-style: none; padding: 0; flex: 1; }
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.875rem;
}
.pricing-card__features li::before {
  content: '\2713'; display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(28,158,111,0.1); color: var(--accent-600);
  font-size: 12px; font-weight: 700;
}
.pricing-card .btn { margin-top: 24px; }

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0E2A50 0%, #123769 50%, #174785 100%);
  color: #fff; padding: 96px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
  max-width: 700px; margin: 0 auto 16px; line-height: 1.15;
}
.cta-section__subtitle {
  color: rgba(255,255,255,0.7); font-size: 1.1rem;
  max-width: 560px; margin: 0 auto 40px; line-height: 1.6;
}
.cta-section__supporting {
  margin-top: 20px; color: rgba(255,255,255,0.5); font-size: 0.85rem;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--neutral-200); border-radius: var(--radius);
  overflow: hidden; transition: all .3s ease;
}
.faq-item:hover { border-color: rgba(28,158,111,0.3); }
.faq-item summary {
  padding: 16px 24px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; color: var(--neutral-700); transition: transform .3s;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\00d7'; background: rgba(28,158,111,0.1); color: var(--accent-600); }
.faq-item[open] { border-color: transparent; border-left: 3px solid var(--accent-600); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.faq-item__answer { padding: 0 24px 24px; color: var(--neutral-700); line-height: 1.7; font-size: 0.875rem; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--primary-900); color: #fff; }
.footer__gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #174785 25%, #1C9E6F 50%, #174785 75%, transparent 100%);
}
.footer__inner { padding: 48px 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand-desc { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer__heading {
  font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 0.7rem; margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4); font-size: 0.75rem;
}

/* ── Narrative section (advisors) ───────────────────────── */
.narrative { padding: 64px 0; }
.narrative h2 {
  font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em; margin-bottom: 24px;
}
.narrative ol { padding-left: 24px; margin-bottom: 40px; }
.narrative ol li { margin-bottom: 16px; color: var(--neutral-700); font-size: 1.05rem; }
.narrative ul { padding-left: 24px; }
.narrative ul li { margin-bottom: 12px; color: var(--neutral-700); font-size: 1.05rem; }

/* Example box */
.example-box {
  background: var(--neutral-50); border: 1px solid var(--neutral-200);
  border-radius: var(--radius); padding: 32px; margin-bottom: 32px;
}
.example-box h3 { font-weight: 700; margin-bottom: 16px; }
.example-box p { color: var(--neutral-700); font-size: 1.05rem; }

/* ── Wave divider ───────────────────────────────────────── */
.wave-divider { line-height: 0; margin-top: -1px; }
.wave-divider svg { display: block; width: 100%; }

/* ── Mobile Hamburger & Drawer ─────────────────────────── */
.appbar__hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--neutral-700); padding: 8px; border-radius: 8px;
  transition: background .2s;
}
.appbar__hamburger:hover { background: var(--neutral-100); }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: absolute; top: 0; right: 0;
  width: 280px; max-width: 85vw; height: 100%;
  background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.drawer-backdrop.open .drawer { transform: translateX(0); }

.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--neutral-200);
  min-height: 72px;
}
.drawer__close {
  background: none; border: none; cursor: pointer;
  color: var(--neutral-700); padding: 8px; border-radius: 8px;
  transition: background .2s;
}
.drawer__close:hover { background: var(--neutral-100); }

.drawer__nav {
  display: flex; flex-direction: column; padding: 16px 20px; gap: 4px;
}
.drawer__nav a {
  padding: 12px 16px; border-radius: 8px; font-size: 1rem; font-weight: 500;
  color: var(--neutral-700); text-decoration: none; transition: background .2s;
}
.drawer__nav a:hover { background: var(--neutral-100); text-decoration: none; }

.drawer__actions {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px; margin-top: auto; border-top: 1px solid var(--neutral-200);
}
.drawer__signin {
  display: block; text-align: center; padding: 12px 16px;
  font-size: 1rem; font-weight: 500; color: var(--neutral-700);
  text-decoration: none; border-radius: 8px; transition: background .2s;
}
.drawer__signin:hover { background: var(--neutral-100); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card--highlighted { transform: none; }
  .pricing-card--highlighted:hover { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 32px; }
}

@media (max-width: 768px) {
  .appbar__nav { display: none; }
  .appbar__right { display: none; }
  .appbar__hamburger { display: flex; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 80px; text-align: left; }
  .hero h1, .hero__subtitle { text-align: left; margin-left: 0; }
  .hero__preview { margin-top: 32px; margin-bottom: -48px; padding: 0; }
  .hero + .section { padding-top: 80px; }
  .section { padding: 48px 0; }
  .section--lg { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
