/* ================================================================
   Landing page
   ================================================================
   Its own stylesheet. The app's app.css assumes the sidebar shell and
   drags in a lot the marketing page has no use for; sharing base.css
   keeps the tokens and the reset in common, which is all that matters.
   ================================================================ */

.lp {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
.lp-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------------- nav ---------------- */

.lp-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  height: 68px;
}
/*
 * A full-bleed backdrop that appears once the page scrolls, so the nav does
 * not sit on top of the hero text with nothing behind it.
 *
 * Fixed to the viewport, not stretched with negative insets. `inset: 0 -50vw`
 * reaches half a screen past the right edge, and that width counts as
 * scrollable: the whole page could be dragged sideways on a phone, which is
 * the sort of thing that reads as a broken site before anyone can say why.
 */
.lp-nav::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 68px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity .2s ease, border-color .2s ease;
  pointer-events: none;
}
.lp-nav.stuck::before { opacity: 1; border-bottom-color: var(--line); }
.lp-nav > * { position: relative; }

.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.lp-brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: .14em; color: var(--ink);
}

.lp-links { display: flex; gap: 26px; margin-left: auto; }
.lp-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.lp-links a:hover { color: var(--ink); border-bottom-color: var(--brand); }

.lp-nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.lp-btn.solid {
  background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.lp-btn.solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37, 99, 235, .34); }
.lp-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.lp-btn.ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.lp-btn.lg { height: 48px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }

.lp-burger {
  display: none; width: 40px; height: 40px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); cursor: pointer;
}

/* Backdrop for the phone menu. Hidden until the menu opens. */
.lp-scrim {
  position: fixed; inset: 0; z-index: 30;
  border: 0; padding: 0; background: rgba(15, 23, 42, .38);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-nav.open ~ .lp-scrim { opacity: 1; pointer-events: auto; }

/* ---------------- hero ---------------- */

.lp-hero { position: relative; padding: 66px 0 0; overflow: hidden; text-align: center; }
.lp-hero-glow {
  position: absolute; left: 50%; top: -280px; transform: translateX(-50%);
  width: 1100px; height: 620px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(59,130,246,.20), transparent 70%),
    radial-gradient(closest-side, rgba(244,63,94,.12), transparent 70%);
  background-position: 30% 50%, 72% 42%;
  background-size: 62% 100%, 52% 88%;
  background-repeat: no-repeat;
}

.lp-eyebrow {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-hover);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}

.lp-hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ink);
}
.lp-hero h1 .grad {
  background: linear-gradient(96deg, #3b82f6 10%, #6366f1 52%, #f43f5e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lp-lede {
  max-width: 660px; margin: 22px auto 0;
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
}
.lp-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.lp-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------------- product mock ---------------- */

.lp-shot {
  margin: 52px auto 0; max-width: 940px;
  border: 1px solid var(--line); border-radius: 16px 16px 0 0;
  background: #fff; box-shadow: 0 -1px 0 #fff, 0 30px 70px rgba(15, 23, 42, .16);
  overflow: hidden; text-align: left;
}
.shot-bar {
  display: flex; gap: 7px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #f8fafc;
}
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dbe2ee; }
.shot-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 300px; }

.shot-side {
  background: linear-gradient(178deg, var(--sidebar-top), #1830a8 45%, var(--sidebar-bottom));
  padding: 16px 14px; display: flex; flex-direction: column; gap: 9px;
}
.shot-logo { height: 22px; width: 84px; border-radius: 6px; background: rgba(255,255,255,.28); margin-bottom: 10px; }
.shot-side i { height: 10px; border-radius: 5px; background: rgba(255,255,255,.16); }
.shot-side i.on { background: rgba(255,255,255,.42); }

.shot-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.shot-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.shot-stat {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
}
.shot-stat b { display: block; font-size: 18px; color: var(--ink); font-family: var(--font-display); }
.shot-stat span { font-size: 11.5px; color: var(--muted); }
.shot-chart { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.shot-chart svg { display: block; width: 100%; height: 90px; }
.shot-rows { display: flex; flex-direction: column; gap: 8px; }
.shot-row { display: flex; align-items: center; gap: 10px; }
.shot-row i { width: 24px; height: 24px; border-radius: 50%; background: #eef2f8; flex: none; }
.shot-row span { height: 9px; border-radius: 5px; background: #eef2f8; }
.shot-row b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted);
  background: #f1f5f9; border-radius: 999px; padding: 3px 10px; }
.shot-row b.ok { background: #ecfdf5; color: var(--green); }

/* ---------------- sections ---------------- */

.lp-sec { padding: 88px 0; }
.lp-sec.alt { background: var(--bg); border-block: 1px solid var(--line); }

.lp-kicker {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
}
.lp-sec h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink);
}
.lp-sec-lede { margin: 16px 0 0; max-width: 620px; font-size: 16px; line-height: 1.68; color: var(--ink-2); }

.lp-steps {
  display: grid; gap: 18px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.lp-step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
}
.lp-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand-hover);
  font-weight: 700; font-size: 14px;
}
.lp-step h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; color: var(--ink); }
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }

.lp-grid {
  display: grid; gap: 16px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.lp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.lp-card:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: var(--shadow); }
.lp-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; color: var(--ink); }
.lp-card p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }

.lp-split {
  display: grid; gap: 46px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.lp-list { list-style: none; margin: 26px 0 0; padding: 0; }
.lp-list li {
  position: relative; padding: 0 0 0 26px; margin-bottom: 15px;
  font-size: 14.8px; line-height: 1.62; color: var(--ink-2);
}
.lp-list li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.lp-list b { color: var(--ink); font-weight: 650; }

/* ---------------- side panels ---------------- */

.lp-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.lp-panel-head {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.lp-rule { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lp-rule-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2);
}
.lp-rule-row b { color: var(--ink); font-size: 15px; }
.lp-rule-note { padding: 12px 14px; background: #f8fafc; font-size: 13px; line-height: 1.6; color: var(--muted); }

.lp-bars { display: flex; flex-direction: column; gap: 11px; }
.lp-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.lp-bar span { width: 54px; flex: none; }
.lp-bar i {
  height: 8px; border-radius: 5px; flex: none;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}
.lp-bar b { margin-left: auto; color: var(--ink); font-size: 13px; }

/* ---------------- code sample ---------------- */

.lp-code {
  background: #0f172a; border-radius: 16px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .28);
}
.lp-code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
}
.lp-code-head span { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.lp-code pre { margin: 0; padding: 18px; overflow-x: auto; }
.lp-code code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; line-height: 1.75; color: #cbd5e1; white-space: pre;
}

/* ---------------- closing CTA + footer ---------------- */

.lp-cta { padding: 84px 0; text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.lp-cta h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px); color: var(--ink);
}
.lp-cta p { margin: 14px 0 26px; font-size: 16px; color: var(--ink-2); }

.lp-foot { border-top: 1px solid var(--line); padding: 42px 0 26px; background: #fff; }
.lp-foot-in { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.lp-foot-brand { display: flex; gap: 12px; align-items: center; }
.lp-foot-brand b { font-family: var(--font-display); letter-spacing: .14em; font-size: 15px; }
.lp-foot-brand p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.lp-foot-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.lp-foot-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.lp-foot-links a:hover { color: var(--brand); }
.lp-foot-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted-2);
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .lp-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shot-body { grid-template-columns: 118px minmax(0, 1fr); }
  .shot-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Menu-only call to action. Hidden until the bar gets narrow. */
.lp-menu-cta { display: none; }

@media (max-width: 760px) {
  /*
   * The wordmark comes first and nothing precedes it, so the menu button sits at
   * the far right of the bar.
   *
   * margin-left: auto is doing the work, not source order. The links are
   * absolutely positioned at this width and the buttons are hidden, so the only
   * elements still in the flex flow are the wordmark and this button - with no
   * spacer between them it would otherwise sit wedged against the wordmark with
   * a third of the bar empty beside it.
   */
  .lp-burger { display: flex; margin-left: auto; }
  .lp-nav { gap: 10px; }

  /*
   * The whole button pair leaves the bar. On a phone the row is the wordmark
   * and the menu button, nothing else - two call-to-action buttons wedged
   * beside a logo is the clutter, not the branding.
   */
  .lp-nav-cta { display: none; }

  .lp-menu-cta {
    display: block; margin-top: 4px;
    padding: 12px 14px; border-radius: 9px;
    font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
    border: 1px solid var(--line); text-align: center;
  }
  .lp-menu-cta.go {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .26);
  }
  /* Separated from the section links above it: these do something different. */
  .lp-menu-cta[data-login] { margin-top: 10px; border-top-color: var(--line); }

  /* The links become a drop-down sheet under the nav rather than being
     crushed into the bar. */
  .lp-links {
    position: absolute; top: 62px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 40;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .lp-nav.open .lp-links { opacity: 1; visibility: visible; transform: none; }
  .lp-links a { padding: 12px 14px; border-radius: 9px; border-bottom: 0; }
  .lp-links a:hover { background: var(--bg); border-bottom: 0; }

  .lp-hero { padding-top: 44px; }
  .lp-sec { padding: 62px 0; }
  .lp-cta { padding: 62px 0; }
  .shot-body { grid-template-columns: minmax(0, 1fr); }
  .shot-side { flex-direction: row; align-items: center; gap: 7px; padding: 12px; }
  .shot-side i { flex: 1; }
  .shot-logo { margin-bottom: 0; width: 46px; flex: none; }
  .lp-foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-card, .lp-links { transition: none; }
  .lp-btn.solid:hover, .lp-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ *
 *  Legal documents (privacy, terms).
 *
 *  Long-form reading rather than marketing: one narrow column, generous
 *  line height, and headings that can be linked to. Shares the landing
 *  page's nav and footer so the pages do not feel bolted on, which is
 *  also what a reviewer checking the links expects to see.
 * ------------------------------------------------------------------ */

.legal { padding: 96px 0 64px; background: #fff; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.legal h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.legal .legal-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.legal .legal-intro {
  font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
  padding: 16px 18px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; margin: 20px 0 36px;
}

.legal h2 {
  font-size: 20px; letter-spacing: -.01em; color: var(--ink);
  margin: 40px 0 12px; padding-top: 8px; scroll-margin-top: 84px;
}
.legal h3 { font-size: 16px; color: var(--ink); margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.legal th, .legal td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top;
}
.legal th { background: #f8fafc; font-weight: 600; color: var(--ink); }
.legal td code { font-size: 13px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }

/* The one section a Google reviewer is looking for. Marked so it is findable. */
.legal .callout {
  border-left: 3px solid var(--brand); background: #f5f8ff;
  padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 0 0 20px;
}
.legal .callout p:last-child { margin-bottom: 0; }

.legal-toc { margin: 0 0 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; }
.legal-toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 0 0 10px; padding: 0; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 5px; font-size: 14.5px; }

@media (max-width: 760px) {
  .legal { padding: 84px 0 48px; }
  .legal h1 { font-size: 27px; }
  .legal h2 { font-size: 18px; }
  .legal table { display: block; overflow-x: auto; }
}
