/* The Dusk website: white to pale warm surfaces, near-black text, black actions and one dusk-orange signal color
   for state, from the app icon (src-tauri/icons/source.svg). Light and dark follow the visitor's system. */

:root {
  --signal: #d24e0a;
  --signal-soft: #fdeee5;
  --band-signal: #ff8a3d;
  --band-signal-soft: rgba(255, 138, 61, 0.16);
  --bg: #ffffff;
  --tint: #fdf7f3;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --border: #e3e8ef;
  --grid: #edf1f6;
  --text: #0b0d12;
  --text-2: #4b5363;
  --text-3: #7a8293;
  --action: #0b0d12;
  --action-text: #ffffff;
  --action-hover: #262a33;
  --good: #15803d;
  --removed: #b42318;
  --band: #0b0d12;
  --band-text: #eef1f6;
  --band-text-2: #a8b0bf;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 12px 32px rgba(120, 52, 14, 0.08);
  --font-sans: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --width: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --signal: #ff7a2e;
    --signal-soft: #3a2014;
    --bg: #0b0d12;
    --tint: #0f141d;
    --surface: #12161e;
    --surface-2: #1a1f29;
    --border: #252b37;
    --grid: #161b24;
    --text: #eef1f6;
    --text-2: #a8b0bf;
    --text-3: #7a8293;
    --action: #eef1f6;
    --action-text: #0b0d12;
    --action-hover: #ffffff;
    --good: #4ade80;
    --removed: #f87171;
    --band: #05070a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 780;
  line-height: 1.08;
}

h3 {
  font-size: 1.2rem;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.small {
  font-size: 0.88rem;
}

.muted {
  color: var(--text-2);
}

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

/* Compact mono labels: section names, step numbers, state labels. */

.eyebrow,
.label,
.num,
figcaption,
caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow {
  color: var(--signal);
  font-weight: 600;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.08em 0.42em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

code,
pre {
  font-family: var(--font-mono);
}

pre {
  margin: 0;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Buttons: black for the main action, outlined otherwise. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.button.primary {
  border-color: var(--action);
  background: var(--action);
  color: var(--action-text);
}

.button.primary:hover {
  background: var(--action-hover);
  color: var(--action-text);
}

.button.inverse {
  margin-top: 1.5rem;
  border-color: var(--band-text);
  background: var(--band-text);
  color: var(--band);
}

.button.inverse:hover {
  background: #ffffff;
  color: var(--band);
}

.small-button {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  border-radius: 10px;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-right: auto;
}

.bar nav a {
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--text);
}

/* Hero: the headline, the clip of someone speaking, then the subheading and the download buttons. */

.hero {
  padding: 5.5rem 0 5rem;
  background: linear-gradient(var(--bg), var(--tint));
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  margin-bottom: 1.4rem;
}

.lead {
  max-width: 44rem;
  margin-top: 1.6rem;
  color: var(--text-2);
  font-size: 1.22rem;
  line-height: 1.55;
}

/* The clip under the headline: someone speaks, and the cleaned-up text appears at each pause. One timer drives it:
   --t counts tenths of a second from 0 to 120 and starts again, and each word shows from its --at until 11.2 s, so
   every loop starts empty. With reduced motion (no animations), --t stays at 100 and the whole clip shows. */
@property --t {
  syntax: "<integer>";
  inherits: true;
  initial-value: 100;
}

.clip {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin: 2.2rem 0 0;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: clip-time 12s linear infinite;
}

@keyframes clip-time {
  from {
    --t: 0;
  }
  to {
    --t: 120;
  }
}

.clip-voice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

/* Moves while the words are spoken, then rests. */
.clip-wave {
  flex: none;
  display: flex;
  gap: 3px;
  align-items: center;
  height: 1.7rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--signal-soft);
  opacity: clamp(0.35, calc((53 - var(--t)) / 3), 1);
}

.clip-wave i {
  width: 3px;
  height: 35%;
  border-radius: 2px;
  background: var(--signal);
  animation: clip-wave 0.8s ease-in-out infinite alternate;
}

.clip-wave i:nth-child(2) {
  animation-delay: -0.5s;
}

.clip-wave i:nth-child(3) {
  animation-delay: -0.2s;
}

.clip-wave i:nth-child(4) {
  animation-delay: -0.65s;
}

.clip-wave i:nth-child(5) {
  animation-delay: -0.35s;
}

@keyframes clip-wave {
  to {
    height: 90%;
  }
}

.clip-spoken {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
  font-style: italic;
}

/* An email being written: the text lands where the cursor is, as in any application. */
.clip-app {
  overflow: hidden;
  border: 1.5px solid var(--signal);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.clip-app p {
  margin: 0;
}

.clip-app-bar {
  padding: 0.45rem 1rem;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.clip-app-row {
  display: flex;
  gap: 0.8rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.clip-app-row span {
  min-width: 3.6rem;
  color: var(--text-3);
}

/* The full text, invisible, sets the body's height, so the email doesn't grow as words arrive. */
.clip-body {
  display: grid;
  padding: 0.8rem 1rem 1rem;
}

.clip-body > p {
  grid-area: 1 / 1;
}

.clip-size {
  visibility: hidden;
}

.clip-typed {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Each word keeps its trailing space, so it wraps like text. */
.clip-typed span:not(.caret) {
  display: inline-block;
  white-space: pre;
  vertical-align: top;
}

.clip-spoken span {
  opacity: clamp(0, calc(min(var(--t) - var(--at), 112 - var(--t)) / 3), 1);
}

/* A word not yet typed takes no room, so the caret always follows the last typed word. */
.clip-live span:not(.caret) {
  overflow: hidden;
  max-width: calc(clamp(0, min(var(--t) - var(--at), 112 - var(--t)), 1) * 20em);
}

.clip-spoken span:nth-child(1) { --at: 2; }
.clip-spoken span:nth-child(2) { --at: 4; }
.clip-spoken span:nth-child(3) { --at: 6; }
.clip-spoken span:nth-child(4) { --at: 8; }
.clip-spoken span:nth-child(5) { --at: 10; }
.clip-spoken span:nth-child(6) { --at: 12; }
.clip-spoken span:nth-child(7) { --at: 20; }
.clip-spoken span:nth-child(8) { --at: 22; }
.clip-spoken span:nth-child(9) { --at: 24; }
.clip-spoken span:nth-child(10) { --at: 26; }
.clip-spoken span:nth-child(11) { --at: 28; }
.clip-spoken span:nth-child(12) { --at: 30; }
.clip-spoken span:nth-child(13) { --at: 32; }
.clip-spoken span:nth-child(14) { --at: 34; }
.clip-spoken span:nth-child(15) { --at: 36; }
.clip-spoken span:nth-child(16) { --at: 38; }
.clip-spoken span:nth-child(17) { --at: 40; }
.clip-spoken span:nth-child(18) { --at: 42; }
.clip-spoken span:nth-child(19) { --at: 44; }
.clip-spoken span:nth-child(20) { --at: 46; }
.clip-spoken span:nth-child(21) { --at: 48; }
.clip-spoken span:nth-child(22) { --at: 50; }
.clip-live span:nth-child(1) { --at: 15; }
.clip-live span:nth-child(2) { --at: 16; }
.clip-live span:nth-child(3) { --at: 17; }
.clip-live span:nth-child(4) { --at: 18; }
.clip-live span:nth-child(5) { --at: 19; }
.clip-live span:nth-child(6) { --at: 20; }
.clip-live span:nth-child(7) { --at: 55; }
.clip-live span:nth-child(8) { --at: 56; }
.clip-live span:nth-child(9) { --at: 57; }
.clip-live span:nth-child(10) { --at: 58; }
.clip-live span:nth-child(11) { --at: 59; }
.clip-live span:nth-child(12) { --at: 60; }
.clip-live span:nth-child(13) { --at: 61; }
.clip-live span:nth-child(14) { --at: 62; }
.clip-live span:nth-child(15) { --at: 63; }
.clip-live span:nth-child(16) { --at: 64; }
.clip-live span:nth-child(17) { --at: 65; }
.clip-live span:nth-child(18) { --at: 66; }
.clip-live span:nth-child(19) { --at: 67; }
.clip-live span:nth-child(20) { --at: 68; }
.clip-live span:nth-child(21) { --at: 69; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.2rem 0 1rem;
}

.stage {
  display: grid;
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stage-steps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-step {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.stage-step .num,
.steps .num {
  color: var(--signal);
  font-weight: 700;
}

.spoken {
  color: var(--text-2);
  font-size: 1.05rem;
  font-style: italic;
}

.stage-step .ui-pill {
  margin-top: auto;
}

.pipeline {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.pipeline li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.typed {
  background: var(--surface);
}

.field {
  flex: 1;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--signal);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px var(--signal-soft);
  font-size: 1.05rem;
  font-weight: 500;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--signal);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stage figcaption {
  padding: 0 0.4rem 0.2rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Sections */

.section {
  padding: 6.5rem 0;
}

.tinted {
  background: var(--tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.intro {
  margin-top: 1.2rem;
  color: var(--text-2);
  font-size: 1.15rem;
}

.note {
  margin-top: 1rem;
}

.note code {
  font-size: 0.95em;
}

/* Before and after, and the comparison. */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th,
td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

thead th {
  font-weight: 680;
  line-height: 1.3;
}

.before-after th,
.before-after td {
  width: 50%;
}

.before-after td:first-child {
  color: var(--text-3);
  font-style: italic;
}

.before-after td + td {
  border-left: 1px solid var(--border);
  font-weight: 500;
}

.compare {
  min-width: 820px;
  font-size: 0.9rem;
}

.compare tbody th {
  font-weight: 620;
}

.compare td {
  color: var(--text-2);
}

td.yes::before,
td.no::before {
  margin-right: 0.4rem;
  font-weight: 700;
}

td.yes::before {
  content: "✓";
  color: var(--good);
}

td.no::before {
  content: "✕";
  color: var(--text-3);
}

.compare .ours {
  background: var(--signal-soft);
  color: var(--text);
  font-weight: 620;
}

.compare thead th.ours {
  color: var(--signal);
  font-size: 1rem;
}

/* The app's interface, copied in by scripts/website-ui.mjs (`make website-ui`) between the app-ui markers in
   index.html. Each host holds a shadow root with the app's own CSS; these rules only size and frame it. */

.app-window {
  margin: 0;
}

.app-window figcaption {
  margin-top: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
  font-size: 0.85rem;
}

.app-bar-dots {
  display: flex;
  gap: 6px;
}

.app-bar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.app-bar-hint {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.app-host {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-bar + .app-host {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Below 648px the copy keeps a 600px layout (set in app/main.css) and zooms out to fit the column, so the window
   never scrolls sideways. */
@media (max-width: 647px) {
  .app-host {
    zoom: 0.9;
  }
}

@media (max-width: 587px) {
  .app-host {
    zoom: 0.8;
  }
}

@media (max-width: 527px) {
  .app-host {
    zoom: 0.7;
  }
}

@media (max-width: 467px) {
  .app-host {
    zoom: 0.6;
  }
}

@media (max-width: 407px) {
  .app-host {
    zoom: 0.55;
  }
}

@media (max-width: 377px) {
  .app-host {
    zoom: 0.5;
  }
}

.ui-pill {
  height: 104px;
}

.ui-pill.hands-free {
  width: min(100%, 460px);
  height: 132px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
  align-items: start;
  margin: 5rem 0 2rem;
}

.split-copy,
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-ticks {
  margin: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  align-items: start;
}

.feature-row + .feature-row {
  margin-top: 5rem;
}

.feature-copy {
  grid-column: span 4;
  position: sticky;
  top: 6rem;
}

.feature-row .app-window {
  grid-column: span 8;
}

.ticks {
  display: grid;
  gap: 0.8rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.9rem;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 800;
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li p:last-child {
  color: var(--text-2);
  font-size: 0.97rem;
}

.pill-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 0;
}

.pill-demo figcaption {
  text-transform: none;
  letter-spacing: 0;
}

/* Spoken commands and the action each one planned. */

.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.examples li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.examples q {
  font-size: 1.08rem;
  font-weight: 650;
  quotes: "\201C" "\201D";
}

.examples code {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.82rem;
}

/* Privacy and open source, on a dark band. */

.dark-band {
  background: var(--band);
  color: var(--band-text);
}

.dark-band .eyebrow {
  margin-bottom: 1rem;
  color: var(--band-signal);
}

.dark-band h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.dark-band .ticks li::before {
  background: var(--band-signal-soft);
  color: var(--band-signal);
}

.band-copy {
  color: var(--band-text-2);
  font-size: 1.08rem;
}

/* Downloads */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card .button {
  align-self: flex-start;
  margin: 0.3rem 0 0.4rem;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.plan.featured {
  border-color: var(--signal);
}

.price {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
}

/* FAQ */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 650;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.4;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p,
.faq details pre {
  margin: 0 0 1.2rem;
  color: var(--text-2);
}

/* Terms and privacy: one readable column of text. */

.legal {
  max-width: 46rem;
  line-height: 1.65;
}

.legal h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: var(--text-2);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.bar nav a[aria-current="page"] {
  color: var(--text);
}

/* Footer, on a pale-blue fade. */

.footer {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(var(--bg), var(--tint));
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-right: auto;
}

.footer nav a {
  color: var(--text-2);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--text);
}

.footer p {
  flex-basis: 100%;
}

@media (max-width: 900px) {
  .stage-steps,
  .split,
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-step,
  .feature-copy,
  .feature-row .app-window {
    grid-column: auto;
  }
  .feature-copy {
    position: static;
  }
  .app-bar-hint {
    display: none;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo,
  .downloads,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar nav {
    display: none;
  }
  .bar-inner {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3.5rem;
  }
  .section {
    padding: 4.5rem 0;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
