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

:root {
  --chalkboard: #384632;
  --blue-ink: #344054;
  --parchment: #F2EADC;
  --dark-parchment: #413D39;
  --pencil-lead: #262626;
  --swingline: #512A32;
  --leather: #48342B;
  --filing-tan: #F5F3EA;
  --filing-grey: #EFEDE6;
  --filing-cream: #EFE6D6;
  --manilla: #EDE6CC;
  --dusty-manilla: #F5EFE5;
  --gold-star: #FFFF63;
  --ledger: #F3F5F6;
  --black-ink: #000000;
  --magnet: #5B5955;
  --no2-pencil: #ECC243;
  --bathroom-tile: #F5FFF7;
  --magic-marker: #17142C;
  --eraser: #FAE7DC;
  --whiteout: #FFFFFF;
  --metal-desk: #F2F7F7;
  --smudge: #DADED9;
  --blue-book: #E3EBEA;
  --accounting: #EEF4F3;

  --bg: var(--metal-desk);
  --bg-alt: var(--parchment);
  --bg-card: var(--whiteout);
  --text-primary: var(--pencil-lead);
  --text-secondary: var(--magnet);
  --text-muted: #8A857D;
  --accent: var(--chalkboard);
  --accent-warm: var(--leather);
  --border: #DDD8CE;

  --font-logo: 'Libre Baskerville', 'Baskerville', 'Georgia', serif;
  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(38,38,38,0.06);
  --shadow-md: 0 4px 20px rgba(38,38,38,0.08);
  --shadow-lg: 0 12px 40px rgba(38,38,38,0.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--filing-grey); }
::-webkit-scrollbar-thumb { background: var(--smudge); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--magnet); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25,1,0.5,1), transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 16px 0;
  background: var(--dark-parchment);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.75rem;
  color: var(--parchment); text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(242,234,220,0.7); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--parchment); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
}
.btn-primary {
  background: var(--chalkboard); color: var(--filing-tan);
  box-shadow: 0 2px 8px rgba(56,70,50,0.2);
}
.btn-primary:hover { background: #2d3a28; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(56,70,50,0.25); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--chalkboard); background: rgba(56,70,50,0.04); }
.btn-ghost { background: transparent; color: rgba(242,234,220,0.7); padding: 11px 16px; }
.btn-ghost:hover { color: var(--parchment); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn-primary {
  background: var(--parchment); color: var(--dark-parchment);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-cta .btn-primary:hover { background: var(--whiteout); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--parchment); border-radius: 2px; }

/* HERO */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 39px, rgba(56,70,50,0.03) 39px, rgba(56,70,50,0.03) 40px);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(50% - 530px); width: 1px;
  background: rgba(81,42,50,0.08); pointer-events: none;
}
.hero-content {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 72px; align-items: center; position: relative; z-index: 2;
}
.hero-text { max-width: 540px; }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem,4.5vw,3.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--pencil-lead); margin-bottom: 22px;
  opacity: 0; animation: fadeUp 0.6s ease forwards;
}
.hero h1 em { font-style: italic; color: var(--chalkboard); }
.hero-sub {
  font-size: 1.1rem; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 36px; max-width: 460px;
  opacity: 0; animation: fadeUp 0.6s ease 0.12s forwards;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s ease 0.24s forwards;
}

.hero-visual { position: relative; opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards; }
.notebook {
  background: var(--whiteout); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 36px 32px 28px; position: relative; transform: rotate(-1.5deg);
}
.notebook::before {
  content: ''; position: absolute; left: 24px; top: 12px; bottom: 12px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--smudge) 0px, var(--smudge) 6px, transparent 6px, transparent 18px);
}
.notebook-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-left: 16px; }
.notebook-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--blue-ink); }
.notebook-badge { font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: rgba(56,70,50,0.08); color: var(--chalkboard); }
.notebook-lines { padding-left: 16px; display: flex; flex-direction: column; gap: 14px; }
.nb-line { height: 1px; background: rgba(56,70,50,0.06); position: relative; }
.nb-line-text { position: absolute; top: -10px; left: 0; font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; }
.nb-line-text.ink { color: var(--blue-ink); font-weight: 500; }
.nb-line-text.pencil { color: var(--text-muted); font-style: italic; font-family: var(--font-display); }
.nb-progress { margin-top: 18px; padding-left: 16px; }
.nb-progress-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.nb-progress-bar { height: 8px; background: var(--filing-grey); border-radius: 4px; overflow: hidden; }
.nb-progress-fill { height: 100%; width: 68%; background: linear-gradient(90deg, var(--chalkboard), #4a5d42); border-radius: 4px; }

.float-card {
  position: absolute; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 16px 20px; font-size: 0.8rem;
}
.float-card-1 { background: var(--manilla); top: -20px; right: -16px; transform: rotate(3deg); color: var(--accent-warm); font-weight: 600; border: 1px solid rgba(72,52,43,0.1); z-index: 3; animation: f1 4s ease-in-out infinite; }
.float-card-2 { background: var(--eraser); bottom: -16px; right: 20px; transform: rotate(-2deg); color: var(--swingline); font-family: var(--font-display); font-style: italic; z-index: 3; animation: f2 5s ease-in-out infinite; }
.float-card-3 { background: var(--whiteout); bottom: 30px; left: -24px; transform: rotate(1.5deg); z-index: 3; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--chalkboard); border: 1px solid var(--border); animation: f3 4.5s ease-in-out infinite; }
.gold-star { font-size: 1.2rem; filter: drop-shadow(0 1px 2px rgba(236,194,67,0.4)); }
@keyframes f1 { 0%,100%{transform:rotate(3deg) translateY(0)} 50%{transform:rotate(3deg) translateY(-8px)} }
@keyframes f2 { 0%,100%{transform:rotate(-2deg) translateY(0)} 50%{transform:rotate(-2deg) translateY(-6px)} }
@keyframes f3 { 0%,100%{transform:rotate(1.5deg) translateY(0)} 50%{transform:rotate(1.5deg) translateY(-7px)} }

/* STATS */
.stats-bar { padding: 48px 0; background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-item h3 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--chalkboard); margin-bottom: 4px; }
.stat-item p { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* SECTIONS */
section { padding: 110px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent-warm); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--accent-warm); border-radius: 1px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.9rem,3.5vw,2.8rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--pencil-lead); margin-bottom: 16px;
}
.section-sub { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 56px; }
.feature-card {
  background: var(--whiteout); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; transition: all 0.35s cubic-bezier(0.25,1,0.5,1); overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(56,70,50,0.15); }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.25rem; }
.fi-green { background: rgba(56,70,50,0.08); }
.fi-blue { background: rgba(52,64,84,0.08); }
.fi-warm { background: rgba(72,52,43,0.08); }
.fi-deep { background: rgba(81,42,50,0.08); }
.feature-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--pencil-lead); margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

.feature-hero {
  grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; padding: 44px;
  background: var(--parchment); border-color: var(--manilla);
}
.feature-hero:hover { border-color: rgba(72,52,43,0.2); }
.feature-mockup { background: var(--whiteout); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); }
.mockup-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.mockup-row:last-child { border-bottom: none; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mockup-label { font-size: 0.78rem; color: var(--text-secondary); flex: 1; margin-left: 12px; }
.mockup-tag { font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

/* HOW */
.how-section { background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 56px; }
.step-card { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; background: var(--whiteout);
  border: 2px solid var(--border); color: var(--chalkboard);
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.step-card:hover .step-num { background: var(--chalkboard); color: var(--filing-tan); border-color: var(--chalkboard); }
.step-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.step-card:not(:last-child)::after { content: '· · ·'; position: absolute; top: 30px; right: -20px; color: var(--smudge); font-size: 1.2rem; letter-spacing: 2px; }

/* SCIENCE */
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 56px; }
.retention-chart { background: var(--whiteout); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.chart-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 24px; }
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; border-radius: 6px 6px 0 0; position: relative; }
.chart-bar-val { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; color: var(--chalkboard); }
.chart-label { margin-top: 10px; font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.bar-green { background: var(--chalkboard); }
.bar-blue { background: var(--blue-ink); }
.bar-warm { background: var(--leather); }
.science-info h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--pencil-lead); margin-bottom: 14px; }
.science-info p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; font-size: 0.95rem; }
.science-list { list-style: none; margin-top: 20px; }
.science-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.science-list li::before { content: '\2014'; color: var(--chalkboard); font-weight: 700; flex-shrink: 0; }

/* PRICING */
.pricing-section { background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.pricing-card {
  background: var(--whiteout); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--chalkboard); border-width: 2px; position: relative; }
.pricing-card.featured::after {
  content: 'Recommended'; position: absolute; top: -11px; left: 28px;
  background: var(--chalkboard); color: var(--filing-tan);
  font-size: 0.68rem; font-weight: 700; padding: 3px 12px;
  border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--pencil-lead); margin: 14px 0 2px; }
.pricing-card .price-note { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 24px; }
.pricing-card ul { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-card li { padding: 7px 0; color: var(--text-secondary); font-size: 0.88rem; display: flex; align-items: center; gap: 10px; }
.pricing-card li::before { content: '\2713'; color: var(--chalkboard); font-weight: 700; font-size: 0.8rem; }
.pricing-card .btn { text-align: center; justify-content: center; width: 100%; }

/* FAQ */
.faq-grid { max-width: 680px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text-primary);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  padding: 22px 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--chalkboard); }
.faq-q .icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--chalkboard); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25,1,0.5,1); }
.faq-item.open .faq-a { max-height: 180px; }
.faq-a p { color: var(--text-secondary); line-height: 1.7; font-size: 0.92rem; padding-bottom: 22px; }

/* CTA */
.cta-section {
  text-align: center; position: relative; background: var(--chalkboard);
  color: var(--filing-tan); padding: 100px 0; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-section .section-label { color: rgba(245,243,234,0.5); }
.cta-section .section-label::before { background: rgba(245,243,234,0.3); }
.cta-section .section-title { color: var(--filing-tan); }
.cta-section .section-sub { color: rgba(245,243,234,0.7); margin: 0 auto 36px; }
.cta-section .btn-primary { background: var(--filing-tan); color: var(--chalkboard); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.cta-section .btn-primary:hover { background: var(--whiteout); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.cta-section .btn-outline { border-color: rgba(245,243,234,0.2); color: var(--filing-tan); }
.cta-section .btn-outline:hover { border-color: rgba(245,243,234,0.5); background: rgba(245,243,234,0.05); }

/* FOOTER */
.footer { background: var(--bg); padding: 56px 0 36px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .nav-logo { font-size: 1.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-top: 10px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--chalkboard); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.78rem; padding-top: 28px; border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .hero::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-hero { grid-column: span 1; grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .step-card::after { display: none; }
  .science-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .steps-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .float-card-1, .float-card-3 { display: none; }
}
