/* ===========================================================================
   TasteRay ForMe — document pages (install, privacy)
   Shared so they cannot drift from each other or from the landing page.

   Same canon as index.html: theatre-dark #0a0a0b, Epilogue over Hanken
   Grotesk, one 135deg blue-to-pink gradient kept to edges, glows and measures.
   Filled CTAs are solid #2c5ce0 — the gradient never sits under a label.
   =========================================================================== */

:root {
  --bg: #0a0a0b;
  --card: #121214;
  --muted: #1a1a1d;
  --wash: linear-gradient(to bottom, #121214, #0a0a0b);

  --ink: #fafaf9;
  --ink-muted: #a8a8a8;
  --ink-dim: #71717a;

  --hair: rgba(255, 255, 255, 0.06);
  --hair-strong: rgba(255, 255, 255, 0.10);

  --pink: #ffa7d0;
  --blue: #3970ff;
  --blue-cta: #2c5ce0;
  --grad: linear-gradient(135deg, #3970ff 0%, #ffa7d0 100%);
  --glow: 0 8px 32px rgba(57, 112, 255, 0.25);

  --font-display: 'Epilogue', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-muted);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

::selection { background: rgba(255, 167, 208, 0.3); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 167, 208, 0.15);
  border-radius: 4px;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------- header ---- */
.doc-header { padding: 20px 0; border-bottom: 1px solid var(--hair); }

.doc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.doc-header__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.doc-header__logo img { width: 136px; height: 33px; }

/* Same wordmark-plus-product lockup as the landing header. */
.doc-header__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  padding: 4px 6px;
}

.doc-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.doc-header__back:hover { color: var(--ink); }

/* --------------------------------------------------------- typography ---- */
main { padding: 56px 0 96px; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 12px;
}

.subtitle, .updated {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 48px;
  text-wrap: pretty;
}

.updated { font-size: 14px; }

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 12px;
}

h2:first-of-type { margin-top: 0; }

p, li { font-size: 16px; color: var(--ink-muted); margin-bottom: 12px; }
ul, ol { padding-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

a { color: var(--pink); transition: color 0.2s; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 500; }

/* Mono is for code, IDs and tabular numerals — never costume. */
code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--muted);
  border: 1px solid var(--hair);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

/* ---------------------------------------------------------- code block --- */
.code-block {
  background: var(--wash);
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 24px;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.code-block-copy {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.code-block-copy:hover { color: var(--ink); border-color: var(--ink-muted); }

.code-block pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-muted);
  tab-size: 2;
}

/* Tinted from the palette only: comments dim, tags and attribute names muted,
   string values in ink, the key that activates the widget in the accent. */
.code-block pre .comment { color: var(--ink-dim); }
.code-block pre .tag { color: var(--ink-muted); }
.code-block pre .attr { color: var(--ink-muted); }
.code-block pre .str { color: var(--ink); }
.code-block pre .kw { color: var(--pink); }

/* --------------------------------------------------------- step number --- */
/* A gradient ring, not a gradient fill: white on the gradient's pink end is
   1.80:1, so the beam stays on the edge and the label sits on the card. */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 1px;
  background: var(--grad);
  margin-right: 10px;
  vertical-align: middle;
}

.step-num > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

/* -------------------------------------------------------------- table ---- */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }

th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair-strong); }

th {
  font-family: var(--font-display);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom-color: var(--hair-strong);
}

td { color: var(--ink-muted); }
/* An attribute name is one token — let the table scroll rather than break it. */
td code { font-size: 12.5px; white-space: nowrap; }
th:first-child, td:first-child { white-space: nowrap; }

.table-scroll { overflow-x: auto; margin: 16px 0 24px; }
.table-scroll table { margin: 0; }

/* ---------------------------------------------------------------- CTA ---- */
.try-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 32px;
  padding: 15px 26px;
  border-radius: 12px;
  background: var(--blue-cta);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), filter 0.25s var(--ease-out-expo);
}

.try-link:hover {
  color: var(--ink);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(57, 112, 255, 0.32);
}

/* ------------------------------------------------------------- footer ---- */
.doc-footer { border-top: 1px solid var(--hair-strong); padding: 32px 0 48px; }

.doc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-footer p { margin: 0; font-size: 13px; color: var(--ink-muted); }

.doc-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.doc-footer nav a { font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.doc-footer nav a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .try-link:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
