/* Public landing page (PagesController#home, layouts/landing). */

:root {
  --lp-orange: #f47b20;
  --lp-orange-dark: #d9640d;
  --lp-orange-soft: #fff3e9;
  --lp-navy: #1b2540;
  --lp-navy-2: #253154;
  --lp-text: #1f2937;
  --lp-muted: #5b6475;
  --lp-line: #e6e8ee;
  --lp-bg: #ffffff;
  --lp-tint: #f6f7fa;
  --lp-green: #16a34a;
  --lp-radius: 14px;
  --lp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body.lp {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-text);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
}

.lp img { max-width: 100%; height: auto; display: block; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
.lp h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
.lp h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.lp h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.lp p { margin: 0 0 1em; }
.lp code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.lp-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lp-orange-dark);
  margin-bottom: .8rem !important;
}
.lp-muted { color: var(--lp-muted); }

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.lp-btn--primary { background: var(--lp-orange); color: #fff; box-shadow: 0 6px 16px rgba(244, 123, 32, .28); }
.lp-btn--primary:hover { background: var(--lp-orange-dark); }
.lp-btn--ghost { color: var(--lp-navy); border-color: #cfd4de; background: #fff; }
.lp-btn--ghost:hover { border-color: var(--lp-navy); }
.lp-btn--light { background: #fff; color: var(--lp-orange-dark); }
.lp-btn--light:hover { background: var(--lp-orange-soft); }
.lp-btn:focus-visible, .lp a:focus-visible { outline: 3px solid #ffb37a; outline-offset: 2px; }

.lp-link { color: var(--lp-navy); font-weight: 600; text-decoration: none; }
.lp-link:hover { color: var(--lp-orange-dark); }

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.lp-header__brand img { width: 150px; height: auto; }
.lp-header__nav { display: flex; gap: 1.75rem; margin-right: auto; }
.lp-header__nav a { color: var(--lp-muted); font-weight: 600; font-size: .95rem; text-decoration: none; }
.lp-header__nav a:hover { color: var(--lp-navy); }
.lp-header__actions { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }

/* Hero */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--lp-orange-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--lp-tint));
}
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.lp-hero h1 span { color: var(--lp-orange); }
.lp-lead { font-size: 1.15rem; color: var(--lp-muted); max-width: 34em; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.lp-hero__art img {
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 60%, transparent 100%);
}

/* Icons */
.lp-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lp-orange-soft);
  color: var(--lp-orange);
}
.lp-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Value strip */
.lp-strip { border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); background: #fff; }
.lp-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-strip__item { display: flex; gap: .9rem; padding: 28px 20px; }
.lp-strip__item + .lp-strip__item { border-left: 1px solid var(--lp-line); }
.lp-strip__item strong { display: block; color: var(--lp-navy); font-size: .98rem; }
.lp-strip__item span:not(.lp-icon) { display: block; color: var(--lp-muted); font-size: .88rem; line-height: 1.5; }

/* Sections */
.lp-section { padding: 96px 0; }
.lp-section--tint { background: var(--lp-tint); }
.lp-section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.lp-section__head p:last-child { color: var(--lp-muted); }

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lp-card {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 28px;
  transition: box-shadow .2s, border-color .2s;
}
.lp-card:hover { box-shadow: var(--lp-shadow); border-color: #f8c49c; }
.lp-card .lp-icon { margin-bottom: 1.1rem; }
.lp-card p { color: var(--lp-muted); font-size: .95rem; margin: 0; }

/* Steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.lp-step { position: relative; background: #fff; border-radius: var(--lp-radius); padding: 28px 24px; box-shadow: var(--lp-shadow); }
.lp-step__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lp-orange);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.lp-step p { color: var(--lp-muted); font-size: .95rem; margin: 0; }
.lp-steps--3 { grid-template-columns: repeat(3, 1fr); }

/* Authorization methods (dark) */
.lp-section--dark { background: var(--lp-navy); color: #c9d0e0; }
.lp-section--dark h2, .lp-section--dark h3 { color: #fff; }
.lp-section--dark .lp-section__head p:last-child { color: #aab3c8; }
.lp-eyebrow--light { color: #ffb37a; }
.lp-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.lp-method {
  background: var(--lp-navy-2);
  border: 1px solid #34406a;
  border-radius: var(--lp-radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.lp-method:hover { border-color: var(--lp-orange); }
.lp-method p { color: #aab3c8; font-size: .95rem; margin: 0; }
.lp-icon--dark { background: rgba(244, 123, 32, .15); color: #ffa45e; margin-bottom: 1.1rem; }
.lp-methods__note { max-width: 680px; margin: 2.5rem auto 0 !important; text-align: center; font-size: .92rem; color: #8f99b3; }

/* Demo */
.lp-demo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, var(--lp-orange-soft), #fff 60%);
  border: 1px solid #fbd9bd;
  border-radius: 24px;
  padding: 56px;
}
.lp-note { font-size: .88rem; color: var(--lp-muted); background: #fff; border-left: 3px solid var(--lp-orange); padding: .6rem .9rem; border-radius: 0 8px 8px 0; }
.lp-demo .lp-hero__cta { margin-bottom: 0; }
.lp-note a { color: var(--lp-orange-dark); font-weight: 700; }

.lp-mock { background: #fff; border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 24px; border: 1px solid var(--lp-line); }
.lp-mock__row { display: flex; gap: .8rem; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--lp-line); }
.lp-mock__row strong { display: block; color: var(--lp-navy); }
.lp-mock__row small { color: var(--lp-muted); }
.lp-mock__dot {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.lp-mock__dl { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; margin: 0; font-size: .92rem; }
.lp-mock__dl dt { color: var(--lp-muted); }
.lp-mock__dl dd { margin: 0; font-weight: 700; color: var(--lp-green); text-align: right; }

/* CTA */
.lp-cta { background: linear-gradient(120deg, var(--lp-orange), #f99543); color: #fff; padding: 64px 0; }
.lp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.lp-cta h2 { color: #fff; margin-bottom: .3em; }
.lp-cta p { margin: 0; opacity: .95; }

/* Footer */
.lp-footer { background: #fff; border-top: 1px solid var(--lp-line); padding: 48px 0 32px; font-size: .9rem; color: var(--lp-muted); }
.lp-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.lp-footer__inner img { width: 120px; margin-bottom: .75rem; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: flex-end; }
.lp-footer nav a { color: var(--lp-navy); text-decoration: none; font-weight: 600; }
.lp-footer nav a:hover { color: var(--lp-orange-dark); }
.lp-footer__by { margin: 0; }
.lp-footer__by a, .lp-footer__copy a { color: var(--lp-orange-dark); font-weight: 700; text-decoration: none; }
.lp-footer__by a:hover, .lp-footer__copy a:hover { text-decoration: underline; }
.lp-footer__copy { grid-column: 1 / -1; border-top: 1px solid var(--lp-line); padding-top: 1.25rem; margin: 0; font-size: .82rem; }

/* Responsive */
@media (max-width: 1000px) {
  .lp-header__nav { display: none; }
  .lp-header__actions { margin-left: auto; }
  .lp-hero__grid, .lp-demo { grid-template-columns: 1fr; }
  .lp-hero__art { max-width: 640px; margin: 0 auto; }
  .lp-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .lp-methods { grid-template-columns: repeat(2, 1fr); }
  .lp-steps, .lp-steps--3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .lp-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-strip__item:nth-child(3) { border-left: 0; }
  .lp-strip__item:nth-child(n + 3) { border-top: 1px solid var(--lp-line); }
}

@media (max-width: 640px) {
  body.lp { font-size: 16px; }
  .lp-wrap { padding: 0 16px; }
  .lp-header__inner { height: 64px; gap: 1rem; }
  .lp-header__brand img { width: 120px; }
  .lp-header__login { display: none; }
  .lp-hero { padding: 40px 0 32px; }
  .lp-hero__cta .lp-btn { flex: 1 1 100%; }
  .lp-section { padding: 64px 0; }
  .lp-cards, .lp-methods, .lp-strip__grid { grid-template-columns: 1fr; }
  .lp-strip__item + .lp-strip__item { border-left: 0; border-top: 1px solid var(--lp-line); }
  .lp-demo { padding: 28px 20px; }
  .lp-cta__inner { flex-direction: column; align-items: flex-start; }
  .lp-cta .lp-btn { width: 100%; }
  .lp-footer__inner { grid-template-columns: 1fr; }
  .lp-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn, .lp-card, .lp-method { transition: none; }
  .lp-btn:hover { transform: none; }
}
