/* Values follow .claude/skills/landing-page-design: its type scale, spacing table and radii only. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #131209;
  --band: #000000;
  --surface: #1f1f1f;
  --surface-raised: #272727;
  --surface-hover: #313131;
  --glass: rgb(24 24 24 / 0.8);
  --veil: rgb(0 0 0 / 0.8);
  --line: rgb(255 255 255 / 0.1);
  --wire: #5c5c5c;

  --text: #ffffff;
  --text-soft: #cfcfcf;
  --text-muted: #a3a3a3;
  --accent: #ffcb05;
  --accent-strong: #ffd83d;
  --accent-ink: #131209;
  --live: #4ade80;

  --font: "Geist", system-ui, sans-serif;

  --space-25: 0.125rem;
  --space-50: 0.25rem;
  --space-75: 0.5rem;
  --space-100: 0.75rem;
  --space-200: 1rem;
  --space-300: 1.5rem;
  --space-400: 2rem;
  --space-500: 2.5rem;
  --space-600: 3rem;
  --space-700: 4rem;
  --space-800: 5rem;
  --space-900: 6rem;

  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --measure: 42.5rem;
  --gutter: var(--space-200);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --duration: 700ms;
  --duration-reveal: 900ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-900);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: var(--space-200);
  left: var(--space-200);
  z-index: 60;
  padding: var(--space-100) var(--space-200);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-1 * var(--space-900)));
  transition: transform var(--duration) var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* ── Controls ─────────────────────────────────────────────────────────────── */

/* The standard's 8px by 12px padding; min-height keeps the 44px touch target. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 2.75rem;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.button:active {
  transform: scale(0.98);
}
.button--quiet {
  background: var(--surface-raised);
  color: var(--text);
}
.button--small {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Inline, so the padding widens the touch target without moving the line. */
.link {
  padding-block: var(--space-200);
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}
.arrow-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration) var(--ease);
}
.arrow-link:active {
  transform: translateY(1px);
}

.status-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--live);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-50) var(--space-100);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}
.status--pending .status-dot {
  background: var(--accent);
}

@media (hover: hover) {
  .button:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
  }
  .button--quiet:hover {
    background: var(--surface-hover);
  }
  .button:active {
    transform: scale(0.98);
  }
  .link:hover,
  .arrow-link:hover {
    color: var(--accent);
  }
  .arrow-link:hover .icon {
    transform: translate(2px, -2px);
  }
}

/* ── Island navigation ────────────────────────────────────────────────────── */

/* No transform or filter at rest: either would trap the fixed overlay inside the pill. */
.island {
  position: fixed;
  top: var(--space-300);
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-75);
  width: max-content;
  max-width: calc(100% - 2 * var(--space-200));
  margin-inline: auto;
  padding: var(--space-75);
  border-radius: var(--radius-full);
}
.island::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.island__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  min-height: 2.75rem;
  padding-inline: var(--space-50) var(--space-100);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.island__toggle {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.island__toggle:active {
  transform: scale(0.98);
}
.island__bar {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 0.5625rem);
  width: 1.125rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transform: translateY(-0.25rem);
  transition: transform var(--duration) var(--ease);
}
.island__bar + .island__bar {
  transform: translateY(0.25rem);
}
.island__toggle[aria-expanded="true"] .island__bar {
  transform: rotate(45deg);
}
.island__toggle[aria-expanded="true"] .island__bar + .island__bar {
  transform: rotate(-45deg);
}

/* Without script the overlay cannot open: the pill offers the action instead. */
html.js .island__cta,
html:not(.js) .island__toggle {
  display: none;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-500);
  padding: var(--space-900) var(--space-300) var(--space-600);
  overflow-y: auto;
  background: var(--veil);
  -webkit-backdrop-filter: blur(64px);
  backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration) var(--ease),
    visibility 0s var(--ease) var(--duration);
}
html[data-menu-open] {
  overflow: hidden;
}
html[data-menu-open] .menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu__list {
  display: grid;
  gap: var(--space-75);
}
/* The link is the mask; its label slides up from below the edge. */
.menu__list a {
  display: block;
  padding-block: var(--space-50);
  overflow: hidden;
  color: var(--text-muted);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.menu__list a[aria-current] {
  color: var(--text);
}
.menu__list span,
.menu__action .button {
  opacity: 0;
  transform: translateY(var(--space-600));
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}
.menu__list span {
  display: block;
}
.menu__action {
  overflow: hidden;
  padding: var(--space-50);
  margin: calc(-1 * var(--space-50));
}
.menu__action .button {
  width: 100%;
}
html[data-menu-open] .menu__list span,
html[data-menu-open] .menu__action .button {
  opacity: 1;
  transform: none;
}
html[data-menu-open] .menu__list li:nth-child(1) span {
  transition-delay: 100ms;
}
html[data-menu-open] .menu__list li:nth-child(2) span {
  transition-delay: 150ms;
}
html[data-menu-open] .menu__list li:nth-child(3) span {
  transition-delay: 200ms;
}
html[data-menu-open] .menu__list li:nth-child(4) span {
  transition-delay: 250ms;
}
html[data-menu-open] .menu__list li:nth-child(5) span {
  transition-delay: 300ms;
}
html[data-menu-open] .menu__action .button {
  transition-delay: 350ms, 350ms, 0s;
}

@media (hover: hover) {
  .island__toggle:hover {
    background: var(--surface-hover);
  }
  .menu__list a:hover {
    color: var(--text);
  }
}

@media (min-width: 60rem) {
  .island {
    gap: var(--space-200);
  }
  .island__toggle,
  .menu__action {
    display: none;
  }
  html.js .island__cta {
    display: inline-flex;
  }
  .menu {
    position: static;
    z-index: auto;
    display: block;
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .menu__list {
    display: flex;
    gap: var(--space-25);
  }
  .menu__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 var(--space-100);
    overflow: visible;
    border-radius: var(--radius-full);
    color: var(--text-soft);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    letter-spacing: 0;
    transition:
      background-color var(--duration) var(--ease),
      color var(--duration) var(--ease);
  }
  .menu__list a[aria-current] {
    background: var(--surface-raised);
  }
  .menu__list span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (min-width: 60rem) and (hover: hover) {
  .menu__list a:hover {
    background: var(--surface-hover);
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: var(--space-900) var(--space-600);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-300);
  padding-top: var(--space-200);
}

/* Outer 24px, 8px gap, so the photo takes 16px. */
.id-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-200);
  padding: var(--space-75);
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  background: var(--surface);
}
.id-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}
.id-card__name {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.id-card__role {
  color: var(--text-soft);
}
.id-card__place {
  display: flex;
  align-items: center;
  gap: var(--space-50);
  margin-top: var(--space-75);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.id-card__place .icon {
  width: 1rem;
  height: 1rem;
}

/* The glued phrase "sistemas completos" needs 331px at 36px, so narrow phones step down. */
.hero__title {
  max-width: var(--measure);
  padding-bottom: var(--space-50);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}
@media (min-width: 23.4375rem) {
  .hero__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
/* The one gradient the standard asks for: on the heading text, never behind it. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__title {
    background: linear-gradient(90deg, #ffffff, #9b9b9b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero__break {
  display: none;
}
.hero__sub {
  max-width: var(--measure);
  margin-top: var(--space-200);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.hero__actions {
  margin-top: var(--space-300);
}
.hero__actions .button {
  width: 100%;
}
.hero__proof {
  margin-top: var(--space-75);
}
.proof {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  min-height: 2.75rem;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.proof .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration) var(--ease);
}
.proof:active {
  transform: translateY(1px);
}
@media (hover: hover) {
  .proof:hover {
    color: var(--text);
  }
  .proof:hover .icon {
    transform: translateY(2px);
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: var(--space-300);
  }
  .id-card {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: var(--space-300);
    max-width: 30rem;
  }
  .hero__title {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .hero__break {
    display: inline;
  }
  .hero__sub {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .hero__actions .button {
    width: auto;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: var(--space-400);
  }
  .hero {
    padding-bottom: var(--space-900);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: center;
    column-gap: var(--space-700);
    padding-top: var(--space-600);
  }
  .hero__copy {
    grid-area: 1 / 1;
  }
  .id-card {
    grid-area: 1 / 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: none;
  }
  .id-card__photo {
    aspect-ratio: 4 / 5;
  }
  .id-card__text {
    padding: var(--space-200) var(--space-200) var(--space-100);
  }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--space-700);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
}

.section__title {
  max-width: var(--measure);
  margin-top: var(--space-100);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}

.card {
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  background: var(--surface);
}
.card__label {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.card__title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--space-900);
  }
  .section__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .card {
    padding: var(--space-400);
  }
}

/* ── About ────────────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-400);
}
.prose {
  display: grid;
  gap: var(--space-200);
  max-width: var(--measure);
  margin-top: var(--space-300);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.career__stat {
  margin-top: var(--space-75);
  color: var(--text);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.career__note {
  color: var(--text-muted);
}
.career__list {
  display: grid;
  margin-top: var(--space-300);
}
.career__list li {
  position: relative;
  display: grid;
  gap: var(--space-25);
  padding-block: var(--space-200);
}
/* A drawn rule, not a border: the rows are not cards. */
.career__list li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}
.career__list li:last-child {
  padding-bottom: 0;
}
.career__when {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.career__role {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.career__wins-label {
  margin-top: var(--space-300);
}
.career__wins {
  margin-top: var(--space-200);
}

@media (min-width: 64rem) {
  .about {
    grid-template-columns: minmax(0, 1fr) 24rem;
    align-items: start;
    gap: var(--space-700);
  }
}

/* ── Services ─────────────────────────────────────────────────────────────── */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-200);
  margin-top: var(--space-400);
}
.service {
  display: grid;
  align-content: start;
  gap: var(--space-75);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-100);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  color: var(--accent);
}
.service__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.service strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 64rem) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-300);
    margin-top: var(--space-600);
  }
  .services--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Plans ────────────────────────────────────────────────────────────────── */
/* Shared with /centralizador/, which keeps only its extras table. */

.plan {
  display: grid;
  align-content: start;
  gap: var(--space-200);
}
.plan__price {
  color: var(--text);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.plan__price span {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

.price-note {
  max-width: var(--measure);
  margin-top: var(--space-300);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
/* Pushed to the bottom so the buttons of a row line up. */
.plans .button {
  margin-top: auto;
}
.plan__from {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
}
/* The recommended plan: accent outline, never a second fill colour. */
.plan--lead {
  border-color: var(--accent);
}
.plan__badge {
  align-self: flex-start;
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-200);
  margin-top: var(--space-400);
}
/* A column, so every card's button lines up at the bottom of its row. */
.plans .plan {
  display: flex;
  flex-direction: column;
}

@media (min-width: 48rem) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-300);
    margin-top: var(--space-600);
  }
}

/* ── Tagline reveal ───────────────────────────────────────────────────────── */

.tagline {
  padding-block: var(--space-800);
  background: var(--band);
}
.tagline__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-600);
}
.tagline__text {
  max-width: var(--measure);
  color: var(--text);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}
/* One phrase per line; a phrase too long for a phone breaks in balance. */
.tagline__line {
  display: block;
  text-wrap: balance;
}
html.js .tagline__word {
  opacity: 0.3;
  transition: opacity var(--duration) var(--ease);
}
html.js .tagline__word.is-lit {
  opacity: 1;
}

/* The mark, evaluated: both inputs carry signal, so the output goes high. */
.gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.gate__inputs {
  grid-area: 1 / 1;
  display: grid;
  align-content: space-between;
  justify-items: start;
  padding-left: var(--space-300);
}
.gate__figure {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  overflow: visible;
}
.gate__output {
  position: absolute;
  top: calc(50% + var(--space-100));
  right: 0;
  max-width: 6rem;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  transition: color var(--duration) var(--ease) 1700ms;
}
.gate__lead,
.gate__signal,
.gate__body {
  fill: none;
  stroke-width: 6;
}
.gate__lead {
  stroke: var(--wire);
}
.gate__body {
  fill: var(--band);
  stroke: var(--text);
  stroke-linejoin: round;
}
.gate__signal {
  stroke: var(--accent);
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--duration-reveal) var(--ease) 400ms;
}
.gate__signal--out {
  transition-delay: 1100ms;
}
.gate__pad {
  fill: var(--accent);
}
.gate__pad--out {
  transition: fill var(--duration) var(--ease) 1700ms;
}
html.js .gate:not(.is-visible) .gate__signal {
  stroke-dashoffset: 1;
}
html.js .gate:not(.is-visible) .gate__pad--out {
  fill: var(--wire);
}
html.js .gate:not(.is-visible) .gate__output {
  color: var(--text-muted);
}

@media (min-width: 40rem) {
  .gate {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-200);
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .gate__inputs {
    grid-area: auto;
    align-self: stretch;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: end;
    padding-left: 0;
  }
  .gate__figure {
    grid-area: auto;
  }
  .gate__output {
    position: static;
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }
}

@media (min-width: 48rem) {
  .tagline {
    padding-block: var(--space-900);
  }
  .tagline__inner {
    gap: var(--space-700);
  }
  .tagline__text {
    font-size: 3rem;
    line-height: 1;
  }
}
@media (min-width: 64rem) {
  .tagline__text {
    font-size: 3.75rem;
  }
}

/* ── Steps ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-400);
  margin-top: var(--space-400);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-75);
  padding-top: var(--space-300);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}
.step__number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-75);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--accent);
  font-weight: 600;
}
.step p {
  max-width: 28rem;
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-600);
    margin-top: var(--space-600);
  }
}

/* ── Work ─────────────────────────────────────────────────────────────────── */

.works {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-200);
  margin-top: var(--space-400);
}
.work {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-100) var(--space-200);
}
.work__logo {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
}
.work__title {
  margin-right: auto;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
}
.work__lead {
  max-width: 36rem;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.work__body,
.work__aside {
  display: grid;
  align-content: start;
  gap: var(--space-300);
}
.work > .facts {
  margin-top: auto;
}
.work__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-75) var(--space-300);
}

.checks {
  display: grid;
  gap: var(--space-100);
}
.checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-100);
}
.checks .icon {
  margin-top: var(--space-25);
  color: var(--accent);
}

.address {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  margin-top: var(--space-100);
  padding: var(--space-75) var(--space-200) var(--space-75) var(--space-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.address .icon {
  width: 1rem;
  height: 1rem;
  color: var(--live);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
  margin-top: var(--space-100);
}
.chips li {
  padding: var(--space-50) var(--space-100);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.facts {
  display: grid;
  gap: var(--space-200);
}
.facts dt {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.facts dd {
  color: var(--text);
}

@media (min-width: 64rem) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-300);
    margin-top: var(--space-600);
  }
  .work--lead {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: var(--space-700);
  }
  .work--lead .work__head,
  .work--lead .work__links {
    grid-column: 1 / -1;
  }
}

/* ── Questions ────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-400);
}
.faq__list {
  display: grid;
  gap: var(--space-75);
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  min-height: 4rem;
  padding: var(--space-200);
  border-radius: var(--radius-2xl);
  color: var(--text);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary .icon {
  color: var(--text-muted);
  transition:
    transform var(--duration) var(--ease),
    color var(--duration) var(--ease);
}
.faq__item[open] summary .icon {
  color: var(--accent);
  transform: rotate(45deg);
}
.faq__item > p {
  max-width: 40rem;
  padding: 0 var(--space-200) var(--space-200);
}
@media (hover: hover) {
  .faq__item:hover {
    background: var(--surface-raised);
  }
}
/* Animates the open height where the browser can interpolate to auto. */
@supports (interpolate-size: allow-keywords) {
  .faq__item {
    interpolate-size: allow-keywords;
  }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition:
      height var(--duration) var(--ease),
      content-visibility var(--duration) var(--ease) allow-discrete;
  }
  .faq__item[open]::details-content {
    height: auto;
  }
}

@media (min-width: 48rem) {
  .faq__item summary {
    padding: var(--space-200) var(--space-300);
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  .faq__item > p {
    padding: 0 var(--space-300) var(--space-300);
  }
}
@media (min-width: 64rem) {
  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
    gap: var(--space-700);
  }
}

/* ── Contact ──────────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-400);
}
.contact__title {
  max-width: var(--measure);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}
.contact__text {
  max-width: 36rem;
  margin-top: var(--space-200);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
  margin-top: var(--space-300);
}
.contact__actions .button {
  flex: 1 1 100%;
}
.contact__demo {
  margin-top: var(--space-200);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.contact__list {
  display: grid;
  gap: var(--space-75);
}
.contact__list a {
  display: flex;
  align-items: center;
  gap: var(--space-200);
  min-height: 4rem;
  padding: var(--space-100) var(--space-200);
  border-radius: var(--radius-2xl);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    background-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.contact__list a:active {
  transform: scale(0.98);
}
.contact__list .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}
.contact__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
@media (hover: hover) {
  .contact__list a:hover {
    background: var(--surface-hover);
  }
}

@media (min-width: 40rem) {
  .contact__actions .button {
    flex: 0 0 auto;
  }
}
@media (min-width: 48rem) {
  .contact__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
@media (min-width: 64rem) {
  .contact {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-700);
    padding: var(--space-700);
  }
  .contact__title {
    font-size: 3rem;
    line-height: 1;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: var(--space-400) var(--space-600);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.site-footer__inner {
  display: grid;
  gap: var(--space-200);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  color: var(--text-soft);
}
.site-footer__brand b {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-300);
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
@media (hover: hover) {
  .site-footer__links a:hover {
    color: var(--accent);
  }
}
@media (min-width: 64rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .site-footer__note {
    grid-column: 1 / -1;
  }
}

/* ── Missing page ─────────────────────────────────────────────────────────── */

.missing {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-300);
  min-height: 100svh;
  padding-block: var(--space-700);
}
.missing .island__brand {
  padding-inline: 0;
}
.missing .hero__sub {
  margin-top: 0;
}

/* ── Motion ───────────────────────────────────────────────────────────────── */

/* Hidden only when site.js has flagged the document, so no script means no veil. */
html.js .reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(var(--space-700));
  transition:
    opacity var(--duration-reveal) var(--ease) var(--reveal-delay, 0ms),
    filter var(--duration-reveal) var(--ease) var(--reveal-delay, 0ms),
    transform var(--duration-reveal) var(--ease) var(--reveal-delay, 0ms),
    background-color var(--duration) var(--ease);
}
html.js .island.reveal {
  transform: translateY(calc(-1 * var(--space-300)));
}
html.js .reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}
.reveal[data-delay="1"] {
  --reveal-delay: 100ms;
}
.reveal[data-delay="2"] {
  --reveal-delay: 200ms;
}
.reveal[data-delay="3"] {
  --reveal-delay: 300ms;
}
.reveal[data-delay="4"] {
  --reveal-delay: 400ms;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html.js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
  html.js .tagline__word {
    opacity: 1;
  }
  .menu__list span,
  .menu__action .button {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero__title {
    background: none;
    color: CanvasText;
  }
}

@media print {
  .island,
  .skip-link {
    display: none;
  }
  html.js .reveal,
  html.js .tagline__word {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
