*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F7F6F2; --surface: #FFFFFF; --surface2: #F0EFE9;
  --text: #1A1916; --muted: #6B6860; --accent: #1B4FD8;
  --accent2: #1440B3; --border: #E5E3DC;
  --gold: #92400E; --green: #047857;
}
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* HEADER */
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.logo { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--accent); text-decoration: none; letter-spacing: -0.5px; }
.logo em { font-style: italic; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { font-size: 13px; text-decoration: none; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 520px) { .nav-links a:not(.nav-home) { display: none; } }

/* HERO — now contains the quick find */
.hero {
  background: var(--text);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,79,216,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,79,216,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(48px); } }
.hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(27,79,216,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(27,79,216,0.2); border: 1px solid rgba(27,79,216,0.4); color: #93C5FD; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 14px; border-radius: 100px; margin-bottom: 1rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.1; color: white; margin-bottom: 0.6rem; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: #93C5FD; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 300; margin-bottom: 1.5rem; }

/* QUICK FIND — inside the hero */
.quick-find-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); margin-bottom: 0.65rem; }
.quick-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; max-width: 700px; margin: 0 auto; }
.quick-link { display: inline-flex; align-items: center; gap: 5px; padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; text-decoration: none; color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; transition: all 0.15s; white-space: nowrap; }
.quick-link:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); color: white; transform: translateY(-1px); }
.quick-link .ql-icon { font-size: 14px; }

/* COUNTER STRIP */
.counter-strip { background: var(--accent); padding: 0.6rem 2rem; display: flex; justify-content: center; gap: 3rem; }
.counter-item { text-align: center; color: white; }
.counter-num { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.counter-lbl { font-size: 10px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
@media (max-width: 480px) { .counter-strip { gap: 1.5rem; } .counter-num { font-size: 1.1rem; } }

main { flex: 1; max-width: 960px; margin: 0 auto; width: 100%; padding: 2.5rem 1.5rem; }

.section-header { text-align: center; margin-bottom: 1.75rem; }
.section-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.4rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 400; color: var(--text); line-height: 1.2; }
.section-title em { font-style: italic; }

/* CALC GRID */
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.calc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--accent)); opacity: 0; transition: opacity 0.2s; }
.calc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--card-color, var(--accent)); }
.calc-card:hover::before { opacity: 1; }
.calc-card.featured { grid-column: span 2; background: linear-gradient(135deg, #1440B3, #1B4FD8); border-color: transparent; color: white; }
.calc-card.featured::before { display: none; }
.calc-card.featured:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27,79,216,0.3); }
@media (max-width: 768px) { .calc-card.featured { grid-column: span 1; } }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.2; }
.calc-card.featured .card-title { color: white; }
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 0.75rem; }
.calc-card.featured .card-desc { color: rgba(255,255,255,0.7); }
.card-example { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.calc-card.featured .card-example { color: #93C5FD; }
.card-arrow { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 1rem; color: var(--border); transition: color 0.2s, transform 0.2s; }
.calc-card:hover .card-arrow { color: var(--card-color, var(--accent)); transform: translate(2px, -2px); }
.calc-card.featured .card-arrow { color: rgba(255,255,255,0.3); }
.calc-card.featured:hover .card-arrow { color: white; transform: translate(2px, -2px); }

/* GUIDES */
.guides-section { margin-bottom: 2.5rem; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; display: flex; flex-direction: column; gap: 0.4rem; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); border-color: var(--accent); }
.guide-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.guide-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.guide-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.guide-arrow { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 0.5rem; }

/* WHY */
.why-section { margin-bottom: 2.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; text-align: center; }
.why-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.why-title { font-size: 13px; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.why-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* FORMULA */
.formula-section { background: var(--text); border-radius: 24px; padding: 2.5rem; margin-bottom: 2.5rem; color: white; position: relative; overflow: hidden; }
.formula-section::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(27,79,216,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(27,79,216,0.1) 1px, transparent 1px); background-size: 32px 32px; }
.formula-inner { position: relative; z-index: 1; }
.formula-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.formula-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; line-height: 1.5; }
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 600px) { .formula-grid { grid-template-columns: 1fr; } }
.formula-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1rem; }
.formula-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #93C5FD; margin-bottom: 0.35rem; }
.formula-text { font-family: 'Playfair Display', serif; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 1.5rem 2rem; text-align: center; font-size: 12px; color: var(--muted); }
footer a { color: var(--accent); text-decoration: underline; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
