/**
 * Proofline landing — V2 (alternate direction)
 * Cool UI: Syne + DM Sans, blue/violet mesh, panel cards, horizontal strip.
 * HTML class names unchanged (.landing .lp-*).
 */

.landing {
  --lp-max: min(1200px, calc(100vw - 2 * var(--page-pad)));
  --lp-font-display: "Syne", var(--font-sans);
  --lp-font-body: "DM Sans", var(--font-sans);
  --lp-accent: #6ea8ff;
  --lp-accent-hot: #a78bfa;
  --lp-ease: cubic-bezier(0.33, 1, 0.68, 1);
  font-family: var(--lp-font-body);
}

.landing * {
  font-family: inherit;
}

body:has(.landing) .site-header {
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(6 6 8 / 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 40;
}

body:has(.landing) .nav a:hover {
  color: var(--lp-accent);
}

body:has(.landing) .brand:hover {
  color: var(--lp-accent);
}

/* ——— Hero ——— */
.landing .lp-hero {
  position: relative;
  padding: clamp(40px, 9vw, 96px) var(--page-pad) clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.landing .lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgb(110 168 255 / 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgb(167 139 250 / 0.1), transparent 45%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgb(110 168 255 / 0.06), transparent 50%);
  pointer-events: none;
}

.landing .lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
  pointer-events: none;
  opacity: 0.5;
}

.landing .lp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: var(--lp-max);
  margin-inline: auto;
}

.landing .lp-hero h1 {
  margin: 0 0 var(--space-lg);
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 14ch;
}

.landing .lp-lead {
  margin: 0 0 var(--space-xl);
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

.landing .lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.landing .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 200ms var(--lp-ease),
    box-shadow 200ms var(--lp-ease),
    background 200ms var(--lp-ease),
    border-color 200ms var(--lp-ease),
    color 200ms var(--lp-ease);
}

.landing .lp-btn:hover {
  text-decoration: none;
}

.landing .lp-btn--primary {
  background: linear-gradient(135deg, var(--lp-accent), rgb(100 140 255));
  color: #040406;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 1px rgb(110 168 255 / 0.35), 0 12px 40px rgb(0 0 0 / 0.35);
}

.landing .lp-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgb(110 168 255 / 0.5), 0 18px 48px rgb(0 0 0 / 0.45);
}

.landing .lp-btn--ghost {
  background: rgb(255 255 255 / 0.03);
  color: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.landing .lp-btn--ghost:hover {
  border-color: rgb(110 168 255 / 0.45);
  color: var(--lp-accent);
}

.landing .lp-appstore {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  flex-shrink: 0;
}

.landing .lp-appstore:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
}

.landing .lp-appstore:hover {
  opacity: 0.88;
}

.landing .lp-appstore img {
  display: block;
  height: 40px;
  width: auto;
}

@media (max-width: 560px) {
  .landing .lp-appstore {
    align-self: flex-start;
  }
}

.landing .lp-hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

.landing .lp-hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgb(110 168 255 / 0.5), rgb(167 139 250 / 0.35), transparent 60%);
  z-index: 0;
  opacity: 0.65;
  filter: blur(12px);
}

.landing .lp-device {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 28px;
  border: 1px solid rgb(255 255 255 / 0.12);
  overflow: hidden;
  background: #0a0a0d;
  box-shadow: 0 24px 56px rgb(0 0 0 / 0.55);
}

.landing .lp-device img {
  width: 100%;
  height: auto;
  display: block;
}

.landing .lp-device-caption {
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(244 243 239 / 0.35);
  text-align: center;
}

/* ——— Strip ——— */
.landing .lp-strip {
  border-block: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(10 10 12 / 0.85);
}

.landing .lp-strip-inner {
  max-width: var(--lp-max);
  margin-inline: auto;
  padding: var(--space-lg) var(--page-pad);
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgb(110 168 255 / 0.3) transparent;
}

.landing .lp-strip-inner::-webkit-scrollbar {
  height: 6px;
}

.landing .lp-strip-inner::-webkit-scrollbar-thumb {
  background: rgb(110 168 255 / 0.25);
  border-radius: 3px;
}

.landing .lp-strip article {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(255 255 255 / 0.02);
}

.landing .lp-strip h2 {
  margin: 0 0 6px;
  font-family: var(--lp-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-accent);
}

.landing .lp-strip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ——— Statement ——— */
.landing .lp-statement {
  padding: var(--space-2xl) var(--page-pad);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  background: linear-gradient(180deg, rgb(8 8 11), rgb(4 4 6));
}

.landing .lp-statement-inner {
  max-width: var(--lp-max);
  margin-inline: auto;
}

.landing .lp-statement blockquote {
  margin: 0;
  padding: 0 0 0 24px;
  border: none;
  border-left: 3px solid var(--lp-accent-hot);
  font-family: var(--lp-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: rgb(244 243 239 / 0.92);
  max-width: 42ch;
}

.landing .lp-statement figcaption {
  margin-top: var(--space-md);
  margin-left: 27px;
  font-family: var(--lp-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(167 139 250 / 0.85);
}

/* ——— Sections ——— */
.landing .lp-section {
  padding: clamp(48px, 9vw, 100px) var(--page-pad);
  max-width: var(--lp-max);
  margin-inline: auto;
}

.landing .lp-section-head {
  margin-bottom: clamp(24px, 4vw, 40px);
  max-width: 52ch;
}

.landing .lp-section-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(110 168 255 / 0.75);
}

.landing .lp-section h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--lp-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.landing .lp-section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

/* ——— Bento ——— */
.landing .lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

.landing .lp-bento-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: linear-gradient(165deg, rgb(18 18 24 / 0.95), rgb(10 10 14 / 0.98));
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset;
}

.landing .lp-bento-card--wide {
  grid-column: 1 / -1;
}

.landing .lp-bento-body {
  padding: var(--space-lg);
  flex: 0 0 auto;
}

.landing .lp-bento-card .lp-step {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(6 6 8);
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-hot));
}

.landing .lp-bento-body h3 {
  margin: 0 0 8px;
  font-family: var(--lp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.landing .lp-bento-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgb(244 243 239 / 0.72);
}

/* Screenshot “well”: dims loud store art, same footprint per narrow card */
.landing .lp-bento-shot {
  margin: 0;
  margin-top: auto;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background:
    radial-gradient(ellipse 95% 85% at 50% 100%, rgb(20 24 34 / 0.9), rgb(5 5 8)),
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 40%);
}

.landing .lp-bento-card:not(.lp-bento-card--wide) .lp-bento-shot {
  min-height: 230px;
  max-height: 230px;
}

.landing .lp-bento-card:not(.lp-bento-card--wide) .lp-bento-shot:has(img:nth-of-type(2)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: end;
  align-items: end;
}

.landing .lp-bento-shot img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  filter: brightness(0.9) saturate(0.88);
}

.landing .lp-bento-card:not(.lp-bento-card--wide) .lp-bento-shot:has(img:nth-of-type(2)) img {
  max-height: 188px;
}

.landing .lp-bento-card--wide .lp-bento-shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  min-height: 0;
  max-height: none;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.landing .lp-bento-card--wide .lp-bento-shot img {
  max-height: min(280px, 36vw);
}

@media (max-width: 700px) {
  .landing .lp-bento-card--wide .lp-bento-shot {
    grid-template-columns: 1fr;
  }

  .landing .lp-bento-card:not(.lp-bento-card--wide) .lp-bento-shot {
    min-height: 200px;
    max-height: 200px;
  }

  .landing .lp-bento-shot img {
    max-height: 168px;
  }
}

/* ——— Flow ——— */
.landing .lp-flow {
  display: grid;
  gap: 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgb(12 12 16 / 0.5);
}

.landing .lp-flow-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.landing .lp-flow-row:last-child {
  border-bottom: none;
}

.landing .lp-flow-num {
  font-family: var(--lp-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--lp-accent), var(--lp-accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing .lp-flow-row h3 {
  margin: 0 0 6px;
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.landing .lp-flow-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 54ch;
}

/* ——— Grid fit ——— */
.landing .lp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.landing .lp-grid > article {
  padding: var(--space-lg);
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.02);
}

.landing .lp-grid h3 {
  margin: 0 0 8px;
  font-family: var(--lp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.landing .lp-grid p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.52;
}

/* ——— CTA ——— */
.landing .lp-cta {
  margin: var(--space-2xl) auto var(--space-3xl);
  max-width: var(--lp-max);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
  border-radius: 20px;
  border: 1px solid rgb(110 168 255 / 0.25);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgb(167 139 250 / 0.12), transparent 50%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgb(110 168 255 / 0.1), transparent 45%),
    rgb(12 12 18 / 0.9);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.4);
}

.landing .lp-cta h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--lp-font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
  letter-spacing: -0.02em;
}

.landing .lp-cta > p {
  margin: 0 0 var(--space-xl);
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

body:has(.landing) .site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.05);
  padding-top: var(--space-lg);
}

body:has(.landing) .footer-links a {
  color: rgb(244 243 239 / 0.45);
}

body:has(.landing) .footer-links a:hover {
  color: var(--lp-accent);
  text-decoration: none;
}

@media (max-width: 960px) {
  .landing .lp-hero-grid {
    grid-template-columns: 1fr;
  }

  .landing .lp-hero h1 {
    max-width: none;
  }

  .landing .lp-hero-visual {
    justify-self: center;
  }

  .landing .lp-bento {
    grid-template-columns: 1fr;
  }

  .landing .lp-bento-card,
  .landing .lp-bento-card--wide {
    grid-column: span 1;
  }

  .landing .lp-flow-row {
    grid-template-columns: 48px 1fr;
  }

  .landing .lp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing .lp-actions {
    flex-direction: column;
  }

  .landing .lp-btn {
    width: 100%;
  }

  .landing .lp-flow-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing .lp-flow-num {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing .lp-btn--primary:hover {
    transform: none;
  }
}
