/* ============================================================================
 * DrNick landing — page styles (built on ONFA colors_and_type + components)
 * ==========================================================================*/

body { background: var(--bg); color: var(--fg-1); }

.wrap { width: 100%; max-width: var(--max-w-lg); margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }

/* skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; }
.skip:focus { left: 16px; padding: 10px 14px; background: var(--gold); color: var(--ink); border-radius: var(--r-sm); font-weight: 700; }

/* ── NAV ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2,2,2,0.72);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
          backdrop-filter: blur(20px) saturate(120%);
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 26px; width: auto; }
.nav-brand .wm {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  padding-left: 12px; border-left: 1px solid var(--line-strong);
}
.nav-links { display: none; gap: 2px; margin-left: 14px; }
.nav-links a {
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--fg-3);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--fg-1); background: var(--secondary); }
.nav-cta { margin-left: auto; }
.nav-cta .onfa-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ── SECTION rhythm ──────────────────────────────────────────────────────── */
section { position: relative; }
.sec-pad { padding-block: clamp(64px, 12vw, 128px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold-glow);
  animation: onfa-pulse 1.6s ease-in-out infinite;
}
.eyebrow.bar::before { content: ""; width: 22px; height: 1px; background: var(--gold-line); }
.sec-head { max-width: 660px; }
.sec-head h2 { margin: 18px 0 0; }
.sec-head .lede { margin: 18px 0 0; max-width: 56ch; color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-loose); }

/* divider hairline between major sections */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero { overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 9vw, 104px);
}
.hero-h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.6vw, 62px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.025em;
  color: var(--fg-1); text-wrap: balance;
}
.hero-h1 .accent { color: var(--gold); }
.hero-sub {
  margin: 22px 0 0; max-width: 52ch;
  font-size: var(--fs-body-lg); line-height: var(--lh-loose); color: var(--fg-2);
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-4);
}
.hero-note svg { width: 15px; height: 15px; color: var(--gold); flex: 0 0 15px; }

/* hero art */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.hero-art-stage {
  position: relative; aspect-ratio: 0.86;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-art-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(239, 194, 67,0.16), transparent 56%),
    radial-gradient(circle at 50% 80%, rgba(239, 194, 67,0.07), transparent 60%);
  pointer-events: none;
}
.hero-art-ring {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--gold-line);
}
.hero-art-ring::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 1px solid var(--line);
}
.hero-art img {
  position: relative; z-index: 1;
  height: 108%; width: auto; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.6));
}
/* Scene illustration (rectangular, baked-in background) — fit by width, no crop, framed. */
.hero-art-stage.has-scene { align-items: center; }
.hero-art-stage.has-scene img {
  width: 100%; height: auto; max-height: 124%; object-position: center;
  border-radius: 18px; border: 1px solid var(--gold-line);
}

/* a small floating chat-proof chip on the hero art */
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: var(--r-full);
  background: rgba(11,11,11,0.86); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12.5px; color: var(--fg-2); white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 10px rgba(45,195,133,0.6); animation: onfa-pulse 1.6s ease-in-out infinite; }
.hero-chip.one { top: 16%; left: -6%; }
.hero-chip.two { bottom: 14%; right: -8%; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { max-width: 420px; justify-self: end; }
}

/* ── FEATURE GRID ──────────────────────────────────────────────────────── */
.feat-grid {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 620px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat {
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--r-xl);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feat:hover { border-color: var(--gold-line); background: var(--panel-2); }
.feat-ic {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--secondary); border: 1px solid var(--line);
  color: var(--gold);
}
.feat-ic svg { width: 21px; height: 21px; }
.feat h3 { font-size: var(--fs-h4); font-weight: 700; color: var(--fg-1); letter-spacing: -0.01em; margin: 0; }
.feat p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-3); }
.feat-n {
  margin-top: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--fg-5);
}

/* ── SAFE FLOW (steps) ─────────────────────────────────────────────────── */
.safe { background: linear-gradient(180deg, transparent, rgba(239, 194, 67,0.018), transparent); }
.steps {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.step { position: relative; padding: var(--s-6); }
@media (min-width: 820px) {
  .step { padding: var(--s-2) var(--s-7) var(--s-2) 0; }
  .step + .step { border-left: 1px solid var(--line); padding-left: var(--s-7); }
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-full);
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 700; color: var(--gold);
}
.step h3 { margin: 20px 0 0; font-size: var(--fs-h3); font-weight: 700; color: var(--fg-1); letter-spacing: -0.01em; }
.step h3 .arr { color: var(--fg-5); font-family: var(--font-mono); margin-left: 8px; }
.step p { margin: 12px 0 0; font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-3); max-width: 34ch; }
.safe-assure {
  margin-top: clamp(36px, 5vw, 52px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--gold-line); background: var(--panel);
}
.safe-assure svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 22px; }
.safe-assure p { margin: 0; font-size: var(--fs-body); color: var(--fg-2); line-height: var(--lh-normal); }
.safe-assure b { color: var(--fg-1); font-weight: 700; }

/* ── TRUST ─────────────────────────────────────────────────────────────── */
.trust-grid {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 820px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  padding: var(--s-6);
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--panel);
}
.trust-card .ic { width: 38px; height: 38px; color: var(--fg-2); }
.trust-card .ic svg { width: 100%; height: 100%; }
.trust-card h3 { margin: 18px 0 0; font-size: var(--fs-h4); font-weight: 700; color: var(--fg-1); }
.trust-card p { margin: 10px 0 0; font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-3); }

/* ── FINAL CTA ─────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 50% -20%, rgba(239, 194, 67,0.16), transparent 50%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 56px);
  text-align: center;
}
.cta h2 { margin: 20px auto 0; max-width: 18ch; }
.cta p { margin: 18px auto 0; max-width: 46ch; color: var(--fg-2); font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.cta .onfa-btn { margin-top: 30px; }
.cta-disc { margin: 22px auto 0; max-width: 52ch; font-size: 12.5px; color: var(--fg-4); line-height: 1.6; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); }
.foot-inner { padding-block: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.foot-brand img { height: 24px; width: auto; }
.foot-brand p { margin: 16px 0 0; max-width: 38ch; font-size: var(--fs-body-sm); color: var(--fg-4); line-height: var(--lh-normal); }
.foot-col h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-4); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: var(--fs-body-sm); color: var(--fg-3); transition: color var(--dur-fast) var(--ease); }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
}
.foot-bottom .cp { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-5); }
.foot-bottom .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-5); }

/* ── SCROLL REVEAL ─────────────────────────────────────────────────────── */
/* Base state is VISIBLE with no transition/animation dependency. The hidden
   state only applies while <html> has `.js-anim`; the reveal is a keyframe
   ANIMATION (transitions don't resolve in some embed contexts). The JS failsafe
   REMOVES `.js-anim`, which instantly restores the visible base state. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(16px); }
.js-anim .reveal.in { animation: reveal-in var(--dur-slow) var(--ease-out) forwards; }
@keyframes reveal-in { to { opacity: 1; transform: none; } }
.reveal.d1 { animation-delay: 60ms; }
.reveal.d2 { animation-delay: 120ms; }
.reveal.d3 { animation-delay: 180ms; }
.reveal.d4 { animation-delay: 240ms; }
.reveal.d5 { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js-anim .reveal { opacity: 1; transform: none; animation: none; }
  .eyebrow .dot, .hero-chip .dot { animation: none; }
}
