/* Frank Insurance Partners — shared styles
   Palette from the brand brief: Emerald #047857, Royal blue #2449B8, Slate #334155, Cloud #F2F5F7 */
:root {
  --emerald: #047857;
  --emerald-soft: #6EE7B7;
  --royal: #2449B8;
  --royal-hover: #1D3C9A;
  --slate: #334155;
  --slate-deep: #1E2938;
  --ink: #141B26;
  --cloud: #F2F5F7;
  --white: #FFFFFF;
  --muted: #64748B;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #E2E8F0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald);
}
.lede { font-size: 1.2rem; line-height: 1.6; max-width: 40ch; }
.section-num {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.section-num span:first-child { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--emerald); text-transform: none; }
.section-num::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.dark .section-num { color: rgba(255,255,255,0.6); }
.dark .section-num span:first-child { color: var(--emerald-soft); }
.dark .section-num::after { background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-hover); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: #065F46; }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.text-link { color: var(--royal); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dark .text-link { color: var(--emerald-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.site-header .logo img { height: 44px; width: auto; }
.site-header .logo .logo-dark { display: none; }
.site-header.scrolled, .site-header.solid { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.scrolled .logo-light, .site-header.solid .logo-light { display: none; }
.site-header.scrolled .logo-dark, .site-header.solid .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--white); }
.site-header.scrolled .nav a, .site-header.solid .nav a { color: var(--slate); }
.site-header.scrolled .nav a:hover, .site-header.solid .nav a:hover { color: var(--royal); }
.nav .nav-consumer { color: var(--emerald-soft); font-weight: 600; }
.site-header.scrolled .nav .nav-consumer, .site-header.solid .nav .nav-consumer { color: var(--emerald); }
.nav .btn { padding: 11px 18px; font-size: 0.88rem; }
.site-header .nav .btn-primary, .site-header.scrolled .nav .btn-primary { color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }
.site-header.scrolled .menu-toggle, .site-header.solid .menu-toggle { color: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(36,73,184,0.45), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(4,120,87,0.35), transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 55%, var(--ink) 100%);
}
.hero::before { /* subtle architectural line grid */
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .wrap { position: relative; padding-top: 160px; padding-bottom: 96px; width: 100%; }
.hero .eyebrow { color: var(--emerald-soft); margin-bottom: 26px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,0.82); margin: 30px 0 40px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
  margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.hero-foot .scroll { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.hero-foot .scroll::after { content: " ↓"; }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.dark { background: var(--slate-deep); color: rgba(255,255,255,0.78); }
.dark h2, .dark h3 { color: var(--white); }
.cloud { background: var(--cloud); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Benefit cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.card {
  border-top: 3px solid var(--emerald); padding: 30px 4px 8px;
}
.card h3 { margin-bottom: 14px; }
.card p { margin: 0 0 18px; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.card li { padding: 8px 0; border-top: 1px solid var(--line-dark); }
.card li::before { content: "—"; color: var(--emerald); margin-right: 10px; }
.footnote { font-size: 0.82rem; color: var(--muted); margin-top: 36px; }

/* Big stat */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 32px 24px 0 0; }
.stat .num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--white); }
.stat .num em { color: var(--emerald-soft); }
.stat .label { margin-top: 12px; font-size: 0.92rem; }

/* Status tag */
.tag {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--emerald); color: var(--emerald);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px;
}
.dark .tag { border-color: var(--emerald-soft); color: var(--emerald-soft); }

/* Portrait */
.portrait {
  aspect-ratio: 4 / 5; margin: 0; position: relative; max-width: 380px; justify-self: center; width: 100%;
  background: var(--cloud); box-shadow: 24px 24px 0 var(--cloud);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,0.5); pointer-events: none; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.45; color: var(--ink); margin: 28px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line-dark); }
.step { padding: 32px 32px 0 0; }
.step .n { font-family: var(--serif); font-style: italic; color: var(--emerald); font-size: 1.1rem; }
.step h3 { margin: 10px 0 12px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--emerald); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; max-width: 62ch; }

/* Consumer band */
.consumer-band { padding: 56px 0; background: var(--cloud); border-top: 3px solid var(--emerald); }
.consumer-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.consumer-band p { margin: 0; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.cta p { margin: 22px auto 40px; max-width: 52ch; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 88px 0 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 22px; }
.site-footer h4 { color: var(--white); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.disclaimer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; line-height: 1.6; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 0.8rem; }

/* Placeholder marker — remove before launch */
.todo { background: rgba(250, 204, 21, 0.25); outline: 1px dashed #CA8A04; padding: 0 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--white); padding: 24px 32px 32px; gap: 18px; box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a { color: var(--slate); }
  .nav .nav-consumer { color: var(--emerald); }
}
@media (max-width: 980px) {
  .split, .split-even { grid-template-columns: 1fr; gap: 40px; }
  .cards, .steps, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 88px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .logo img { height: 36px; }
}
