/* ————————————————————————————————————————————————————————————
   Value Investor — Landing (Notebook Minimal preset)
   Design tokens per landing-page-builder skill, Preset F.
   ———————————————————————————————————————————————————————————— */
:root {
  --background: #FAF9F6;
  --surface: #F5F5F0;
  --line: #E4E1D8;
  --text: #27272A;
  --muted: #6F6F76;
  --dark: #18181B;
  --dark-soft: #232326;
  --accent: #27272A;
  --ink-emerald: #0E7A5F;   /* product-data color, used sparingly */
  --ink-amber: #B45309;
  --ink-blue: #1D4ED8;
  --ink-red: #B91C1C;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-lg: 2rem;
  --r-xl: 3rem;
  --ease-btn: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise overlay (fixed design system) */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dot-grid texture (Preset F signature) */
.dotgrid {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Scroll progress hairline */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--dark); z-index: 10001;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Mono section counters */
.counter {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 20px;
}

/* ————— Navbar: floating island + morph ————— */
nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 10000;
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
  white-space: nowrap;
}
nav.scrolled {
  background: rgba(250, 249, 246, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(24,24,27,0.06);
}
nav .logo { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--dark); text-decoration: none; }
nav .logo em { font-style: italic; }
nav a.link {
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .25s, transform .25s;
}
nav a.link:hover { color: var(--dark); transform: translateY(-1px); }
.btn {
  position: relative; overflow: hidden; display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--background); text-decoration: none;
  background: var(--dark);
  padding: 11px 22px; border-radius: 999px;
  transition: transform .35s var(--ease-btn), box-shadow .35s;
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink-emerald);
  transform: translateY(101%); transition: transform .38s var(--ease-btn);
}
.btn:hover { transform: scale(1.03); box-shadow: 0 10px 28px rgba(24,24,27,0.22); }
.btn:hover::after { transform: translateY(0); }
.btn.big { font-size: 16px; padding: 16px 34px; }
.btn.ghost {
  background: transparent; color: var(--dark);
  border: 1px solid var(--line);
}
.btn.ghost::after { background: var(--surface); }
.btn.ghost:hover { color: var(--dark); }

/* ————— Hero ————— */
header.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  /* Top padding reserves room for the fixed nav pill (top:18px + ~44px
     tall). Without it the bottom-aligned hero content slides underneath
     the nav on short viewports, e.g. a laptop with a bookmarks bar. */
  padding: 96px 0 9vh;
}
.hero .glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 44% at 78% 16%, rgba(14,122,95,0.07), transparent 70%),
    radial-gradient(46% 40% at 12% 82%, rgba(39,39,42,0.05), transparent 70%);
}
.hero .kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(56px, 9.6vw, 128px);
  line-height: 0.98; letter-spacing: -0.015em; color: var(--dark);
}
.hero h1 .drama { font-style: italic; display: block; }
.hero .sub {
  max-width: 620px; margin-top: 30px;
  font-size: clamp(16px, 1.5vw, 19px); color: var(--muted);
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; align-items: center; }
.hero .trust {
  margin-top: 30px; font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
}
.hero .trust b { color: var(--dark); font-weight: 500; }

/* ————— Sections base ————— */
section { padding: 110px 0; position: relative; }
h2.title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08; letter-spacing: -0.01em; color: var(--dark);
  max-width: 720px;
}
h2.title em { font-style: italic; }
.lede { max-width: 640px; color: var(--muted); margin-top: 20px; font-size: 18px; }

/* ————— 01 Problem ————— */
#problem .lines { margin-top: 60px; display: grid; gap: 26px; }
#problem .line {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600; line-height: 1.15; color: var(--dark);
  padding-left: 26px; border-left: 2px solid var(--line);
}
#problem .line em { font-style: italic; }
#problem .line.hurt { color: var(--ink-red); border-left-color: var(--ink-red); }

/* ————— 02 Instrument: interactive artifacts ————— */
#instrument { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artifacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.artifact {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 18px 40px rgba(24,24,27,0.05);
  min-height: 380px; display: flex; flex-direction: column;
}
.artifact h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--dark); }
.artifact p.d { font-size: 13.5px; color: var(--muted); margin-top: 6px; margin-bottom: 18px; }
.artifact .stage { flex: 1; position: relative; }

/* Artifact 1 — verdict shuffler */
.vcard {
  position: absolute; left: 0; right: 0;
  background: var(--dark); color: #E8E6E1;
  border-radius: 18px; padding: 16px 18px;
  transition: transform .8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .6s;
  will-change: transform;
  box-shadow: 0 14px 30px rgba(24,24,27,0.25);
}
.vcard .t { font-family: var(--mono); font-size: 12px; color: #A1A1AA; }
.vcard .row { display: flex; justify-content: space-between; align-items: baseline; }
.vcard .tick { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.vcard .verdict { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.vcard .verdict.buy { background: rgba(16,185,129,.18); color: #6EE7B7; }
.vcard .verdict.csp { background: rgba(245,158,11,.16); color: #FCD34D; }
.vcard .verdict.watch { background: rgba(59,130,246,.16); color: #93C5FD; }
.vcard .m { font-family: var(--mono); font-size: 12px; color: #A1A1AA; margin-top: 8px; }

/* Artifact 2 — telemetry typewriter */
.term {
  position: absolute; inset: 0;
  background: var(--dark); border-radius: 18px; padding: 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #D4D4D8;
  overflow: hidden;
}
.term .live {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .12em; color: #A1A1AA; margin-bottom: 10px;
}
.term .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.term .cursor { display: inline-block; width: 7px; height: 14px; background: #34D399; vertical-align: -2px; animation: pulse 1s infinite; }
.term .ln-accent { color: #6EE7B7; }

/* Artifact 3 — protocol scheduler */
.sched { position: absolute; inset: 0; background: var(--background); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.sched .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.sched .day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  transition: all .3s;
}
.sched .day.on { background: var(--dark); color: #E8E6E1; border-color: var(--dark); transform: scale(1.04); }
.sched .status { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 18px; }
.sched .status b { color: var(--ink-emerald); font-weight: 500; }
.sched .cur {
  position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none;
  transition: transform .55s var(--ease-btn);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

/* ————— 03 Guide (dark band) ————— */
#guide { background: var(--dark); color: #E8E6E1; border-radius: var(--r-xl); margin: 0 14px; }
#guide .counter { color: #8E8E96; }
#guide .small {
  font-size: clamp(18px, 2vw, 24px); color: #A1A1AA; font-weight: 400;
}
#guide .big {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02;
  color: #FAF9F6; margin-top: 10px; letter-spacing: -0.01em;
}
#guide .big .hl { color: #6EE7B7; }
#guide .empathy { max-width: 620px; margin-top: 34px; color: #A1A1AA; font-size: 16.5px; }
#guide .stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 60px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.1);
}
#guide .stat .n { font-family: var(--mono); font-size: 26px; color: #FAF9F6; }
#guide .stat .l { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8E8E96; margin-top: 6px; }

/* ————— 04 Method: stacking cards ————— */
#method .steps { margin-top: 40px; }
.step {
  position: sticky; top: 90px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.5vw, 56px);
  box-shadow: 0 24px 60px rgba(24,24,27,0.08);
  margin-bottom: 26px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  min-height: 380px;
  will-change: transform;
}
.step .no { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.step h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--dark); margin-top: 10px; }
.step h3 em { font-style: italic; }
.step p { color: var(--muted); margin-top: 14px; max-width: 480px; }
.step .viz { position: relative; height: 240px; }
.step .viz svg { width: 100%; height: 100%; }

/* ————— 05 Pricing ————— */
#pricing { background: var(--surface); border-top: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; align-items: stretch; }
.tier {
  background: var(--background); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; flex-direction: column;
}
.tier.pop {
  background: var(--dark); color: #E8E6E1; border-color: var(--dark);
  transform: scale(1.03);
  box-shadow: 0 30px 70px rgba(24,24,27,0.25);
}
.tier .name { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tier.pop .name { color: #A1A1AA; }
.tier .price { font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--dark); margin-top: 14px; line-height: 1; }
.tier.pop .price { color: #FAF9F6; }
.tier .per { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tier.pop .per { color: #A1A1AA; }
.tier ul { list-style: none; margin: 26px 0; display: grid; gap: 11px; flex: 1; }
.tier li { font-size: 14.5px; color: var(--text); padding-left: 22px; position: relative; }
.tier.pop li { color: #D4D4D8; }
.tier li::before { content: '—'; position: absolute; left: 0; color: var(--ink-emerald); }
.tier .btn { text-align: center; }
.tier.pop .btn { background: #FAF9F6; color: var(--dark); }
.tier.pop .btn::after { background: #6EE7B7; }
.tier .cap { font-family: var(--mono); font-size: 11.5px; color: var(--ink-amber); margin-top: 12px; text-align: center; }
.pricing-note { margin-top: 30px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; }

/* ————— 06 Stakes + CTA ————— */
#stakes { text-align: center; padding: 150px 0 140px; }
#stakes .counter { margin-bottom: 26px; }
#stakes h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5.4vw, 66px); line-height: 1.06; color: var(--dark);
  max-width: 880px; margin: 0 auto;
}
#stakes h2 em { font-style: italic; }
#stakes p { max-width: 560px; margin: 24px auto 0; color: var(--muted); font-size: 18px; }
#stakes .btn { margin-top: 42px; }

/* ————— Footer ————— */
footer {
  background: var(--dark); color: #A1A1AA;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 70px 0 36px; margin-top: 20px;
}
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer .brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #FAF9F6; }
footer .brand em { font-style: italic; }
footer .tag { font-size: 14px; margin-top: 10px; max-width: 320px; }
footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8E8E96; margin-bottom: 14px; }
footer a { display: block; color: #D4D4D8; text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: color .25s, transform .25s; }
footer a:hover { color: #FAF9F6; transform: translateY(-1px); }
footer .legal {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: #71717A; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
footer .disclaimer { font-size: 12px; color: #71717A; margin-top: 26px; max-width: 720px; line-height: 1.6; }

/* Reveal targets: initial hidden state is applied BY GSAP (fromTo), not CSS —
   so users without JS still see all content. */

/* ————— Responsive ————— */
@media (max-width: 900px) {
  .artifacts { grid-template-columns: 1fr; }
  .artifact { min-height: 330px; }
  .step { grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .step .viz { height: 170px; }
  .tiers { grid-template-columns: 1fr; }
  .tier.pop { transform: none; }
  #guide .stats { grid-template-columns: repeat(2, 1fr); }
  footer .grid { grid-template-columns: 1fr; gap: 28px; }
  nav { gap: 14px; padding: 9px 10px 9px 18px; }
  nav a.link { display: none; }
  section { padding: 80px 0; }
}
