/* TestSwap public site · direction: The product performs (seed 2086113530).
   Palette and type from the direction sheet; no gradients, no shadows, no hairlines. */

@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600&display=swap");

:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --ink: #0b0c0e;
  --muted: #4a505b;
  --accent: #1f2de6;
  --accent-ink: #ffffff;
  --soft: #f6f7f9;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-display: clamp(2.5rem, 1.4rem + 4vw, 4.75rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 34ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

.wrap {
  width: min(1240px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--surface {
  background: var(--surface);
}

.section--field {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-display);
  max-width: 16ch;
}

h2 {
  font-size: var(--step-head);
  max-width: 22ch;
}

h3 {
  font-size: var(--step-lead);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
  max-width: 46ch;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 34ch;
}

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

.small {
  font-size: var(--step-small);
}

/* Header */
.site-header {
  padding-block: 1.5rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: var(--step-body);
}

.wordmark svg {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-left: auto;
  font-size: var(--step-small);
  color: var(--muted);
}

@media (max-width: 34rem) {
  .site-nav {
    width: 100%;
    margin-left: 0;
  }
}

.site-nav a:hover {
  color: var(--ink);
}

/* Buttons: one shape for the whole page · square, flat fill. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: var(--step-small);
  letter-spacing: 0.01em;
  border-radius: 0;
  transition: transform 120ms ease, background-color 160ms ease;
}

.btn:hover {
  background: #1824c9;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Hero */
.hero {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 0.5rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.hero__stats strong {
  display: block;
  font-size: var(--step-lead);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

}

.hero__side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero__example {
  font-size: 1rem;
  color: var(--muted);
  max-width: 46ch;
}

/* Product fragments: real interface, its own conventions. */
.fragment {
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.25rem;
  font-size: var(--step-small);
}

.fragment__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-tile {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #2a3446;
  flex: none;
}

.app-tile--green {
  background: #1e6a52;
}

.app-name {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eef1f6;
  color: #2b323d;
  font-size: var(--step-small);
  white-space: nowrap;
}

.chip--live {
  background: #e6f1ec;
  color: #14543f;
}

.chip--soon {
  background: #fbf0e6;
  color: #7a3f10;
}

.fragment__meta {
  margin-left: auto;
  font-size: var(--step-small);
  color: #4b5563;
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.15rem 0 0.35rem;
}

.stage {
  text-align: left;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: #6b7280;
  font-size: var(--step-small);
}

.stage__bar {
  height: 6px;
  background: #e7eaf0;
  border-radius: 3px;
}

.stage[data-state="done"] .stage__bar {
  background: #1e6a52;
}

.stage[data-state="now"] .stage__bar {
  background: var(--accent);
}

.stage[aria-selected="true"] {
  color: var(--ink);
}

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

.fragment__note {
  margin-top: 0.9rem;
  font-size: var(--step-small);
  color: #4b5563;
  min-height: 2.6em;
}

.evidence-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.evidence-tile {
  width: 46px;
  height: 58px;
  border-radius: 8px;
  background: #eef1f6;
  display: grid;
  place-items: end center;
  padding-bottom: 0.3rem;
  font-size: var(--step-small);
  color: #4b5563;
}

.evidence-tile--filled {
  background: #dfe5ef;
}

.rating-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.rating-line strong {
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.rating-delta {
  color: #14543f;
  font-size: var(--step-small);
}

.event-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: var(--step-small);
  color: #3d434d;
}

.event-row + .event-row {
  padding-top: 0.7rem;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  background: #f3f5f8;
  font-size: var(--step-small);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  flex: none;
}

/* Two-part rows */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split--reverse .split__text {
    order: 2;
  }
}

.split__text {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.section-lede {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Directory */
.directory {
  display: grid;
  gap: 1.25rem;
}

.directory__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search {
  flex: 1 1 18rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--soft);
  padding: 0.7rem 0.9rem;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--step-small);
  color: var(--ink);
  min-width: 0;
}

.search input:focus {
  outline: none;
}

.list {
  display: grid;
  gap: 1px;
  background: var(--surface);
  align-content: start;
}

.listing {
  display: grid;
  gap: 0.75rem 1.25rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--soft);
  transition: background-color 160ms ease;
}

.listing:hover {
  background: #fff;
}

.listing__body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.listing__name {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.listing__desc {
  font-size: var(--step-small);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing__side {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  font-size: var(--step-small);
  color: var(--muted);
  text-align: right;
}

.listing__cat {
  font-size: var(--step-small);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.empty {
  padding: 2.5rem 1.25rem;
  background: var(--soft);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

/* Stage walk */
.walk {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 62rem) {
  .walk {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: 3.5rem;
    align-items: start;
  }

  .walk > h2 {
    grid-column: 1 / -1;
  }
}

.walk__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.walk__step {
  padding: 0.6rem 0.95rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: var(--step-small);
  transition: background-color 160ms ease;
}

.walk__step[aria-selected="true"] {
  background: #fff;
  color: var(--accent);
}

.walk__panel {
  display: grid;
  gap: 0.75rem;
  max-width: 42ch;
  min-height: 7.5rem;
  align-content: start;
}

.walk__panel h3 {
  color: #fff;
}

.walk__panel p {
  color: rgba(255, 255, 255, 0.86);
}

/* Stats: the heading holds the left half, the counted figures the right half. */
.numbers {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .numbers {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }
}

.figures {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.figure {
  display: grid;
  gap: 0.35rem;
}

.figure strong {
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.figure span {
  font-size: var(--step-small);
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 1px;
  background: var(--surface);
}

.faq details {
  background: var(--soft);
  padding: 1.15rem 1.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1em;
  color: var(--muted);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 0.65rem;
  color: var(--ink);
  max-width: 62ch;
}

/* CTA */
.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f2f3f5;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.site-footer .wordmark {
  color: #fff;
  font-size: var(--step-head);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  font-size: var(--step-small);
  color: #b9bcc4;
  align-content: start;
}

.footer-col a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 3rem;
  font-size: var(--step-small);
  color: #8b8f99;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Motion: entrance for the parts of each section, transform and opacity only.
   Hidden only when the script is running, so a failed script still shows the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
