/* AnyPlus storefront — tokens, reset. Scoped to [data-storefront] so it only applies
   to storefront routes and doesn't leak into the console dashboard. */

html[data-storefront] {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --panel-2: #fbfbfc;
  --well: #f2f2f4;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #5f5f68;
  --faint: #6c6c75;
  --hair: #e7e7ea;
  --hair-2: #d8d8de;
  --brand: #ff751f;
  --brand-ink: #b4470a;
  --brand-soft: #fff1e6;
  --brand-on: #1b1007;
  --ok: #15803d;
  --ok-soft: #e9f7ee;
  --warn: #b45309;
  --warn-soft: #fff6e6;
  --stop: #b91c1c;
  --stop-soft: #fdecec;

  --e1: 0 1px 2px rgba(16, 16, 22, 0.04), 0 0 0 1px rgba(16, 16, 22, 0.04);
  --e2:
    0 1px 2px rgba(16, 16, 22, 0.04), 0 4px 12px rgba(16, 16, 22, 0.05),
    0 0 0 1px rgba(16, 16, 22, 0.05);
  --e3:
    0 2px 6px rgba(16, 16, 22, 0.05), 0 12px 28px rgba(16, 16, 22, 0.07),
    0 0 0 1px rgba(16, 16, 22, 0.05);
  --e4: 0 8px 20px rgba(16, 16, 22, 0.1), 0 32px 64px rgba(16, 16, 22, 0.14);
  --in1:
    inset 0 1px 2px rgba(16, 16, 22, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7);

  --r: 16px;
  --r-sm: 11px;
  --r-xs: 8px;
  --r-pill: 999px;

  /* type scale */
  --t-xs: 11px;
  --t-sm: 12.5px;
  --t-md: 14px;
  --t-lg: 16px;
  --t-xl: 20px;
  --t-2xl: 28px;
  --t-3xl: 36px;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --header-h: 64px;
  color-scheme: light;
}

html[data-storefront][data-mode="dark"] {
  --ok: #4ade80;
  --warn: #fbbf24;
  --stop: #f87171;
  --bg: #0a0a0c;
  --panel: #151517;
  --panel-2: #1a1a1d;
  --well: #101012;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #8e8e98;
  --hair: #26262b;
  --hair-2: #34343b;
  --brand-soft: #241610;
  --brand-ink: #ffa268;
  --brand-on: #1b1007;
  --ok-soft: #0e1a13;
  --warn-soft: #1c1710;
  --stop-soft: #1e1113;
  --e1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --e2:
    0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  --e3:
    0 2px 8px rgba(0, 0, 0, 0.5), 0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  --e4: 0 10px 26px rgba(0, 0, 0, 0.6), 0 36px 72px rgba(0, 0, 0, 0.65);
  --in1:
    inset 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

[data-storefront] * {
  box-sizing: border-box;
}

[data-storefront] html,
[data-storefront] body {
  margin: 0;
  padding: 0;
}

[data-storefront] body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

[data-storefront] .wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

[data-storefront] .num {
  font-variant-numeric: tabular-nums;
}

[data-storefront] .mono {
  font-family: var(--mono);
}

[data-storefront] a {
  color: inherit;
}

[data-storefront] button {
  font: inherit;
  color: inherit;
}

[data-storefront] :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

[data-storefront] a,
[data-storefront] button,
[data-storefront] input,
[data-storefront] select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 117, 31, 0.16);
}

[data-storefront] [id] {
  scroll-margin-top: 104px;
}

/* ---------- type ---------- */

[data-storefront] h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 10px;
  text-wrap: balance;
}

[data-storefront] h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 640;
  margin: 0;
}

[data-storefront] h3 {
  font-size: 14.5px;
  font-weight: 620;
  margin: 0;
  letter-spacing: -0.008em;
}

[data-storefront] .lede {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

[data-storefront] .meta {
  font-size: 12.5px;
  color: var(--faint);
}

[data-storefront] .small {
  font-size: 13px;
  color: var(--muted);
}

[data-storefront] .sec {
  margin: 44px 0 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

[data-storefront] .sec .n {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

[data-storefront] .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 10px;
}