/* The section shapes: hero, cards, steps, buttons, tags.
 *
 * As in layout.css, no hex values -- every colour is a token from the generated
 * tokens.css.
 *
 * Motion is opt-in throughout: every transition in this file sits inside
 * `@media (prefers-reduced-motion: no-preference)`, so a visitor who asked for
 * less motion never receives one. That is the arrangement `fxlint` checks for,
 * and it is the one that fails safe -- a browser that does not understand the
 * query simply gets a page that does not move.
 */

/* -- hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}
.hero h1 { max-width: 20ch; }
.hero-lede {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
}
.hero-note { font-size: 0.9rem; max-width: 58ch; }

/* -- buttons ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: underline; }

.btn-secondary {
  background: transparent;
  color: var(--brand-ink);
  border-color: var(--border);
}

/* On a brand-coloured band the primary button would be invisible, so it
 * inverts: the band is the fill and the button is the outline. */
.btn-on-brand {
  background: var(--on-brand);
  color: var(--brand);
  border-color: var(--on-brand);
}

/* -- cards --------------------------------------------------------------- */

.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
}
/* Inside a surface band the card would vanish into the background, so it takes
 * the page background instead -- the inverse of the band it sits in. */
.band-surface .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4rem; }

.ticks { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.ticks li { padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-weight: 700;
}

.price-note { font-size: 0.88rem; margin-top: 0.9rem; }

.case-client {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* -- steps --------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li { counter-increment: step; padding-top: 2.75rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* -- cta ----------------------------------------------------------------- */

.cta { max-width: 46rem; }
.cta .actions { margin-top: 1.25rem; }

/* -- theme toggle -------------------------------------------------------- */

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.45rem 0.6rem;
}
.theme-toggle:hover { border-color: var(--brand-ink); }

/* -- motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .card,
  .theme-toggle {
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  }
  html { scroll-behavior: smooth; }
}
