/* ============================================================
   PDRIGHT — Concept E · "Manifesto"
   Exaggerated Minimalism + Swiss Modernism 2.0
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --bg-alt: #FFFFFF;
  --bg-ink: #0A0A0A;
  --ink: #0A0A0A;
  --muted: #5A5A5A;
  --accent: #1F4DFF;
  --accent-ink: #FFFFFF;
  --border: #E6E4DE;
  --border-ink: #2A2A2A;

  --type-giant: clamp(3rem, 11vw, 12rem);
  --type-weight: 800;
  --tracking-tight: -0.04em;

  --grid-cols: 12;
  --base-unit: 8px;
  --space-huge: 8rem;

  --gutter: clamp(1.25rem, 5vw, 7rem);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.section-ink :focus-visible { outline-color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
}

section { position: relative; }

.section-pad { padding-block: clamp(5rem, 13vw, var(--space-huge)); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-ink .eyebrow { color: #9a9a9a; }

/* ============================================================
   PAPER GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9500;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid #fff;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-expo), height .35s var(--ease-expo),
              background-color .35s var(--ease-expo), opacity .3s;
}
.cursor-ring.is-hover {
  width: 68px; height: 68px;
  background: rgba(255,255,255,0.12);
}
body.cursor-active { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================
   FIXED CHROME — nav + concept pill
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 1.6vw, 1.6rem) var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav .wordmark {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding-block: 0.4rem; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-expo);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}

.concept-pill {
  position: fixed;
  bottom: clamp(1rem, 2vw, 1.6rem);
  left: clamp(1rem, 2vw, 1.6rem);
  z-index: 8000;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1.05rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  min-height: 44px;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; pointer-events: none; }
.btn svg { position: relative; z-index: 2; transition: transform .5s var(--ease-expo); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 100px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-expo);
}
.btn-primary:hover::before { transform: scaleY(1); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.section-ink .btn-ghost { color: #fff; border-color: var(--border-ink); }
.btn-ghost::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 100px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
  z-index: 1;
}
.btn-ghost:hover { color: #fff; border-color: var(--ink); }
.section-ink .btn-ghost:hover { color: var(--ink); }
.section-ink .btn-ghost::before { background: #fff; }
.btn-ghost:hover::before { transform: scaleX(1); }

/* animated text link */
.link-u {
  position: relative;
  font-weight: 600;
  padding-bottom: 2px;
}
.link-u::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-expo);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 14vh, 11rem);
  padding-bottom: clamp(3rem, 7vh, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.hero-headline {
  font-size: var(--type-giant);
  font-weight: var(--type-weight);
  line-height: 0.9;
  letter-spacing: var(--tracking-tight);
  max-width: 16ch;
}
.hero-headline .accent { color: var(--accent); }

/* manual split mechanics */
.line { display: block; overflow: hidden; padding-block: 0.02em; }
.word { display: inline-block; }
.word .inner { display: inline-block; will-change: transform; }

.hero-lower {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 2rem;
  align-items: end;
}
.hero-sub {
  grid-column: 1 / span 6;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  grid-column: 8 / span 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .hero-sub { grid-column: 1 / -1; }
  .hero-actions { grid-column: 1 / -1; }
}

.hero-scroll {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll svg { animation: bob 1.8s var(--ease-power) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
}
.marquee-track {
  display: inline-flex;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  padding-inline: 1.2rem;
  color: var(--ink);
}
.marquee-item .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PROBLEM (inverted ink section)
   ============================================================ */
.section-ink {
  background: var(--bg-ink);
  color: #fff;
}
.problem .grid12 { row-gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.problem-head {
  grid-column: 1 / span 7;
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
}
.problem-head .accent { color: var(--accent); }
.problem-body {
  grid-column: 9 / span 4;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: #b4b4b4;
  line-height: 1.6;
  align-self: end;
}
@media (max-width: 900px) {
  .problem-head { grid-column: 1 / -1; }
  .problem-body { grid-column: 1 / -1; }
}

/* credibility strip */
.cred {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--border-ink);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.cred-item .cred-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.cred-item .cred-num .u { color: var(--accent); }
.cred-item .cred-label {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: #9a9a9a;
  max-width: 26ch;
}
@media (max-width: 720px) {
  .cred { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   HOW IT WORKS — horizontal pinned gallery
   ============================================================ */
.how-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
.how-title {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  max-width: 14ch;
}
.how-note { color: var(--muted); max-width: 30ch; font-size: 0.98rem; }

.hpin { position: relative; }
.htrack {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
.hpanel {
  width: clamp(300px, 78vw, 720px);
  flex: 0 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(2rem, 3.5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(420px, 62vh, 620px);
}
.hpanel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hpanel-step {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--bg);
  -webkit-text-stroke: 1.4px var(--ink);
  text-stroke: 1.4px var(--ink);
}
.hpanel-icon { color: var(--accent); flex: 0 0 auto; }
.hpanel-h {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 2rem;
  max-width: 16ch;
}
.hpanel-p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  max-width: 44ch;
}
.hpanel-rule { margin-top: 2rem; height: 1px; background: var(--border); }

/* mobile fallback: vertical stack */
.htrack.stacked {
  flex-direction: column;
  width: 100%;
  padding-inline: 0;
}
.htrack.stacked .hpanel { width: 100%; }

/* ============================================================
   DIFFERENTIATOR
   ============================================================ */
.diff .grid12 { align-items: center; row-gap: 2rem; }
.diff-head {
  grid-column: 1 / span 8;
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
}
.diff-head .accent { color: var(--accent); }
.diff-body {
  grid-column: 9 / span 4;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  align-self: end;
}
@media (max-width: 900px) {
  .diff-head, .diff-body { grid-column: 1 / -1; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 22ch; }
.pricing-head h2 { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 700; line-height: 0.95; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.tier {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.8rem, 2.8vw, 2.6rem);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease-expo), box-shadow .55s var(--ease-expo);
}
.tier:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,10,10,0.18); }
.tier.featured {
  background: var(--bg-ink);
  color: #fff;
  border-color: var(--bg-ink);
}
.tier-flag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 1.1rem;
}
.tier.featured .tier-flag { color: #fff; }
.tier-name {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
}
.tier-price {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}
.tier.featured .tier-price { color: #fff; }
.tier-price .big {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  color: var(--ink);
}
.tier.featured .tier-price .big { color: var(--accent); }
.tier-desc { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.tier.featured .tier-desc { color: #b4b4b4; }
.tier-list {
  list-style: none;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.tier-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.4;
}
.tier-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.tier .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }
.tier.featured .btn-ghost { color: #fff; border-color: var(--border-ink); }
.tier.featured .btn-ghost:hover { color: var(--ink); }
.tier.featured .btn-ghost::before { background: #fff; }
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.final {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.final h2 {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  max-width: 18ch;
  margin: 0 auto;
}
.final .btn-final {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.final .btn-final::before { background: var(--ink); }
.final .btn-final:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-ink);
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-ink);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand .wordmark {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.footer-brand p { margin-top: 1rem; color: #9a9a9a; max-width: 32ch; font-size: 0.95rem; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 6rem); flex-wrap: wrap; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #7a7a7a; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem; }
.footer-col a { color: #d4d4d4; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #7a7a7a;
  font-size: 0.82rem;
}

/* ============================================================
   REVEAL DEFAULT STATES (JS adds .ready when GSAP ready)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .hero-headline .word .inner { transform: translateY(110%); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-headline .word .inner { transform: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.cursor-active { cursor: auto; }
  .marquee-track { animation: none; }
  .htrack { flex-direction: column; width: 100%; padding-inline: 0; }
  .htrack .hpanel { width: 100%; }
}
