/* Zilla Slab and IBM Plex Sans are SIL OFL fonts, self-hosted so the page makes no third-party requests. */
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url("/assets/home/fonts/zilla-slab-latin-600-normal-758ed49d.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("/assets/home/fonts/zilla-slab-latin-700-normal-b6997fc5.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/assets/home/fonts/ibm-plex-sans-latin-400-normal-64251e64.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/assets/home/fonts/ibm-plex-sans-latin-500-normal-290aaea2.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/assets/home/fonts/ibm-plex-sans-latin-600-normal-99b2fa32.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --violet: #4a12d6;
  --violet-pale: #cdbfff;
  --deep: #1d0b4f;
  --paper: #f3f1fa;
  --rule: #cbc4e4;
  --ink: #1d0b4f;
  --muted: #4f4670;
  --white: #fff;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol { list-style: none; }

.wrap { width: min(100%, 86rem); margin-inline: auto; padding-inline: var(--gutter); }

/* Hero: flat violet that ends behind the screenshot */
.top {
  background: linear-gradient(var(--violet), var(--violet)) top / 100% calc(100% - clamp(5rem, 16vw, 15rem)) no-repeat;
  color: var(--white);
}
.head { background: var(--violet); color: var(--white); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1.5rem;
}
.name { font: 700 1.625rem/1 var(--slab); text-decoration: none; }
.bar a:not(.name) { font-size: 0.9375rem; }

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
h1 {
  max-width: 14em;
  font: 700 clamp(3rem, 9.4vw, 8.25rem)/0.94 var(--slab);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lede {
  max-width: 36em;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}
.act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 3px;
  background: var(--white);
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--deep); color: var(--white); }
.act p { max-width: 32em; font-size: 0.9375rem; line-height: 1.4; }

/* The screenshot stands on a slab, the way a slab serif stands on its foot */
.stand { position: relative; padding-inline: clamp(0.75rem, 3vw, 2.75rem); }
.stand img {
  width: 100%;
  border-radius: 6px 6px 0 0;
  animation: settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stand::after {
  content: "";
  display: block;
  height: clamp(0.75rem, 1.6vw, 1.5rem);
  margin-inline: calc(clamp(0.75rem, 3vw, 2.75rem) * -1);
  background: var(--deep);
}
@keyframes settle { from { transform: translateY(1.5rem); } }
@media (prefers-reduced-motion: reduce) { .stand img { animation: none; } }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }
h2 {
  font: 700 clamp(2rem, 4.4vw, 3.5rem)/1.04 var(--slab);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 { font: 700 1.625rem/1.15 var(--slab); }

/* The brief */
.brief-intro { max-width: 36em; color: var(--muted); }
blockquote {
  max-width: 24em;
  margin-top: 1rem;
  color: var(--violet);
  font: 600 clamp(1.75rem, 4.2vw, 3.375rem)/1.12 var(--slab);
  letter-spacing: -0.012em;
}
.result { max-width: 40em; margin-top: clamp(2rem, 4vw, 3.5rem); }

/* Each row is one part of the generated app's backend */
.backend { margin-top: 1.75rem; border-bottom: 1px solid var(--rule); }
.backend > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.25rem 2rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}
.backend dt { font: 700 1.375rem/1.2 var(--slab); }
.backend code { color: var(--muted); font: 400 0.875rem/1.5 var(--code); overflow-wrap: anywhere; }
.backend code b { color: var(--violet); font-weight: 700; }

.shot { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.shot img { width: 100%; border-radius: 6px; }
figcaption { max-width: 40em; margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }

/* Stages use the same names as the tabs in the editor */
.flow { border-top: 1px solid var(--rule); background: var(--white); }
.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 4px solid var(--violet);
  padding-top: 1.25rem;
}
.stages p { margin-top: 0.5rem; color: var(--muted); }

/* The page ends on its own base */
.base { background: var(--deep); color: var(--white); }
.base h2 { max-width: 16em; }
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.terms dt { font: 700 1.5rem/1.2 var(--slab); }
.terms dd { max-width: 34em; margin-top: 0.4rem; color: #dcd5f5; }

footer { background: var(--deep); color: #dcd5f5; font-size: 0.9375rem; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 3rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}
footer p { max-width: 38em; }
footer a { color: var(--white); }

@media (max-width: 62rem) {
  .backend > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .backend code { grid-column: 2; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .backend > div { grid-template-columns: minmax(0, 1fr); }
  .backend code { grid-column: 1; }
  .stages, .terms { grid-template-columns: minmax(0, 1fr); }
}
