/* Mailspring 2.0 launch page.
   The hero sits on a deep indigo "night" so the app window is the brightest thing on screen;
   the rest of the page returns to the site's paper so it reads as part of getmailspring.com. */

:root {
  --night: #17163a;
  --night-2: #221f52;
  --indigo: #666ee8;
  --indigo-ink: #4b50b8;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #2d2924;
  --ink-soft: #6b6359;
  --local: #34b27b;
  --on-night: #e9e7ff;
  --on-night-soft: #aeaad8;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--indigo-ink);
}

:focus-visible {
  outline: 3px solid #9aa0ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: white;
  padding: 8px 14px;
}

/* ---------- Stage (hero) ---------- */

.stage {
  position: relative;
  color: var(--on-night);
  background:
    radial-gradient(1200px 520px at 50% 108%, rgba(102, 110, 232, 0.55), transparent 70%),
    radial-gradient(700px 400px at 85% 0%, rgba(102, 110, 232, 0.18), transparent 70%),
    var(--night);
  padding-bottom: 72px;
  overflow: hidden;
}

/* faint dot grid, echoing the grid behind the Views home in the app */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 90%);
  pointer-events: none;
}

.topnav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px;
  font-size: 15px;
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.topnav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.topnav a:not(.brand) {
  color: var(--on-night-soft);
  text-decoration: none;
}

.topnav a:not(.brand):hover {
  color: white;
}

.topnav .topnav-download {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 16px;
  border-radius: 999px;
}

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 0;
  text-align: center;
}

.hero h1 {
  max-width: 1180px;
  margin-inline: auto;
  text-wrap: balance;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  font-variation-settings: "opsz" 144;
}

.hero-lede {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: 19px;
  color: var(--on-night-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.cta {
  display: inline-block;
  font-weight: 500;
  font-size: 17px;
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 10px;
  background: linear-gradient(160deg, #7c80ee 0%, #666ee8 45%, #5558d8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 30px rgba(85, 90, 215, 0.55);
  transition: transform 140ms ease, box-shadow 160ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 14px 38px rgba(85, 90, 215, 0.7);
}

.cta:visited {
  color: white;
}

.cta-quiet {
  color: var(--on-night);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 500;
}

.cta-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cta-quiet-dark {
  color: var(--indigo-ink);
}

.cta-quiet-dark:hover {
  background: rgba(102, 110, 232, 0.1);
}

/* ---------- Demo frames ---------- */

.demo {
  position: relative;
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 28px;
}

.demo-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 740;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 100px rgba(5, 4, 30, 0.6),
    0 10px 30px rgba(5, 4, 30, 0.4);
  overflow: hidden;
  background: #f6f7f8;
}

.demo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--on-night-soft);
  min-height: 34px;
}

.demo-caption-text {
  transition: opacity 250ms ease;
}

.demo-toggle {
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  opacity: 0.8;
}

.demo-toggle:hover {
  opacity: 1;
}

.demo-cal .demo-fit {
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.08),
    0 30px 80px rgba(60, 45, 20, 0.18),
    0 6px 18px rgba(60, 45, 20, 0.1);
}

.demo-cal .demo-caption {
  color: var(--ink-soft);
}

/* The Views hero is a screen recording of the real 1280 x 800 window. */
.demo-video .demo-fit {
  aspect-ratio: 16 / 10;
}

.demo-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */

main section {
  padding: 120px 28px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */

.gallery-body {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 36px;
  max-width: 1240px;
  margin: 56px auto 0;
  align-items: start;
}

.prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompts button {
  all: unset;
  display: block;
  cursor: pointer;
  padding: 16px 18px 14px;
  border-radius: 12px;
  transition: background 160ms ease;
}

.prompts button:hover {
  background: rgba(45, 41, 36, 0.05);
}

.prompts button:focus-visible {
  outline: 3px solid #9aa0ff;
  outline-offset: 0;
}

.prompts button[aria-selected="true"] {
  background: white;
  box-shadow: 0 1px 2px rgba(45, 41, 36, 0.08), 0 8px 24px rgba(45, 41, 36, 0.07);
}

.prompt-text {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.prompt-text::before {
  content: "\201C";
}

.prompt-text::after {
  content: "\201D";
}

.prompt-name {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.prompts button[aria-selected="true"] .prompt-name {
  color: var(--indigo-ink);
}

.gallery-window {
  position: sticky;
  top: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.08),
    0 30px 80px rgba(60, 45, 20, 0.18);
}

.gw-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  background: #f6f7f8;
  border-bottom: 1px solid #e3e4e6;
  font-size: 14px;
  color: #333;
}

.lights {
  display: inline-flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ee6a5f;
}

.lights i:nth-child(2) {
  background: #f5bd4f;
}

.lights i:nth-child(3) {
  background: #61c454;
}

.gw-title {
  font-weight: 500;
}

.local-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #444;
  background: white;
  border: 1px solid #e3e4e6;
  border-radius: 999px;
  padding: 3px 12px;
}

.local-pill b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--local);
  box-shadow: 0 0 0 3px rgba(52, 178, 123, 0.18);
}

.gw-screen {
  aspect-ratio: 1160 / 740;
  overflow: hidden;
  background: white;
}

.gw-screen img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 220ms ease;
}

.gw-screen img.is-swapping {
  opacity: 0;
}

/* ---------- Private ---------- */

.lifecycle {
  list-style: none;
  padding: 0;
  margin: 80px auto 0;
  max-width: 1120px;
  display: grid;
  gap: 104px;
}

.phase {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.phase-text {
  max-width: 430px;
}

.phase h3 {
  font-size: 30px;
  letter-spacing: -0.01em;
}

.phase p {
  margin: 16px 0 0;
  color: #4e4840;
  font-size: 17px;
}

.phase strong {
  color: var(--ink);
  font-weight: 600;
}

.private .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Both diagrams share one frame: a night band for Mailspring's cloud (the hero's indigo)
   above a paper zone for your computer. The line between them is the point of each diagram. */

.dg {
  margin: 0;
}

.dg-art {
  --band: 148px;
  --zone: #fbf8f3;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--zone);
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.08),
    0 30px 60px -30px rgba(60, 45, 20, 0.3);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}

.dg svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dg-cloud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--band);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: flex-start;
  gap: 4px 16px;
  padding: 16px 20px;
  color: var(--on-night-soft);
  background:
    radial-gradient(360px 180px at 50% 0%, rgba(102, 110, 232, 0.4), transparent 70%),
    var(--night);
}

.dg-cloud::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.dg-zone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.dg-zone svg {
  width: 18px;
  height: 18px;
}

.dg-zone-here {
  position: absolute;
  left: 20px;
  top: calc(var(--band) + 16px);
  color: var(--ink-soft);
}

.dg-name {
  font-weight: 600;
  color: var(--ink);
}

/* Mini View window, drawn the same way in both diagrams */

.mini-win {
  display: block;
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: white;
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.1),
    0 14px 28px -10px rgba(60, 45, 20, 0.3);
}

.mw-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  background: #f3f1ec;
  border-bottom: 1px solid #e8e3d9;
}

.mw-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8d1c4;
}

.mw-bar em {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  color: var(--indigo-ink);
  background: rgba(102, 110, 232, 0.13);
}

.mw-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 5px;
  height: 86px;
  padding: 7px;
}

.mw-board > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 5px;
  background: #f1eee8;
}

.mw-board b {
  display: block;
  height: 13px;
  border-radius: 3px;
  background: white;
  box-shadow: 0 0 0 1px rgba(45, 41, 36, 0.07);
}

/* the cards that gained a due date in this revision */
.mw-board b.mw-new {
  background: linear-gradient(90deg, transparent calc(100% - 13px), rgba(102, 110, 232, 0.5) calc(100% - 13px) calc(100% - 4px), transparent calc(100% - 4px)) center / 100% 4px no-repeat, white;
  box-shadow: 0 0 0 1px rgba(102, 110, 232, 0.45);
}

/* ---- Diagram 1: the build loop ---- */

.dg-loop .dg-art {
  --lx: 25%;
  --rx: 75%;
  --ai-y: 70px;
  --st-y: 276px;
  --rt-y: 392px;
  height: 436px;
}

/* In the loop, the track runs where the zone label would sit; the label moves to the bottom corner. */
.dg-loop .dg-zone-here {
  top: auto;
  bottom: 16px;
}

.loop-track {
  position: absolute;
  left: var(--lx);
  right: calc(100% - var(--rx));
  top: var(--ai-y);
  height: calc(var(--rt-y) - var(--ai-y));
}

.lt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The same track drawn twice: light where it crosses the night band, indigo on paper. */
.lt-night {
  clip-path: inset(-8px -8px calc(100% - var(--band) + var(--ai-y)) -8px);
}

.lt-day {
  clip-path: inset(calc(var(--band) - var(--ai-y)) -8px -8px -8px);
}

.dg .lt-base {
  stroke-width: 1.5;
}

.lt-night .lt-base {
  stroke: rgba(174, 170, 216, 0.5);
}

.lt-day .lt-base {
  stroke: rgba(75, 80, 184, 0.4);
}

/* a short highlight that travels clockwise: you share, the AI answers, the View updates */
.dg .lt-run {
  stroke-width: 3;
  stroke-dasharray: 5 95;
  stroke-linecap: round;
  animation: loop-run 16s linear infinite;
}

.lt-night .lt-run {
  stroke: #d4d6ff;
}

.lt-day .lt-run {
  stroke: var(--indigo);
}

@keyframes loop-run {
  to {
    stroke-dashoffset: -100;
  }
}

.dg .lt-arrow {
  position: absolute;
  top: calc((var(--band) - var(--ai-y) + 30px) / 2);
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #c9cbff;
}

.lt-up {
  left: 0;
  transform: translate(-50%, -50%);
}

.lt-down {
  right: 0;
  transform: translate(50%, -50%);
}

.dg .lt-back {
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  color: var(--indigo);
}

.loop-ai {
  position: absolute;
  left: calc((var(--lx) + var(--rx)) / 2);
  top: var(--ai-y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  background: linear-gradient(160deg, #7c80ee 0%, #666ee8 45%, #5558d8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 7px rgba(102, 110, 232, 0.2),
    0 12px 30px rgba(8, 6, 40, 0.6);
}

.dg .loop-ai svg {
  width: 18px;
  height: 18px;
  fill: white;
  stroke: none;
}

.loop-line {
  position: absolute;
  left: calc((var(--lx) + var(--rx)) / 2);
  top: var(--band);
  transform: translate(-50%, -50%);
  max-width: calc(var(--rx) - var(--lx) - 24px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--indigo-ink);
  background: var(--zone);
  box-shadow: 0 0 0 1px rgba(75, 80, 184, 0.3);
}

.loop-share,
.loop-view {
  position: absolute;
  top: var(--st-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  background: var(--zone);
}

.loop-share {
  left: var(--lx);
  width: min(226px, 46%);
  gap: 6px;
  padding: 8px 0;
}

.loop-share .dg-name {
  color: var(--indigo-ink);
  padding-left: 2px;
}

.tok {
  text-wrap: balance;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #4e4840;
  background: white;
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.08),
    0 3px 8px -2px rgba(60, 45, 20, 0.12);
}

.dg .tok svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--indigo-ink);
}

.tok-ask {
  border-bottom-left-radius: 3px;
}

.tok-ask q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
}


.loop-view {
  left: var(--rx);
  width: min(196px, 42%);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}


/* ---- Diagram 2: sealed inside your computer ---- */

.dg-sealed .dg-art {
  --band: 78px;
  padding: calc(var(--band) + 62px) 24px 30px;
}

.dg-sealed .dg-cloud {
  background: #2a2948;
  box-shadow: inset 0 -3px 0 #2f8a5f;
}

.dg-sealed .dg-cloud > * {
  opacity: 0.75;
}

/* the computer zone is closed on every side: the green rule continues around it */
.dg-sealed .dg-art::after {
  content: "";
  position: absolute;
  inset: var(--band) 0 0;
  border: 2px solid rgba(47, 138, 95, 0.45);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  pointer-events: none;
}

.dg-idle {
  position: relative;
  font-size: 12.5px;
}

.sealed-line {
  position: absolute;
  left: 50%;
  top: calc(var(--band) - 1.5px);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
  background: #1f6d4a;
  box-shadow: 0 0 0 4px var(--zone);
}

.dg .sealed-line svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.sealed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0 6px;
}

.node {
  display: grid;
  grid-template-rows: 104px auto auto;
  justify-items: center;
  row-gap: 3px;
  text-align: center;
}

.node > :first-child {
  align-self: center;
  margin-bottom: 8px;
}

.node small b {
  font-weight: 600;
  color: var(--ink);
}

.node small {
  font-size: 12px;
  color: var(--ink-soft);
}

.node .mini-win {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 132px;
  height: auto;
}

.node .mw-board {
  height: 72px;
}

.mini-inbox {
  flex-direction: column;
  display: flex;
  gap: 7px;
  width: 116px;
  padding: 11px 10px;
  border-radius: 9px;
  background: white;
  box-shadow:
    0 0 0 1px rgba(45, 41, 36, 0.1),
    0 14px 28px -10px rgba(60, 45, 20, 0.3);
}

.mini-inbox i {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 10px;
}

.mini-inbox i::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6cfc2;
}

.mini-inbox i::after {
  content: "";
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #ebe5da;
}

.mini-inbox i:first-child::before {
  background: var(--indigo);
}

.mini-inbox i:nth-child(3)::after {
  margin-right: 22px;
}

.model-chip {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  color: #c4f5dc;
  background: radial-gradient(circle at 50% 30%, #33946a, #1f6d4a 70%);
  box-shadow:
    0 0 0 7px rgba(52, 178, 123, 0.14),
    0 14px 28px -10px rgba(31, 109, 74, 0.6);
}

.dg .model-chip svg {
  width: 58px;
  height: 58px;
  stroke-width: 1.8;
}

.dg .model-chip .mc-spark {
  fill: currentColor;
  stroke: none;
}

.node-model .dg-name {
  color: #1f6d4a;
}

.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 36px;
  font-size: 12px;
  color: var(--ink-soft);
}

.link em {
  font-style: normal;
}

.dg .link svg {
  width: 44px;
  height: 12px;
  color: rgba(45, 41, 36, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .dg .lt-run {
    animation: none;
    display: none;
  }
}

.guarantees {
  max-width: 1120px;
  margin: 104px auto 0;
  padding: 34px;
  border-radius: 18px;
  background: white;
}

.guarantees h3 {
  font-size: 26px;
}

.guarantees ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  font-size: 16px;
  color: #4e4840;
}

.guarantees strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Calendar ---------- */

.calendar .demo {
  margin-top: 56px;
}

.cal-points {
  max-width: 1120px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.cal-points h3 {
  font-size: 22px;
}

.cal-points p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #4e4840;
}

/* ---------- Share ---------- */

/* A short aside between the privacy story and the calendar: heading on the left, the
   point and its link on the right, ruled top and bottom so it reads as a pause. */
.share-body {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 64px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid rgba(45, 41, 36, 0.14);
  border-bottom: 1px solid rgba(45, 41, 36, 0.14);
}

.share-body h2 {
  grid-row: span 2;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.share-body p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.share-link {
  justify-self: start;
  font-weight: 500;
  color: var(--indigo-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.share-link:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .share-body {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .share-body h2 {
    grid-row: auto;
  }
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 120px !important;
}

.closing h2 {
  font-size: clamp(36px, 5vw, 60px);
}

.closing p {
  color: var(--ink-soft);
  margin: 18px auto 0;
  max-width: 560px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(45, 41, 36, 0.1);
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a {
  color: inherit;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .gallery-body {
    grid-template-columns: 1fr;
  }

  .prompts {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .prompts button {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .gallery-window {
    position: relative;
    top: 0;
  }

  .lifecycle {
    max-width: 720px;
    gap: 88px;
  }

  .phase {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phase-text {
    max-width: 620px;
  }

  .cal-points {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .local-pill {
    display: none;
  }

  body {
    font-size: 17px;
  }

  .topnav ul li:not(:last-child) {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .demo {
    padding: 0 12px;
    margin-top: 44px;
  }

  main section {
    padding-top: 84px;
  }

  .guarantees ul {
    grid-template-columns: 1fr;
  }

  .guarantees {
    padding: 26px 22px;
  }

  .lifecycle {
    margin-top: 56px;
    gap: 72px;
  }

  .phase h3 {
    font-size: 26px;
  }

  /* Diagrams get a little more width than the text on phones. */
  .dg {
    margin: 0 -10px;
  }

  .dg-cloud {
    padding: 14px 16px;
  }

  .dg-zone-here {
    left: 16px;
  }

  .dg-loop .dg-art {
    --lx: 27%;
    --rx: 76%;
    --band: 132px;
    --ai-y: 62px;
    --st-y: 270px;
    --rt-y: 400px;
    height: 500px;
    font-size: 12px;
  }

  .loop-ai {
    padding: 8px 15px 8px 12px;
    font-size: 13.5px;
  }

  .loop-line {
    font-size: 12px;
  }

  .loop-share {
    width: 46%;
  }

  .tok {
    gap: 6px;
    padding: 6px 8px;
  }

  .tok-ask q {
    font-size: 13px;
  }


  .loop-view {
    width: 40%;
  }


  .dg-sealed .dg-art {
    --band: 92px;
    padding: calc(var(--band) + 58px) 20px 26px;
  }

  .sealed-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .node {
    grid-template-rows: auto auto;
    justify-items: start;
    grid-template-columns: 116px 1fr;
    align-items: center;
    column-gap: 18px;
    row-gap: 2px;
    text-align: left;
  }

  .node > :first-child {
    grid-row: span 2;
    margin: 0;
    justify-self: center;
  }

  .node .dg-name {
    align-self: end;
  }

  .node small {
    align-self: start;
  }

  .node .mini-win {
    width: 116px;
  }

  .mini-inbox {
    width: 104px;
  }

  .model-chip {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .dg .model-chip svg {
    width: 50px;
    height: 50px;
  }

  .link {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    height: 52px;
    margin: 0;
    padding-left: 36px;
  }

  .dg .link svg {
    transform: rotate(90deg);
  }
}
