/**
 * tinkerassist.org
 *
 * OWNER: integration/tinker-mvp
 *
 * One stylesheet, no framework, no build step, no web fonts. The type stack is
 * the system stack — matching the app's fallback — so the first paint needs no
 * network request beyond this file, which is most of what "fast" means for a
 * marketing site measured on a phone on cellular.
 *
 * Tokens are copied from client/src/styles/tokens.css rather than imported:
 * this site does not build against the app, and a marketing page must not be
 * able to break by way of a change to a product token. When the brand changes,
 * both move together.
 */

:root {
  color-scheme: light dark;

  /* --- Brand ---------------------------------------------------------- */
  --purple-100: #ede9fe;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-950: #2e1065;

  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-400: #a1a1aa;
  --neutral-600: #52525b;
  --neutral-800: #27272a;
  --neutral-900: #18181b;
  --neutral-950: #0b0b0e;

  /* --- Semantic (light) ------------------------------------------------ */
  --bg: var(--neutral-0);
  --bg-alt: var(--neutral-50);
  --bg-elevated: var(--neutral-0);
  --text: var(--neutral-900);
  --text-muted: var(--neutral-600);
  --border: var(--neutral-200);
  --primary: var(--purple-600);
  --primary-hover: var(--purple-700);
  --primary-soft: var(--purple-100);
  --on-primary: var(--neutral-0);
  --accent: var(--orange-600);
  --accent-soft: var(--orange-100);

  --font-sans:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.06);
  --shadow-lg: 0 12px 32px rgb(46 16 101 / 0.12);
}

/*
 * Dark mode follows the visitor's system setting. The site has no theme toggle
 * on purpose — a marketing page with a preference control is a page arguing
 * with its reader about something they already told their operating system.
 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--neutral-950);
    --bg-alt: var(--neutral-900);
    --bg-elevated: var(--neutral-900);
    --text: var(--neutral-50);
    --text-muted: var(--neutral-400);
    --border: var(--neutral-800);
    --primary: var(--purple-400);
    --primary-hover: var(--purple-500);
    --primary-soft: rgb(124 58 237 / 0.2);
    --on-primary: var(--neutral-950);
    --accent: var(--orange-400);
    --accent-soft: rgb(249 115 22 / 0.18);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.5);
  }
}

/* --- Reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 750;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand__name {
  font-size: 1.05rem;
}

.site-nav {
  display: none;
  gap: 1.25rem;
  margin-inline: auto;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--primary);
}

.site-header__actions {
  display: flex;
  gap: 0.5rem;
  margin-inline-start: auto;
}

/*
 * The primary nav collapses to a scrollable row below 900px rather than into a
 * hamburger. Six links fit, they stay visible to a crawler and to a reader, and
 * there is no JavaScript involved in reaching any page.
 */
@media (max-width: 899px) {
  .site-header__inner {
    padding-block: 0.5rem;
  }

  .site-nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    padding-block: 0.25rem 0.5rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 1rem + 6vw, 5rem);
  /* Flat solid tint, and a solid brand rule under it. The brand rule is
     no gradients anywhere on this site, so the separation from the next band
     comes from a border rather than a fade. */
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero__copy .lede {
  max-width: 52ch;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}

.lede {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}

/* --- Bands --------------------------------------------------------------- */

.band {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-top: 1px solid var(--border);
}

.band--alt {
  background: var(--bg-alt);
}

.band--cta {
  /* Flat solid fill, with an orange top rule as the single accent. */
  background: var(--primary-soft);
  border-top: 3px solid var(--accent);
}

.cta-block {
  text-align: center;
}

.cta-block .lede {
  margin-inline: auto;
}

.cta-block .cta-row {
  justify-content: center;
}

/* --- Cards --------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
  font-weight: 750;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Definitions --------------------------------------------------------- */

.definitions {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .definitions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.definitions dt {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.definitions dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem 2.5rem;
  }
}

.faq__item h3 {
  margin-bottom: 0.3em;
}

.faq__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Answer demo --------------------------------------------------------- */

.demo {
  margin: 0;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.93rem;
}

.demo__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.demo__question {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.demo__question p {
  margin: 0;
  font-weight: 600;
}

.demo__direct {
  font-weight: 600;
}

.demo__steps {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.demo__steps li {
  margin-bottom: 0.35em;
}

.demo__safety {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.88rem;
}

.demo__cite {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--primary);
}

.demo__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Breadcrumbs --------------------------------------------------------- */

.crumbs {
  border-bottom: 1px solid var(--border);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  max-width: var(--wrap);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--border);
}

/* --- Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 3rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer__brand {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.site-footer__tagline {
  color: var(--text-muted);
  max-width: 40ch;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__nav h2 {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}

.site-footer__nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer__legal p {
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Legal pages                                                                */
/* -------------------------------------------------------------------------- */
/*
 * The Privacy Policy and the Terms of Service.
 *
 * A narrower measure than the marketing pages, because these are read as prose
 * rather than scanned, and long lines are what make a policy unreadable.
 *
 * Flat fills only — no gradients anywhere in this block, matching the rest of
 * the brand rules for these documents.
 */

.wrap--narrow {
  max-width: 48rem;
}

.band--legal-head {
  padding-bottom: 0;
}

.band--legal-head h1 {
  margin-top: 0.5rem;
}

.legal__date {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.2rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

/* Contents ---------------------------------------------------------------- */

.legal__toc {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal__toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem 1.5rem;
  font-size: 0.9rem;
}

.legal__toc a {
  text-decoration: none;
}

.legal__toc a:hover {
  text-decoration: underline;
}

/* Sections ---------------------------------------------------------------- */

.legal__section {
  margin-top: 3rem;
  /* An anchored heading has to clear the sticky header. */
  scroll-margin-top: 6rem;
}

.legal__section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
}

.legal__section p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.legal__list {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.legal__list li {
  margin-top: 0.5rem;
}

.legal__list li::marker {
  color: var(--purple-400);
}

.legal__section .definitions {
  margin-top: 1.5rem;
}

.legal__section .definitions dt {
  color: var(--text);
}

.legal__section .definitions dd {
  margin: 0;
  color: var(--text-muted);
}

/*
 * Set apart so the Google Limited Use statement and the technical disclaimer
 * cannot be skimmed past. A flat tint and a solid left rule, no gradient.
 */
.legal__callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary-soft);
  border: 1px solid var(--purple-400);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}

.legal__callout p {
  margin: 0;
  color: var(--text);
}

.legal__callout-title {
  margin-bottom: 0.5rem !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-hover);
}

/* Footer legal links ------------------------------------------------------- */

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem !important;
}

.site-footer__legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__legal-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .legal__toc ol {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-color-scheme: dark) {
  /* The callout tint is a translucent wash in dark mode so the purple does not
     glow against the dark ground. */
  :root .legal__callout {
    background: rgb(124 58 237 / 0.16);
    border-color: var(--purple-600);
  }

  :root .legal__callout-title {
    color: var(--purple-400);
  }
}
