/* =========================================================
   prolinesim — Landing Page
   Design tokens from .kiro/design/DESIGN.md
   ========================================================= */

:root {
  /* Colors */
  --navy-900: #0F172A;
  --navy-950: #0A0F1C;
  --navy-800: #131B2E;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;
  --sage-600:  #059669;
  --sage-500:  #10B981;
  --sage-100:  #D1FAE5;
  --sage-50:   #ECFDF5;

  /* Typography */
  --ff-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "Fira Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 9999px;

  /* Spacing (8px scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Shadows */
  --shadow-card: 0px 4px 20px rgba(15, 23, 42, 0.08);

  /* Layout */
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--slate-50);
  color: var(--slate-700);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--navy-900);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.lp-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

@media (min-width: 1024px) {
  .lp-container { padding: 0 var(--s-8); }
}

/* =========================================================
   Buttons
   ========================================================= */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-primary {
  background: var(--sage-600);
  color: var(--white);
}
.lp-btn-primary:hover { background: var(--sage-500); }

.lp-btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.lp-btn-dark:hover { background: #1E293B; }

.lp-btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.lp-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.lp-btn-ghost {
  background: transparent;
  color: var(--navy-900);
}
.lp-btn-ghost:hover { color: var(--slate-600); }

.lp-btn-sm { padding: 10px 16px; font-size: 14px; }

/* =========================================================
   Logo
   ========================================================= */
.lp-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.lp-logo svg {
  display: block;
  height: 28px;
  width: auto;
}

/* =========================================================
   Navbar
   ========================================================= */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-6);
}

.lp-nav-links {
  display: none;
  gap: var(--s-8);
}
.lp-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  transition: color .2s ease;
}
.lp-nav-links a:hover { color: var(--navy-900); }

.lp-nav-auth {
  display: none;
  align-items: center;
  gap: var(--s-3);
}

.lp-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  color: var(--navy-900);
  cursor: pointer;
  font-size: 16px;
}

.lp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6) var(--s-6);
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}
.lp-mobile-menu.is-open { display: flex; }
.lp-mobile-menu a {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--slate-700);
}
.lp-mobile-menu a:hover { background: var(--slate-100); color: var(--navy-900); }
.lp-mobile-menu .lp-mobile-cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.lp-mobile-menu .lp-mobile-cta a { flex: 1; }

@media (min-width: 768px) {
  .lp-nav-links { display: inline-flex; }
  .lp-hamburger { display: none; }
}
@media (min-width: 1024px) {
  .lp-nav-auth { display: inline-flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.lp-hero {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: var(--s-16) 0 var(--s-12);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  pointer-events: none;
  opacity: .6;
}

.lp-hero > .lp-container { position: relative; }

.lp-hero-title {
  font-size: 40px;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.lp-hero-title .lp-accent {
  color: var(--sage-500);
}

.lp-hero-sub {
  text-align: center;
  max-width: 620px;
  margin: var(--s-6) auto 0;
  color: var(--slate-400);
  font-size: 16px;
  line-height: 1.6;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-8);
}

.lp-hero-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 520px;
  margin: var(--s-12) auto 0;
}

.lp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6) var(--s-12);
  margin-top: var(--s-8);
}

.lp-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--sage-500);
}
.lp-stat i { font-size: 14px; }

@media (min-width: 768px) {
  .lp-hero { padding: var(--s-24) 0 var(--s-16); }
  .lp-hero-title { font-size: 56px; }
  .lp-hero-sub { font-size: 17px; }
}
@media (min-width: 1024px) {
  .lp-hero-title { font-size: 64px; }
}

/* =========================================================
   Logos strip
   ========================================================= */
.lp-logos {
  background: var(--slate-50);
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--slate-200);
}

.lp-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-10);
}

.lp-logos-row span {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--slate-400);
  letter-spacing: -0.01em;
  filter: grayscale(100%);
  transition: color .2s ease, filter .2s ease;
}
.lp-logos-row span:hover { color: var(--slate-600); filter: grayscale(0%); }

/* =========================================================
   How It Works
   ========================================================= */
.lp-how {
  background: var(--slate-50);
  padding: var(--s-16) 0;
}

.lp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-12);
}

.lp-section-head h2 {
  font-size: 32px;
  line-height: 1.15;
  color: var(--navy-900);
}

.lp-section-head p {
  margin-top: var(--s-3);
  color: var(--slate-600);
  font-size: 16px;
}

.lp-how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

.lp-how-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: var(--s-8);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-how-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10); }

.lp-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #DCEEFB;
  color: var(--navy-900);
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--s-5);
}

.lp-how-card--accent .lp-how-num {
  background: var(--sage-500);
  color: var(--white);
}

.lp-how-card h3 {
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy-900);
  margin-bottom: var(--s-2);
}

.lp-how-card p {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .lp-how-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .lp-section-head h2 { font-size: 36px; }
}

/* =========================================================
   CTA Banner
   ========================================================= */
.lp-cta {
  background: var(--navy-950);
  color: var(--white);
  padding: var(--s-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  pointer-events: none;
  opacity: .6;
}

.lp-cta > .lp-container { position: relative; }

.lp-cta h2 {
  color: var(--white);
  font-size: 32px;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto;
}

.lp-cta p {
  margin: var(--s-4) auto 0;
  color: var(--slate-400);
  max-width: 540px;
}

.lp-cta .lp-btn {
  margin-top: var(--s-8);
}

@media (min-width: 768px) {
  .lp-cta h2 { font-size: 40px; }
}

/* =========================================================
   Footer
   ========================================================= */
.lp-footer {
  background: var(--slate-50);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--slate-200);
}

.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  text-align: center;
}

.lp-footer-brand p {
  margin-top: var(--s-2);
  color: var(--slate-500);
  font-size: 13px;
}

.lp-footer-links {
  display: flex;
  gap: var(--s-8);
}
.lp-footer-links a {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
}
.lp-footer-links a:hover { color: var(--navy-900); }

@media (min-width: 768px) {
  .lp-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   Nav: active page
   ========================================================= */
.lp-nav-links a.is-active,
.lp-mobile-menu a.is-active {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.lp-mobile-menu a.is-active {
  text-decoration: none;
  background: var(--slate-100);
}

/* =========================================================
   Page header (Pricing / Support)
   ========================================================= */
.lp-page-header {
  background: var(--slate-50);
  padding: var(--s-12) 0 var(--s-10);
  text-align: center;
}
.lp-page-header h1 {
  font-size: 40px;
  line-height: 1.1;
  color: var(--navy-900);
}
.lp-page-header p {
  margin: var(--s-4) auto 0;
  color: var(--slate-600);
  max-width: 620px;
  font-size: 16px;
}
.lp-page-header--left {
  text-align: left;
}
.lp-page-header--left p {
  margin-left: 0;
  margin-right: 0;
  max-width: 640px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .lp-page-header h1 { font-size: 48px; }
}

/* =========================================================
   Billing toggle (Pricing)
   ========================================================= */
.lp-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-pill);
  padding: 4px;
  margin: var(--s-8) auto 0;
}
.lp-billing-toggle-wrap {
  text-align: center;
}
.lp-billing-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-billing-toggle button.is-active {
  background: var(--navy-900);
  color: var(--white);
}
.lp-billing-toggle .save-badge {
  background: var(--sage-100);
  color: var(--sage-600);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* =========================================================
   Pricing cards
   ========================================================= */
.lp-pricing {
  background: var(--slate-50);
  padding: 0 0 var(--s-16);
}
.lp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: stretch;
}
.lp-plan {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.lp-plan--featured {
  border-color: var(--sage-500);
  border-width: 2px;
}
.lp-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.lp-plan h3 {
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy-900);
}
.lp-plan-tag {
  margin-top: var(--s-2);
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.5;
}
.lp-plan-price {
  margin-top: var(--s-6);
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-family: var(--ff-heading);
  color: var(--navy-900);
}
.lp-plan-price .amount {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lp-plan-price .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
}
.lp-plan-features {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.lp-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.5;
}
.lp-plan-features li .check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
}
.lp-plan-features li .check--muted {
  background: var(--slate-200);
  color: var(--slate-500);
}
.lp-plan-features li.is-muted { color: var(--slate-400); }
.lp-plan-cta {
  margin-top: var(--s-8);
}
.lp-plan-cta .lp-btn { width: 100%; }
.lp-btn-muted {
  background: var(--slate-100);
  color: var(--slate-500);
}
.lp-btn-muted:hover { background: var(--slate-200); }

@media (min-width: 1024px) {
  .lp-pricing-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.lp-faq {
  background: var(--slate-50);
  padding: 0 0 var(--s-16);
}
.lp-faq h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--s-8);
}
.lp-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.lp-faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.lp-faq-summary {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
}
.lp-faq-summary .chev {
  flex: 0 0 auto;
  color: var(--slate-500);
  transition: transform .2s ease;
}
.lp-faq-item[open] .lp-faq-summary .chev { transform: rotate(180deg); }
.lp-faq-body {
  padding: 0 var(--s-6) var(--s-5);
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   Support page
   ========================================================= */
.lp-support {
  background: var(--slate-50);
  padding: 0 0 var(--s-16);
}
.lp-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}

.lp-channel-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.lp-channel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
}
.lp-channel:hover {
  transform: translateY(-1px);
  border-color: var(--slate-400);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
}
.lp-channel-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #DCEEFB;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.lp-channel-text { display: flex; flex-direction: column; gap: 2px; }
.lp-channel-text .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  text-transform: uppercase;
}
.lp-channel-text .value {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 16px;
}
.lp-channel-text .meta {
  font-size: 13px;
  color: var(--slate-500);
}
.lp-channel--link .lp-channel-text .value { display: inline-flex; align-items: center; gap: 6px; }
.lp-channel--link .lp-channel-text .meta i {
  margin-left: 4px;
  font-size: 12px;
  color: var(--slate-500);
  transition: transform .2s ease, color .2s ease;
}
.lp-channel--link:hover .lp-channel-text .meta i {
  color: var(--navy-900);
  transform: translateX(2px);
}

.lp-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: var(--s-8);
  box-shadow: var(--shadow-card);
}
.lp-form-card h2 {
  font-size: 24px;
  margin-bottom: var(--s-6);
}
.lp-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  text-transform: uppercase;
}
.lp-field input,
.lp-field select,
.lp-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--navy-900);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lp-field textarea {
  min-height: 160px;
  resize: vertical;
}
.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  outline: 0;
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  background: var(--white);
}
.lp-form-submit {
  margin-top: var(--s-6);
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .lp-form-grid--2 { grid-template-columns: 1fr 1fr; }
  .lp-form-submit { justify-content: flex-end; }
}
@media (min-width: 1024px) {
  .lp-support-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-8); }
  .lp-page-header { padding: var(--s-16) 0 var(--s-12); }
  .lp-faq h2 { font-size: 36px; }
}

/* =========================================================
   Footer extras (Documentation link)
   ========================================================= */
.lp-footer-links--split {
  width: 100%;
  justify-content: center;
}
@media (min-width: 768px) {
  .lp-footer-links--split { width: auto; }
}
