/*
 * Static public pages (/privacy, /terms, /brand). These are served as plain
 * HTML outside Angular, so they cannot import the SCSS tokens. Values mirror
 * src/assets/styles/_marketing-tokens.scss and the document layout in
 * src/app/public/sms-consent/sms-consent.component.scss — change together.
 */
:root {
  --ink-950: #050507;
  --ink-900: #0c0c0f;
  --ink-200: #d6d6dc;
  --ink-300: #b1b1ba;
  --ink-400: #82828d;
  --white: #ffffff;
  --accent-500: #aa00aa;
  --accent-lo: #7a007a;
  --accent-300: #cc6dcc;
  --accent-200: #e0a1e0;
  --accent-border: rgba(170, 0, 170, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --divider-faint: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--white);
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-500);
  color: var(--white);
}

.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 60;
}
.skip-link:focus {
  top: 12px;
}

/* Header — same glass bar as the Angular public header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: clamp(64px, 9vw, 72px);
  background: rgba(5, 5, 7, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.brand {
  display: block;
  flex-shrink: 0;
  width: clamp(100px, 26vw, 124px);
  aspect-ratio: 874.45 / 332.1;
  background: var(--white);
  -webkit-mask: url('/assets/image/logos/trimline-logo.svg') center / contain
    no-repeat;
  mask: url('/assets/image/logos/trimline-logo.svg') center / contain no-repeat;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
}
.login,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 220ms var(--ease),
    background-color 220ms var(--ease);
}
.login {
  padding: 0 clamp(12px, 3vw, 16px);
  color: var(--ink-300);
  font-weight: 500;
}
.login:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.button {
  padding: 0 clamp(16px, 4vw, 20px);
  background: var(--accent-500);
  color: var(--white);
  font-weight: 600;
}
.button:hover {
  background: var(--accent-lo);
}

/* Document */
.doc {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.doc-header {
  margin-bottom: clamp(36px, 6vw, 56px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  margin: 0;
  color: var(--accent-300);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.doc h1 {
  margin: 20px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.doc-meta {
  margin: 20px 0 0;
  color: var(--ink-400);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.doc-body h2 {
  margin: clamp(32px, 5vw, 44px) 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.doc-body p,
.doc-body li {
  color: var(--ink-300);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}
.doc-body p {
  margin: 0;
}
.doc-body p + p {
  margin-top: 16px;
}
.doc-body ul + p {
  margin-top: 24px;
}
.doc-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-body li {
  position: relative;
  padding-left: 22px;
}
.doc-body li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-300);
}
.doc-body a {
  color: var(--accent-300);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 4px;
  transition: color 120ms var(--ease);
}
.doc-body a:hover {
  color: var(--accent-200);
}

/* Footer — same row as the Angular public footer. */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 0 clamp(32px, 5vw, 40px);
  border-top: 1px solid var(--divider-faint);
  font-size: 13px;
}
.site-footer p {
  margin: 0;
  color: var(--ink-400);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer a {
  color: var(--ink-300);
  text-decoration: none;
  transition: color 120ms var(--ease);
}
.site-footer a:hover {
  color: var(--white);
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .login,
  .button,
  .doc-body a,
  .site-footer a {
    transition: none;
  }
}
