/* ==========================================================================
   piShared — Public landing page
   "Natural Brutalist Sketchbook": warm cream paper + private-study ink,
   hand-inked geometry, fine data meshes, oversized editorial serif type.
   Self-contained — this page does not load the app theme.
   ========================================================================== */

:root {
  /* Paper — Warm Cream (light voice) */
  --paper:        #FAF8F4;
  --paper-2:      #F5F2EC;
  --paper-3:      #EFEBE3;
  --rule:         #E5E0D8;
  --rule-strong:  #D0C9C0;

  /* Ink (text on cream) */
  --ink:          #2A2A2A;
  --ink-2:        #4A4540;
  --ink-3:        #6B6560;
  --ink-4:        #9C9590;

  /* The Private Study (dark voice) */
  --study:        #192028;
  --study-2:      #1f2731;
  --study-soft:   #252d38;
  --study-rule:   rgba(247, 244, 238, 0.12);
  --study-rule-2: rgba(247, 244, 238, 0.06);
  --cream:        #F7F4EE;
  --cream-2:      rgba(247, 244, 238, 0.74);
  --cream-3:      rgba(247, 244, 238, 0.52);

  /* Antique Gold — the single accent */
  --gold:         #B8882F;
  --gold-hover:   #A07828;
  --gold-on-dark: #C9973B;
  --gold-bright:  #E2BE76;

  /* Data voices (fine lines only) */
  --sky:          #0ea5e9;
  --amber:        #f59e0b;
  --violet:       #8b5cf6;
  --emerald:      #10b981;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: rgba(184, 136, 47, 0.22); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.lp-section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  scroll-margin-top: 72px;
}
.lp-section--paper { background: var(--paper); color: var(--ink); }
.lp-section--ink   { background: var(--study); color: var(--cream); }

.lp-wrap { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.lp-wrap--narrow { max-width: 820px; }

/* Subtle paper grain on cream sections */
.lp-section--paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Section eyebrow */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.lp-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lp-section--ink .lp-eyebrow { color: var(--gold-on-dark); }

/* Headings */
.lp-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.032em;
  line-height: 1.02;
  color: var(--ink);
}
.lp-section--ink .lp-h2 { color: var(--cream); }
.lp-h2 em { font-style: italic; color: var(--gold); }
.lp-section--ink .lp-h2 em { color: var(--gold-on-dark); }

.lp-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 60ch;
}
.lp-section--ink .lp-lead { color: var(--cream-2); }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.005em;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn--lg { padding: 16px 28px; font-size: 15px; border-radius: 11px; }

.lp-btn--primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.lp-btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.lp-btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.lp-btn--ghost:hover { background: var(--paper-3); border-color: var(--ink-3); }

.lp-section--ink .lp-btn--primary,
.lp-cta-dark .lp-btn--primary { background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: #151b23; }
.lp-section--ink .lp-btn--primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.lp-btn--ghost-dark { background: transparent; color: var(--cream); border-color: var(--study-rule); }
.lp-btn--ghost-dark:hover { background: rgba(247, 244, 238, 0.07); border-color: rgba(247, 244, 238, 0.28); }

.lp-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Top navigation
   -------------------------------------------------------------------------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lp-nav.is-scrolled {
  background: rgba(250, 248, 244, 0.92);
  border-bottom-color: var(--rule);
}

.lp-brand {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.lp-brand b { color: var(--gold); font-weight: 600; }

.lp-nav-links { display: flex; align-items: center; gap: 30px; }
.lp-nav-links a {
  position: relative;
  font: 500 14px/1 var(--font-body);
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.lp-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-links a:hover::after { width: 100%; }

.lp-nav-actions { display: flex; align-items: center; gap: 12px; }
.lp-nav-login {
  font: 600 14px/1 var(--font-body);
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 6px;
  transition: color 0.2s ease;
}
.lp-nav-login:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.lp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(900px, 92vh);
  padding: clamp(54px, 7vw, 92px) clamp(20px, 4vw, 56px) clamp(48px, 5vw, 72px);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(184, 136, 47, 0.06), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lp-hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

/* giant cropped pi behind the headline */
.lp-hero-pi {
  position: absolute;
  z-index: 1;
  right: -2vw;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(360px, 52vw, 760px);
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.lp-hero-eyebrow span {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.lp-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--ink);
}
.lp-hero-title em { font-style: italic; }
.lp-hero-title .pi {
  font-style: italic;
  background: linear-gradient(135deg, #D9AE55 0%, #B8882F 52%, #8A6622 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

.lp-hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
}

.lp-hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.lp-hero-note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-3);
}
.lp-hero-note .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

/* Hero illustration */
.lp-hero-art-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lp-hero-art { width: 100%; max-width: 520px; height: auto; }
.lp-art-faint  { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.lp-art-mesh   { stroke: var(--ink-3); stroke-width: 1; fill: none; opacity: 0.5; }
.lp-art-spiral { stroke: var(--gold); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-art-septa  { stroke: var(--gold); stroke-width: 1; fill: none; opacity: 0.36; stroke-linecap: round; }
.lp-art-line   { stroke: var(--ink); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-art-node   { fill: var(--gold); }
.lp-art-note   { fill: var(--ink-3); font: italic 400 12px/1 var(--font-display); }
.lp-art-pi     { fill: var(--gold); opacity: 0.55; font: italic 500 40px/1 var(--font-display); }

/* draw-in animation: nautilus spiral (~358px) then the market line (~347px) */
.lp-art-spiral { stroke-dasharray: 380; stroke-dashoffset: 380; }
.is-in .lp-art-spiral,
.lp-hero-art.is-in .lp-art-spiral { animation: lpDraw 2.6s 0.15s ease forwards; }
.lp-art-line { stroke-dasharray: 360; stroke-dashoffset: 360; }
.is-in .lp-art-line { animation: lpDraw 1.7s 1.4s ease forwards; }
.lp-art-septa { opacity: 0; transition: opacity 0.8s ease 1.6s; }
.lp-hero-art-wrap.is-in .lp-art-septa, .is-in .lp-art-septa { opacity: 0.36; }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }

/* scroll cue */
.lp-scrollcue {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 72px) auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-scrollcue .line { width: 46px; height: 1px; background: var(--rule-strong); position: relative; overflow: hidden; }
.lp-scrollcue .line::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--gold); animation: lpSlide 2.2s ease-in-out infinite;
}
@keyframes lpSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }

/* --------------------------------------------------------------------------
   Manifesto strip (ink)
   -------------------------------------------------------------------------- */
.lp-manifesto { text-align: left; }
.lp-manifesto .lp-wrap { max-width: 980px; }
.lp-manifesto-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.7vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.lp-manifesto-quote .mk { color: var(--gold-on-dark); font-style: italic; }
.lp-manifesto-foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream-3);
  font-size: 14px;
}
.lp-manifesto-foot .rule { width: 40px; height: 1px; background: var(--study-rule); }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.lp-sec-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.lp-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 212px;
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border, rgba(184, 136, 47, 0.4));
  box-shadow: 0 18px 44px rgba(42, 42, 42, 0.08);
}
.lp-card--wide { grid-column: span 7; }
.lp-card--mid  { grid-column: span 5; }
.lp-card--full {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 0;
}

/* registration / crop tick in card corner */
.lp-card::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 9px; height: 9px;
  border-top: 1px solid var(--rule-strong);
  border-right: 1px solid var(--rule-strong);
  opacity: 0.7;
}

.lp-card-motif {
  width: 46px; height: 46px;
  color: var(--gold);
  flex-shrink: 0;
}
.lp-card-motif svg { width: 100%; height: 100%; }
.lp-card-motif svg [data-stroke] { stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-card-motif svg [data-fill] { fill: currentColor; }
.lp-card-motif svg [data-ink] { stroke: var(--ink-3); stroke-width: 1.3; fill: none; }

.lp-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lp-card-text { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); }
.lp-card--full .lp-card-body { flex: 1; }
.lp-card--full .lp-card-motif { width: 64px; height: 64px; }
.lp-card-tag {
  align-self: flex-start;
  margin-top: auto;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 6px;
}
.lp-card--full .lp-card-cta { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   How it works (ink, numbered — method of exhaustion)
   -------------------------------------------------------------------------- */
.lp-how .lp-sec-head .lp-lead { color: var(--cream-2); }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--study-rule);
  border-radius: 16px;
  overflow: hidden;
}
.lp-step {
  position: relative;
  padding: 32px 26px 34px;
  border-right: 1px solid var(--study-rule);
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.015), transparent);
}
.lp-step:last-child { border-right: none; }
.lp-step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--gold-on-dark);
  letter-spacing: -0.02em;
}
.lp-step-num small { font-size: 14px; color: var(--cream-3); }
.lp-step-title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--cream);
}
.lp-step-text { font-size: 14px; line-height: 1.56; color: var(--cream-2); }
.lp-step-arc {
  position: absolute;
  top: 30px; right: 22px;
  width: 26px; height: 26px;
  color: var(--study-rule);
}

/* --------------------------------------------------------------------------
   Approach (cream) — independence pull-quote + principles
   -------------------------------------------------------------------------- */
.lp-approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.lp-pullquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lp-pullquote b { font-style: normal; font-weight: 500; color: var(--gold); }
.lp-pullquote-cite {
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
.lp-pullquote-cite .rule { width: 34px; height: 1px; background: var(--rule-strong); }

.lp-principles { display: flex; flex-direction: column; gap: 8px; }
.lp-principle {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--rule);
}
.lp-principle:last-child { border-bottom: 1px solid var(--rule); }
.lp-principle-mark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  color: var(--gold);
}
.lp-principle-mark svg { width: 100%; height: 100%; }
.lp-principle-mark svg [data-stroke] { stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-principle h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.lp-principle p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Mesh band (ink) — "the mesh of money"
   -------------------------------------------------------------------------- */
.lp-mesh {
  position: relative;
  padding: clamp(80px, 10vw, 150px) clamp(20px, 4vw, 56px);
  background: var(--study);
  text-align: center;
  overflow: hidden;
}
.lp-mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.lp-mesh-fill { stroke: var(--study-rule-2); stroke-width: 1; fill: none; }
.lp-mesh-ridge  { stroke: var(--gold-on-dark); stroke-width: 2; fill: none; opacity: 0.85; }
.lp-mesh-ridge2 { stroke: var(--emerald); stroke-width: 1.6; fill: none; opacity: 0.55; }
.lp-mesh::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(70% 70% at 50% 50%, transparent 30%, rgba(25, 32, 40, 0.78) 100%);
}
.lp-mesh-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.lp-mesh-inner .lp-h2 { color: var(--cream); }
.lp-mesh-inner .lp-lead { color: var(--cream-2); margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   CTA / newsletter (cream)
   -------------------------------------------------------------------------- */
.lp-cta { text-align: center; }
.lp-cta .lp-wrap { max-width: 680px; }
.lp-cta-pi {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
}
.lp-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
}
.lp-cta p.lp-cta-sub {
  margin: 18px auto 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.lp-news-form {
  margin: 34px auto 0;
  max-width: 480px;
  display: flex;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(42, 42, 42, 0.06);
}
.lp-news-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  border: none;
  outline: none;
  font: 400 15px/1 var(--font-body);
  color: var(--ink);
  background: transparent;
}
.lp-news-form input::placeholder { color: var(--ink-4); }
.lp-news-form button {
  padding: 16px 26px;
  border: none;
  background: var(--gold);
  color: #fff;
  font: 700 14px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lp-news-form button:hover { background: var(--gold-hover); }
.lp-news-form button:disabled { opacity: 0.6; cursor: default; }

.lp-news-msg { margin-top: 12px; font-size: 13.5px; min-height: 20px; }
.lp-news-msg.is-ok  { color: #2D5E3A; }
.lp-news-msg.is-err { color: #8B3426; }

.lp-news-privacy { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.lp-news-privacy a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.lp-cta-or {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.lp-cta-or a { color: var(--gold); font-weight: 600; text-decoration: none; }
.lp-cta-or a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer (ink)
   -------------------------------------------------------------------------- */
.lp-footer {
  background: var(--study);
  color: var(--cream-2);
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 56px) 36px;
  border-top: 1px solid var(--study-rule);
}
.lp-footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.lp-footer-brand { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--cream); letter-spacing: -0.02em; }
.lp-footer-brand b { color: var(--gold-on-dark); }
.lp-footer-tag { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--cream-3); max-width: 42ch; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.lp-footer-links a { color: var(--cream-2); text-decoration: none; font-size: 14px; }
.lp-footer-links a:hover { color: var(--gold-on-dark); }

.lp-footer-base {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--study-rule-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--cream-3);
}
.lp-footer-disclaimer { max-width: 64ch; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-art-wrap { order: -1; max-width: 440px; margin: 0 auto; }
  .lp-hero-sub { max-width: 52ch; }
  .lp-approach-grid { grid-template-columns: 1fr; }
  .lp-card--wide, .lp-card--mid { grid-column: span 6; }
  .lp-card { grid-column: span 6; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-step:nth-child(2) { border-right: none; }
  .lp-step:nth-child(1), .lp-step:nth-child(2) { border-bottom: 1px solid var(--study-rule); }
}

@media (max-width: 860px) {
  .lp-nav-links { display: none; }
}

@media (max-width: 620px) {
  .lp-features-grid { gap: 14px; }
  .lp-card, .lp-card--wide, .lp-card--mid, .lp-card--full { grid-column: span 12; }
  .lp-card--full { flex-direction: column; align-items: flex-start; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-step { border-right: none; border-bottom: 1px solid var(--study-rule); }
  .lp-step:last-child { border-bottom: none; }
  .lp-news-form { flex-direction: column; }
  .lp-news-form button { padding: 15px; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .lp-footer-links { justify-content: flex-start; }
  .lp-hero-note { margin-top: 18px; }
  .lp-nav-login { display: none; }
}

@media (max-width: 420px) {
  .lp-hero-title { font-size: clamp(36px, 11vw, 48px); }
}

/* --------------------------------------------------------------------------
   Motion / contrast preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-art-spiral, .lp-art-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .lp-art-septa { opacity: 0.36 !important; transition: none !important; }
  .lp-scrollcue .line::after { animation: none; }
}
