/*
 * structure.fi's token layer (`--lp-*`). It lives here so the marketing site
 * and the surfaces a person sees before the product, such as the desktop
 * app's sign-in screen, share one definition. The values are the site's as
 * it renders them: change one here only together with the site. Never use
 * these inside the product. See docs/landing-tokens.md.
 *
 * The marketing layer is monotone: neutral surfaces and ink, no accent hue
 * except the error red. Light values sit on the product's paper neutrals,
 * dark values on its near-black.
 */
:root,
[data-st-theme="light"] {
  --lp-canvas: #fbfbf9;
  --lp-canvas-raised: #fefefc;
  --lp-well: #f4f3ef;
  --lp-ink: #121417;
  --lp-ink-2: #4a4c50;
  --lp-ink-3: #7c7e81;
  --lp-ink-4: #a7a8a8;
  --lp-rule: #e6e5e1;
  --lp-rule-2: #d4d3cf;
  --lp-rule-strong: #9d9e9c;
  --lp-hatch: rgba(18, 20, 23, 0.11);
  --lp-dot: rgba(18, 20, 23, 0.16);
  --lp-inverse-canvas: #0b0c0e;
  --lp-inverse-ink: #eceef0;
  /* Secondary copy (intro support lines): 60% ink that keeps AA on the canvas. */
  --lp-muted: #686a6e;
  /* Form errors: the product's loss red, the only hue on marketing surfaces. */
  --lp-error: #a52836;
  /* Declared in each theme scope: var() resolves where it is declared. */
  --lp-primary-hover: color-mix(in oklab, var(--lp-ink) 86%, var(--lp-canvas));
  --lp-shot-shadow:
    0 1px 0 rgba(18, 20, 23, 0.04),
    0 24px 48px -24px rgba(18, 20, 23, 0.22),
    0 64px 96px -48px rgba(18, 20, 23, 0.18);
  --lp-overlay-shadow:
    0 1px 0 rgba(18, 20, 23, 0.06),
    0 18px 40px -12px rgba(18, 20, 23, 0.28);
}

[data-st-theme="dark"] {
  --lp-canvas: #08090a;
  --lp-canvas-raised: #0d0e10;
  --lp-well: #111214;
  --lp-ink: #eceef0;
  --lp-ink-2: #a3a6aa;
  --lp-ink-3: #6f7276;
  --lp-ink-4: #4a4c50;
  --lp-rule: #1a1b1e;
  --lp-rule-2: #25272a;
  --lp-rule-strong: #45474b;
  --lp-hatch: rgba(236, 238, 240, 0.07);
  --lp-dot: rgba(236, 238, 240, 0.12);
  --lp-inverse-canvas: #fbfbf9;
  --lp-inverse-ink: #121417;
  --lp-muted: #8d9094;
  --lp-error: #e0675e;
  --lp-primary-hover: color-mix(in oklab, var(--lp-ink) 86%, var(--lp-canvas));
  --lp-shot-shadow:
    0 0 0 1px rgba(236, 238, 240, 0.04),
    0 32px 64px -32px rgba(0, 0, 0, 0.9),
    0 80px 120px -60px rgba(0, 0, 0, 0.8);
  --lp-overlay-shadow:
    0 0 0 1px rgba(236, 238, 240, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.85);
}

:root {
  --lp-font-sans: "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --lp-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lp-font-display: var(--lp-font-sans);
  --lp-container: 1296px;
  --lp-gutter: clamp(20px, 4vw, 56px);
  --lp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* The site's pages render 44px controls (its page layout raises the 40px base). */
  --lp-control-height: 44px;
  --lp-control-radius: 0px;

  /* Text styles, named by role. The site sets these on its classes; the
     source class is noted beside each. */
  --lp-type-title: 400 28px/1.15 var(--lp-font-sans); /* confirmation title, at narrow widths */
  --lp-tracking-title: -0.02em;
  --lp-type-support: 400 17px/1.45 var(--lp-font-sans); /* intro support line, at narrow widths */
  --lp-type-label: 500 14px/20px var(--lp-font-sans); /* form field label */
  --lp-type-input: 400 15px/1.4 var(--lp-font-sans); /* form input */
  --lp-type-button: 500 14px/1 var(--lp-font-sans); /* button */
  --lp-tracking-button: -0.005em;
  --lp-type-small: 400 13px/18px var(--lp-font-sans); /* field error, form note */
  --lp-type-alert: 400 14px/20px var(--lp-font-sans); /* form alert */
  --lp-type-hint: 400 12px/20px var(--lp-font-mono); /* "Optional" beside a label */
  --lp-type-eyebrow: 500 11px/16px var(--lp-font-mono); /* uppercase eyebrow */
  --lp-tracking-eyebrow: 0.12em;
  --lp-type-wordmark: 560 17px/1 var(--lp-font-sans); /* wordmark name */
  --lp-tracking-wordmark: -0.025em;
  --lp-wordmark-mark: 18px;
  --lp-wordmark-gap: 9px;
  /* The one technical word set in mono inside sans copy, as in the hero headline. */
  --lp-type-glyph: 290 0.86em/1 var(--lp-font-mono);

  /* Spacing, from the site's forms. */
  --lp-space-field: 8px; /* label to input to message */
  --lp-space-row: 18px; /* between form rows */
  --lp-space-intro: 20px; /* title to support line */
  --lp-space-form: 36px; /* between form groups */
  --lp-inset-input-x: 12px;
  --lp-inset-button-x: 18px;
  --lp-inset-alert-y: 12px;
  --lp-inset-alert-x: 14px;
  --lp-link-underline-offset: 2px;
  --lp-arrow-shift: 3px; /* a button's trailing arrow on hover */

  /* States. */
  --lp-disabled-opacity: 0.6; /* a submit button while it works */
}
