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

:root {
  /* ---- Editorial Clay brand tokens ---- */
  --ec-cream: #F6F1E6;
  --ec-white: #FFFFFF;
  --ec-espresso: #1B1816;
  --ec-clay: #8B3F2C;
  --ec-clay-hover: #7A3624;
  --ec-clay-pressed: #691E10;
  --ec-stone: #E5DECF;

  --ec-text-primary: var(--ec-espresso);
  --ec-text-secondary: rgba(27, 24, 22, 0.72);
  --ec-text-muted: rgba(27, 24, 22, 0.55);
  --ec-border-soft: rgba(27, 24, 22, 0.10);
  --ec-border-strong: rgba(27, 24, 22, 0.22);
  --ec-success: #3F7A4A;
  --ec-error: #A43A2A;
  --ec-focus-ring: rgba(139, 63, 44, 0.25);

  /* ---- iMessage system colors (SMS preview only) ---- */
  --im-blue: #007AFF;
  --im-blue-text: #FFFFFF;
  --im-gray: #E9E9EB;
  --im-gray-text: #000000;
  --im-time: #8E8E93;

  /* ---- Legacy aliases (do not use in new code) ---- */
  --lp-bg: var(--ec-cream);
  --lp-bg-alt: var(--ec-white);
  --lp-surface: var(--ec-white);
  --lp-surface-border: var(--ec-border-soft);
  --lp-surface-hover: var(--ec-stone);

  --lp-primary: var(--ec-clay);
  --lp-primary-dim: var(--ec-clay-hover);
  --lp-primary-glow: var(--ec-focus-ring);
  --lp-accent: var(--ec-clay);
  --lp-accent-hover: var(--ec-clay-hover);
  --lp-accent-active: var(--ec-clay-pressed);

  --lp-text: var(--ec-text-primary);
  --lp-text-secondary: var(--ec-text-secondary);
  --lp-text-muted: var(--ec-text-muted);

  --lp-error: var(--ec-error);
  --lp-success: var(--ec-success);

  --lp-shadow-lg: 0 1px 2px rgba(27, 24, 22, 0.04), 0 8px 24px rgba(27, 24, 22, 0.06);
  --lp-shadow-glow: none;

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

  --lp-radius-sm: 0.375rem;
  --lp-radius-md: 0.5rem;
  --lp-radius-lg: 0.75rem;
  --lp-radius-xl: 1rem;
  --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(--ec-cream);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 1100px) {
  .landing-page {
    background-color: var(--ec-stone);
    padding: 1.25rem;
  }

  .landing-page > header,
  .landing-page > div {
    background-color: var(--ec-cream);
  }

  .landing-page > div:first-of-type {
    border-radius: 0.875rem;
    overflow: hidden;
  }
}

.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(246, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ec-border-soft);
}

.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(--ec-clay);
  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(246, 241, 230, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ec-border-soft);
}

.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;
}

.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.3125rem 0.75rem;
  border-radius: var(--lp-radius-full);
  background-color: transparent;
  border: 1px solid var(--ec-border-strong);
  color: var(--ec-text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.lp-headline-accent {
  display: block;
  color: var(--ec-text-primary);
  font-style: italic;
  font-weight: 500;
  opacity: 0.92;
}

.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;
  background-color: var(--ec-white);
  border: 1px solid var(--ec-border-soft);
  border-radius: 1rem;
  padding: 0.875rem 0.75rem 0.625rem;
}

.lp-sms-preview::before,
.lp-demo-phone::before {
  content: 'Today ' attr(data-time);
  display: block;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--im-time);
  font-weight: 500;
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
}

.lp-sms-bubble {
  padding: 0.4375rem 0.8125rem;
  border-radius: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  max-width: 78%;
  margin: 0 0 0.1875rem;
}

.lp-sms-sent {
  background-color: var(--im-blue);
  color: var(--im-blue-text);
  align-self: flex-end;
  border-bottom-right-radius: 0.3125rem;
  margin-left: auto;
}

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

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

/* ---- Selling Points Strip ---- */

.lp-selling-strip {
  background-color: var(--ec-clay);
  border-top: none;
  border-bottom: none;
  padding: 3.5rem 0;
}

.lp-selling-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  text-align: left;
}

.lp-selling-icon {
  display: block;
  width: 1.5rem;
  height: 1px;
  background-color: var(--ec-cream);
  opacity: 0.5;
  margin: 0 0 0.75rem;
  filter: none;
  border: none;
}

.lp-selling-headline {
  font-family: var(--lp-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ec-cream);
  margin: 0 0 0.25rem;
  letter-spacing: 0.005em;
}

.lp-selling-subtext {
  font-size: 0.8125rem;
  color: var(--ec-cream);
  opacity: 0.74;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .lp-selling-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
  }

  .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;
  }
}

/* ==========================================================================
   Channel Selector Tabs
   ========================================================================== */

.lp-channel-tabs {
  display: flex;
  gap: 0.25rem;
  background-color: var(--ec-stone);
  border-radius: var(--lp-radius-full);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.lp-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--lp-radius-full);
  border: none;
  background: transparent;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lp-tab:hover {
  color: var(--lp-text-secondary);
}

.lp-tab--active {
  background-color: var(--ec-white);
  color: var(--ec-text-primary);
  box-shadow: 0 1px 2px rgba(27, 24, 22, 0.06);
}

.lp-tab-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

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

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

/* Solid Clay accent line at top of card */
.lp-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--ec-clay);
  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(--ec-cream);
  border: 1px solid var(--ec-border-strong);
  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(--ec-clay);
  box-shadow: 0 0 0 3px var(--ec-focus-ring);
}

.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(--ec-cream);
  border: 1px solid var(--ec-border-strong);
  border-radius: var(--lp-radius-md);
  color: var(--ec-text-primary);
  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(--ec-clay);
  padding: 0;
}

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

.lp-otp-digit.has-value {
  border-color: var(--ec-clay);
}

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

.lp-otp-verifying {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--lp-text-secondary);
  font-size: 0.9375rem;
  font-family: var(--lp-font-body);
}

.lp-otp-verifying[hidden] {
  display: none;
}

.lp-otp-spinner {
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--lp-surface-border);
  border-top-color: var(--ec-clay);
  border-radius: 50%;
  animation: lp-otp-spin 0.7s linear infinite;
}

@keyframes lp-otp-spin {
  to {
    transform: rotate(360deg);
  }
}

.lp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   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(--ec-clay);
  color: var(--ec-white);
  box-shadow: none;
  letter-spacing: 0.01em;
}

.lp-btn--accent:hover {
  background-color: var(--ec-clay-hover);
  box-shadow: 0 2px 8px rgba(139, 63, 44, 0.2);
}

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

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

.lp-btn--outline {
  background-color: transparent;
  color: var(--ec-text-primary);
  border: 1px solid var(--ec-border-strong);
}

.lp-btn--outline:hover {
  background-color: var(--ec-stone);
  border-color: var(--ec-text-secondary);
}

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

.lp-form-error {
  font-size: 0.8125rem;
  color: var(--ec-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);
}

/* Consent checkbox */

.lp-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.lp-consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  accent-color: var(--ec-clay);
  cursor: pointer;
}

.lp-consent-label {
  font-size: 0.6875rem;
  color: var(--lp-text-muted);
  line-height: 1.55;
  cursor: pointer;
}

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

.lp-consent-label a:hover {
  color: var(--lp-text-secondary);
}

.lp-change-link {
  color: var(--ec-clay);
  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(--ec-clay);
  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: 4rem 0;
}

.lp-section--alt {
  background-color: var(--ec-stone);
  border-top: 1px solid var(--ec-border-soft);
}

.lp-section-title {
  font-family: var(--lp-font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  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%;
  }
}

/* ---- Demo / SMS Screenshots ---- */

.lp-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.lp-demo-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-surface-border);
  border-radius: var(--lp-radius-xl);
  overflow: hidden;
}

.lp-demo-phone {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--ec-white);
  border: 1px solid var(--ec-border-soft);
  border-radius: 1rem;
  padding: 0.875rem 0.75rem 0.625rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.lp-demo-caption {
  text-align: center;
  font-family: var(--lp-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem;
  margin: 0;
  border-top: 1px solid var(--lp-surface-border);
}

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

/* ==========================================================================
   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(--ec-cream);
  border: 1px solid var(--ec-clay);
  color: var(--ec-clay);
  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(--ec-clay);
  border-width: 2px;
}

.lp-plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ec-clay);
  color: var(--ec-cream);
  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-daily {
  font-size: 0.8rem;
  color: var(--ec-clay);
  font-weight: 600;
  margin: -0.25rem 0 0.75rem;
  text-align: center;
}

.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(--ec-success);
  flex-shrink: 0;
  font-weight: 600;
}

.lp-pricing-trial-banner {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--ec-clay);
  border-radius: 0.75rem;
  background: rgba(139, 63, 44, 0.06); /* tinted --ec-clay so it reads as accent, not alert */
  text-align: center;
}

.lp-pricing-trial-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ec-clay);
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
}

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

.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);
  }
}

.lp-pricing-grid--two {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

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

/* Three-column pricing: Free | Essential | Second Brain teaser */
.lp-pricing-grid--three {
  max-width: 72rem;
}

@media (min-width: 900px) {
  .lp-pricing-grid--three {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.lp-plan--teaser {
  border-style: dashed;
  border-color: var(--lp-text-muted);
  background-color: rgba(246, 241, 230, 0.6);
}

.lp-plan--teaser .lp-plan-name {
  color: var(--lp-text-secondary);
}

.lp-plan-price--muted {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  margin: 0 0 1.5rem;
}

.lp-plan-cta-hint {
  font-size: 0.8125rem;
  color: var(--lp-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Feature comparison table (landing) */
.lp-feature-comparison {
  margin-top: 3rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.lp-feature-comparison-title {
  font-family: var(--lp-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--lp-text);
}

.lp-feature-comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-surface-border);
  background-color: var(--lp-surface);
}

.lp-feature-comparison-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lp-feature-comparison-table thead th {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--lp-surface-border);
  color: var(--lp-text-secondary);
  font-weight: 600;
  vertical-align: bottom;
}

.lp-feature-comparison-table thead th:first-child {
  width: 34%;
}

.lp-feature-comparison-tier {
  display: block;
  color: var(--lp-text);
}

.lp-feature-comparison-price {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--lp-text-secondary);
  margin-top: 0.125rem;
}

.lp-feature-comparison-table tbody th,
.lp-feature-comparison-table tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--ec-border-soft);
  color: var(--lp-text-secondary);
}

.lp-feature-comparison-table tbody th {
  font-weight: 500;
  color: var(--lp-text);
  text-align: left;
  position: relative;
}

.lp-feature-comparison-table tbody tr:last-child th,
.lp-feature-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.lp-feature-comparison-cell {
  color: var(--lp-text-secondary);
}

/* Feature tooltip (inline in comparison table) */
.lp-feature-label-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lp-feature-tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.lp-feature-tooltip-trigger {
  color: var(--ec-text-muted);
  transition: color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.lp-feature-tooltip-trigger:hover {
  color: var(--ec-text-secondary);
}

.lp-feature-tooltip-icon {
  width: 14px;
  height: 14px;
}

.lp-feature-comparison-scroll:has(.lp-feature-tooltip-popup:not(.hidden)) {
  overflow: visible;
}

.lp-feature-tooltip-wrapper:has(.lp-feature-tooltip-popup:not(.hidden)) {
  z-index: 9999;
}

.lp-feature-tooltip-popup {
  position: absolute;
  z-index: 9999;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  width: 14rem;
  border-radius: 0.5rem;
  background: var(--ec-espresso);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(27, 24, 22, 0.18);
}

.lp-feature-tooltip-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.375rem;
}

.lp-feature-tooltip-example {
  font-size: 0.75rem;
  color: #F3D9CC;
  font-style: italic;
}

@media (max-width: 640px) {
  .lp-feature-tooltip-popup {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   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(--ec-clay);
  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;
  }
}
