/* Marketing landing (v2 design). Scoped under .landing-page so none of it
   leaks into the app, which renders other screens into the same #app root.
   Generated from the lp-updatev2.html draft; edit there or here, not both.
   Söhne @font-face + the global box-sizing reset come from system.css. */

/* ── Tokens (mirrors tokens.generated.css values) ── */

.landing-page {
  --ink: #140700;
  --muted: #6f7691;
  --cool: #9fa3b5;
  --line: #e7e8ed;
  --line-soft: #eceef2;
  --paper: #ffffff;
  --paper-off: #fafafb;
  --paper-tint: #f5f6f8;
  --blue: #4a7ce8;
  --blue-soft: #edf2fd;
  --blue-mist: #dbe5fa;
  --green: #2e8b57;
  --green-soft: #eaf3ee;
  --radius: 12px;
  --radius-lg: 16px;
}

html:has(.landing-page) {
  scroll-behavior: smooth;
}

.landing-page {
  margin: 0;
  font-family: "Söhne", -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing-page a {
  color: inherit; text-decoration: none;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page p,
.landing-page ul,
.landing-page figure {
  margin: 0;
}

.landing-page ul {
  padding: 0; list-style: none;
}

.landing-page .wrap {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}

/* ── Buttons ── */

.landing-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  /* Söhne is ascent-heavy: caps + x-height ink sits ~0.75px below the
  centred line-box (empty descender space beneath). A 1.5px bottom
  pad raises the content box ~0.75px so the text is optically centred.
  Kept off the `padding` shorthand so the size modifiers (which only
  set padding-inline) don't wipe it. */
  padding-inline: 22px;
  padding-block: 0 1.5px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms, border-color 160ms, color 160ms, transform 160ms;
}

.landing-page .btn-ink {
  background: var(--ink); color: #fff;
}

.landing-page .btn-ink:hover {
  background: #2b1d16;
}

.landing-page .btn-ghost {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}

.landing-page .btn-ghost:hover {
  border-color: var(--cool);
}

.landing-page .btn-sm {
  height: 36px; padding-inline: 16px; font-size: 14px;
}

.landing-page .btn-lg {
  height: 48px; padding-inline: 26px; font-size: 16px;
}

/* ── Nav ── */

.landing-page .nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, #ffffff 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.landing-page .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.landing-page .nav-logo img {
  display: block;
}

.landing-page .nav-links {
  display: flex; align-items: center; gap: 26px;
}

.landing-page .nav-link {
  font-size: 14px; color: var(--muted); transition: color 140ms;
}

.landing-page .nav-link:hover {
  color: var(--ink);
}

/* Thin divider between the section links and the auth actions (Linear). */

.landing-page .nav-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 2px;
}

/* ── Hero ── */

.landing-page .hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

/* Hairline grid, fading out from the top, set on a layer so the fade
         never affects text. */

.landing-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(var(--line-soft) 1px, transparent 1px),
  linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  /* Offset so no horizontal grid line lands at the sticky nav's bottom
  edge (hero starts flush under it), that coincidence read as a
  double border. */
  background-position: 0 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% -5%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% -5%, #000 30%, transparent 75%);
  pointer-events: none;
}

.landing-page .hero-inner {
  position: relative; text-align: center;
}

.landing-page .hero-title {
  font-weight: 300;
  font-size: clamp(44px, 7.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 640px;
  margin: 0 auto;
}

.landing-page .hero-sub {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.landing-page .hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
}

.landing-page .hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--cool);
}

/* ── Demo frame ── */

.landing-page .stage {
  position: relative;
  margin: 72px auto 0;
  max-width: 1120px;
  padding: 0 24px;
}

.landing-page .stage-glow {
  position: absolute;
  inset: 8% 12% -4% 12%;
  background: linear-gradient(120deg, var(--blue-mist), var(--green-soft) 60%, var(--blue-soft));
  filter: blur(64px);
  opacity: 0.9;
  pointer-events: none;
}

.landing-page .frame {
  position: relative;
  border: 1px solid var(--line);
  /* Top corners only + no bottom border, like the live masthead: the
  browser window runs off the bottom of the frame (app content
  continues behind the edge) instead of reading as a fully enclosed
  card, which gave rounded bottom corners and a double-border seam. */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
  background: var(--paper);
  box-shadow:
  0 1px 2px rgba(20, 7, 0, 0.04),
  0 12px 32px rgba(20, 7, 0, 0.07),
  0 32px 80px rgba(20, 7, 0, 0.07);
  overflow: hidden;
}

.landing-page .frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  /* Slightly darker than paper-off so the traffic-light dots read as solid,
     matching the old browser chrome. */
  background: var(--paper-tint);
}

.landing-page .frame-dots {
  display: flex; gap: 6px;
}

.landing-page .frame-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line);
}

.landing-page .frame-url {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--line-soft);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* The demo renders at a fixed 1280px desktop width, then the inline
         script at the foot scales the whole inner (chrome bar + iframe) down to
         fit the frame — same technique the live site uses, so you see the full
         app crisply instead of a zoomed, clipped 1:1 view. */

.landing-page .frame-stage {
  position: relative;
  overflow: hidden;
}

.landing-page .frame-scale {
  width: 1280px;
  transform-origin: top left;
}

.landing-page .frame-iframe {
  display: block;
  width: 1280px;
  height: 900px;
  border: 0;
  background: var(--paper-off);
}

/* ── Section scaffolding ── */

.landing-page .section {
  padding: 128px 0;
}

.landing-page .section-tight {
  padding: 96px 0;
}

.landing-page .kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

.landing-page .section-title {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.landing-page .section-sub {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ── Lifecycle rail ── */

.landing-page .rail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
}

.landing-page .rail-stop {
  flex: 1;
  max-width: 220px;
  text-align: center;
  position: relative;
}

.landing-page .rail-stop::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 52px);
  right: calc(-50% + 52px);
  height: 1px;
  background: var(--line);
}

.landing-page .rail-stop:last-child::after {
  display: none;
}

.landing-page .rail-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.landing-page .rail-tag-blue {
  background: var(--blue-soft); color: var(--blue);
}

.landing-page .rail-tag-green {
  background: var(--green-soft); color: var(--green);
}

.landing-page .rail-desc {
  margin: 14px auto 0;
  max-width: 170px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Bento ── */

.landing-page .bento-section {
  background: var(--paper-off); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}

.landing-page .bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.landing-page .cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 28px;
  display: flex;
  flex-direction: column;
  /* Space between the title and its description. The .cell-art below is pushed
     to the bottom with margin-top:auto, so this gap only affects h3 → p. */
  gap: 14px;
  transition: border-color 180ms, box-shadow 180ms;
}

.landing-page .cell:hover {
  border-color: var(--cool);
  box-shadow: 0 8px 28px rgba(20, 7, 0, 0.05);
}

.landing-page .cell-7 {
  grid-column: span 7;
}

.landing-page .cell-5 {
  grid-column: span 5;
}

.landing-page .cell-3 {
  grid-column: span 3;
}

.landing-page .cell h3 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.landing-page .cell p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.landing-page .cell-art {
  margin-top: auto;
  padding-top: 22px;
}

.landing-page .cell-3 .cell-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* Mini quote card (inside the quotes cell) */

.landing-page .mini-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(20, 7, 0, 0.05);
  padding: 18px 20px;
  max-width: 360px;
}

.landing-page .mini-doc-company {
  font-size: 11px; color: var(--cool); letter-spacing: 0.04em; text-transform: uppercase;
}

.landing-page .mini-doc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 16px;
}

.landing-page .mini-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-page .mini-tag-blue {
  background: var(--blue-soft); color: var(--blue);
}

.landing-page .mini-tag-green {
  background: var(--green-soft); color: var(--green);
}

.landing-page .mini-doc-meta {
  margin-top: 4px; font-size: 12px; color: var(--muted);
}

.landing-page .mini-doc-actions {
  display: flex; gap: 8px; margin-top: 14px;
}

.landing-page .mini-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
}

.landing-page .mini-btn-ink {
  background: var(--ink); color: #fff;
}

.landing-page .mini-btn-line {
  border: 1px solid var(--line); color: var(--ink);
}

/* Mini rows (reminders / recurring / payments cells) */

.landing-page .mini-rows {
  display: flex; flex-direction: column; gap: 0; max-width: 360px;
}

.landing-page .mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.landing-page .mini-row:last-child {
  border-bottom: 0;
}

.landing-page .mini-row strong {
  font-weight: 400; color: var(--ink);
}

.landing-page .mini-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

.landing-page .mini-row .spacer {
  margin-left: auto;
}

/* ── Pricing ── */

.landing-page .price-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.landing-page .price-figure .amount {
  font-weight: 300;
  font-size: clamp(72px, 10vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.landing-page .price-figure .period {
  font-size: 20px; color: var(--muted);
}

.landing-page .price-checks {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px 40px;
  justify-content: center;
  margin: 44px auto 0;
}

.landing-page .price-check {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.landing-page .price-check::before {
  content: "✓"; color: var(--green);
}

.landing-page .price-cta {
  text-align: center; margin-top: 44px;
}

.landing-page .price-note {
  margin-top: 16px; font-size: 13px; color: var(--cool); text-align: center;
}

/* ── FAQ ── */

.landing-page .faq {
  max-width: 680px; margin: 56px auto 0;
}

.landing-page .faq details {
  border-top: 1px solid var(--line);
}

.landing-page .faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.landing-page .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.landing-page .faq summary::-webkit-details-marker {
  display: none;
}

.landing-page .faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--cool);
  transition: transform 160ms;
}

.landing-page .faq details[open] summary::after {
  transform: rotate(45deg);
}

.landing-page .faq .answer {
  padding: 0 4px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}

/* ── Closing band ── */

.landing-page .close-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 112px 0;
}

.landing-page .close-band .section-title {
  color: #fff;
}

.landing-page .close-band .btn-ink {
  background: #fff; color: var(--ink);
}

.landing-page .close-band .btn-ink:hover {
  background: var(--paper-tint);
}

.landing-page .close-sub {
  margin: 18px auto 0; font-size: 15px; color: var(--cool); max-width: 680px; line-height: 1.6;
  /* Fits on one line on desktop; balances (no "call." widow) when it wraps. */
  text-wrap: balance;
}

.landing-page .close-ctas {
  display: flex; justify-content: center; gap: 12px; margin-top: 36px;
}

.landing-page .close-band .btn-ghost {
  background: transparent; border-color: #3d322c; color: #fff;
}

.landing-page .close-band .btn-ghost:hover {
  border-color: var(--cool);
}

/* ── Footer ── */

.landing-page .footer {
  /* Continues the dark closing band, with a hairline to set the footer apart. */
  padding: 28px 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-page .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cool);
}

.landing-page .footer-links {
  display: flex; gap: 20px;
}

.landing-page .footer-links a:hover {
  color: #fff;
}

/* ── Marketing footer (Square-style, four columns) ──
   Replaces the two-link .footer on every marketing surface: the static
   feature/segment pages (via src/partials/marketing-footer.html), index.html,
   and the SPA landing (auth.js renderLanding). Lives here — not in
   marketing.css — because index.html and the SPA load landing.css but not
   marketing.css. Continues the dark closing band. */

.landing-page .mk-footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 44px;
}

.landing-page .mk-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.landing-page .mk-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-page .mk-footer-logo img {
  display: block;
  /* logo.svg is dark ink (#140700); flip it to white on the dark footer. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.landing-page .mk-footer-tag {
  font-size: 13px;
  color: var(--cool);
}

.landing-page .mk-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.landing-page .mk-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.landing-page .mk-footer-head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: 4px;
}

.landing-page .mk-footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 140ms;
}

.landing-page .mk-footer-col a:hover {
  color: #fff;
}

.landing-page .mk-footer-copy {
  font-size: 13px;
  color: var(--cool);
  margin-top: 4px;
}

/* Footer collapses 4 → 2 → 1 columns so it never overflows on narrow screens. */
@media (max-width: 720px) {
  .landing-page .mk-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 440px) {
  .landing-page .mk-footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .landing-page .cell-7,
.landing-page .cell-5 {
    grid-column: span 12;
  }

  .landing-page .cell-3 {
    grid-column: span 6;
  }

  .landing-page .price-checks {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 720px) {
  .landing-page .section {
    padding: 88px 0;
  }

  .landing-page .hero {
    padding-top: 64px;
  }

  .landing-page .hero-sub {
    font-size: 16px;
  }

  .landing-page .hero-ctas {
    flex-wrap: wrap;
  }

  .landing-page .rail {
    flex-direction: column; align-items: center; gap: 28px;
  }

  .landing-page .rail-stop::after {
    display: none;
  }

  .landing-page .rail-stop {
    max-width: 300px;
  }

  .landing-page .cell-3 {
    grid-column: span 12;
  }

  .landing-page .price-checks {
    grid-template-columns: 1fr; justify-items: start; max-width: 300px;
  }

  .landing-page .nav-link-quiet {
    display: none;
  }

  .landing-page .footer-inner {
    flex-direction: column; gap: 12px;
  }
}
