/* Trusty Marketing Site — page-level styles on top of tokens */

*, *::before, *::after { box-sizing: border-box; }

html, body, #root { min-height: 100%; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Density modifiers (applied via [data-density]) */
:root { --density-scale: 1; }
[data-density="compact"] { --density-scale: 0.88; --section-pad: 72px; --gap-scale: 0.85; }
[data-density="default"] { --density-scale: 1;    --section-pad: 100px; --gap-scale: 1; }
[data-density="air"]     { --density-scale: 1.12; --section-pad: 136px; --gap-scale: 1.18; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.t-display { font-family: var(--font-display); letter-spacing: -0.028em; line-height: 1.02; font-weight: 700; text-wrap: balance; }
.t-h1 { font-family: var(--font-display); font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.t-h2 { font-family: var(--font-display); font-size: 44px; line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.t-h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.14; letter-spacing: -0.015em; font-weight: 700; }
.t-h4 { font-family: var(--font-display); font-size: 21px; line-height: 1.22; letter-spacing: -0.01em; font-weight: 700; }
.t-lead { font-size: 19px; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.t-body { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.t-sm { font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.t-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--blue-500); }
.t-num { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-pad, 100px) 40px; }

/* PLACEHOLDER slot — big, obvious, impossible to miss */
.ph {
  position: relative;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(232,56,210,0.08), rgba(232,56,210,0.08) 10px, rgba(232,56,210,0.14) 10px, rgba(232,56,210,0.14) 20px);
  border: 2px dashed var(--magenta-500);
  border-radius: 20px;
  padding: 28px;
  color: var(--magenta-700);
  min-height: 160px;
}
[data-theme='dark'] .ph {
  background: repeating-linear-gradient(135deg, rgba(232,56,210,0.14), rgba(232,56,210,0.14) 10px, rgba(232,56,210,0.22) 10px, rgba(232,56,210,0.22) 20px);
  color: #FFC8EE;
}
.ph .ph-tag { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; background: var(--magenta-500); color: #fff; padding: 3px 8px; border-radius: 6px; }
.ph .ph-title { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.ph .ph-note { margin-top: 6px; font-size: 13px; color: inherit; opacity: 0.85; max-width: 520px; line-height: 1.45; }

/* TODO marker — a small pink highlight to flag copy that needs real replacement */
.todo {
  background: rgba(232,56,210,0.14);
  color: var(--magenta-700);
  padding: 0 4px; border-radius: 3px;
  font-weight: 600;
  border-bottom: 1px dashed var(--magenta-500);
}
[data-theme='dark'] .todo { color: #FFC8EE; background: rgba(232,56,210,0.22); }

/* Links in body */
.a-link { color: var(--blue-500); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.a-link:hover { text-decoration: underline; }

/* Hide scrollbar on mega-menu panels */
.mega-panel { animation: megaIn 0.18s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Focus ring */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

/* Smooth theme transitions */
html { transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }

/* Tweaks panel */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--surface-0); color: var(--fg-1);
  border: 1px solid var(--border-subtle); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 16px; width: 280px;
  font-family: var(--font-body); font-size: 13px;
}
.tweaks-panel h5 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-3); margin: 0 0 10px; font-weight: 700; }
.tweaks-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.tweaks-row:first-of-type { border-top: none; }
.tweaks-row label { color: var(--fg-2); font-weight: 500; }
.seg { display: inline-flex; background: var(--surface-1); border-radius: 999px; padding: 2px; }
.seg button { background: transparent; border: 0; padding: 5px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; color: var(--fg-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-0); color: var(--fg-1); box-shadow: var(--shadow-xs); }
[data-theme='dark'] .seg button[aria-pressed="true"] { background: var(--blue-500); color: #fff; }

/* Utility */
.grid { display: grid; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* Scrolling to top on route change */
html { scroll-behavior: smooth; }
