/* COSMO BOARDS public pages (/, /privacy, /terms). Same tokens as the app; mobile-first, 320-1440 px. */
:root, :root[data-theme='dark'] {
  color-scheme: dark;
  --app: #0b0d11; --surface: #12161f; --surface-2: #181d29; --line: #262e40;
  --fg: #f3f4f6; --fg-strong: #ffffff; --soft: #d1d5db; --muted: #a3abb9;
  --accent: #818cf8; --accent-strong: #6366f1; --focus: #a5b4fc;
  --glow: radial-gradient(60rem 36rem at 15% -10%, rgb(124 92 255 / 0.22), transparent 60%),
          radial-gradient(48rem 30rem at 95% 5%, rgb(99 102 241 / 0.16), transparent 60%);
  --card: rgb(22 27 40 / 0.72); --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.6);
  --tag-b: #312e81; --tag-b-fg: #c7d2fe; --tag-v: #4c1d95; --tag-v-fg: #ddd6fe;
  --tag-g: #14532d; --tag-g-fg: #bbf7d0; --tag-a: #78350f; --tag-a-fg: #fde68a;
}
:root[data-theme='light'] {
  color-scheme: light;
  --app: #eef2f7; --surface: #ffffff; --surface-2: #f1f5f9; --line: #dbe2ea;
  --fg: #0f172a; --fg-strong: #0b1220; --soft: #334155; --muted: #475569;
  --accent: #4338ca; --accent-strong: #4f46e5; --focus: #4f46e5;
  --glow: radial-gradient(60rem 36rem at 15% -10%, rgb(129 140 248 / 0.22), transparent 60%),
          radial-gradient(48rem 30rem at 95% 5%, rgb(196 181 253 / 0.24), transparent 60%);
  --card: rgb(255 255 255 / 0.85); --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 18px 40px -20px rgb(15 23 42 / 0.25);
  --tag-b: #e0e7ff; --tag-b-fg: #3730a3; --tag-v: #ede9fe; --tag-v-fg: #5b21b6;
  --tag-g: #dcfce7; --tag-g-fg: #166534; --tag-a: #fef3c7; --tag-a-fg: #92400e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: var(--app); background-image: var(--glow); background-repeat: no-repeat; color: var(--fg);
  font: 400 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--fg-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { color: var(--fg-strong); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.lp-narrow { max-width: 760px; }
.lp-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.lp-skip:focus { top: 12px; color: #fff; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--app) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.lp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-strong); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.lp-brand span { font-size: 15px; }
.lp-nav { display: none; gap: 28px; }
/* Hover: the link lifts a little onto a soft glass pill. Padding is offset by negative margin so the row keeps its spacing. */
.lp-nav a { position: relative; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; margin: -8px -12px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1.2), background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, color 180ms ease; }
.lp-nav a:hover, .lp-nav a:focus-visible { color: var(--fg-strong); transform: translateY(-2px);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent); border-color: var(--line);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 10px 24px -12px rgb(99 102 241 / 0.55), 0 4px 10px -6px rgb(0 0 0 / 0.4); }
.lp-nav a:active { transform: translateY(0); transition-duration: 80ms; }
.lp-nav-sep { width: 1px; align-self: stretch; margin: 2px 0; background: var(--line); }
.lp-header-actions { display: flex; align-items: center; gap: 8px; }
.lp-menu { position: relative; }
.lp-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu summary span, .lp-menu summary span::before, .lp-menu summary span::after { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; position: relative; content: ''; }
.lp-menu summary span::before { position: absolute; top: -6px; }
.lp-menu summary span::after { position: absolute; top: 6px; }
.lp-menu nav { position: absolute; right: 0; top: 52px; min-width: 220px; display: grid; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.lp-menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 600; }
.lp-menu nav a:hover { background: var(--surface-2); }
.lp-menu nav small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.lp-menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }

/* Buttons */
.lp-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform 140ms ease, background 140ms ease; }
.lp-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.lp-btn-primary { background: linear-gradient(135deg, #4f46e5 0%, #6d3fe0 100%); color: #fff; box-shadow: 0 10px 24px -12px rgb(99 102 241 / 0.8); }
.lp-btn-primary:hover { color: #fff; transform: translateY(-1px); }
.lp-btn-primary[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.lp-btn-ghost { background: var(--surface); color: var(--fg-strong); border-color: var(--line); }
.lp-btn-ghost:hover { background: var(--surface-2); color: var(--fg-strong); }

/* Hero */
.lp-hero { padding: 48px 0 56px; }
.lp-hero-grid { display: grid; gap: 40px; align-items: center; }
.lp-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.lp-hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; }
.lp-lead { margin-top: 18px; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--soft); max-width: 36rem; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.lp-board { margin: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.lp-board-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; color: var(--soft); font-size: 13px; }
.lp-board-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-board-bar strong { margin-left: 8px; font-weight: 700; color: var(--fg-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-board-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-col { background: var(--surface-2); border-radius: 14px; padding: 10px; min-width: 0; }
.lp-col-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.lp-card p { font-size: 13px; font-weight: 600; color: var(--fg); margin-top: 6px; overflow-wrap: anywhere; }
.lp-card i { display: block; height: 4px; border-radius: 4px; margin-top: 10px; background: linear-gradient(90deg, var(--accent-strong) 55%, var(--line) 55%); }
.lp-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lp-tag-b { background: var(--tag-b); color: var(--tag-b-fg); } .lp-tag-v { background: var(--tag-v); color: var(--tag-v-fg); }
.lp-tag-g { background: var(--tag-g); color: var(--tag-g-fg); } .lp-tag-a { background: var(--tag-a); color: var(--tag-a-fg); }
.lp-board figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: right; }

/* Sections */
.lp-section { padding: 64px 0; }
.lp-section-alt { background: color-mix(in srgb, var(--surface) 55%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; max-width: 44rem; }
.lp-section-lead { margin-top: 14px; color: var(--soft); max-width: 44rem; }
.lp-features, .lp-plans, .lp-steps, .lp-plan ul { list-style: none; margin: 0; padding: 0; }
.lp-features { display: grid; gap: 16px; margin-top: 32px; }
.lp-features li, .lp-plan, .lp-steps li, .lp-empty { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.lp-features h3, .lp-steps h3 { font-size: 1.08rem; font-weight: 700; }
.lp-features p, .lp-steps p { margin-top: 8px; color: var(--soft); font-size: 15px; }

.lp-plans { display: grid; gap: 16px; margin-top: 32px; }
.lp-plan h3 { font-size: 1.2rem; font-weight: 800; }
.lp-plan-desc { margin-top: 6px; color: var(--soft); font-size: 15px; }
.lp-price { margin-top: 16px; color: var(--muted); }
.lp-price strong { font-size: 2.2rem; color: var(--fg-strong); font-weight: 800; letter-spacing: -0.02em; }
.lp-plan ul { margin-top: 16px; display: grid; gap: 8px; }
.lp-plan ul li { padding-left: 26px; position: relative; color: var(--soft); font-size: 15px; }
.lp-plan ul li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.lp-empty { margin-top: 28px; color: var(--soft); }

.lp-steps { display: grid; gap: 16px; margin-top: 32px; counter-reset: step; }
.lp-steps li { counter-increment: step; position: relative; padding-top: 58px; }
.lp-steps li::before { content: counter(step); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #6d3fe0 100%); }

.lp-faq { border-bottom: 1px solid var(--line); }
.lp-faq:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; color: var(--fg-strong); list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--accent); font-weight: 400; }
.lp-faq[open] summary::after { content: '−'; }
.lp-faq p { padding: 0 0 18px; color: var(--soft); }

.lp-band { padding: 56px 0; }
.lp-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

.lp-legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; margin-top: 18px; }
.lp-legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 28px; }
.lp-legal p { margin-top: 8px; color: var(--soft); }
.lp-draft { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--tag-a); color: var(--tag-a-fg); font-weight: 700; font-size: 14px; }

.lp-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.lp-footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.lp-footer a { color: var(--soft); text-decoration: none; }
.lp-footer a:hover { color: var(--fg-strong); text-decoration: underline; }

/* Narrow phones: the header keeps brand + menu; "Sign in" stays in the menu, hero and footer. */
@media (max-width: 399px) {
  .lp-header-actions .lp-btn-sm { display: none; }
}
@media (min-width: 640px) {
  .lp-wrap { padding: 0 24px; }
  .lp-features, .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (min-width: 900px) {
  .lp-hero { padding: 72px 0 80px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; }
  .lp-board-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-section { padding: 88px 0; }
}
/* The header nav (two apps + four page links) needs this width; below it the menu holds them. */
@media (min-width: 1080px) {
  .lp-nav { display: flex; }
  .lp-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn { transition: none; }
  .lp-btn-primary:hover { transform: none; }
  .lp-nav a { transition: none; }
  .lp-nav a:hover, .lp-nav a:focus-visible { transform: none; }
}
