/* ============================================================
   LPGP.network — design system
   Palette:  #0A0A0A ink  /  #FAFAF7 paper  /  #1F3A2E accent (deep moss)
   Type:     Inter (sans) + Instrument Serif (display accents)
   ============================================================ */

:root {
  --ink:        #0A0A0A;
  --ink-2:      #1A1A1A;
  --paper:      #FAFAF7;
  --paper-2:    #F2F1EC;
  --line:       #E6E4DC;
  --muted:      #6B6B66;
  --accent:     #1F3A2E;
  --accent-ink: #0E1E17;
  --radius:     2px;
  --max:        1200px;
  --pad-x:      clamp(20px, 4vw, 56px);
  --t-fast:     180ms cubic-bezier(.2,.6,.2,1);
  --t-med:      420ms cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

a:hover { opacity: .72; }

::selection { background: var(--ink); color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 460;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-2); }

.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  height: 100%;
}

.brand svg { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  letter-spacing: -0.005em;
}

.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px var(--pad-x) 24px;
    background: var(--paper);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .mobile-menu .nav-cta {
    display: inline-flex;
    margin-top: 16px;
  }
}

@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(72px, 11vw, 144px);
  padding-bottom: clamp(64px, 10vw, 128px);
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow { margin-bottom: 28px; display: inline-block; }

.hero h1 { max-width: 18ch; }

.hero .lede { margin-top: 28px; }

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Grid blocks ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.cell {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.cell .num {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 0;
}

.cell h3 { margin: 0; }

.cell p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Feature row (left label / right content) ---------- */

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }

.row .label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.row .body h3 { margin-bottom: 8px; font-size: 22px; font-weight: 500; }
.row .body p { color: var(--ink-2); max-width: 64ch; }

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

/* ---------- Quote / accent block ---------- */

.quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: var(--ink);
}

/* ---------- Pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.tier:hover { border-color: var(--ink); }
.tier.is-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tier.is-featured p,
.tier.is-featured .muted { color: #C9C9C2; }
.tier h3 { font-size: 20px; }
.tier .price {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.tier ul {
  list-style: none;
  padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.tier li {
  display: flex; gap: 10px; align-items: flex-start;
}
.tier li::before {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor; opacity: .55;
  margin-top: 8px; flex-shrink: 0;
}
.tier .btn { margin-top: auto; }

/* ---------- Tables (credits) ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.table td.num { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--ink); }

/* ---------- Diagram (intelligence) ---------- */

.diagram {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 820px) { .diagram { grid-template-columns: 1fr; } }

.diagram .node {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: var(--radius);
}
.diagram .node h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.diagram .node p { margin: 0; font-size: 13px; color: var(--muted); }
.diagram .core {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 24px 26px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 200px;
}
.diagram .core h4 { color: var(--paper); }
.diagram .core p { color: #C9C9C2; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand svg { height: 22px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 32ch; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a { font-size: 14px; color: var(--ink-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Misc ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}

.divider-asterism {
  text-align: center;
  letter-spacing: 1em;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0;
}

.notice {
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin: 24px 0;
}
