/* Guides: search pages for people who arrive with a problem (docs/launch-plan.md 5.1).
   The landing page's colours and type, written plainly so a guide stays readable. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f5f8fb;
  --bg2: #eaf0f6;
  --panel: #ffffff;
  --panel2: #f1f5f9;
  --line: #dce4ee;
  --text: #0e1520;
  --muted: #46566b;
  --faint: #5f7084;
  --accent: #0b7c8d;
  --accent2: #2a9fb8;
  --deep: #1b6fb0;
  --bad: #b3303f;
  --good: #1b7a4f;
  --warn: #8a5a00;
  --kicker: #0b7c8d;
  --button-from: #0b7c8d;
  --button-to: #09697a;
  --button-ink: #ffffff;
  --ghost-ink: #0b7c8d;
  --ghost-edge: rgb(11 124 141 / 0.4);
  --glow: rgb(13 133 151 / 0.2);
  --wash-a: rgb(13 133 151 / 0.1);
  --wash-b: rgb(27 111 176 / 0.06);
  --dots: #bfd2e0;
  --edge: var(--line);
  --rule: #337fa4;
  --shot-bg: #ffffff;
  --shot-edge: #cfdbe7;
  --shot-bar: #eef3f8;
  --shot-bar-edge: #dce4ee;
  --shot-dot: #c4d1de;
  --shot-shadow: 0 30px 70px rgb(14 21 32 / 0.14), 0 2px 6px rgb(14 21 32 / 0.05);
  --bad-bg: #fbe6e9;
  --good-bg: #dff3f6;
  --good-edge: #8cc6d1;
  --good-glow: 0 0 40px rgb(13 133 151 / 0.1);
  --illustration-bg: #eef3f8;
  --illustration-edge: #dce4ee;
  --thead: #eaf0f6;
  --chip: #e3ebf4;
  --chip-v: #ece8ff;
  --chip-v-ink: #4b3fb0;
  --cta-wash: rgb(13 133 151 / 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b121c;
    --bg2: #0f1925;
    --panel: #132132;
    --panel2: #192a3e;
    --line: #253a52;
    --text: #eef4fa;
    --muted: #aec0d0;
    --faint: #8ea4b8;
    --accent: #43c8d9;
    --accent2: #80c8e3;
    --deep: #1b7fca;
    --bad: #f08a8a;
    --good: #7fdc9f;
    --warn: #f0c674;
    --kicker: #80c8e3;
    --button-from: #80c8e3;
    --button-to: #43c8d9;
    --button-ink: #082a3e;
    --ghost-ink: #80c8e3;
    --ghost-edge: #43c8d955;
    --glow: #43c8d933;
    --wash-a: #15435b99;
    --wash-b: #13596655;
    --dots: #22465c;
    --edge: #ffffff08;
    --rule: #337fa4;
    --shot-bg: #0d1622;
    --shot-edge: #2c4560;
    --shot-bar: #121e2d;
    --shot-bar-edge: #22364c;
    --shot-dot: #2f465e;
    --shot-shadow: 0 40px 90px #0009, 0 0 0 1px #ffffff08 inset, 0 0 60px #43c8d914;
    --bad-bg: #3a1f26;
    --good-bg: #173a44;
    --good-edge: #2f6170;
    --good-glow: 0 0 40px #43c8d915;
    --illustration-bg: #0d1824;
    --illustration-edge: #1f3247;
    --thead: #122033;
    --chip: #22344b;
    --chip-v: #2e2a55;
    --chip-v-ink: #c9c2ff;
    --cta-wash: #15435b;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.7 "DM Sans",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
em {
  font-style: normal;
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.narrow {
  max-width: 760px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, var(--button-from), var(--button-to));
  color: var(--button-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}
.button.ghost {
  background: transparent;
  color: var(--ghost-ink);
  border-color: var(--ghost-edge);
}
.button.small {
  padding: 10px 16px;
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(ellipse 50% 45% at 75% 35%, var(--wash-a), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, var(--wash-b), transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(
    ellipse 70% 60% at 60% 30%,
    #000 30%,
    transparent 80%
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.crumb {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumb i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 22px 0 22px;
  max-width: 900px;
}
.hero h1 em {
  background: linear-gradient(
    100deg,
    var(--accent2),
    var(--accent),
    var(--deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
}
.lede strong {
  color: var(--text);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 16px;
}

/* A screenshot in a window frame. */
.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--shot-edge);
  background: var(--shot-bg);
  box-shadow: var(--shot-shadow);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--shot-bar);
  border-bottom: 1px solid var(--shot-bar-edge);
}
.shot-bar b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shot-dot);
}
.shot-bar span {
  margin-left: 10px;
  font-size: 11px;
  color: var(--faint);
}
figcaption {
  font-size: 13px;
  color: var(--faint);
  padding: 12px 4px 0;
}
.hero-shot {
  margin-top: 56px;
  transform: perspective(2200px) rotateX(4deg);
  transform-origin: top center;
}

/* Sections */
section {
  padding: 90px 0;
}
section.tint {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-block: 1px solid var(--edge);
}
.kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kicker);
  font-weight: 700;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
}
p + p {
  margin-top: 14px;
}
.prose p {
  color: var(--muted);
}
.prose strong {
  color: var(--text);
}

/* Spot versus button */
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.panel {
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.panel .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.panel.bad .tag {
  background: var(--bad-bg);
  color: var(--bad);
}
.panel.good {
  border-color: var(--good-edge);
  box-shadow: var(--good-glow);
}
.panel.good .tag {
  background: var(--good-bg);
  color: var(--accent);
}
.panel p {
  color: var(--muted);
  font-size: 15px;
}
.panel svg {
  width: 100%;
  height: auto;
  margin: 6px 0 18px;
  border-radius: 10px;
  background: var(--illustration-bg);
  border: 1px solid var(--illustration-edge);
}

/* The three ways a recording breaks */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card .num {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 13px;
}
.card h3 {
  margin-top: 12px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

/* Comparison table */
.table-wrap {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}
th,
td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  background: var(--thead);
}
thead th:last-child {
  color: var(--accent);
}
tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 30%;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
td.win {
  color: var(--text);
}
.yes::before,
.no::before,
.part::before {
  display: inline-block;
  width: 20px;
  font-weight: 700;
}
.yes::before {
  content: "✓";
  color: var(--good);
}
.no::before {
  content: "✕";
  color: var(--bad);
}
.part::before {
  content: "~";
  color: var(--warn);
}

/* Feature rows with screenshots */
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  margin-top: 90px;
}
.feature:first-of-type {
  margin-top: 50px;
}
.feature.flip {
  grid-template-columns: 7fr 5fr;
}
.feature.flip .feature-copy {
  order: 2;
}
.feature-copy p {
  color: var(--muted);
}
.feature-copy ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.feature-copy li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.step-sentence {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 14px;
  margin-top: 16px;
}
.step-sentence span {
  background: var(--chip);
  border-radius: 5px;
  padding: 1px 8px;
}
.step-sentence span.v {
  background: var(--chip-v);
  color: var(--chip-v-ink);
}

/* Honest box */
.honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
.honest .panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.honest ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.honest li {
  margin-top: 8px;
}

/* Switching */
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.steps li {
  list-style: none;
  counter-increment: s;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.steps li::before {
  content: "0" counter(s);
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 13px;
}
.steps h3 {
  font-size: 18px;
  margin-top: 12px;
}
.steps p {
  color: var(--muted);
  font-size: 14.5px;
}
ol.steps {
  padding: 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  padding-top: 12px;
  font-size: 15.5px;
}

/* Call to action */
.cta {
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--cta-wash), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--edge);
}
.cta h2 {
  max-width: 760px;
  margin: 14px auto 18px;
}
.cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.cta .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}
footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .feature,
  .feature.flip,
  .versus,
  .honest {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature.flip .feature-copy {
    order: 0;
  }
  .cards3 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .wrap,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding-top: 40px;
  }
  .lede {
    font-size: 17px;
  }
  section {
    padding: 64px 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    transform: none;
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

/* A portrait crop (the flowchart) is shown narrow rather than stretched. */
.shot.tall { max-width: 380px; justify-self: center; }

/* Another program's window, shown on the light background it really has. */
.pair { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; margin-top: 40px; }
.pair-copy p { color: var(--muted); }
.pair-copy a { color: var(--accent); }
/* Another program's window is light in either theme: the picture is its own background. */
.shot.light { background: #f0f0f0; }
.shot.light img { image-rendering: pixelated; }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; gap: 24px; } }

/* A card that is a link, on the guides list and under "More guides". */
.link-card { display: block; text-decoration: none; transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); }
.link-card h3 { color: var(--text); }

/* The hero's glow fades out rather than stopping at the section's edge. */
.hero::before { mask-image: linear-gradient(#000 55%, transparent 95%); }

/* A frame is as wide as its picture (never wider than its column), so a picture
   narrower than the page does not sit in an empty frame. */
.shot { width: fit-content; max-width: 100%; }
.hero-shot { margin-left: auto; margin-right: auto; }
.feature .shot { justify-self: center; }

/* A script shown as text (a code section), framed like a screenshot. A long line
   scrolls inside the frame, never the page. */
.code-pair { align-items: start; }
.code-pair > * { min-width: 0; }
.code-shot { width: 100%; }
.code-shot pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); tab-size: 4; }
.code-pair .pair-copy h3 { margin-top: 0; }
.code-pair .pair-copy ul { color: var(--muted); padding-left: 20px; }
.code-pair .pair-copy li { margin-bottom: 8px; }
