/*
 * The website's look. The colors are the product's own (apps/web/src/styles/tokens.css)
 * so the page and the screenshots on it read as one thing. No outside fonts or files:
 * everything the page needs is in this folder.
 */
:root {
  --chrome: #15201c;
  --chrome-raised: #1e2c27;
  --chrome-line: #2c3d36;
  --chrome-ink: #eef4f1;
  --chrome-soft: #c3d0ca;
  --chrome-muted: #a3b5ae;

  --paper: #f3f5f4;
  --surface: #ffffff;
  --sunken: #e8edea;
  --line: #d8dfdb;
  --line-strong: #bac5c0;

  --ink: #17201d;
  --ink-soft: #414d49;
  --muted: #5f6b66;

  --accent: #1f6f54;
  --accent-hover: #185a44;
  --accent-soft: #e2f1ea;
  --mint: #7fe0b6;
  --mint-hover: #a0ebcb;
  --amber: #e3a93b;
  --bad: #a11d1d;
  --bad-soft: #fbe2e2;

  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 88px;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--chrome);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---- the bar across the top ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--chrome-line);
  background: rgb(21 32 28 / 95%);
  backdrop-filter: blur(10px);
  color: var(--chrome-ink);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  fill: var(--mint);
}

.brand-mark .bar {
  fill: var(--chrome);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--chrome-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.btn-mint {
  background: var(--mint);
  color: #0c2018;
}

.btn-mint:hover {
  background: var(--mint-hover);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---- the opening ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 72px;
  background: var(--chrome);
  color: var(--chrome-ink);
}

/* Faint ruled lines, like the back of a repair order pad. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 72% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

/* The names on the left, the board they name on the right. */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  width: min(1320px, 100% - 48px);
}

/* Where the product stands, said before anything else. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  background: var(--chrome-raised);
  font-size: 0.9rem;
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* The plain description sits inside the headline, small, above the pitch. */
.h1-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--mint);
  font: 600 1.02rem / 1.4 var(--font);
  letter-spacing: 0;
}

.h1-line {
  display: block;
}

/* The name in the headline changes. Its box is as wide as the longest name, so nothing
   around it moves when the name does. */
.rotor {
  display: inline-grid;
  color: var(--mint);
}

.rotor-name {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.rotor-name.on {
  opacity: 1;
  transform: none;
}

.rotor-name.out {
  transform: translateY(-0.45em);
}

/* Read out, never shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lede {
  max-width: 38em;
  margin-top: 22px;
  color: var(--chrome-soft);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}

.link-quiet {
  color: var(--chrome-ink);
  font-weight: 600;
  text-decoration-color: rgb(255 255 255 / 40%);
}

.link-quiet:hover {
  text-decoration-color: currentcolor;
}

.hero-price {
  max-width: 34em;
  margin-top: 22px;
  color: var(--chrome-muted);
  font-size: 0.98rem;
}

.hero-price strong {
  color: var(--chrome-ink);
}

.hero-price a {
  color: var(--chrome-ink);
  font-weight: 600;
}

/* What it costs, set like the totals on a repair order. */
.ticket {
  padding: 22px 24px 20px;
  border: 1px solid var(--chrome-line);
  border-radius: 14px;
  background: var(--chrome-raised);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
  color: var(--chrome-ink);
  font-variant-numeric: tabular-nums;
}

.free-head .ticket {
  max-width: 380px;
  margin-top: 30px;
}

.ticket-total span {
  color: var(--chrome-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.ticket dl {
  margin-top: -4px;
}

.ticket dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--chrome-line);
}

.ticket dt {
  color: var(--chrome-soft);
}

.ticket dd {
  font-family: var(--mono);
  font-weight: 600;
}

.ticket-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}

.ticket-total strong {
  color: var(--mint);
  font: 800 2.9rem / 1 var(--mono);
  letter-spacing: -0.05em;
}

/* ---- screenshots ---- */

.shot-hero {
  position: relative;
  z-index: 1;
  container-type: inline-size;
}

.shot-hero figcaption {
  color: var(--chrome-muted);
}

/* On a short, wide window the board shrinks so it stays in view beside the headline. */
@media (min-width: 981px) {
  .shot-hero {
    justify-self: center;
    width: 100%;
    max-width: max(440px, calc((100vh - 250px) * 4 / 3));
  }
}

.shot-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgb(21 32 28 / 8%), 0 24px 60px rgb(21 32 28 / 20%);
}

.shot-hero .shot-frame {
  border-color: #33463f;
}

/* The first picture is four, one on top of another, and the one that is named shows. */
.shot-stack {
  display: grid;
}

.shot-stack img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 450ms ease;
}

.shot-stack img.on {
  opacity: 1;
}

/* The names over the first picture: plain words, the one that is showing underlined.
   Three to a row, or all six in one row where the picture is wide enough for them. */
.pick {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 20px;
  align-items: baseline;
  justify-items: start;
  margin-bottom: 14px;
  color: var(--chrome-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.pick-label {
  grid-column: 1 / span 2;
  font-weight: 500;
}

@container (min-width: 600px) {
  .pick {
    grid-template-columns: repeat(5, auto) 1fr;
  }

  .pick-label {
    grid-column: 1 / span 5;
  }
}

.pick-btn,
.pick-pause {
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--chrome-soft);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease;
}

.pick-btn:hover,
.pick-pause:hover {
  color: #fff;
}

.pick-btn.on {
  box-shadow: inset 0 -2px 0 var(--mint);
  color: #fff;
}

.pick-pause {
  grid-row: 1;
  grid-column: -2;
  justify-self: end;
  padding-top: 0;
  color: var(--chrome-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-sunken {
  border-block: 1px solid var(--line);
  background: var(--sunken);
}

.section-dark {
  background: var(--chrome);
  color: var(--chrome-ink);
}

.section-head {
  max-width: 46rem;
}

/* The small label over a heading: what this part of the page is, in plain words. */
.eyebrow {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-dark .eyebrow {
  color: var(--mint);
}

h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-dark .section-head p:not(.eyebrow) {
  color: var(--chrome-soft);
}

/* ---- how the screens work: pick a layout, change it, and what stays ours ---- */

.same {
  padding-top: clamp(48px, 6vw, 80px);
}

.same-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.same-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}

.same-card h3 {
  margin-top: 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.same-card .ticks {
  margin-top: 20px;
}

/* What stays ours stands apart from what is theirs to choose and change. */
.same-added {
  border-color: var(--chrome);
  background: var(--chrome);
  color: var(--chrome-ink);
}

.same-added .eyebrow {
  color: var(--mint);
}

.same-added .ticks li {
  border-color: var(--chrome-line);
}

/* ---- your own AI: a panel of its own ---- */

.idea {
  padding-top: clamp(48px, 6vw, 80px);
}

.idea-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px 56px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 32 28 / 5%);
}

.idea-points {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.idea-points h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.idea-points p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Things someone would type to it, not things anyone said. */
.ask {
  align-self: start;
  padding: 22px 22px 8px;
  border-radius: 14px;
  background: var(--chrome);
  color: var(--chrome-ink);
}

.ask-title {
  color: var(--chrome-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.ask ul {
  margin-top: 8px;
}

.ask li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--chrome-line);
  font-size: 1.02rem;
  line-height: 1.4;
}

.ask li:first-child {
  border-top: 0;
}

.ask li::before {
  content: "\203A";
  position: absolute;
  top: 11px;
  left: 4px;
  color: var(--mint);
  font: 700 1.2rem / 1.2 var(--font);
}

.idea-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---- what it does ---- */

.tour {
  margin-top: clamp(56px, 7vw, 88px);
}

.tour-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 56px;
  align-items: start;
  margin-bottom: 28px;
}

.tour h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tour-copy p {
  margin-top: 12px;
  color: var(--ink-soft);
}

/* A plain list: one thing to a line, a thin rule between. */
.ticks li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 500;
}

.ticks li:first-child {
  border-top: 1px solid var(--line);
}

.also-title {
  margin-top: clamp(64px, 8vw, 96px);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.also {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.also li {
  padding: 24px 26px 26px;
  background: var(--surface);
}

.also h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.also p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---- two-column sections: a heading on the left, the substance on the right ---- */

.free-grid,
.built-grid,
.questions-grid,
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px 72px;
  align-items: start;
}

.free-copy {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.free-copy p + p {
  margin-top: 18px;
}

.free-copy .free-point {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.free-copy .free-scale {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.98rem;
}

.free-scale span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.rules {
  counter-reset: rule;
}

.rules li {
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--chrome-line);
  counter-increment: rule;
}

.rules li:last-child {
  border-bottom: 1px solid var(--chrome-line);
}

.rules li::before {
  content: counter(rule);
  position: absolute;
  top: 18px;
  left: 4px;
  color: var(--mint);
  font: 800 1.5rem / 1.3 var(--font);
}

.rules h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rules p {
  margin-top: 6px;
  color: var(--chrome-soft);
}

/* ---- questions ---- */

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 1.12rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font: 400 1.6rem / 1 var(--mono);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  max-width: 44em;
  padding: 0 4px 22px;
  color: var(--ink-soft);
}

/* ---- the sign-up form ---- */

.signup-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgb(21 32 28 / 5%), 0 18px 48px rgb(21 32 28 / 10%);
}

#signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.95rem;
  font-weight: 700;
}

.req {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 143 109 / 35%);
  outline-offset: 0;
}

.field input[aria-invalid="true"] {
  border-color: var(--bad);
}

.field-error {
  margin-top: 6px;
  color: var(--bad);
  font-size: 0.9rem;
  font-weight: 600;
}

/* A field people never see. A script that fills it in is not kept. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bad-soft);
  color: #7a1414;
  font-size: 0.95rem;
  font-weight: 600;
}

/* It takes focus so a screen reader reads it out; it is not a control, so no ring. */
.signup-done:focus {
  outline: none;
}

.signup-done h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.signup-done p {
  margin-top: 10px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* ---- the foot of the page ---- */

.foot {
  padding: 44px 0 52px;
  background: var(--chrome);
  color: var(--chrome-muted);
  font-size: 0.95rem;
}

.section-dark + .foot {
  border-top: 1px solid var(--chrome-line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.foot p + p {
  margin-top: 4px;
}

.foot a {
  color: var(--chrome-ink);
}

.foot-brand {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.foot .foot-quiet {
  margin-top: 10px;
  color: #8a9b94;
}

/* ---- narrower windows ---- */

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .top-row .btn {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .ticket {
    max-width: 420px;
  }

  .tour-copy,
  .same-grid,
  .idea-panel,
  .free-grid,
  .built-grid,
  .questions-grid,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .also {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .wrap {
    width: min(1160px, 100% - 36px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .also,
  #signup {
    grid-template-columns: 1fr;
  }

  /* A whole screen will not read on a phone, so it keeps its size and slides sideways. */
  .shot-scroll {
    overflow-x: auto;
    margin-inline: -18px;
    padding: 0 18px 12px;
  }

  .shot-scroll .shot-frame {
    width: 720px;
  }

  .shot figcaption::after {
    content: " Slide it sideways to see the rest.";
  }

  .form-end .btn {
    width: 100%;
  }
}

/* On the narrowest phones the longer name needs the gap beside it. */
@media (max-width: 360px) {
  .top-row {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .rotor-name,
  .shot-stack img,
  .pick-btn,
  .pick-pause {
    transition: none;
  }
}
