/* =============================================================================
 * landing.css — marketing landing page (templates/landing.html)
 *
 * All values reference the design-system tokens from colors_and_type.css (bundled
 * into output.css, which is loaded before this file). Nothing here hand-copies a
 * colour, font, shadow, or radius the design system already defines.
 *
 * Loaded after output.css so these rules win over Tailwind's preflight.
 * Responsive: single breakpoint at 768px (tablet/mobile) plus a 420px tweak so
 * the layout holds down to 375px.
 * ========================================================================== */

html { scroll-behavior: smooth; }

body.lp {
  font-family: var(--font-body);
  background: var(--neutral-0);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
}

body.lp ::selection { background: var(--green-100); }

/* ── Buttons ──────────────────────────────────────────────────────────────*/
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.lp-btn--primary {
  background: var(--green-600);
  color: var(--color-primary-fg);
}
.lp-btn--primary:hover { background: var(--green-700); }

.lp-btn--secondary {
  background: var(--neutral-0);
  color: var(--neutral-800);
  border-color: var(--neutral-200);
}
.lp-btn--secondary:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-sm); }

.lp-btn--lg { font-size: var(--text-base); padding: 12px 24px; }
.lp-btn--block { width: 100%; padding: 13px 24px; }

/* ── Section helpers ─────────────────────────────────────────────────────── */
.lp-h2 {
  font-family: var(--font-display);
  font-size: 2rem; /* 32px — display size between --text-4xl(36) and 3xl(30) */
  font-weight: var(--weight-regular);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
}

.lp-section-head { text-align: center; margin-bottom: var(--space-12); }
.lp-section-head .lp-h2 { margin-bottom: var(--space-3); }
.lp-section-head p {
  font-size: var(--text-base);
  color: var(--neutral-500);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--neutral-0);
  border-bottom: 1px solid var(--neutral-200);
}
.lp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--space-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand__mark {
  width: 30px;
  height: 30px;
  background: var(--green-600);
  color: var(--neutral-0);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-brand__name { font-family: var(--font-display); font-size: 17px; color: var(--color-fg); }

.lp-nav__links { display: flex; gap: var(--space-8); align-items: center; }
.lp-nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--neutral-600);
  text-decoration: none;
}
.lp-nav__link:hover { color: var(--color-fg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero { background: var(--neutral-0); border-bottom: 1px solid var(--neutral-200); overflow: hidden; }
.lp-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px var(--space-10) var(--space-20);
  display: flex;
  gap: var(--space-16);
  align-items: center;
}
.lp-hero__content { flex: 1; }
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-4);
  border-radius: var(--radius-full);
  background: var(--green-50);
  color: var(--green-700);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-5);
}
.lp-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; }

.lp-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl); /* 48px */
  font-weight: var(--weight-regular);
  color: var(--color-fg);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}
.lp-hero__sub {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  line-height: var(--leading-relaxed);
  max-width: 480px;
  margin-bottom: 28px;
}
.lp-hero__note { font-size: var(--text-sm); color: var(--neutral-400); margin-top: 10px; }

.lp-form { display: flex; gap: var(--space-2); max-width: 440px; }
.lp-form--center { margin: 0 auto; }
.lp-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 12px var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  outline: none;
  background: var(--neutral-0);
  color: var(--color-fg);
}
.lp-input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-50); }
.lp-input::placeholder { color: var(--neutral-400); }

/* Hero visual: stacked, slightly offset preview cards. */
.lp-hero__visual {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.lp-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 20px var(--space-6);
  box-shadow: var(--shadow-lg);
}
.lp-card--offset-a { transform: translate(48px, -16px); }
.lp-card--offset-b { transform: translate(16px, -8px); }
.lp-card__label { font-size: var(--text-sm); color: var(--neutral-500); margin-bottom: var(--space-1); }
.lp-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl); /* 36px */
  color: var(--color-fg);
  margin-bottom: 6px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.lp-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lp-badge--warn { background: var(--amber-50); color: var(--amber-500); }
.lp-badge--ok { background: var(--green-50); color: var(--green-700); }

/* ── Problem ─────────────────────────────────────────────────────────────── */
.lp-problem {
  background: var(--neutral-50);
  padding: 72px var(--space-10);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.lp-problem__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-problem .lp-h2 { margin-bottom: var(--space-4); }
.lp-problem__text {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.lp-features { padding: var(--space-20) var(--space-10); background: var(--neutral-0); }
.lp-features__inner { max-width: 1140px; margin: 0 auto; }
.lp-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.lp-feature {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.lp-feature__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-3); }
.lp-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-feature__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-fg); }
.lp-feature__desc { font-size: var(--text-sm); color: var(--neutral-500); line-height: var(--leading-relaxed); }

/* ── Testimonial ─────────────────────────────────────────────────────────── */
.lp-testimonial { background: var(--green-600); padding: var(--space-16) var(--space-10); }
.lp-testimonial__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.lp-testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--neutral-0);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.lp-testimonial__cite { font-size: var(--text-sm); color: var(--green-100); font-weight: var(--weight-medium); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.lp-pricing {
  padding: var(--space-20) var(--space-10);
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
}
.lp-pricing__inner { max-width: 820px; margin: 0 auto; }
.lp-pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.lp-plan {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-default);
}
.lp-plan:hover { box-shadow: var(--shadow-md); }
.lp-plan--featured { border: 2px solid var(--green-600); position: relative; }
.lp-plan__badge {
  position: absolute;
  top: -13px;
  left: var(--space-6);
  background: var(--green-600);
  color: var(--neutral-0);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.lp-plan__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}
.lp-plan__price { display: flex; align-items: baseline; gap: var(--space-1); margin-bottom: var(--space-1); }
.lp-plan__amount { font-family: var(--font-display); font-size: var(--text-5xl); color: var(--color-fg); }
.lp-plan__per { font-size: var(--text-base); color: var(--neutral-400); }
.lp-plan__desc { font-size: var(--text-sm); color: var(--neutral-500); margin-bottom: var(--space-6); }
.lp-plan__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; padding: 0; }
.lp-plan__item { display: flex; align-items: center; gap: 10px; font-size: var(--text-base); color: var(--neutral-700); }
.lp-check { color: var(--green-600); flex-shrink: 0; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.lp-cta { padding: var(--space-20) var(--space-10); background: var(--neutral-0); border-top: 1px solid var(--neutral-200); }
.lp-cta__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.lp-cta .lp-h2 { margin-bottom: var(--space-3); }
.lp-cta__text { font-size: var(--text-base); color: var(--neutral-500); margin-bottom: 28px; line-height: var(--leading-normal); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer { background: var(--neutral-900); padding: var(--space-12) var(--space-10) var(--space-8); }
.lp-footer__inner { max-width: 1140px; margin: 0 auto; }
.lp-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-10); margin-bottom: 36px; }
.lp-footer__brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lp-footer__mark {
  width: 28px;
  height: 28px;
  background: var(--green-500);
  color: var(--neutral-0);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-footer__name { font-family: var(--font-display); font-size: var(--text-base); color: var(--neutral-0); }
.lp-footer__desc { font-size: var(--text-sm); color: var(--neutral-400); max-width: 280px; line-height: var(--leading-relaxed); }
.lp-footer__cols { display: flex; gap: var(--space-12); }
.lp-footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.lp-footer__link { display: block; font-size: var(--text-sm); color: var(--neutral-300); margin-bottom: var(--space-2); text-decoration: none; }
.lp-footer__link:hover { color: var(--neutral-0); }
.lp-footer__bottom { border-top: 1px solid var(--neutral-700); padding-top: var(--space-5); font-size: var(--text-sm); color: var(--neutral-500); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-nav__inner,
  .lp-hero__inner,
  .lp-problem,
  .lp-features,
  .lp-testimonial,
  .lp-pricing,
  .lp-cta,
  .lp-footer { padding-left: var(--space-5); padding-right: var(--space-5); }

  /* In-page anchor links collapse; Log in + Get started stay reachable. */
  .lp-nav__links { gap: var(--space-4); }
  .lp-nav__link[href^="#"] { display: none; }

  .lp-hero__inner { flex-direction: column; gap: var(--space-10); padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .lp-hero__content { width: 100%; }
  .lp-hero__sub { max-width: none; }
  .lp-hero__title { font-size: var(--text-4xl); }

  /* Drop the decorative offsets so cards stack cleanly full-width. */
  .lp-hero__visual { width: 100%; align-items: stretch; gap: var(--space-4); }
  .lp-card { width: 100%; }
  .lp-card--offset-a,
  .lp-card--offset-b { transform: none; }

  .lp-features__grid { grid-template-columns: 1fr; }
  .lp-pricing__grid { grid-template-columns: 1fr; }
  .lp-plan--featured { margin-top: var(--space-3); }

  .lp-footer__top { flex-direction: column; gap: var(--space-8); }
  .lp-footer__cols { flex-wrap: wrap; gap: var(--space-8); }

  .lp-h2 { font-size: 1.75rem; }
}

@media (max-width: 420px) {
  /* Stack the email + button so neither is squashed at 375px. */
  .lp-form { flex-direction: column; }
  .lp-btn--lg { width: 100%; }

  /* Keep brand + Log in + Get started on one row down to 375px. */
  .lp-nav__inner { padding: 12px var(--space-4); }
  .lp-nav__links { gap: var(--space-3); }
  .lp-nav .lp-btn { padding: 8px 14px; font-size: 13px; }
}
