/* TEKA — supplemental styles. Tailwind (CDN) carries the layout work.
   Rules here cover typography details, legal prose and motion.
   No gradients are used anywhere in this file. */

:root {
  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #111110;
  --graphite: #3a3a37;
  --muted: #6e6d68;
  --hair: #e4e2dc;
  --stone: #f2f1ed;
  --signal: #c8281a;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anchored sections clear the sticky header. */
section[id] { scroll-margin-top: 5.5rem; }

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Visible, square focus ring in keeping with the grid. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 0;
}

/* Swiss-style display type: tight, flush left, no optical drift. */
.display {
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.rule-label {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Underline that grows from the left, used on text links. */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* FAQ disclosure */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-sign { transition: transform 0.24s ease; }
.faq-item[open] summary .faq-sign { transform: rotate(45deg); }

/* ---------------------------------------------------------------- legal prose */
.legal {
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal > * + * { margin-top: 1.1rem; }
.legal h2 {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.9rem;
}
.legal ul,
.legal ol { padding-left: 1.15rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 0.45rem; }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--stone);
  border: 1px solid var(--hair);
  padding: 0.05rem 0.3rem;
  white-space: nowrap;
}
.legal h2[id],
.legal h3[id] { scroll-margin-top: 6.5rem; }
.legal .lead {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.legal th,
.legal td {
  border: 1px solid var(--hair);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.legal th {
  color: var(--ink);
  font-weight: 600;
  background: var(--stone);
}

/* ---------------------------------------------------------------- mockups */
.device-shadow { box-shadow: 0 32px 64px -32px rgba(17, 17, 16, 0.32); }
.card-shadow { box-shadow: 0 24px 56px -36px rgba(17, 17, 16, 0.28); }

.bar { background: var(--ink); }
.bar-dim { background: var(--hair); }
