/* ============================================================================
   WONS — public landing page (/)
   Own stylesheet so the auth pages can keep marketing.css untouched.

   One family does the talking: Archivo (600 for headings, 400/500 for text).
   IBM Plex Mono appears only where the content is literally a file name or
   code. Both are self-hosted (static/fonts), so the 'self'-only CSP holds.
   Light is the default; [data-theme="dark"] mirrors every token.
   ========================================================================= */

.lp {
  --bg: #f6f7f5;
  --bg-tint: #eef1ed;
  --surface: #ffffff;
  --surface-2: #f2f4f1;
  --ink: #0e1a15;
  --ink-2: #3a4741;
  --ink-3: #5c6963;
  --line: rgba(14, 26, 21, 0.09);
  --line-2: rgba(14, 26, 21, 0.16);

  --green: #087a53;          /* buttons, links: 5.3:1 on white */
  --green-ink: #066646;      /* green text on tinted grounds */
  --green-hi: #0fa36f;       /* dots, icons */
  --green-soft: #e2f2ea;
  --on-green: #ffffff;
  --saffron: #f2b544;
  --saffron-soft: #fcedc9;

  --band: #0d2a1f;
  --band-2: #12372a;
  --band-ink: #eaf2ee;
  --band-ink-2: #a9c2b6;
  --band-line: rgba(234, 242, 238, 0.14);

  --shadow-1: 0 1px 2px rgba(14, 26, 21, 0.06), 0 2px 6px rgba(14, 26, 21, 0.04);
  --shadow-2: 0 2px 4px rgba(14, 26, 21, 0.05), 0 12px 32px -8px rgba(14, 26, 21, 0.16);
  --shadow-3: 0 4px 8px rgba(14, 26, 21, 0.06), 0 28px 60px -16px rgba(14, 26, 21, 0.28);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sec: clamp(72px, 9vw, 120px);
  --gut: clamp(20px, 4vw, 32px);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

[data-theme="dark"] .lp {
  --bg: #0a100d;
  --bg-tint: #0f1713;
  --surface: #121b17;
  --surface-2: #17221d;
  --ink: #e8efeb;
  --ink-2: #b6c3bc;
  --ink-3: #8e9c95;
  --line: rgba(232, 239, 235, 0.08);
  --line-2: rgba(232, 239, 235, 0.15);

  --green: #2cc48a;
  --green-ink: #4fd6a1;
  --green-hi: #2cc48a;
  --green-soft: rgba(44, 196, 138, 0.13);
  --on-green: #03140c;
  --saffron-soft: rgba(242, 181, 68, 0.2);

  --band: #0f1f18;
  --band-2: #152a21;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 4px 8px rgba(0, 0, 0, 0.3), 0 28px 60px -16px rgba(0, 0, 0, 0.7);
}

body:has(> .lp) { background: #f6f7f5; }
body:has(> .lp) #WONS-theme-toggle { display: none; }
[data-theme="dark"] body:has(> .lp) { background: #0a100d; }

/* ── browser surfaces ───────────────────────────────────────────────────── */
.lp ::selection { background: var(--green-soft); color: var(--ink); }
[data-theme="dark"] .lp ::selection { background: rgba(44, 196, 138, 0.35); }
.lp :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.lp { scrollbar-color: var(--line-2) transparent; }
html:has(.lp) { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }

/* ── resets (zero specificity via :where) ───────────────────────────────── */
.lp :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; padding: 0; }
.lp :where(ul, ol) { list-style: none; }
.lp :where(a) { color: inherit; text-decoration: none; }
.lp :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.lp :where(img) { display: block; max-width: 100%; }
.lp code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.lp .ms { font-size: 20px; line-height: 1; vertical-align: middle; }
.lp-mono { font-family: var(--mono); }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm);
}
.lp-skip:focus { top: 12px; }

.lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); box-sizing: border-box; }

/* ── type ───────────────────────────────────────────────────────────────── */
.lp-h1 {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  line-height: 1.03; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.lp-h2 {
  font-size: clamp(2rem, 1.45rem + 1.9vw, 3rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
  text-wrap: balance;
}
.lp-h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lp-h3--lg { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.lp-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap; box-sizing: border-box;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn--primary { background: var(--green); color: var(--on-green); box-shadow: 0 1px 2px rgba(8, 122, 83, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.lp-btn--primary:hover { background: color-mix(in srgb, var(--green) 88%, #000); }
[data-theme="dark"] .lp-btn--primary:hover { background: color-mix(in srgb, var(--green) 88%, #fff); }
.lp-btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-1); }
.lp-btn--ghost:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.lp-btn--lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.lp-btn--block { width: 100%; }

.lp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }

/* ── header ─────────────────────────────────────────────────────────────── */
.lp-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.lp-head.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.lp-head__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.lp-brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.lp-nav { display: none; gap: 4px; margin-left: 12px; }
.lp-nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
.lp-nav a:hover { color: var(--ink); background: var(--surface-2); }
.lp-head__act { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lp-theme { display: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lp-theme button { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-3); transition: color 0.2s, background-color 0.2s; }
.lp-theme button:hover { color: var(--ink); }
.lp-theme button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.lp-theme .ms { font-size: 17px; }

.lp-burger { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.lp-burger:hover { background: var(--surface-2); }
.lp-sheet { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 0 16px; }
.lp-sheet a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.lp-sheet[hidden] { display: none; }
.lp-sheet__theme { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; font-size: 16px; color: var(--ink-2); }
.lp-theme--sheet { display: inline-flex; }

@media (max-width: 639px) { .lp-hide-sm { display: none; } }
@media (min-width: 900px) {
  .lp-nav { display: flex; }
  .lp-burger, .lp-sheet { display: none !important; }
}
@media (min-width: 1080px) { .lp-theme { display: inline-flex; } }

/* ── hero ───────────────────────────────────────────────────────────────── */
.lp-hero { padding: clamp(32px, 4.5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.lp-hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .lp-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; } }
.lp-hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-hero__proof { display: flex; align-items: baseline; gap: 12px; text-wrap: pretty; margin-top: 28px; font-size: 15px; color: var(--ink-2); max-width: 34em; }
.lp-hero__proof .lp-dot { transform: translateY(-1px); }
.lp-hero__proof b { color: var(--ink); font-weight: 600; }

/* the demo: a document page behind, the chat widget in front */
.lp-demo { position: relative; display: grid; padding: 0 0 0 0; }
.lp-doc, .lp-chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

.lp-doc {
  grid-area: 1 / 1; align-self: start; justify-self: start;
  width: 84%; min-height: 330px; box-shadow: var(--shadow-2);
  transform: translateY(0); z-index: 1;
}
.lp-chat {
  grid-area: 1 / 1; justify-self: end; align-self: start;
  width: 68%; margin-top: 214px; box-shadow: var(--shadow-3); z-index: 2;
  overflow: hidden; display: flex; flex-direction: column;
}
.lp-doc__ex { display: none; }
.lp-demo[data-ex="0"] .lp-doc__ex[data-ex="0"],
.lp-demo[data-ex="1"] .lp-doc__ex[data-ex="1"],
.lp-demo[data-ex="2"] .lp-doc__ex[data-ex="2"] { display: block; animation: lp-fade 0.5s var(--ease); }
.lp-doc__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3);
}
.lp-doc__bar .ms { font-size: 18px; color: var(--ink-3); }
.lp-doc__pg { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-doc__body { padding: 16px 20px 22px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.lp-doc__body p + p { margin-top: 8px; }
.lp-doc__h { color: var(--ink); font-weight: 600; font-size: 14px; }
.lp-doc mark {
  color: var(--ink); border-radius: 3px; padding: 1px 0;
  background: linear-gradient(var(--saffron-soft), var(--saffron-soft)) no-repeat 0 0 / 100% 100%;
  box-shadow: -3px 0 0 var(--saffron-soft), 3px 0 0 var(--saffron-soft);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.7s var(--ease), box-shadow 0.4s;
}
.lp-doc__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; }
.lp-doc__tag .ms { font-size: 16px; }

.lp-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lp-chat__av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: var(--on-green); flex: none; }
.lp-chat__av .ms { font-size: 20px; }
.lp-chat__who { display: grid; line-height: 1.3; }
.lp-chat__who b { font-size: 14.5px; font-weight: 600; }
.lp-chat__who span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.lp-chat__who .lp-dot { width: 6px; height: 6px; box-shadow: none; }
.lp-chat__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 290px; background: var(--surface); }
.lp-chat__ex { display: none; flex-direction: column; gap: 10px; }
.lp-demo[data-ex="0"] .lp-chat__ex[data-ex="0"],
.lp-demo[data-ex="1"] .lp-chat__ex[data-ex="1"],
.lp-demo[data-ex="2"] .lp-chat__ex[data-ex="2"] { display: flex; }

.lp-msg { max-width: 90%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.lp-msg--bot { background: var(--surface-2); color: var(--ink); border-top-left-radius: 5px; align-self: flex-start; }
.lp-msg--you { background: var(--green); color: var(--on-green); border-top-right-radius: 5px; align-self: flex-end; }
.lp-cite {
  display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; margin-top: 10px; white-space: nowrap;
  padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-family: var(--mono);
  background: var(--surface); color: var(--green-ink); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.lp-cite .ms { font-size: 15px; }
.lp-cite--none { color: var(--ink-3); border-color: var(--line-2); font-family: var(--sans); }
.lp-typing { display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 14px; border-top-left-radius: 5px; background: var(--surface-2); align-self: flex-start; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; animation: lp-blink 1.1s infinite; }
.lp-typing i:nth-child(2) { animation-delay: 0.15s; }
.lp-typing i:nth-child(3) { animation-delay: 0.3s; }
.lp-chat__input {
  display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px;
  padding: 0 6px 0 14px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; color: var(--ink-3);
}
.lp-chat__input .ms { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 18px; }

/* staging (only when JS runs; without it everything is visible) */
.lp-typing { display: none; }
.js .lp-demo[data-stage="1"] .lp-typing { display: inline-flex; }
.js .lp-demo[data-stage="0"] .lp-msg--you,
.js .lp-demo[data-stage="0"] .lp-msg--ans,
.js .lp-demo[data-stage="1"] .lp-msg--ans { display: none; }
.js .lp-demo:not([data-stage="0"]) .lp-msg--you { animation: lp-rise 0.45s var(--ease) both; }
.js .lp-demo[data-stage="2"] .lp-msg--ans { animation: lp-rise 0.5s var(--ease) both; }
/* the link: the citation lights up as the passage it points to is marked */
.js .lp-demo:not([data-stage="3"]) .lp-doc mark { background-size: 0% 100%; box-shadow: none; }
.lp-demo[data-stage="3"] .lp-cite:not(.lp-cite--none) { box-shadow: 0 0 0 4px var(--green-soft); border-color: var(--green); }

.lp-demo__tabs { grid-area: 2 / 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; justify-self: end; width: 68%; }
.lp-demo__tabs button {
  height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--surface); transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.lp-demo__tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.lp-demo__tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
html:not(.js) .lp-demo__tabs { display: none; }
.lp-demo__note { grid-area: 3 / 1; justify-self: end; width: 68%; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 999px) {
  .lp-demo { max-width: 620px; }
}
@media (max-width: 599px) {
  .lp-doc { width: 100%; min-height: 0; }
  .lp-doc { min-height: 300px; }
  .lp-chat { width: calc(100% - 20px); margin-top: 236px; }
  .lp-cite { white-space: normal; }
  .lp-demo__tabs, .lp-demo__note { width: calc(100% - 20px); }
  .lp-chat__body { min-height: 280px; }
}

/* group marks under the proof line: one labelled seal per client group */
.lp-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lp-marks a {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.3s var(--ease);
}
.lp-marks a:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.lp-marks b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* logo plate: a white disc so emblems drawn in black read on either theme */
.lp-plate {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden;
}
.lp-plate img { width: 84%; height: 84%; object-fit: contain; }
.lp-plate--sm { width: 40px; height: 40px; }
.lp-plate--lg { width: 72px; height: 72px; }

/* ── sections ───────────────────────────────────────────────────────────── */
.lp-sec { padding: var(--sec) 0; }
.lp-sec--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.lp-sec__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }

/* how it works */
.lp-steps { display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.lp-step { display: flex; flex-direction: column; gap: 12px; }
.lp-step > p { color: var(--ink-2); font-size: 16px; }
.lp-step__art {
  height: 196px; box-sizing: border-box; margin-bottom: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.lp-step__n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 7px;
  background: var(--green-soft); color: var(--green-ink); font-size: 13px; font-weight: 600; vertical-align: 1px;
}
.lp-files { display: grid; gap: 6px; }
.lp-files li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; min-width: 0; }
.lp-files .ms { font-size: 17px; color: var(--ink-3); }
.lp-files .lp-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.lp-files em { font-style: normal; font-size: 11.5px; color: var(--green-ink); flex: none; }
.lp-files__busy { color: var(--ink-3) !important; }
.lp-code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre; overflow: hidden;
  padding: 14px; border-radius: 10px; background: #0e1a15; color: #d4e2db;
}
[data-theme="dark"] .lp-code { background: #070c0a; border: 1px solid var(--line); }
.lp-code__c { color: #7c9188; }
.lp-code__t { color: #7fd8b0; }
.lp-code__a { color: #f2c46d; }
.lp-code__s { color: #b6d4ff; }
.lp-step__or { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.lp-step__or .ms { font-size: 17px; }
.lp-step__cap { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; font-weight: 500; }
.lp-convs { display: grid; gap: 6px; }
.lp-convs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.lp-convs li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-convs em { font-style: normal; font-size: 12px; color: var(--ink-3); flex: none; }
.lp-convs .ms { font-size: 17px; flex: none; }
.lp-up { color: var(--green-hi); }
.lp-gap { color: var(--ink-3); }
.lp-asks { display: grid; gap: 6px; }
.lp-asks li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--ink); }
.lp-asks b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* clients */
.lp-groupnav { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 40px; }
.lp-groupnav a {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); transition: border-color 0.2s, color 0.2s;
}
.lp-groupnav a:hover { color: var(--ink); border-color: var(--line-2); }
.lp-groupnav b { font-weight: 600; font-size: 12.5px; color: var(--green-ink); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.lp-groups { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.lp-group { display: grid; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 90px; }
@media (min-width: 900px) { .lp-group { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 40px 0; } }
.lp-group__head { display: flex; gap: 16px; align-items: flex-start; }
@media (min-width: 900px) { .lp-group__head { flex-direction: column; } }
.lp-group__count { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.lp-group__note { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); max-width: 30ch; }

.lp-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; align-content: start; }
@media (min-width: 640px) { .lp-names { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-names { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-names a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px;
  border-bottom: 1px solid var(--line); font-size: 15px; transition: color 0.2s, border-color 0.2s;
}
.lp-names .ms { font-size: 15px; color: var(--ink-3); opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s, transform 0.3s var(--ease); }
.lp-names a:hover { color: var(--green-ink); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.lp-names a:hover .ms, .lp-names a:focus-visible .ms { opacity: 1; transform: none; color: var(--green-ink); }

.lp-logos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
@media (max-width: 559px) {
  .lp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-logo { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .lp-logo .lp-plate { width: 44px; height: 44px; }
  .lp-logo__txt span { font-size: 12.5px; }
}
@media (min-width: 560px) { .lp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-logo {
  display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.lp-logo:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.lp-logo__txt { display: grid; gap: 1px; min-width: 0; }
.lp-logo__txt b { font-weight: 600; font-size: 15px; }
.lp-logo__txt span { font-size: 13px; line-height: 1.4; color: var(--ink-3); text-wrap: pretty; }

/* feature rows */
.lp-rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.lp-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .lp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
  .lp-row--flip .lp-row__txt { order: 2; }
}
.lp-row__txt { display: grid; gap: 16px; max-width: 520px; }
.lp-row__txt > p { color: var(--ink-2); }
.lp-ticks { display: grid; gap: 8px; margin-top: 4px; }
.lp-ticks li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.lp-ticks .ms { font-size: 18px; color: var(--green-hi); }
.lp-row__art { display: grid; place-items: center; min-height: 280px; }
.lp-panel { width: 100%; max-width: 420px; box-sizing: border-box; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.lp-panel__t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.lp-panel__t .ms { font-size: 20px; color: var(--green-hi); }
.lp-panel__k { font-size: 12px; color: var(--ink-3); }
.lp-panel__v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lp-panel__foot { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); text-align: right; }

.lp-src { width: 100%; max-width: 440px; display: grid; justify-items: start; }
.lp-src .lp-msg { max-width: 84%; box-shadow: var(--shadow-1); }
.lp-src .lp-cite { box-shadow: 0 0 0 4px var(--green-soft); border-color: var(--green); }
.lp-src__line { width: 1px; height: 36px; margin-left: 40px; background: repeating-linear-gradient(to bottom, var(--green) 0 4px, transparent 4px 8px); }
.lp-src__doc { justify-self: end; max-width: 380px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.lp-src__doc p + p { margin-top: 8px; }
.lp-src__bar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lp-src__bar .ms { font-size: 17px; }
.lp-src__bar span:last-child { margin-left: auto; }
.lp-src__h { color: var(--ink); font-weight: 600; font-size: 14px; }
.lp-src mark { color: var(--ink); background: var(--saffron-soft); border-radius: 3px; box-shadow: -3px 0 0 var(--saffron-soft), 3px 0 0 var(--saffron-soft); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.lp-a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lp-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); gap: 2px; }
.lp-seg i { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 7px; color: var(--ink-3); }
.lp-seg i.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }
.lp-sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); flex: none; }
.lp-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.lp-sw--on { background: var(--green); }
.lp-sw--on::after { left: 19px; }

.lp-insight__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin: 18px 0; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.lp-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--green) 22%, transparent); }
.lp-bars i:last-child { background: var(--green); }
.lp-insight__cap { margin-bottom: 8px; }
.lp-asks--tight li { font-size: 12.5px; padding: 7px 10px; }

.lp-rule__line { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-rule__k { font-size: 12px; color: var(--ink-3); }
.lp-rule__v { font-size: 14.5px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.lp-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chipset i { font-style: normal; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.lp-rule__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--green-ink); }
.lp-rule__foot .ms { font-size: 18px; }

/* trust band */
.lp-band { padding: var(--sec) 0; background: var(--band); color: var(--band-ink); }
.lp-band .lp-lead { color: var(--band-ink-2); }
.lp-band ::selection { background: rgba(44, 196, 138, 0.4); color: #fff; }
.lp-trust { display: grid; margin: 0; border-top: 1px solid var(--band-line); }
@media (min-width: 900px) { .lp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; } }
.lp-trust > div { padding: 24px 0; border-bottom: 1px solid var(--band-line); display: grid; gap: 6px; align-content: start; }
.lp-trust dt { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lp-trust dd { margin: 0; font-size: 15.5px; color: var(--band-ink-2); max-width: 46ch; }
.lp-also { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 900px) { .lp-also { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.lp-also__t { font-size: 15px; font-weight: 600; padding-top: 6px; }
.lp-also ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-also li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--band-line); background: var(--band-2); font-size: 14px; }
.lp-also .ms { font-size: 18px; color: #5fe0aa; }

/* pricing */
.lp-plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 640px) { .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-plan { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.lp-plan--on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow-2); }
.lp-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.lp-plan__name { font-size: 16px; font-weight: 600; }
.lp-plan__flag { font-size: 12px; font-weight: 600; color: var(--green-ink); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; }
.lp-plan__fig { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.lp-plan__cur { font-size: 16px; color: var(--ink-3); font-weight: 500; }
.lp-plan__amt { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-plan__cred { font-size: 14px; line-height: 1.5; color: var(--ink-3); min-height: 3em; }
.lp-plan__cred b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-plan .lp-btn { margin: 14px 0 18px; }
.lp-plan__list { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-plan__list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lp-plan__list .ms { font-size: 17px; color: var(--green-hi); margin-top: 1px; }
.lp-plan__list b { color: var(--ink); font-weight: 600; }

.lp-compare { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.lp-compare summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; border-radius: var(--r-lg);
}
.lp-compare summary::-webkit-details-marker { display: none; }
.lp-compare summary .ms { transition: transform 0.3s var(--ease); color: var(--ink-3); }
.lp-compare[open] summary .ms { transform: rotate(180deg); }
.lp-compare__scroll { overflow-x: auto; padding: 0 12px 12px; }
.lp-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-compare th, .lp-compare td { padding: 11px 12px; text-align: left; border-top: 1px solid var(--line); }
.lp-compare thead th { border-top: 0; font-weight: 600; color: var(--ink); }
.lp-compare tbody th { font-weight: 400; color: var(--ink-2); }
.lp-compare td .ms { font-size: 18px; color: var(--green-hi); }
.lp-compare td.off { color: var(--ink-3); }

/* faq */
.lp-faq { display: grid; gap: 8px; }
@media (min-width: 960px) { .lp-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } .lp-faq__head { position: sticky; top: 100px; } }
.lp-faq__list { border-top: 1px solid var(--line-2); }
.lp-faq__list details { border-bottom: 1px solid var(--line-2); }
.lp-faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 500; letter-spacing: -0.01em;
}
.lp-faq__list summary::-webkit-details-marker { display: none; }
.lp-faq__list summary .ms { flex: none; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.2s; }
.lp-faq__list summary:hover .ms { color: var(--ink); }
.lp-faq__list details[open] summary .ms { transform: rotate(45deg); color: var(--green-ink); }
.lp-faq__list details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 64ch; }
.lp-faq__list details[open] p { animation: lp-fade 0.35s var(--ease); }

/* close */
.lp-close { padding: var(--sec) 0; }
.lp-close__card {
  display: grid; justify-items: center; text-align: center; gap: 16px;
  padding: clamp(48px, 7vw, 88px) var(--gut); border-radius: 28px;
  background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
}
.lp-close__card .lp-lead { margin: 0 auto; }
.lp-close__card .lp-hero__cta { justify-content: center; margin-top: 12px; }
.lp-close__fine { font-size: 14px; color: var(--ink-3); }

/* footer */
.lp-foot { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--bg-tint); }
.lp-foot__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .lp-foot__grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } }
.lp-foot__brand p { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); max-width: 36ch; }
.lp-foot__col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.lp-foot__col p { font-weight: 600; margin-bottom: 4px; }
.lp-foot__col a { color: var(--ink-2); width: fit-content; }
.lp-foot__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.lp-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ── motion ─────────────────────────────────────────────────────────────── */
@keyframes lp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}

/* ============================================================================
   Auth pages (login, signup, verify-email, verify/[token])
   Same tokens as the landing page: wrap the page in `.lp.lp-auth`. Form on the
   left, a deep-green panel on the right carrying the cited-answer motif.
   ========================================================================= */
.lp { --danger: #b42318; --danger-soft: #fdecea; }
[data-theme="dark"] .lp { --danger: #ff8f80; --danger-soft: rgba(255, 143, 128, 0.12); }
.lp-theme--on { display: inline-flex; }

.lp-auth { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .lp-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.lp-auth__main { display: flex; flex-direction: column; padding: 20px var(--gut) 24px; min-width: 0; }
.lp-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; }
.lp-auth__body { flex: 1; display: grid; place-items: center; padding: clamp(32px, 6vh, 64px) 0; }
.lp-auth__card { width: 100%; max-width: 400px; }
.lp-auth__card--center { text-align: center; }
.lp-auth__h { font-size: clamp(1.75rem, 1.45rem + 1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.lp-auth__sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.lp-auth__sub b { color: var(--ink); font-weight: 600; word-break: break-all; }
.lp-auth__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); font-size: 26px !important; }
.lp-auth__icon--muted { background: var(--surface-2); color: var(--ink-3); }
.lp-auth__icon--bad { background: var(--danger-soft); color: var(--danger); }
.lp-auth__cta { margin-top: 24px; }
.lp-auth__alt { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.lp-auth__alt a, .lp-link {
  color: var(--green-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent); transition: text-decoration-color 0.2s;
}
.lp-auth__alt a:hover, .lp-link:hover { text-decoration-color: currentColor; }
.lp-link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lp-link:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.lp-auth__foot { font-size: 13px; color: var(--ink-3); }

.lp-form { display: grid; gap: 16px; margin-top: 28px; }
.lp-form .lp-btn { margin-top: 6px; }
.lp-btn:disabled { opacity: 0.6; cursor: progress; }
.lp-field { display: grid; gap: 7px; }
.lp-field__l { font-size: 14px; font-weight: 500; color: var(--ink); }
.lp-input {
  width: 100%; height: 46px; box-sizing: border-box; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-input::placeholder { color: var(--ink-3); }
.lp-input:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.lp-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.lp-field__err { font-size: 13px; color: var(--danger); }
.lp-field:has(.lp-field__err) .lp-input { border-color: var(--danger); }

.lp-alert { margin-top: 20px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; }
.lp-alert--bad { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.lp-alert--ok { background: var(--green-soft); color: var(--green-ink); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }

.lp-wait { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.lp-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--green); animation: lp-spin 0.8s linear infinite; }
.lp-spin--lg { display: inline-block; width: 28px; height: 28px; border-width: 3px; margin-bottom: 18px; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp .lp-spin { animation: lp-spin 2.4s linear infinite !important; } }
.lp-auth__resend { margin-top: 20px; font-size: 14.5px; color: var(--ink-3); }
#resendMsg { margin-left: 6px; }

.lp-auth__aside { display: none; }
@media (min-width: 960px) {
  .lp-auth__aside {
    display: grid; place-items: center; padding: 48px clamp(32px, 5vw, 72px);
    background: var(--band); color: var(--band-ink);
  }
}
.lp-auth__aside-in { width: 100%; max-width: 460px; }
.lp-auth__kick { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.375rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; margin-bottom: 36px; }
.lp-auth__aside .lp-src { max-width: none; }
.lp-auth__note { margin-top: 18px; font-size: 13px; color: var(--band-ink-2); }
.lp-auth__points { display: grid; gap: 0; border-top: 1px solid var(--band-line); }
.lp-auth__points li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--band-line); font-size: 16px; color: var(--band-ink); }
.lp-auth__points .ms { color: #5fe0aa; font-size: 20px; margin-top: 2px; }
