/* Lifetime Letter — full dark, premium-feel.
   Reference: dribbble.com/shots/18844926. Indigo→fuchsia gradient
   panels float on a true black background. Sunburst SVG decoration
   reinforces brand language. Inter for prose, no monospace eyebrows
   on the marketing surface — this isn't an engineering blog. */

:root {
  --bg: #050509;
  --paper: #0c0c14;
  --paper-2: #11111b;
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,0.92);
  --slate: rgba(255,255,255,0.62);
  --mute: rgba(255,255,255,0.42);
  --indigo: #5b54f0;
  --indigo-deep: #3730a3;
  --violet: #8b5cf6;
  --fuchsia: #c026d3;
  --pink: #f5a3ff;
  --grad: linear-gradient(135deg, #4339d6 0%, #6f3edc 38%, #a93ed4 70%, #f5a3ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(67,57,214,0.30), rgba(192,38,211,0.30));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0,0,0,0.55);
  --shadow-glow: 0 30px 90px rgba(139,92,246,0.32);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--violet); color: #fff; }

/* Subtle starfield grain so the black isn't flat. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(99,102,241,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 110%, rgba(192,38,211,0.14), transparent 55%);
}

/* ── Top bar ──────────────────────────────────────────── */
.ll-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 56px);
  max-width: 1320px; margin: 0 auto;
}
.ll-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-size: 17px;
}
.ll-brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(139,92,246,0.45);
}
.ll-brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 55%);
}
.ll-top nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; color: var(--slate);
}
.ll-top nav a { transition: color 0.15s; }
.ll-top nav a:hover { color: var(--ink); }

/* ── Sunburst SVG decoration (used inside hero) ──────── */
.ll-burst {
  position: absolute; pointer-events: none;
  width: 480px; height: 480px;
  opacity: 0.95;
}

/* ── Hero card with gradient ──────────────────────────── */
.ll-hero {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 56px) 0;
}
.ll-hero-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  isolation: isolate;
}
/* Right-aligned sunburst */
.ll-hero-card .ll-burst {
  right: -120px; top: -60px;
  z-index: 1;
}
/* Light glare in the centre */
.ll-hero-card::before {
  content: ""; position: absolute;
  width: 700px; height: 700px;
  right: -150px; top: -200px;
  background: radial-gradient(circle, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none; z-index: 1;
}

.ll-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  position: relative; z-index: 2;
  align-items: end;
}
@media (max-width: 920px) { .ll-hero-grid { grid-template-columns: 1fr; } }

.ll-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.ll-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #b9f59c; box-shadow: 0 0 0 4px rgba(185,245,156,0.20);
}

.ll-hero h1 {
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 22px;
  color: #fff;
}
.ll-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff, #f5d0ff);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ll-hero p.lead {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 50ch;
  margin: 0 0 32px;
}
.ll-trust {
  display: flex; align-items: center; gap: 16px;
  font-size: 13.5px; color: rgba(255,255,255,0.78);
}
.ll-trust-num {
  font-weight: 700; color: #fff; font-size: 15px;
  letter-spacing: -0.01em;
}
.ll-trust-sep {
  width: 4px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.4);
}

/* Subscribe panel — premium: thin stroke, big email input, single
   accent submit button. NOT shaped like the LNKS claim widget. */
.ll-sub-panel {
  border-top: 1px solid rgba(255,255,255,0.20);
  padding-top: 28px;
}
.ll-sub-panel h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 8px; color: #fff;
}
.ll-sub-panel .muted {
  color: rgba(255,255,255,0.72);
  font-size: 14.5px; margin: 0 0 22px;
  max-width: 38ch;
}

/* Premium subscribe form: row of input + arrow button on a thin
   underline. No box, no pill — feels editorial. */
.ll-form {
  position: relative;
  display: flex; align-items: center;
  border-bottom: 1.5px solid rgba(255,255,255,0.34);
  padding: 8px 0;
  transition: border-color 0.18s;
}
.ll-form:focus-within { border-color: #fff; }

.ll-form input[type="email"] {
  flex: 1; min-width: 0; appearance: none;
  background: transparent; border: 0; outline: 0;
  font: inherit; font-size: 17px; color: #fff;
  padding: 12px 4px;
  letter-spacing: -0.01em;
}
.ll-form input::placeholder { color: rgba(255,255,255,0.42); }

.ll-form button {
  background: #fff; color: #1a0b3a;
  border: 0; border-radius: 999px;
  width: 44px; height: 44px; flex: 0 0 44px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.ll-form button:hover { transform: translateX(2px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.ll-form button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.ll-form button svg { width: 16px; height: 16px; }

.ll-form-note {
  font-size: 12.5px; color: rgba(255,255,255,0.5);
  margin: 14px 0 0;
}
.ll-form-note.is-bad { color: #ffb1c1; }
.ll-form-note.is-good { color: #b9f59c; }

/* ── Why-subscribe section ────────────────────────────── */
.ll-why {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 96px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.ll-why-h {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 8px; color: #fff;
}
.ll-why-sub {
  color: var(--slate); font-size: 15.5px; margin: 0 0 36px;
  max-width: 60ch;
}
.ll-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 760px) { .ll-why-grid { grid-template-columns: 1fr; } }

.ll-why-cell {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ll-why-cell:nth-child(2n) { border-right: 0; }
.ll-why-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) {
  .ll-why-cell { border-right: 0; }
  .ll-why-cell:not(:last-child) { border-bottom: 1px solid var(--line); }
}

.ll-why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(139,92,246,0.30);
  display: inline-flex; align-items: center; justify-content: center;
  color: #d4cffe;
  position: relative;
  overflow: hidden;
}
.ll-why-icon::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
}
.ll-why-cell h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 6px; color: #fff;
}
.ll-why-cell h3 u {
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.ll-why-cell p {
  margin: 0; font-size: 14.5px; color: var(--slate); line-height: 1.65;
}

/* ── Stats / proof strip ──────────────────────────────── */
.ll-stats {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 80px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.ll-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .ll-stats-grid { grid-template-columns: 1fr; } }
.ll-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: left;
}
.ll-stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ll-stat-lab {
  margin-top: 10px;
  font-size: 14px; color: var(--slate);
}

/* ── Recent issue tease ───────────────────────────────── */
.ll-recent {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 80px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.ll-recent-h {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 22px; color: #fff;
}
.ll-recent-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.ll-recent-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.ll-recent-item:last-child { border-bottom: 0; }
.ll-recent-date {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mute);
}
.ll-recent-title { color: #fff; font-weight: 600; font-size: 16px; }
.ll-recent-tag {
  font-size: 12px; color: #d4cffe;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.32);
  padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 640px) {
  .ll-recent-item { grid-template-columns: 1fr; }
  .ll-recent-tag { justify-self: start; }
}

/* ── Submit CTA strip ─────────────────────────────────── */
.ll-submit-cta {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 96px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.ll-submit-cta-inner {
  position: relative;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(139,92,246,0.30);
}
.ll-submit-cta-inner .ll-burst {
  left: -120px; bottom: -120px; width: 380px; height: 380px;
  z-index: 1; opacity: 0.65;
}
.ll-submit-cta-inner > * { position: relative; z-index: 2; }
.ll-submit-cta h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.ll-submit-cta p { color: rgba(255,255,255,0.82); margin: 0; font-size: 15px; max-width: 50ch; }

.ll-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #1a0b3a;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 8px 22px rgba(0,0,0,0.30);
}
.ll-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
.ll-btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: none;
}
.ll-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ── Footer ──────────────────────────────────────────── */
.ll-footer {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 96px auto 32px;
  padding: 32px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--slate);
}
.ll-footer nav { display: inline-flex; gap: 24px; }
.ll-footer nav a:hover { color: #fff; }
.ll-footer .independent {
  font-size: 12px; letter-spacing: 0.06em; color: var(--mute);
  text-transform: uppercase; font-weight: 500;
}

/* ── Plain content pages ─────────────────────────────── */
.ll-page {
  position: relative; z-index: 2;
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.ll-page h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -0.035em;
  margin: 16px 0 8px; color: #fff;
  line-height: 1.05;
}
.ll-page .ll-lead {
  color: var(--slate); margin: 0 0 32px; font-size: 17px;
  max-width: 56ch;
}
.ll-page h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
  margin: 36px 0 8px; color: #fff;
}
.ll-page p { color: var(--ink-2); margin: 0 0 14px; }
.ll-page ul { padding-left: 20px; color: var(--ink-2); }
.ll-page li { margin: 6px 0; }
.ll-page small { color: var(--mute); }
.ll-page a:not(.ll-btn) { color: #d4cffe; text-decoration: underline; text-underline-offset: 3px; }

/* ── Premium submit form ─────────────────────────────── */
.ll-form-block {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-top: 32px;
  overflow: hidden;
  isolation: isolate;
}
.ll-form-block::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(192,38,211,0.0) 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.ll-form-block > * { position: relative; z-index: 2; }
.ll-field { margin-bottom: 22px; }
.ll-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .ll-field-row { grid-template-columns: 1fr; } }
.ll-field label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.ll-field input, .ll-field textarea {
  width: 100%; appearance: none;
  font: inherit; font-size: 15px; color: #fff;
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.ll-field input::placeholder, .ll-field textarea::placeholder {
  color: var(--mute);
}
.ll-field input:focus, .ll-field textarea:focus {
  outline: 0; border-color: var(--violet);
  background: #15151f;
  box-shadow: 0 0 0 4px rgba(139,92,246,0.18);
}
.ll-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.ll-field .help { font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.ll-actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 28px;
}
.ll-submit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  box-shadow: 0 12px 30px rgba(139,92,246,0.40);
}
.ll-submit-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 36px rgba(139,92,246,0.55); }
.ll-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.ll-status { font-size: 13.5px; color: var(--slate); padding-left: 4px; min-height: 18px; }
.ll-status.is-good { color: #b9f59c; }
.ll-status.is-bad  { color: #ffb1c1; }

/* ── Thanks page ─────────────────────────────────────── */
.ll-thanks {
  position: relative; z-index: 2;
  max-width: 600px; margin: 80px auto;
  padding: clamp(40px, 5vw, 64px);
  background: var(--grad); color: #fff;
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(139,92,246,0.40);
}
.ll-thanks .ll-burst {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 540px; height: 540px; opacity: 0.5;
  z-index: 1;
}
.ll-thanks > * { position: relative; z-index: 2; }
.ll-thanks h1 {
  font-size: clamp(40px, 5.5vw, 64px); margin: 0 0 14px;
  letter-spacing: -0.04em; line-height: 1.04;
}
.ll-thanks p { color: rgba(255,255,255,0.88); font-size: 17px; margin: 0 0 22px; max-width: 38ch; margin-left: auto; margin-right: auto; }
.ll-thanks a {
  color: #fff;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.5);
  transition: text-decoration-color 0.15s;
}
.ll-thanks a:hover { text-decoration-color: #fff; }
