/* ==========================================================================
   OneLess Landing Page
   Custom CSS — no Tailwind. Uses CSS custom properties for easy palette tweaks.
   ========================================================================== */

:root {
  /* ---- Backgrounds ---- */
  --lp-bg: #0B1215;
  --lp-bg-alt: #0E181C;
  --lp-surface: #142026;
  --lp-surface-border: #1C2D35;
  --lp-surface-hover: #1A2930;

  /* ---- Brand ---- */
  --lp-primary: #14B8A6;
  --lp-primary-dim: #0D4F4F;
  --lp-primary-glow: rgba(20, 184, 166, 0.12);
  --lp-accent: #F59E0B;
  --lp-accent-hover: #FBBF24;
  --lp-accent-active: #D97706;

  /* ---- Text ---- */
  --lp-text: #E8E4DF;
  --lp-text-secondary: #94A3B0;
  --lp-text-muted: #5E7480;

  /* ---- Feedback ---- */
  --lp-error: #EF6351;
  --lp-success: #34D399;

  /* ---- Shadows ---- */
  --lp-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --lp-shadow-glow: 0 0 48px rgba(20, 184, 166, 0.06);

  /* ---- Typography ---- */
  --lp-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --lp-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ---- Radii ---- */
  --lp-radius-sm: 0.375rem;
  --lp-radius-md: 0.625rem;
  --lp-radius-lg: 1rem;
  --lp-radius-xl: 1.25rem;
  --lp-radius-full: 9999px;
}

/* Smooth anchor scrolling only when landing page is present */
html:has(.landing-page) {
  scroll-behavior: smooth;
}

/* ---- Base ---- */

.landing-page {
  background-color: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

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

.lp-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.lp-header.scrolled {
  background-color: rgba(11, 18, 21, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--lp-surface-border);
}

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

.lp-logo {
  font-family: var(--lp-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--lp-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.lp-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.lp-nav-link {
  font-size: 0.875rem;
  color: var(--lp-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.lp-nav-link:hover {
  color: var(--lp-text);
}

.lp-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--lp-text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.lp-mobile-menu-btn:hover {
  color: var(--lp-text);
}

.lp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background-color: rgba(11, 18, 21, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-surface-border);
}

.lp-mobile-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .lp-nav-links { display: flex; }
  .lp-mobile-menu-btn { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.lp-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
}

.lp-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lp-hero-content {
  animation: lpSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lp-hero-form-wrapper {
  animation: lpSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: var(--lp-radius-full);
  background-color: var(--lp-primary-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--lp-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.lp-headline {
  font-family: var(--lp-font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--lp-text);
  margin: 0 0 1.25rem;
}

.lp-headline-accent {
  color: var(--lp-primary);
}

.lp-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--lp-text-secondary);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 30rem;
}

/* SMS bubble preview */

.lp-sms-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
}

.lp-sms-bubble {
  padding: 0.625rem 1rem;
  border-radius: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 88%;
}

.lp-sms-sent {
  background-color: var(--lp-primary-dim);
  color: var(--lp-text);
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.lp-sms-received {
  background-color: var(--lp-surface);
  color: var(--lp-text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.lp-social-proof {
  font-size: 0.875rem;
  color: var(--lp-text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .lp-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .lp-hero-content { flex: 1 1 55%; }
  .lp-hero-form-wrapper {
    flex: 1 1 45%;
    max-width: 26rem;
  }
}

/* ==========================================================================
   Auth Form Card
   ========================================================================== */

.lp-form-card {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-xl);
  padding: 2rem;
  box-shadow: var(--lp-shadow-lg), var(--lp-shadow-glow);
  position: relative;
  animation: lpFormEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Gradient accent line at top of card */
.lp-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
  border-radius: 1px;
}

.lp-form-title {
  font-family: var(--lp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  color: var(--lp-text);
}

.lp-form-subtitle {
  font-size: 0.875rem;
  color: var(--lp-text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.lp-form-subtitle strong {
  color: var(--lp-text);
  font-weight: 500;
}

/* ==========================================================================
   Phone Input
   ========================================================================== */

.lp-phone-field {
  display: flex;
  align-items: center;
  background-color: var(--lp-bg);
  border: 1.5px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
}

.lp-phone-field:focus-within {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px var(--lp-primary-glow);
}

.lp-phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  color: var(--lp-text-muted);
  font-size: 1rem;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-phone-prefix::after {
  content: '';
  display: block;
  width: 1px;
  height: 1.5rem;
  background-color: var(--lp-surface-border);
}

.lp-phone-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.875rem 1rem;
  color: var(--lp-text);
  font-size: 1rem;
  font-family: var(--lp-font-body);
  outline: none;
  width: 100%;
  min-width: 0;
}

.lp-phone-input::placeholder {
  color: var(--lp-text-muted);
}

/* ==========================================================================
   OTP Input
   ========================================================================== */

.lp-otp-digits {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.lp-otp-digit {
  width: 2.75rem;
  height: 3.25rem;
  background-color: var(--lp-bg);
  border: 1.5px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-md);
  color: var(--lp-text);
  font-size: 1.25rem;
  font-family: var(--lp-font-body);
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--lp-primary);
  padding: 0;
}

.lp-otp-digit:focus {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px var(--lp-primary-glow);
}

.lp-otp-digit.has-value {
  border-color: rgba(20, 184, 166, 0.35);
}

@media (min-width: 400px) {
  .lp-otp-digit {
    width: 3rem;
    height: 3.5rem;
    font-size: 1.375rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.lp-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: var(--lp-radius-md);
  font-family: var(--lp-font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.lp-btn:active {
  transform: scale(0.985);
}

.lp-btn--accent {
  background-color: var(--lp-accent);
  color: #1a1200;
  box-shadow: 0 1px 3px rgba(245, 166, 11, 0.25);
}

.lp-btn--accent:hover {
  background-color: var(--lp-accent-hover);
  box-shadow: 0 2px 10px rgba(245, 166, 11, 0.35);
}

.lp-btn--accent:active {
  background-color: var(--lp-accent-active);
}

.lp-btn--accent:disabled,
.lp-btn--accent[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lp-btn--outline {
  background-color: transparent;
  color: var(--lp-text);
  border: 1.5px solid var(--lp-surface-border);
}

.lp-btn--outline:hover {
  background-color: var(--lp-surface-hover);
  border-color: var(--lp-text-muted);
}

/* ==========================================================================
   Form Extras
   ========================================================================== */

.lp-form-error {
  font-size: 0.8125rem;
  color: var(--lp-error);
  margin: -0.5rem 0 1rem;
}

.lp-form-trust {
  font-size: 0.8125rem;
  color: var(--lp-text-secondary);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.lp-form-legal {
  font-size: 0.6875rem;
  color: var(--lp-text-muted);
  line-height: 1.55;
  margin-top: 0.75rem;
}

.lp-form-legal a {
  color: var(--lp-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-form-legal a:hover {
  color: var(--lp-text-secondary);
}

.lp-change-link {
  color: var(--lp-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.lp-change-link:hover {
  text-decoration: underline;
}

/* Resend row */

.lp-resend {
  text-align: center;
  font-size: 0.875rem;
  color: var(--lp-text-secondary);
  margin-top: 1rem;
}

.lp-resend form {
  display: inline;
}

.lp-resend-link {
  color: var(--lp-primary);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.lp-resend-link:hover:not(:disabled) {
  text-decoration: underline;
}

.lp-resend-link:disabled {
  color: var(--lp-text-muted);
  cursor: default;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.lp-section {
  padding: 5rem 0;
}

.lp-section--alt {
  background-color: var(--lp-bg-alt);
}

.lp-section-title {
  font-family: var(--lp-font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Section Subtitle
   ========================================================================== */

.lp-section-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--lp-text-secondary);
  margin: -2rem auto 3rem;
  max-width: 30rem;
  line-height: 1.6;
}

/* ==========================================================================
   Use Cases / Value Prop
   ========================================================================== */

.lp-use-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.lp-use-case {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-xl);
  padding: 1.5rem 1.75rem;
}

.lp-use-case-title {
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--lp-text);
}

.lp-use-case .lp-sms-preview {
  max-width: 100%;
}

.lp-use-case .lp-sms-bubble {
  max-width: 85%;
}

@media (min-width: 768px) {
  .lp-use-cases {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-use-case .lp-sms-bubble {
    max-width: 100%;
  }
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.lp-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.lp-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--lp-primary-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--lp-primary);
  font-family: var(--lp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.lp-step-title {
  font-family: var(--lp-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lp-step-desc {
  font-size: 0.9375rem;
  color: var(--lp-text-secondary);
  margin: 0 auto;
  max-width: 18rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   FAQ / Objection Handling
   ========================================================================== */

.lp-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
}

.lp-faq-item {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-lg);
  padding: 1.5rem 1.75rem;
}

.lp-faq-q {
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--lp-text);
}

.lp-faq-a {
  font-size: 0.9375rem;
  color: var(--lp-text-secondary);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .lp-faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.lp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
}

.lp-plan {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-xl);
  padding: 2rem;
  position: relative;
}

.lp-plan--featured {
  border-color: var(--lp-primary);
  border-width: 2px;
}

.lp-plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--lp-primary);
  color: var(--lp-bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: var(--lp-radius-full);
  white-space: nowrap;
}

.lp-plan-name {
  font-family: var(--lp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.lp-plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.lp-plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--lp-text-secondary);
}

.lp-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lp-plan-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--lp-text-secondary);
}

.lp-plan-check {
  color: var(--lp-success);
  flex-shrink: 0;
  font-weight: 600;
}

.lp-pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--lp-text-muted);
  margin-top: 2rem;
}

.lp-pricing-note a {
  color: var(--lp-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-pricing-note a:hover {
  color: var(--lp-text);
}

@media (min-width: 768px) {
  .lp-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.lp-footer {
  border-top: 1px solid var(--lp-surface-border);
  padding: 3rem 0;
}

.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lp-footer-brand {
  text-align: center;
}

.lp-footer-brand a {
  font-family: var(--lp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--lp-text);
  text-decoration: none;
}

.lp-footer-tagline {
  font-size: 0.8125rem;
  color: var(--lp-text-muted);
  margin: 0.25rem 0 0;
}

.lp-footer-privacy {
  font-size: 0.75rem;
  color: var(--lp-text-muted);
  margin: 0.25rem 0 0;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.lp-footer-link {
  font-size: 0.875rem;
  color: var(--lp-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.lp-footer-link:hover {
  color: var(--lp-text);
}

.lp-footer-copy {
  font-size: 0.8125rem;
  color: var(--lp-text-muted);
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .lp-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Scroll target offset (accounts for fixed header)
   ========================================================================== */

#signup-form {
  scroll-margin-top: 5rem;
}

#how-it-works,
#pricing {
  scroll-margin-top: 5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes lpSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lpFormEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-content,
  .lp-hero-form-wrapper,
  .lp-form-card {
    animation: none !important;
  }
}
