/* Vizyt — landing page
   Type: Archivo (variable width axis used as a display device) + DM Mono for machine text.
   Colour: one saturated ultramarine field, everything else quiet. */

:root {
  --blue: #1f2aa8;
  --blue-deep: #171f80;
  --ink: #12142e;
  --ink-soft: #4a4e70;
  --paper: #ffffff;
  --mist: #eff1f8;
  --rule: #d8dcec;
  --caret: #ffc64b;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
}

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.5rem 0.9rem;
}

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

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

/* ---------- top bar ---------- */

.topbar {
  background: var(--blue);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.35rem var(--gutter);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  color: inherit;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.topnav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topnav a:hover { border-bottom-color: currentColor; }
.topnav__cta { border-bottom-color: var(--caret); }

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

.hero {
  background: var(--blue);
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
}

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 6.1rem);
  font-stretch: 116%;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}

.hero__lede {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: #cfd3f2;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

/* the composer: a prompt resolving into an address */

.composer {
  background: var(--paper);
  color: var(--ink);
  max-width: 44rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.composer__prompt {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  line-height: 1.45;
  margin-bottom: 0;
  min-height: 2.9em;
}

.caret {
  display: inline-block;
  width: 0.62ch;
  height: 1.1em;
  background: var(--caret);
  vertical-align: -0.18em;
  margin-left: 0.1ch;
}

.composer__out {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.composer__url {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--blue);
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.composer__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* miniature of a generated page */

.thumb {
  flex: 0 0 auto;
  width: 8.5rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.thumb__bar {
  display: flex;
  gap: 4px;
  padding: 6px 7px;
  border-bottom: 1px solid var(--rule);
  background: var(--mist);
}
.thumb__bar i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rule);
}
.thumb__body { padding: 9px; }
.thumb__hero {
  height: 34px;
  background: var(--blue);
  margin-bottom: 8px;
}
.thumb__line {
  height: 5px;
  background: var(--rule);
  margin-bottom: 5px;
}
.thumb__line--w80 { width: 80%; }
.thumb__line--w55 { width: 55%; }
.thumb__btn {
  margin-top: 9px;
  width: 42px; height: 12px;
  background: var(--caret);
}

/* ---------- generic sections ---------- */

.section { padding-block: clamp(3.25rem, 8vw, 5.75rem); }
.section--mist { background: var(--mist); }

.section h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-stretch: 104%;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.section p { max-width: var(--measure); }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}

/* ---------- steps (a genuine sequence) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 54rem;
}

.step {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }

.step__n {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-stretch: 116%;
  font-weight: 600;
  line-height: 0.9;
  color: var(--blue);
  flex: 0 0 1.6em;
}

.step__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}
.step__body p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- specification lists ---------- */

.specs { margin: 0; }

.specs__row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.2fr;
  gap: 0.35rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--rule);
}
.specs__row:last-child { border-bottom: 1px solid var(--rule); }

.specs dt {
  font-weight: 600;
  font-stretch: 104%;
}

.specs dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- waitlist ---------- */

.join { padding-block: clamp(3.25rem, 8vw, 5.75rem); }

.join__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-stretch: 108%;
  margin-bottom: 1rem;
}

.join p { max-width: var(--measure); }

.join__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
  max-width: 34rem;
}

.join__input {
  flex: 1 1 15rem;
  font: inherit;
  font-family: "DM Mono", ui-monospace, monospace;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.join__input::placeholder { color: #8a8eb0; }

.join__btn {
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  cursor: pointer;
}
.join__btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.join__fallback {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #b9bdd8;
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
  font-size: 0.9375rem;
}
.footer a { color: var(--paper); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}

.wordmark--footer {
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.footer__desc { max-width: 28ch; }

.footer__h {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.footer__col p { margin-bottom: 0.4rem; }

.footer__legal {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid #2b2e52;
}

/* ---------- narrow screens ---------- */

@media (max-width: 40rem) {
  .composer__out { flex-direction: column; align-items: flex-start; }
  .specs__row { grid-template-columns: 1fr; }
  .step { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { display: none; }
}

/* ---------- gallery of live pages ---------- */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 64rem;
}

.gallery__item { border-top: 2px solid var(--ink); padding-top: 0.9rem; }

.gallery__link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.gallery__link:hover .gallery__name { border-bottom-color: currentColor; }

.gallery__name {
  display: block;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.25;
  border-bottom: 1px solid transparent;
  margin-bottom: 0.35rem;
}

.gallery__url {
  display: block;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--blue);
  word-break: break-all;
}

.gallery__desc {
  margin-top: 0.7rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- generation pipeline ---------- */

.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
  border-left: 2px solid var(--blue);
}

.pipe__stage {
  position: relative;
  padding: 0 0 1.9rem 1.85rem;
}
.pipe__stage:last-child { padding-bottom: 0; }

.pipe__stage::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.46em;
  width: 12px;
  height: 12px;
  background: var(--blue);
}

.pipe__stage h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.pipe__stage p {
  color: var(--ink-soft);
  margin-bottom: 0;
}
