/* =========================================================================
   LodgiXops landing page styles
   Brand palette mirrors web/src/app/globals.css (see project_brand_palette).
   ========================================================================= */

:root {
  --brand-navy:      #0B2545;
  --brand-navy-700:  #15315A;
  --brand-navy-100:  #E2E8F0;
  --brand-teal:      #2EC4B6;
  --brand-teal-600:  #25A89C;
  --brand-teal-100:  #D4F4F0;
  --brand-graphite:  #2D3142;
  --brand-soft:      #F7F8FA;

  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,37,69,0.06), 0 1px 3px rgba(11,37,69,0.08);
  --shadow-md: 0 4px 14px rgba(11,37,69,0.10);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
                "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.55;
  color: var(--brand-graphite);
  background: var(--brand-soft);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  color: var(--brand-navy);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-teal);
  color: white;
  border-color: var(--brand-teal);
}
.btn-primary:hover { background: var(--brand-teal-600); border-color: var(--brand-teal-600); }

.btn-ghost {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-navy-100);
}
.btn-ghost:hover { background: white; }

.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

.btn-block {
  display: block;
  width: 100%;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--brand-navy-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: inline-flex; align-items: center; }

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

.primary-nav a {
  color: var(--brand-navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--brand-teal-600); text-decoration: none; }
.primary-nav .btn { padding: 0.5rem 0.95rem; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--brand-navy-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1rem;
    border-bottom: 1px solid var(--brand-navy-100);
    box-shadow: var(--shadow-sm);
    transform: translateY(-200%);
    transition: transform 0.18s ease;
  }
  .primary-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--brand-navy-100);
  }
  .primary-nav .btn { margin-top: 0.5rem; }
  .primary-nav.is-open { transform: translateY(0); }
}

/* ============ Hero ============ */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(46, 196, 182, 0.18), transparent 60%),
    radial-gradient(700px 280px at -10% 0%, rgba(11, 37, 69, 0.06), transparent 60%),
    var(--brand-soft);
}
.hero-inner { max-width: 820px; text-align: left; }

.lede {
  font-size: 1.18rem;
  color: var(--brand-graphite);
  margin: 1rem 0 1.6rem;
  max-width: 680px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-meta {
  color: #6B7280;
  font-size: 0.92rem;
  margin: 0;
}

/* ============ Generic section title ============ */
.section-title { text-align: center; }
.section-sub {
  text-align: center;
  color: #4B5563;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ============ Features ============ */
.features {
  padding: 4.5rem 0;
  background: white;
  border-top: 1px solid var(--brand-navy-100);
  border-bottom: 1px solid var(--brand-navy-100);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--brand-soft);
  border: 1px solid var(--brand-navy-100);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}
.feature p { margin: 0; color: #4B5563; font-size: 0.95rem; }

/* ============ Pricing ============ */
.pricing { padding: 4.5rem 0; }

.trial-banner {
  background: var(--brand-teal-100);
  border: 1px solid var(--brand-teal);
  color: var(--brand-navy);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 760px;
  font-size: 0.97rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  background: white;
  border: 1px solid var(--brand-navy-100);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border: 2px solid var(--brand-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.plan-header { margin-bottom: 1rem; }
.plan-tag { color: #4B5563; font-size: 0.9rem; margin: 0.1rem 0 0.9rem; }

.plan-price { margin: 0 0 0.1rem; }
.plan-price .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
}
.plan-price .per {
  color: #4B5563;
  font-size: 0.95rem;
  margin-left: 0.25rem;
}
.plan-billed {
  color: #6B7280;
  font-size: 0.85rem;
  margin: 0.2rem 0 1.1rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  flex: 1;
}
.plan-features li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid var(--brand-navy-100);
}
.plan-features li:first-child { border-top: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-teal);
  border-bottom: 2px solid var(--brand-teal);
  transform: rotate(-45deg);
}

.pill {
  display: inline-block;
  background: var(--brand-navy-100);
  color: var(--brand-navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ============ Contact ============ */
.contact {
  padding: 4.5rem 0;
  background: var(--brand-navy);
  color: white;
}
.contact .section-title { color: white; text-align: left; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-copy p { color: rgba(255,255,255,0.85); }
.contact-meta { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-meta li { padding: 0.25rem 0; }
.contact-meta a { color: var(--brand-teal-100); }

.contact-form {
  background: white;
  color: var(--brand-graphite);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 0.9rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--brand-graphite);
  background: white;
  border: 1px solid var(--brand-navy-100);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.18);
}
textarea { resize: vertical; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--brand-teal-600); font-weight: 600; }
.form-status.is-error   { color: #B91C1C; font-weight: 600; }

/* ============ Footer ============ */
.site-footer {
  background: var(--brand-soft);
  border-top: 1px solid var(--brand-navy-100);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal {
  color: #6B7280;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-nav a {
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--brand-teal-600); }

/* =========================================================================
   Mobile (<= 640px): carousels + copy swaps. Desktop above untouched.
   ========================================================================= */

/* Default desktop: hide mobile-only spans, hide dot rows. */
.m-only { display: none; }
.dots   { display: none; }

@media (max-width: 640px) {

  /* ---- Copy swap helpers ---- */
  .d-only { display: none; }
  .m-only { display: inline; }

  /* ---- Section padding tightens slightly on phones ---- */
  .features { padding: 3rem 0; }
  .pricing  { padding: 3rem 0; }

  /* Title spacing eats a touch less room on phones. */
  .section-sub { margin-bottom: 1.5rem; }

  /* ---- Generic carousel track ---- */
  .feature-grid,
  .plan-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    /* Bleed past the .container 20px pad so first/last card can center. */
    margin-left: -20px;
    margin-right: -20px;
    padding: 1.5rem 16px 1rem;   /* extra top room so .plan-ribbon (top:-12px) isn't clipped */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;     /* Firefox */
  }
  .feature-grid::-webkit-scrollbar,
  .plan-grid::-webkit-scrollbar { display: none; } /* Chrome / Safari */

  /* ---- Cards size to one-per-view with peek of next ---- */
  .feature,
  .plan {
    flex: 0 0 calc(100% - 48px);   /* leaves ~24px peek on the right */
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* The featured plan's -4px lift breaks scroll-snap alignment;
     keep the teal border + shadow, drop the transform on phones. */
  .plan-featured { transform: none; }

  /* ---- Dot indicators ---- */
  .dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
    padding: 0;
  }
  .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brand-navy-100);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
  }
  .dot.active {
    background: var(--brand-navy);
    transform: scale(1.25);
  }
  .dot:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
  }
}


/* =========================================================================
   Progressive contact form (2-step, numbered-dot indicator).
   Applies on every viewport -- desktop + mobile share the same flow.
   ========================================================================= */

.form-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.25rem;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-navy-100);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.step-num.done {
  background: var(--brand-teal-600);
  color: white;
}
.step-num.active {
  background: var(--brand-teal);
  color: white;
  transform: scale(1.08);
}

.form-step {
  border: 0;
  padding: 0;
  margin: 0 0 0.4rem;
  min-width: 0;
}
.form-step[hidden] { display: none; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.form-actions .btn { flex: 1; }
