/* Landing page.
   Structure borrowed from a dark developer-tool page: generous section rhythm,
   an honest cost table, numbered process rows, small uppercase section labels.
   Rendered in the product's own ink-and-paper language rather than that page's
   terminal green, so the site and the app read as one product. */

.lp-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  margin: 0;
}

.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
}
.lp-skip:focus { left: var(--s-4); top: var(--s-4); }

.lp-inner {
  /* Wider than the app's 900px measure: a marketing page needs to fill the
     screen, while prose inside it stays held to --measure-prose. */
  width: min(1140px, calc(100% - var(--s-7)));
  margin: 0 auto;
}

/* --- Nav ---------------------------------------------------------------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-panel);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--hairline);
}

.lp-nav-inner {
  width: min(1140px, calc(100% - var(--s-7)));
  margin: 0 auto;
  padding: var(--s-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.lp-mark { text-decoration: none; color: var(--ink); }

.lp-mark-name {
  font-family: var(--serif);
  font-size: var(--t-md);
  font-style: italic;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.lp-nav-links a {
  font-size: var(--t-sm);
  color: var(--mute);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.lp-nav-links a:hover { color: var(--ink); }

.lp-nav-cta {
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--paper) !important;
  font-size: var(--t-xs) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lp-nav-cta:hover { background: var(--accent); }

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

.lp-section { padding: var(--s-9) 0; border-bottom: 1px solid var(--hairline); }
.lp-section-alt { background: var(--paper-2); }

.lp-label {
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.lp-h1 {
  margin: 0 0 var(--s-5);
  font-family: var(--serif);
  font-size: var(--t-3xl);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lp-h1 em { font-style: italic; color: var(--accent); }

.lp-h2 {
  margin: 0 0 var(--s-5);
  max-width: 24ch;
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lp-lede {
  margin: 0 0 var(--s-6);
  max-width: var(--measure-prose);
  font-size: var(--t-md);
  color: var(--ink-soft);
}

.lp-prose { max-width: var(--measure-prose); }
.lp-prose p { margin: 0 0 var(--s-4); color: var(--ink-soft); }
.lp-prose p:last-child { margin-bottom: 0; }

.lp-aside {
  margin: var(--s-6) 0 0;
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent);
  max-width: var(--measure-prose);
  font-size: var(--t-base);
  color: var(--mute);
}

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

.lp-hero { padding: var(--s-10) 0 var(--s-9); border-bottom: 1px solid var(--hairline); }

.lp-identity {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.lp-identity-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 12px;
}

.lp-identity-name {
  margin: 0 0 var(--s-1);
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 500;
  line-height: 1.2;
}

.lp-identity-purpose {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  line-height: 1.4;
  color: var(--mute);
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.lp-account-note {
  max-width: var(--measure-prose);
  margin: 0 0 var(--s-8);
  font-size: var(--t-sm);
  color: var(--mute);
}

.lp-account-note a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

.lp-account-note a:hover { color: var(--accent); }

.lp-cta,
.lp-cta-ghost {
  display: inline-block;
  padding: var(--s-4) var(--s-6);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.lp-cta {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-offset-sm);
}
.lp-cta:hover { background: var(--accent); border-color: var(--accent); }

.lp-cta-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.lp-cta-ghost:hover { border-color: var(--rule); }

/* The paste box shows the input rather than a screenshot of the output: what
   the user brings is the thing they need to recognise. */
.lp-paste {
  max-width: 640px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-offset);
}

.lp-paste-head {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.lp-paste-text {
  margin: 0;
  padding: var(--s-5) var(--s-4);
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-soft);
}

.lp-paste-foot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--hairline);
  background: var(--paper-2);
  font-size: var(--t-sm);
  color: var(--mute);
}

.lp-paste-arrow { font-family: var(--mono); color: var(--accent); }

/* --- Compare ------------------------------------------------------------ */

.lp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}

.lp-compare-col {
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.lp-section-alt .lp-compare-col { background: var(--paper); }

.lp-compare-head {
  margin: 0 0 var(--s-4);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.lp-compare-head.is-bad { color: var(--mute); }
.lp-compare-head.is-good { color: var(--accent); }

.lp-compare-list { margin: 0; padding: 0; list-style: none; }

.lp-compare-list li {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--hairline-2);
  font-size: var(--t-base);
  color: var(--ink-soft);
}
.lp-compare-list li:first-child { border-top: 0; }

/* --- Cards -------------------------------------------------------------- */

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.lp-card {
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.lp-card-num {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  color: var(--accent);
}

.lp-card-title {
  margin: 0 0 var(--s-2);
  font-family: var(--serif);
  font-size: var(--t-md);
  font-weight: 500;
}

.lp-card p { margin: 0; font-size: var(--t-base); color: var(--mute); }

/* --- Steps -------------------------------------------------------------- */

.lp-steps { margin: var(--s-6) 0 0; padding: 0; list-style: none; }

.lp-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--hairline);
}
.lp-step:last-child { border-bottom: 1px solid var(--hairline); }

.lp-step-n {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--accent);
}

.lp-step-title {
  margin: 0 0 var(--s-1);
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.3;
}

.lp-step-body p:last-child {
  margin: 0;
  max-width: var(--measure-prose);
  font-size: var(--t-base);
  color: var(--mute);
}

/* --- Honest costs ------------------------------------------------------- */

.lp-honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
  margin-top: var(--s-6);
}

.lp-honest-table {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-offset-sm);
}

.lp-honest-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-4);
  border-bottom: 1px solid var(--hairline-2);
  font-size: var(--t-base);
}

.lp-honest-row.is-total {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-weight: 500;
}

.lp-honest-value { font-family: var(--mono); font-size: var(--t-sm); color: var(--accent); }

.lp-honest-note {
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper-2);
  font-size: var(--t-sm);
}

/* --- Plans -------------------------------------------------------------- */

.lp-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
  align-items: start;
}

.lp-plan {
  position: relative;
  padding: var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.lp-plan.is-featured {
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-offset);
}

.lp-plan-badge {
  position: absolute;
  top: 0;
  right: var(--s-4);
  transform: translateY(-50%);
  margin: 0;
  padding: var(--s-1) var(--s-3);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lp-plan-name {
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.lp-plan-price { margin: 0 0 var(--s-1); display: flex; align-items: baseline; gap: 4px; }

.lp-plan-amount {
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1;
}

.lp-plan-per { font-size: var(--t-sm); color: var(--mute); }

.lp-plan-line {
  margin: 0 0 var(--s-5);
  font-size: var(--t-sm);
  color: var(--accent);
}

.lp-plan-list { margin: 0 0 var(--s-6); padding: 0; list-style: none; }

.lp-plan-list li {
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  position: relative;
  font-size: var(--t-base);
  color: var(--ink-soft);
}
.lp-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.lp-plan-cta {
  display: block;
  padding: var(--s-3);
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.lp-plan-cta:hover { background: var(--accent); border-color: var(--accent); }

.lp-plan-cta-ghost { background: none; color: var(--ink); border-color: var(--hairline); }
.lp-plan-cta-ghost:hover { background: none; border-color: var(--rule); color: var(--accent); }

/* --- Claims ------------------------------------------------------------- */

.lp-claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.lp-claim { padding-top: var(--s-4); border-top: 1px solid var(--rule); }

.lp-claim-head {
  margin: 0 0 var(--s-2);
  font-family: var(--serif);
  font-size: var(--t-md);
}

.lp-claim p:last-child {
  margin: 0;
  font-size: var(--t-base);
  color: var(--mute);
}

/* --- Close -------------------------------------------------------------- */

.lp-close {
  padding: var(--s-10) 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.lp-close-h { margin-left: auto; margin-right: auto; color: var(--paper); }
.lp-close .lp-lede { margin-left: auto; margin-right: auto; color: var(--paper-3); }

.lp-close .lp-cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: none;
}
.lp-close .lp-cta:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

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

.lp-footer { padding: var(--s-6) 0; }

.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: baseline;
}

.lp-footer-meta { font-size: var(--t-sm); color: var(--mute); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 880px) {
  .lp-cards,
  .lp-plans { grid-template-columns: 1fr; }
  .lp-honest { grid-template-columns: 1fr; gap: var(--s-5); }
  .lp-plan.is-featured { box-shadow: var(--shadow-offset-sm); }
}

@media (max-width: 680px) {
  .lp-section, .lp-hero { padding: var(--s-8) 0; }
  .lp-close { padding: var(--s-9) 0; }
  .lp-compare, .lp-claims { grid-template-columns: 1fr; }
  .lp-h2 { max-width: none; }

  /* Links collapse to the CTA only: four nav items do not fit, and the CTA is
     the one that matters. */
  .lp-nav-links a:not(.lp-nav-cta) { display: none; }

  .lp-step { grid-template-columns: 40px 1fr; gap: var(--s-3); }
  .lp-hero-actions { flex-direction: column; align-items: stretch; }
  .lp-cta, .lp-cta-ghost { text-align: center; }
  .lp-identity-logo { width: 60px; height: 60px; }
}

@media (max-width: 380px) {
  .lp-inner { width: calc(100% - var(--s-4)); }
  .lp-paste-text { font-size: var(--t-md); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-nav { backdrop-filter: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Brand mark in the nav */
.lp-mark{ display: inline-flex; align-items: center; gap: var(--s-2); }
.lp-mark-logo{ display: block; }

/* The landing footer carries the legal links and theme toggle. */
.lp-footer-inner{ align-items: center; }
.lp-footer-inner .site-footer-links{ flex: 1; }
@media (max-width: 560px){
  .lp-footer-inner{ flex-direction: column; align-items: flex-start; }
  .lp-footer-inner .site-footer-theme{ margin-left: 0; }
}
