/* Public landing page (serving/templates/landing.html) only. Builds on the
   theme variables and .landing-* / .auth-* rules in dashboard.css. */

.lp { padding: 0 0 2rem; }
/* Content sits above the decorative background (z-index 0) but below the
   sticky nav, so open nav dropdowns cover the page and stay clickable. */
.lp > section, .lp > main, .lp > header { position: relative; z-index: 1; }

.lp-icon { color: var(--accent); flex: none; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: 0.6rem 1.1rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lp-btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.lp-btn-primary { background: var(--accent); color: #06131f; }
.lp-btn-primary:hover { filter: brightness(1.08); }
.lp-btn-outline { color: var(--accent); border-color: var(--accent); background: transparent; font-weight: 600; }
.lp-btn-outline:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lp-btn-dark { background: color-mix(in srgb, var(--bg) 70%, black); color: var(--text); border-color: var(--border); }
:root[data-theme="light"] .lp-btn-dark { background: var(--text); color: var(--panel); border-color: var(--text); }
.lp-btn-dark:hover { border-color: var(--accent); }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.lp-brand { text-decoration: none; color: inherit; align-items: center; margin-right: auto; }
.lp-brand .brand-mark { color: var(--accent); }
.lp-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.lp-nav-links > a, .lp-dropdown > summary {
  color: var(--text); text-decoration: none; font-size: 0.95rem; cursor: pointer;
}
.lp-nav-links > a:hover, .lp-dropdown > summary:hover { color: var(--accent); }
.lp-dropdown { position: relative; }
.lp-dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.2rem; }
.lp-dropdown > summary::-webkit-details-marker { display: none; }
.lp-dropdown > summary .lp-icon { width: 16px; height: 16px; color: inherit; transition: transform 0.15s ease; }
.lp-dropdown[open] > summary .lp-icon { transform: rotate(180deg); }
.lp-dropdown-menu {
  position: absolute; top: calc(100% + 0.6rem); left: -0.75rem; min-width: 240px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.4rem; display: flex; flex-direction: column; z-index: 101;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.lp-dropdown-menu a {
  color: var(--text); text-decoration: none; font-size: 0.9rem;
  padding: 0.5rem 0.7rem; border-radius: 6px;
}
.lp-dropdown-menu a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.lp-theme.theme-toggle { position: static; font-size: 0.8rem; }
.lp-nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 40px; height: 36px; padding: 0 9px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 4px;
}
.lp-nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.lp-hero { max-width: 860px; margin: 0 auto; padding: 4.5rem 1.5rem 3rem; text-align: center; }
.lp-hero-brand { justify-content: center; align-items: center; margin-bottom: 0.6rem; font-size: 1.2rem; }
.lp-hero-brand .brand-mark { color: var(--accent); }
.lp-eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  color: var(--muted); margin: 0 0 1.5rem;
}
.lp-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 1.25rem; }
.lp-hero .landing-subtitle { margin: 0 auto 1rem; max-width: 720px; font-size: 1.05rem; }
.lp-hero .lp-subtitle-2 { margin-bottom: 2rem; }
.lp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.lp-meta { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Sections */
.lp-section { max-width: 1080px; margin: 0 auto; padding: 3rem 1.5rem 0; }
.lp-section h2 { font-size: 1.6rem; margin: 0 0 0.6rem; }

/* Platform overview: three pillars */
.lp-overview {
  max-width: 1040px; margin-top: 1rem; padding: 2rem 1.5rem;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border: 1px solid var(--border); border-radius: 16px; text-align: center;
}
.lp-overview-head .lp-icon { width: 30px; height: 30px; }
.lp-overview-head h2 { font-size: 1.25rem; margin: 0.4rem 0 0.2rem; }
.lp-overview-head p { margin: 0; color: var(--muted); }
.lp-tree { position: relative; height: 34px; margin: 1rem auto 0; width: calc(66.66% + 2px); }
.lp-tree::before {
  content: ""; position: absolute; left: 50%; top: 0; height: 14px; border-left: 2px solid var(--accent);
}
.lp-tree span {
  position: absolute; left: 0; right: 0; top: 14px; height: 20px;
  border: 2px solid var(--accent); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.lp-tree span::after {
  content: ""; position: absolute; left: 50%; top: 0; height: 18px; border-left: 2px solid var(--accent);
}
.lp-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.lp-pillar {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lp-pillar:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-pillar h3 { margin: 0.5rem 0 0.75rem; font-size: 1.1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.lp-pillar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; }

/* Feature groups */
.lp-group { scroll-margin-top: 70px; }
.lp-group-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.25rem; }
.lp-group-icon {
  display: inline-flex; padding: 0.55rem; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.lp-group-head h2 { font-size: 1.4rem; margin: 0 0 0.2rem; }
.lp-group-head p { margin: 0; color: var(--muted); }
.lp-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lp-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
.lp-card, .lp-early-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1.4rem;
  scroll-margin-top: 80px;
}
.lp-card h3, .lp-early-item h3 { font-size: 1.02rem; margin: 0.75rem 0 0.5rem; }
.lp-card p, .lp-early-item p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* Early access */
.lp-early {
  margin-top: 3.5rem; padding: 2rem 1.75rem;
  max-width: 1040px; text-align: center;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border: 1px solid var(--border); border-radius: 16px;
}
.lp-eyebrow-left { text-align: left; color: var(--accent); margin-bottom: 0.5rem; }
.lp-early .landing-subtitle { max-width: 720px; margin: 0 auto 1.5rem; }
.lp-early-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; margin-bottom: 1.5rem; }
.lp-early-item h3 { margin-top: 0.6rem; }

/* Pricing */
.lp-pricing { text-align: center; scroll-margin-top: 60px; }
.lp-pricing > .landing-subtitle { margin: 0 auto 1.25rem; }
.lp-billing {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--panel); margin-bottom: 1.5rem;
}
.lp-billing-option {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer;
}
.lp-billing-option.is-active { background: var(--accent); color: #06131f; }
.lp-plan-list {
  max-width: 900px; margin: 0 auto; text-align: left;
  display: flex; flex-direction: column; gap: 1rem;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  border: 1px solid var(--border); border-radius: 16px; padding: 1rem;
}
.lp-plan {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.lp-plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-plan-main { display: flex; justify-content: space-between; gap: 1rem; }
.lp-plan h3 { margin: 0 0 0.35rem; font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lp-badge {
  font-size: 0.7rem; font-weight: 600; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; padding: 0.1rem 0.5rem;
}
.lp-plan-info p, .lp-plan-price p { margin: 0; }
.lp-plan-tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem !important; }
.lp-plan-seats { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.lp-plan-seats .lp-icon { width: 16px; height: 16px; color: var(--muted); }
.lp-plan-price { text-align: right; white-space: nowrap; }
.lp-plan-from { color: var(--muted); font-size: 0.85rem; }
.lp-plan-amount { font-size: 1.5rem; font-weight: 700; }
.lp-plan-period { color: var(--muted); font-size: 0.9rem; }
.lp-plan-annual { color: var(--muted); font-size: 0.78rem; }
.lp-plan-list.is-annual .lp-plan-annual { visibility: hidden; }
.lp-plan-requests { margin-top: 0.4rem !important; font-size: 0.9rem; }
.lp-plan-cta { width: 100%; }
.lp-plan-note { color: var(--muted); font-size: 0.85rem; line-height: 1.55; margin: 0.25rem 0.25rem 0; }

.lp-compare-title { font-size: 1.2rem; margin: 2.5rem 0 1rem; }
.lp-table-wrap { overflow-x: auto; max-width: 1000px; margin: 0 auto; }
.lp-compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.92rem; }
.lp-compare th, .lp-compare td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); text-align: center; }
.lp-compare thead th { font-weight: 700; }
.lp-compare thead th.is-featured { color: var(--accent); }
.lp-compare th[scope="row"], .lp-compare thead th:first-child { text-align: left; font-weight: 500; }
.lp-yes { color: var(--accent); font-weight: 700; }
.lp-no { color: var(--muted); }
.lp-fineprint { max-width: 680px; margin: 1.5rem auto 0; font-size: 0.9rem; }
.lp-fineprint a { color: var(--accent); }
.lp-footnote { max-width: 1000px; margin: 0.75rem auto 0; text-align: left; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.lp-footnote a { color: var(--accent); }

.lp .landing-contact { scroll-margin-top: 70px; margin-top: 3.5rem; }
#contact-form { scroll-margin-top: 140px; }

/* Tablet */
@media (max-width: 900px) {
  .lp-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 760px) {
  .lp-nav-inner { padding: 0.6rem 1rem; gap: 0.6rem; flex-wrap: wrap; }
  .lp-nav-toggle { display: inline-flex; }
  .lp-nav-cta { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
  .lp-nav-links {
    display: none; order: 10; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 0 0.6rem;
  }
  .lp-nav-links.is-open { display: flex; }
  .lp-nav-links > a, .lp-dropdown > summary { padding: 0.6rem 0.2rem; display: flex; }
  .lp-dropdown-menu { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 0.75rem; min-width: 0; }
  .lp-theme.theme-toggle { align-self: flex-start; margin-top: 0.4rem; }

  .lp-hero { padding: 3rem 1rem 2rem; }
  .lp-section { padding: 2.5rem 1rem 0; }
  .lp-overview, .lp-early { margin-left: 1rem; margin-right: 1rem; padding: 1.5rem 1rem; }
  .lp-tree { display: none; }
  .lp-pillar-grid, .lp-card-grid, .lp-early-grid { grid-template-columns: 1fr; }
  .lp-overview-head { margin-bottom: 1rem; }
  .lp-plan-list { padding: 0.6rem; }
  .lp-plan-main { flex-direction: column; gap: 0.6rem; }
  .lp-plan-price { text-align: left; }
}

/* Phones and touch (2026-12-02) */
.lp-table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  /* Logo, Start Free and the menu button stay on one row; the opened menu
     drops below them. */
  .lp-brand { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; }
  .lp-nav-cta { flex: none; }
  .lp-nav-toggle { flex: none; }
  .lp-nav-links { max-height: calc(100dvh - 64px); overflow-y: auto; }
  /* The plan comparison scrolls sideways; the capability names stay put. */
  .lp-compare th[scope="row"], .lp-compare thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 9.5rem; max-width: 11rem; white-space: normal;
  }
  .lp-billing { max-width: 100%; }
  .lp-billing-option { padding: 0.55rem 0.9rem; }
}
@media (max-width: 400px) {
  .lp-nav-inner { padding: 0.55rem 0.75rem; gap: 0.5rem; }
  .lp-brand .brand-mark { font-size: 0.95rem; letter-spacing: 0.05em; }
  .lp-brand .brand-sub { font-size: 0.8rem; }
  .lp-nav-cta { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
  .lp-billing-option { padding: 0.55rem 0.7rem; font-size: 0.84rem; }
}
@media (pointer: coarse) {
  .lp-billing-option { min-height: 40px; }
  .lp-nav-toggle { width: 44px; height: 44px; }
  .lp-dropdown-menu a { padding: 0.7rem 0.7rem; }
}
/* Legal pages (legal.html) reuse the nav with a back link instead of menus. */
.lp-back { color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.lp-back:hover { color: var(--accent); }
.lp-back-short { display: none; }
.policy-page .policy-content { margin-top: 2rem; padding: 0 1.5rem; }
@media (max-width: 760px) {
  .policy-page .lp-nav-inner { flex-wrap: nowrap; }
  .policy-page .policy-content { padding: 0 1rem; margin-top: 1.25rem; }
  .lp-back-long { display: none; }
  .lp-back-short { display: inline; }
  .policy-page .lp-theme .theme-toggle-text { display: none; }
}
@media (max-width: 400px) {
  /* Too narrow for the wordmark: the logo alone links home. */
  .policy-page .lp-brand .brand-mark, .policy-page .lp-brand .brand-sub { display: none; }
}

/* Small tablets: the full nav only just fits, so the theme switch shows its icon. */
@media (min-width: 761px) and (max-width: 1000px) {
  .lp-theme .theme-toggle-text { display: none; }
  .lp-nav-links { gap: 1rem; }
}

/* Group labels inside a nav dropdown (Docs: Developers, Legal). */
.lp-dropdown-label {
  padding: 0.55rem 0.7rem 0.2rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lp-dropdown-label:not(:first-child) { margin-top: 0.3rem; border-top: 1px solid var(--border); padding-top: 0.6rem; }
