/* ============================================================
 IBP Signal — styles.css
 Senior B2B editorial aesthetic. Navy, structured, trustworthy.
 ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
 --bg: #F7F8FA;
 --navy: #1B2A4A;
 --navy-deep: #0F1C35;
 --gray: #D8DEE6;
 --muted: #5F7488;
 --white: #FFFFFF;
 --text: #172033;
 --accent: #3A6EA8;
 --accent-lt: #E8EEF6;
 --rule: rgba(27,42,74,0.12);

 --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
 --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

 --r: 3px;
 --max: 1100px;
 --section-gap: 96px;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
 background: var(--bg);
 color: var(--text);
 font-family: var(--font-body);
 font-size: 17px;
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
}

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

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

section { padding: var(--section-gap) 0; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
 font-family: var(--font-display);
 color: var(--navy);
 line-height: 1.2;
 letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { max-width: 68ch; }
p + p { margin-top: 1em; }

strong { font-weight: 600; color: var(--navy); }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
 background: var(--navy-deep);
 border-bottom: 1px solid rgba(255,255,255,0.07);
 position: sticky;
 top: 0;
 z-index: 100;
}

.nav__inner {
 max-width: var(--max);
 margin: 0 auto;
 padding: 0 32px;
 height: 58px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav__logo {
 font-family: var(--font-display);
 font-size: 1.15rem;
 font-weight: 700;
 color: var(--white);
 text-decoration: none;
 letter-spacing: 0.01em;
}

.nav__logo span {
 display: inline-block;
 width: 8px; height: 8px;
 background: var(--accent);
 border-radius: 50%;
 margin-left: 6px;
 vertical-align: middle;
 position: relative;
 top: -2px;
}

.nav__cta {
 font-size: 0.85rem;
 font-weight: 600;
 color: var(--white);
 text-decoration: none;
 border: 1px solid rgba(255,255,255,0.3);
 border-radius: var(--r);
 padding: 7px 18px;
 letter-spacing: 0.02em;
 text-transform: uppercase;
 transition: background 0.2s, border-color 0.2s;
}

.nav__cta:hover {
 background: rgba(255,255,255,0.1);
 border-color: rgba(255,255,255,0.6);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
 background: var(--navy-deep);
 position: relative;
 overflow: hidden;
 padding: 100px 0 90px;
}

/* Geometric grid background texture */
.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background-image:
 linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
 background-size: 48px 48px;
 mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 100%);
 pointer-events: none;
}

/* Subtle accent glow */
.hero::after {
 content: '';
 position: absolute;
 top: -120px; left: 50%;
 transform: translateX(-50%);
 width: 700px; height: 500px;
 background: radial-gradient(ellipse at center, rgba(58,110,168,0.18) 0%, transparent 70%);
 pointer-events: none;
}

.hero__inner {
 position: relative;
 z-index: 1;
}

.hero__eyebrow {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 0.78rem;
 font-weight: 600;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--accent);
 margin-bottom: 28px;
}

.hero__eyebrow::before {
 content: '';
 display: block;
 width: 24px; height: 2px;
 background: var(--accent);
 border-radius: 2px;
}

.hero h1 {
 color: var(--white);
 max-width: 16ch;
 margin-bottom: 24px;
}

.hero__sub {
 font-size: 1.25rem;
 color: rgba(255,255,255,0.75);
 font-weight: 300;
 max-width: 54ch;
 line-height: 1.65;
 margin-bottom: 48px;
}

/* Subscribe box */
.subscribe-box {
 background: rgba(255,255,255,0.05);
 border: 1px solid rgba(255,255,255,0.1);
 border-radius: 6px;
 padding: 36px 40px;
 max-width: 540px;
 backdrop-filter: blur(6px);
}

.subscribe-box__label {
 font-size: 0.82rem;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: rgba(255,255,255,0.45);
 margin-bottom: 16px;
}

/* ── Beehiiv embed placeholder ── */
.beehiiv-placeholder {
 margin-bottom: 16px;
}

/* Fallback CTA button */
.btn-primary {
 display: inline-block;
 background: var(--accent);
 color: var(--white);
 font-family: var(--font-body);
 font-size: 0.95rem;
 font-weight: 600;
 letter-spacing: 0.02em;
 padding: 14px 32px;
 border-radius: var(--r);
 text-decoration: none;
 border: none;
 cursor: pointer;
 transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
 background: #2E5A90;
 transform: translateY(-1px);
}

.subscribe-box__note {
 margin-top: 14px;
 font-size: 0.82rem;
 color: rgba(255,255,255,0.4);
 max-width: none;
}

/* Hero stat strip */
.hero__strip {
 margin-top: 64px;
 padding-top: 40px;
 border-top: 1px solid rgba(255,255,255,0.08);
 display: flex;
 gap: 48px;
 flex-wrap: wrap;
}

.hero__stat {
 display: flex;
 flex-direction: column;
 gap: 4px;
}

.hero__stat-label {
 font-size: 0.78rem;
 font-weight: 600;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: rgba(255,255,255,0.35);
}

.hero__stat-value {
 font-family: var(--font-display);
 font-size: 1.05rem;
 color: rgba(255,255,255,0.85);
 font-weight: 600;
}

/* ── SECTION: What we track ─────────────────────────────────── */
.section-tracks {
 background: var(--white);
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
}

.section-header {
 margin-bottom: 56px;
}

.section-eyebrow {
 display: inline-block;
 font-size: 0.75rem;
 font-weight: 600;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--accent);
 margin-bottom: 14px;
}

.section-header p {
 margin-top: 16px;
 color: var(--muted);
 font-size: 1.05rem;
}

.tracks-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
 gap: 24px;
}

.track-card {
 background: var(--bg);
 border: 1px solid var(--gray);
 border-radius: 4px;
 padding: 32px 28px;
 position: relative;
 transition: border-color 0.2s, box-shadow 0.2s;
}

.track-card:hover {
 border-color: var(--accent);
 box-shadow: 0 4px 20px rgba(27,42,74,0.08);
}

.track-card__icon {
 width: 36px; height: 36px;
 background: var(--accent-lt);
 border-radius: 4px;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 20px;
 color: var(--accent);
}

.track-card h3 {
 font-size: 1rem;
 margin-bottom: 10px;
}

.track-card p {
 font-size: 0.88rem;
 color: var(--muted);
 line-height: 1.6;
}

/* ── SECTION: Why Different ─────────────────────────────────── */
.section-why {
 background: var(--bg);
}

.why-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 64px;
 align-items: start;
}

.why-list {
 list-style: none;
 margin-top: 32px;
}

.why-list li {
 padding: 20px 0;
 border-bottom: 1px solid var(--rule);
 display: flex;
 gap: 20px;
 align-items: flex-start;
}

.why-list li:last-child { border-bottom: none; }

.why-list__num {
 font-family: var(--font-display);
 font-size: 1.4rem;
 font-weight: 700;
 color: var(--gray);
 flex-shrink: 0;
 line-height: 1;
 padding-top: 2px;
 min-width: 28px;
}

.why-list__body strong {
 display: block;
 margin-bottom: 4px;
}

.why-list__body p {
 font-size: 0.9rem;
 color: var(--muted);
 max-width: none;
}

/* Right column pull-quote */
.why-pullquote {
 background: var(--navy);
 border-radius: 4px;
 padding: 48px 40px;
 color: var(--white);
 position: sticky;
 top: 80px;
}

.why-pullquote blockquote {
 font-family: var(--font-display);
 font-size: 1.35rem;
 font-weight: 400;
 line-height: 1.55;
 color: rgba(255,255,255,0.88);
 border-left: 3px solid var(--accent);
 padding-left: 24px;
 margin-bottom: 28px;
 font-style: italic;
}

.why-pullquote__caption {
 font-size: 0.8rem;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: rgba(255,255,255,0.4);
}

/* ── SECTION: What you receive ──────────────────────────────── */
.section-receive {
 background: var(--white);
 border-top: 1px solid var(--rule);
}

.receive-layout {
 display: grid;
 grid-template-columns: 1fr 1.1fr;
 gap: 80px;
 align-items: center;
}

.receive-list {
 list-style: none;
 margin-top: 0;
}

.receive-list li {
 display: flex;
 gap: 18px;
 align-items: flex-start;
 padding: 16px 0;
 border-bottom: 1px solid var(--rule);
 font-size: 0.95rem;
}

.receive-list li:first-child { border-top: 1px solid var(--rule); }

.receive-list__marker {
 width: 6px; height: 6px;
 border-radius: 50%;
 background: var(--accent);
 flex-shrink: 0;
 margin-top: 9px;
}

/* Issue preview card */
.issue-preview {
 background: var(--bg);
 border: 1px solid var(--gray);
 border-radius: 4px;
 overflow: hidden;
}

.issue-preview__header {
 background: var(--navy);
 padding: 20px 28px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.issue-preview__header-title {
 font-family: var(--font-display);
 font-size: 1rem;
 font-weight: 600;
 color: var(--white);
}

.issue-preview__badge {
 font-size: 0.72rem;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: var(--accent);
 background: rgba(58,110,168,0.2);
 padding: 4px 10px;
 border-radius: 2px;
}

.issue-preview__body {
 padding: 28px;
}

.issue-preview__item {
 padding: 12px 0;
 border-bottom: 1px solid var(--rule);
 font-size: 0.88rem;
}

.issue-preview__item:last-child { border-bottom: none; }

.issue-preview__item-label {
 font-size: 0.72rem;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: var(--accent);
 margin-bottom: 4px;
}

.issue-preview__item p {
 color: var(--muted);
 max-width: none;
 font-size: 0.88rem;
}

/* ── SECTION: Founder ───────────────────────────────────────── */
.section-founder {
 background: var(--bg);
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
}

.founder-card {
 max-width: 740px;
 display: flex;
 gap: 40px;
 align-items: flex-start;
}

.founder-card__avatar {
 width: 72px; height: 72px;
 border-radius: 50%;
 background: var(--navy);
 flex-shrink: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 font-family: var(--font-display);
 font-size: 1.6rem;
 font-weight: 700;
 color: var(--white);
 letter-spacing: -0.02em;
}

.founder-card__body h3 {
 font-size: 1.1rem;
 margin-bottom: 4px;
}

.founder-card__role {
 font-size: 0.82rem;
 font-weight: 600;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--accent);
 margin-bottom: 16px;
}

.founder-card__body p {
 color: var(--muted);
 font-size: 0.95rem;
}

/* ── SECTION: Final CTA ─────────────────────────────────────── */
.section-cta {
 background: var(--navy-deep);
 padding: 100px 0;
 position: relative;
 overflow: hidden;
}

.section-cta::before {
 content: '';
 position: absolute;
 inset: 0;
 background-image:
 linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
 background-size: 48px 48px;
 pointer-events: none;
}

.cta-block {
 position: relative;
 z-index: 1;
 max-width: 600px;
}

.cta-block h2 {
 color: var(--white);
 margin-bottom: 18px;
}

.cta-block p {
 color: rgba(255,255,255,0.6);
 font-size: 1.05rem;
 margin-bottom: 40px;
}

/* Reuse subscribe-box styles with slight overrides */
.cta-block .subscribe-box {
 max-width: 100%;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
 background: var(--navy-deep);
 border-top: 1px solid rgba(255,255,255,0.07);
 padding: 48px 0;
 color: rgba(255,255,255,0.45);
 font-size: 0.85rem;
}

.footer__inner {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 flex-wrap: wrap;
 gap: 32px;
}

.footer__brand {
 font-family: var(--font-display);
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--white);
 margin-bottom: 8px;
}

.footer__meta { line-height: 1.8; }

.footer__links {
 display: flex;
 flex-direction: column;
 gap: 8px;
 text-align: right;
}

.footer__links a {
 color: rgba(255,255,255,0.45);
 text-decoration: none;
 transition: color 0.2s;
}

.footer__links a:hover { color: rgba(255,255,255,0.85); }

/* ── Privacy page ───────────────────────────────────────────── */
.page-header {
 background: var(--navy-deep);
 padding: 64px 0 56px;
 position: relative;
}

.page-header::before {
 content: '';
 position: absolute;
 inset: 0;
 background-image:
 linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
 background-size: 48px 48px;
 pointer-events: none;
}

.page-header h1 {
 color: var(--white);
 font-size: clamp(1.8rem, 3vw, 2.5rem);
 position: relative;
 z-index: 1;
}

.page-header__sub {
 color: rgba(255,255,255,0.5);
 margin-top: 8px;
 font-size: 0.9rem;
 position: relative;
 z-index: 1;
}

.prose {
 max-width: 720px;
 padding: 72px 0 96px;
}

.prose h2 {
 font-size: 1.25rem;
 margin: 40px 0 14px;
 padding-top: 40px;
 border-top: 1px solid var(--rule);
}

.prose h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.prose p {
 margin-bottom: 1em;
 color: var(--text);
 max-width: none;
}

.prose a {
 color: var(--accent);
 text-decoration: underline;
 text-underline-offset: 3px;
}

.prose .updated-note {
 display: inline-block;
 background: var(--accent-lt);
 color: var(--accent);
 font-size: 0.8rem;
 font-weight: 600;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 padding: 6px 14px;
 border-radius: 3px;
 margin-bottom: 36px;
}

.prose .evolving-note {
 margin-top: 40px;
 padding: 20px 24px;
 border-left: 3px solid var(--gray);
 color: var(--muted);
 font-size: 0.9rem;
 font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
 :root { --section-gap: 64px; }

 .container { padding: 0 20px; }

 .why-grid,
 .receive-layout { grid-template-columns: 1fr; gap: 40px; }

 .why-pullquote { position: static; }

 .hero__strip { gap: 32px; }

 .footer__inner { flex-direction: column; }
 .footer__links { text-align: left; }

 .subscribe-box { padding: 28px 24px; }

 .founder-card { flex-direction: column; gap: 20px; }
}

@media (max-width: 540px) {
 h1 { font-size: 2.2rem; }
 .hero { padding: 72px 0 64px; }
 .tracks-grid { grid-template-columns: 1fr; }
 .subscribe-box { padding: 24px 20px; }
}