/* Hushflow site.
   Tokens: warm paper page, ink type, the logo's indigo for the dark bands and
   its teal/violet only where the product itself uses them (the waveform).
   Type: Newsreader (display, optical sizes, real italics) + Hanken Grotesk. */

:root {
  --paper: #fbf8f2;
  --sand: #efe9dc;
  --sand-2: #e6dfcf;
  --ink: #1b1933;
  --ink-2: #57536a;
  --ink-3: #8a8698;
  --indigo: #1e1b4b;
  --indigo-2: #2a2664;
  --on-indigo: #f4f1ff;
  --on-indigo-2: #b9b4dc;
  --mint: #c8f2e6;
  --teal: #5eead4;
  --violet: #a78bfa;
  --line: rgba(27, 25, 51, 0.13);
  --line-strong: rgba(27, 25, 51, 0.28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:
    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mac:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --band-r: clamp(28px, 4vw, 56px);
  --space: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

p {
  margin: 0;
  text-wrap: pretty;
}

em {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.band-ink :focus-visible,
.closing :focus-visible {
  outline-color: var(--on-indigo);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font: 500 17px/1 var(--sans);
  color: var(--ink);
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms var(--ease);
}
.btn:hover {
  background: #b3ead9;
}
.btn:active {
  transform: translateY(1px);
}
.btn-small {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 8px;
}

.btn-link {
  font: 500 17px/1 var(--sans);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}
.btn-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 16px var(--gutter) 0;
  margin-top: -16px;
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 19px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  margin: -2px;
}
.nav nav {
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
}
.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-intro {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(56px, 9.2vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 360;
  font-variation-settings: "opsz" 72;
}
.hero h1 em {
  font-weight: 300;
  letter-spacing: -0.04em;
}
.lede {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 34px;
}
.fine {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

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

.demo {
  max-width: 1180px;
  margin: clamp(48px, 5vw, 72px) auto 0;
}
.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 72px) clamp(88px, 9vw, 112px);
  background: var(--sand);
  border-radius: var(--band-r);
  overflow: hidden;
}

.said-col {
  align-self: center;
}
.said-label {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 14px;
  transition: color 200ms ease;
}
.demo-raw {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 3.75em;
}
.demo-raw .w {
  opacity: 0;
  transition:
    opacity 200ms ease,
    color 300ms ease;
}
.demo-raw .w.in {
  opacity: 1;
}
.demo-raw .w.cut {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--ink-2);
  text-decoration-thickness: 1.5px;
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  min-height: 32px;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 220ms ease,
    transform 300ms var(--ease);
}
.chip.in {
  opacity: 1;
  transform: none;
}

/* A plain, Mac-like app window. */
.window {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 24px 48px -24px rgba(40, 30, 10, 0.25);
  font-family: var(--mac);
  overflow: hidden;
  min-width: 0;
}
.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid #ececec;
  background: #f7f7f7;
}
.lights {
  display: flex;
  gap: 7px;
}
.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.window-app {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
}
.window-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 270px;
  padding: 22px;
}
.context {
  font-size: 15px;
  line-height: 1.35;
  color: #1d1d1f;
}
.context-bubble {
  align-self: flex-start;
  max-width: 80%;
  padding: 9px 14px;
  background: #e9e9eb;
  border-radius: 18px;
}
.context-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.context-meta {
  padding-bottom: 12px;
  color: #6e6e73;
  border-bottom: 1px solid #ececec;
}
.compose {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #dedede;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: #1d1d1f;
}
.demo-out {
  opacity: 0;
}
.demo-out.in {
  opacity: 1;
  transition: opacity 260ms ease;
}
.demo-out p,
.demo-out ul {
  margin: 0;
}
.demo-out ul {
  padding-left: 1.2em;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: #0a84ff;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* The recording overlay, drawn from the app's own RecordingOverlay.css:
   dark surface, hairline border, no shadow; dot | 9 bars | cancel. */
.pill {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 3vw, 36px);
  display: grid;
  grid-template-columns: 22px auto 22px;
  align-items: center;
  justify-items: center;
  width: 184px;
  height: 40px;
  padding: 0 10px;
  background: rgba(28, 28, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  font-family: var(--mac);
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 360ms var(--ease),
    width 460ms var(--ease);
}
.pill.is-rest .pill-wave i {
  height: calc(var(--h) * 0.6);
}
.pill.is-hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.94);
}
.pill.is-thinking {
  width: 216px;
  border-radius: 18px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a84ff;
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
}
.pill-spin {
  display: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #0a84ff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.pill-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.pill-wave i {
  width: 3px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--teal), var(--violet));
}
.pill.is-live .pill-wave i {
  animation: bar 900ms ease-in-out infinite alternate;
}
.pill-wave i:nth-child(1),
.pill-wave i:nth-child(9) {
  --h: 6px;
  animation-delay: -200ms;
}
.pill-wave i:nth-child(2),
.pill-wave i:nth-child(8) {
  --h: 10px;
  animation-delay: -500ms;
}
.pill-wave i:nth-child(3),
.pill-wave i:nth-child(7) {
  --h: 14px;
  animation-delay: -100ms;
}
.pill-wave i:nth-child(4),
.pill-wave i:nth-child(6) {
  --h: 17px;
  animation-delay: -700ms;
}
.pill-wave i:nth-child(5) {
  --h: 18px;
  animation-delay: -350ms;
}
@keyframes bar {
  0% {
    height: 4px;
  }
  45% {
    height: var(--h);
  }
  100% {
    height: calc(var(--h) * 0.45);
  }
}
.pill-text {
  display: none;
  font-size: 12px;
  color: #a1a1a6;
  white-space: nowrap;
}
.pill-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.08);
}
.pill.is-thinking .pill-dot,
.pill.is-thinking .pill-wave {
  display: none;
}
.pill.is-thinking .pill-spin,
.pill.is-thinking .pill-text {
  display: block;
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 8px 0;
  font-size: 15px;
  color: var(--ink-2);
}
.demo-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-tabs,
.platform-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--sand);
}
.demo-tabs button,
.platform-toggle button,
.demo-pause {
  font: 500 14px/1 var(--sans);
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.demo-tabs button[aria-pressed="true"],
.platform-toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.demo-pause {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  padding: 8px 4px;
}

/* ---------- Bands ---------- */

.band {
  margin-top: var(--space);
  padding: var(--space) 0;
  border-radius: var(--band-r);
}
.band-ink {
  background: var(--indigo);
  color: var(--on-indigo);
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 120px);
  align-items: start;
}
.how-head {
  position: sticky;
  top: 120px;
}
.how h2,
.engine h2 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.how-head p,
.engine-copy p {
  margin-top: 24px;
  max-width: 440px;
  font-size: 19px;
  color: var(--on-indigo-2);
}
.band-ink .platform-toggle {
  margin-top: 32px;
  background: var(--indigo-2);
}
.band-ink .platform-toggle button {
  color: var(--on-indigo-2);
}
.band-ink .platform-toggle button[aria-pressed="true"] {
  background: var(--on-indigo);
  color: var(--indigo);
  box-shadow: none;
}

.keys-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.keys-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid rgba(244, 241, 255, 0.16);
}
.keys-list li:last-child {
  border-bottom: 1px solid rgba(244, 241, 255, 0.16);
}
.keys-list h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.keys-list p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--on-indigo-2);
}
.keys {
  display: flex;
  align-items: center;
  gap: 6px;
}
.keys > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
kbd {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 52px;
  height: 52px;
  padding: 8px 9px;
  font: 500 14px/1 var(--mac);
  color: var(--indigo);
  background: var(--on-indigo);
  border-radius: 9px;
  box-shadow:
    inset 0 -3px 0 rgba(30, 27, 75, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.3);
}
kbd.k-wide {
  min-width: 76px;
}
.tap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--on-indigo-2);
  margin-left: 6px;
}
html[data-platform="mac"] .k-win,
html[data-platform="win"] .k-mac {
  display: none !important;
}
.how-note {
  grid-column: 2;
  font-size: 15px;
  color: var(--on-indigo-2);
}

/* ---------- Cleanup ---------- */

.cleanup {
  padding-top: var(--space);
}
.big-title {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.big-sub {
  max-width: 600px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 19px;
  color: var(--ink-2);
}
.big-sub strong {
  font-weight: 600;
  color: var(--ink);
}

.rows {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid;
  gap: clamp(56px, 7vw, 104px);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.row:nth-child(even) .panel {
  order: 2;
}
.row-copy h3 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.row-copy p {
  margin-top: 18px;
  max-width: 440px;
  font-size: 18px;
  color: var(--ink-2);
}
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--sand);
  border-radius: 24px;
}

.transcript {
  width: 100%;
  max-width: 460px;
}
.t-said {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink-2);
}
.t-said s {
  color: var(--ink-3);
  text-decoration-thickness: 1.5px;
}
.t-got {
  margin-top: 22px;
  padding: 16px 18px;
  font-family: var(--mac);
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.t-got ul {
  margin: 4px 0 0;
  padding-left: 1.2em;
}

/* Settings, as the app lays it out: sidebar + grouped rows. */
.settings {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  width: 100%;
  max-width: 520px;
  font-family: var(--mac);
  font-size: 13px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}
.settings-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 8px;
  background: #ececee;
  color: #4a4a4f;
}
.settings-side span {
  padding: 6px 9px;
  border-radius: 6px;
}
.settings-side .is-on {
  background: #fff;
  color: #1d1d1f;
  font-weight: 600;
}
.settings-main {
  margin: 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid #ededf0;
}
.set-row:first-child {
  border-top: 0;
}
.set-row strong {
  font-weight: 500;
  color: #1d1d1f;
}
.set-row small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #86868b;
}
.switch {
  flex: none;
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #0a84ff;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.select {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 9px;
  font-size: 12px;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #dcdce0;
  border-radius: 6px;
}

.dict {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
}
.dict span {
  padding: 9px 15px;
  font-family: var(--mac);
  font-size: 15px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}
.dict .dict-add {
  color: var(--ink-2);
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}

/* ---------- Privacy ---------- */

.privacy {
  padding-top: var(--space);
}
.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px);
  background: var(--sand);
  border-radius: 28px;
}
.privacy-panel h2 {
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.privacy-panel p {
  font-size: 17px;
  color: var(--ink-2);
}
.privacy-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.privacy-facts li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.privacy-facts li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Engine + extras ---------- */

.engine {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
}
.models {
  padding: 22px;
  background: var(--indigo-2);
  border: 1px solid rgba(244, 241, 255, 0.1);
  border-radius: 18px;
  font-family: var(--mac);
}
.models-title {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--on-indigo-2);
}
.model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 16px;
  background: rgba(244, 241, 255, 0.06);
  border-radius: 12px;
}
.model + .model {
  margin-top: 8px;
}
.model strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.model small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--on-indigo-2);
}
.model-state {
  font-size: 13px;
  color: var(--on-indigo-2);
  font-variant-numeric: tabular-nums;
}
.model-state.is-ready {
  color: var(--teal);
}
.model-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 241, 255, 0.12);
  overflow: hidden;
}
.model-bar i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--teal), var(--violet));
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(32px, 4vw, 56px);
  margin: clamp(72px, 9vw, 120px) 0 0;
}
.extras div {
  padding: 26px 0 30px;
  border-top: 1px solid rgba(244, 241, 255, 0.16);
}
.extras dt {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.extras dd {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--on-indigo-2);
}

/* ---------- Download ---------- */

.download {
  padding-top: var(--space);
}
.dl-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
}
.dl-head h2,
.faq-wrap h2 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.dl-head p {
  max-width: 480px;
  font-size: 18px;
  color: var(--ink-2);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.dl {
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  min-width: 0;
}
.dl h3 {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.dl-meta {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.dl-help {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.dl-help strong {
  color: var(--ink);
  font-weight: 600;
}
.code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 10px 10px 14px;
  background: var(--sand);
  border-radius: 10px;
}
.code code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    13px/1.45 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
}
.copy {
  flex: none;
  font: 500 13px/1 var(--sans);
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
}
.dl-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq-section {
  padding-top: var(--space);
}
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-wrap h2 {
  position: sticky;
  top: 120px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 240ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  max-width: 620px;
  padding: 0 0 26px;
  font-size: 17px;
  color: var(--ink-2);
}
.faq code {
  font:
    0.9em ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}

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

.closing {
  margin-top: var(--space);
}
.closing-inner {
  padding: clamp(96px, 12vw, 168px) var(--gutter);
  text-align: center;
  background: var(--indigo);
  color: var(--on-indigo);
  border-radius: var(--band-r);
}
.closing h2 {
  font-size: clamp(60px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.closing h2 em {
  font-weight: 300;
}
.closing p {
  margin-top: 28px;
  font-size: 20px;
  color: var(--on-indigo-2);
}
.closing .btn-link {
  color: var(--on-indigo);
  text-decoration-color: rgba(244, 241, 255, 0.4);
}

/* ---------- Footer ---------- */

.footer {
  padding: 72px 0 40px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.footer-blurb {
  max-width: 380px;
  font-size: 15px;
  color: var(--ink-2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  margin-top: clamp(56px, 8vw, 104px);
  text-decoration: none;
}
.wordmark img {
  width: clamp(64px, 15vw, 210px);
  height: auto;
  margin: -2%;
}
.wordmark span {
  font-family: var(--serif);
  font-size: clamp(64px, 17vw, 250px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 72;
}

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav nav {
    margin-left: auto;
  }
  .desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .how,
  .engine,
  .row,
  .privacy-panel,
  .dl-head,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .how-head,
  .faq-wrap h2 {
    position: static;
  }
  .how-note {
    grid-column: 1;
  }
  .row:nth-child(even) .panel {
    order: 0;
  }
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .nav-bar {
    padding: 8px 8px 8px 14px;
  }
  .desk {
    padding-bottom: 96px;
  }
  .demo-raw {
    min-height: 0;
  }
  .window-body {
    min-height: 220px;
    padding: 16px;
  }
  .demo-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .keys-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
  }
  .panel {
    min-height: 0;
    padding: 22px 16px;
  }
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-side {
    display: none;
  }
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq summary {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .pill-wave i {
    height: calc(var(--h) * 0.7);
  }
}
