:root {
  --ink: #10243a;
  --ink-soft: #2a4560;
  --paper: #f3efe6;
  --paper-deep: #e4ddd0;
  --accent: #0f7a6c;
  --accent-deep: #0a5249;
  --glow: #d4a017;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.lp {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15, 122, 108, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(212, 160, 23, 0.12), transparent 50%),
    linear-gradient(165deg, #f7f3ea 0%, var(--paper) 45%, #ebe4d6 100%);
  line-height: 1.55;
}

.lp-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

.lp-nav,
main,
.lp-footer {
  position: relative;
  z-index: 1;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.lp-brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.lp-nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.lp-nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.lp-nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.lp-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.lp-eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.lp-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lp-title em {
  font-style: italic;
  color: var(--accent-deep);
}

.lp-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.lp-lead-narrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-btn:hover {
  transform: translateY(-2px);
}

.lp-btn-primary {
  background: var(--accent);
  color: #f7f3ea;
  box-shadow: 0 10px 30px rgba(15, 122, 108, 0.28);
}

.lp-btn-primary:hover {
  background: var(--accent-deep);
}

.lp-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(16, 36, 58, 0.35);
}

.lp-hero-visual {
  display: flex;
  justify-content: center;
}

.lp-ticket {
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  padding: 1.5rem;
  border-radius: 1.25rem 1.25rem 1.5rem 1.5rem;
  background:
    linear-gradient(180deg, #18324c 0%, var(--ink) 60%, #0a1724 100%);
  color: #f3efe6;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow:
    0 25px 60px rgba(16, 36, 58, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: lp-float 5.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.lp-ticket::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 4.5rem;
  border-top: 2px dashed rgba(243, 239, 230, 0.28);
}

.lp-ticket-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.lp-ticket-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: 1rem;
}

.lp-ticket-line {
  font-size: 0.95rem;
  opacity: 0.85;
}

.lp-ticket-stub {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--glow);
  font-weight: 700;
}

.lp-benefits,
.lp-contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.lp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lp-grid li {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 36, 58, 0.08);
  border-radius: 1rem;
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.lp-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 122, 108, 0.35);
}

.lp-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.lp-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.lp-contact {
  text-align: center;
  padding-bottom: 5rem;
}

.lp-contact .lp-cta-row {
  justify-content: center;
}

.lp-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid rgba(16, 36, 58, 0.1);
}

.lp-footer a {
  color: var(--accent-deep);
}

@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@media (max-width: 860px) {
  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .lp-hero-visual {
    order: -1;
  }

  .lp-ticket {
    width: 220px;
    animation: none;
    transform: rotate(-2deg);
  }

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

  .lp-nav-links a:not(.lp-nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-ticket,
  .lp-btn,
  .lp-grid li {
    animation: none !important;
    transition: none !important;
  }
}

/* Signup + landlord */
.lp-signup {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.lp-form input,
.lp-form select,
.lp-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--paper-deep);
  border-radius: 8px;
  background: #fff;
}

.lp-input-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lp-input-group input {
  flex: 1;
}

.lp-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  list-style: disc;
  margin: 0 0 1rem 1.25rem;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lp-table th,
.lp-table td {
  border-bottom: 1px solid var(--paper-deep);
  padding: 0.65rem 0.5rem;
  text-align: left;
}

.lp-flash-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.lp-landlord {
  max-width: 1100px;
}

.lp-nav-landlord {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-nav-active {
  color: var(--accent-deep) !important;
  font-weight: 700;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.lp-stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--paper-deep);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.lp-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.lp-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.lp-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--paper-deep);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.lp-filters,
.lp-inline-form,
.lp-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.lp-input {
  border: 1px solid var(--paper-deep);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  min-width: 140px;
}

.lp-input-sm {
  min-width: 100px;
}

.lp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.lp-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.lp-full {
  grid-column: 1 / -1;
}

.lp-text-right {
  text-align: right;
}

.lp-money {
  font-variant-numeric: tabular-nums;
}

.lp-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lp-badge-ok { background: #ecfdf5; color: #065f46; }
.lp-badge-warn { background: #fffbeb; color: #92400e; }
.lp-badge-danger { background: #fef2f2; color: #991b1b; }
.lp-badge-muted { background: #f3f4f6; color: #4b5563; }

.lp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.lp-ledger-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.lp-mini-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px dashed var(--paper-deep);
  border-radius: 8px;
}

.lp-debit { color: #991b1b; }
.lp-credit { color: #065f46; }
