/* Quill's website. Plain CSS, system fonts (no third-party requests). */

:root {
  --bg: #f4f3f0;
  --card: #ffffff;
  --card-2: #f7f6f3;
  --line: #e8e6e1;
  --text: #121218;
  --text-2: #5c5c66;
  --text-3: #8c8c95;
  --accent: #ff1053;
  --accent-text: #e40c4a;
  --dark: #121218;
  --on-dark: #ffffff;
  --bar: #e4e2dc;

  --peach: #fde4d3;
  --peach-ink: #b4541a;
  --lilac: #e6e5fb;
  --lilac-ink: #5551c4;
  --mint: #d6f0e8;
  --mint-ink: #22795d;
  --sky: #dcf0fb;
  --sky-ink: #0e77ab;
  --rose: #ffe0e8;
  --rose-ink: #c50b42;
  --lime: #eaf3cf;
  --lime-ink: #5b7514;

  --radius: 22px;
  --radius-sm: 12px;
  --gap: 14px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgb(18 18 24 / 0.04), 0 8px 24px rgb(18 18 24 / 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --card: #18181f;
    --card-2: #1f1f28;
    --line: #2a2a35;
    --text: #f0f0f4;
    --text-2: #a9a9b6;
    --text-3: #777784;
    --accent-text: #ff4f7f;
    --dark: #f0f0f4;
    --on-dark: #121218;
    --bar: #2b2b36;

    --peach: #3a2a20;
    --peach-ink: #f3a774;
    --lilac: #26254a;
    --lilac-ink: #aaa7ff;
    --mint: #17352c;
    --mint-ink: #6fd3ae;
    --sky: #14303f;
    --sky-ink: #79caf2;
    --rose: #3d1a25;
    --rose-ink: #ff7fa2;
    --lime: #2b3316;
    --lime-ink: #bcd96a;
    --shadow: none;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(48px, 7.4vw, 96px);
}

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

h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.accent {
  color: var(--accent);
}

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

.small {
  font-size: 14px;
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on-dark);
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

main,
.footer {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding-top: 120px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--text-3);
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.lead {
  color: var(--text-2);
  font-size: 19px;
  max-width: 34em;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.25s;
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), 100% - 32px);
  height: 64px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.btn-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(18 18 24 / 0.18);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--card-2);
}

.btn-disabled {
  background: var(--card-2);
  color: var(--text-3);
  cursor: default;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 8px;
  padding: 72px 56px 150px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-demo {
  position: relative;
  z-index: 1;
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--card-2);
  box-shadow: var(--shadow);
}

.who {
  display: inline-block;
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.who.me {
  background: var(--rose);
  color: var(--rose-ink);
}

.who.sky {
  background: var(--sky);
  color: var(--sky-ink);
}

.who.rose {
  background: var(--lilac);
  color: var(--lilac-ink);
}

.who.lime {
  background: var(--lime);
  color: var(--lime-ink);
}

/* The waveform: thin bars, one in the accent colour, like an audio level
   meter. Built by main.js from data-bars. */
.wave {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.6vw, 18px);
  height: 120px;
  pointer-events: none;
}

.wave i {
  flex: 1;
  max-width: 5px;
  height: var(--h, 40%);
  border-radius: 3px 3px 0 0;
  background: var(--bar);
  transform-origin: bottom;
  animation: level 2.4s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.wave i.hot {
  background: var(--accent);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.stat {
  position: relative;
  min-height: 210px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat strong {
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.stat .tile {
  position: absolute;
  top: 24px;
  right: 24px;
}

.footnote {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 13px;
  text-align: right;
}

.tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.tile svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile.big {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.tile.big svg {
  width: 34px;
  height: 34px;
}

.peach {
  background: var(--peach);
  color: var(--peach-ink);
}

.lilac {
  background: var(--lilac);
  color: var(--lilac-ink);
}

.mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.sky {
  background: var(--sky);
  color: var(--sky-ink);
}

/* ---------- Feature cards ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 36px;
  min-height: 330px;
}

.feature p {
  margin-top: 10px;
  color: var(--text-2);
}

.feature-copy {
  max-width: 30em;
}

.span-2 {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.speakers {
  display: grid;
  gap: 12px;
}

.speaker {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
}

.speaker .who {
  justify-self: start;
}

.speaker i {
  display: block;
  height: 12px;
  width: var(--w);
  border-radius: 6px;
  background: var(--bar);
  transform-origin: left;
}

.speaker:first-child i {
  background: var(--accent);
}

.reveal.shown .speaker i {
  animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.speaker:nth-child(2) i {
  animation-delay: 0.08s !important;
}

.speaker:nth-child(3) i {
  animation-delay: 0.16s !important;
}

.speaker:nth-child(4) i {
  animation-delay: 0.24s !important;
}

.note-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.note-stack span {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  font-weight: 550;
  transition: transform 0.25s;
}

.note-stack span:nth-child(1) {
  background: var(--peach);
  color: var(--peach-ink);
}

.feature:hover .note-stack span:nth-child(2) {
  transform: translateX(8px);
}

.feature:hover .note-stack span:nth-child(3) {
  transform: translateX(16px);
}

.feature:hover .note-stack span:nth-child(4) {
  transform: translateX(24px);
}

.dictate {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: auto;
}

.keys {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
}

kbd {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 550;
}

.pill-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dark);
}

.pill-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}

.levels {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.levels i {
  width: 3px;
  height: var(--h, 50%);
  border-radius: 2px;
  background: var(--on-dark);
  animation: level 0.9s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.styles {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.styles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  font-weight: 550;
}

.live-notes {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.live-notes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  font-size: 15px;
  font-weight: 550;
}

/* An item the conversation dealt with ticks itself off. */
.live-notes li.done span {
  color: var(--text-3);
  text-decoration: line-through;
}

.feature .caption {
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 550;
}

/* The latest words are fainter until Quill is sure of them. */
.feature .caption span {
  opacity: 0.55;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.lane {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
}

.lane .who {
  justify-self: start;
}

.track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--card-2);
}

.track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: var(--w);
  border-radius: 6px;
  background: var(--bar);
}

/* Each lane in its speaker's colour. */
.lane:nth-child(1) .track i {
  background: var(--accent);
}

.lane:nth-child(2) .track i {
  background: var(--sky-ink);
}

.lane:nth-child(3) .track i {
  background: var(--lilac-ink);
}

.chip {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.search {
  display: grid;
  gap: 10px;
  margin-top: auto;
  font-size: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
}

.search p {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--text-2);
}

.search b {
  color: var(--text);
  font-weight: 600;
}

mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--peach);
  color: var(--peach-ink);
}

/* ---------- Call apps ---------- */

.app-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}

.app-chips li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 550;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    padding 0.3s;
}

.app-chips li.big,
.app-chips li:hover {
  padding: 30px 32px;
  font-size: 20px;
}

.app-chips:hover li.big:not(:hover) {
  padding: 22px 26px;
  font-size: 18px;
}

/* Sized in em, so a logo grows with its chip's text. */
.app-chips .logo {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.app-chips .logo.mono {
  fill: currentColor;
}

.app-chips .logo.line {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apps .center {
  max-width: 32em;
  margin-inline: auto;
}

.apps .center + .center {
  margin-top: 12px;
}

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

.privacy {
  grid-template-columns: repeat(6, 1fr);
}

.privacy > :nth-child(1),
.privacy > :nth-child(2) {
  grid-column: span 3;
}

.privacy > .small {
  grid-column: span 2;
  min-height: 0;
  gap: 0;
}

.privacy .small h3 {
  font-size: 21px;
}

.privacy .small a {
  color: var(--accent-text);
}

.local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: auto;
}

.arrow {
  color: var(--text-3);
  font-size: 26px;
}

.no-cloud {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: 18px;
  border: 1.5px dashed var(--line);
  border-radius: 50%;
}

.no-cloud svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.choice {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.choice-opt {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.choice-opt b {
  font-weight: 600;
}

.choice-opt span {
  color: var(--text-2);
  font-size: 14px;
}

.choice-opt[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--card-2);
}

/* ---------- Compare ---------- */

.center-lead {
  margin: 16px auto 0;
}

.cost {
  padding: 36px;
}

.cost-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 26px;
}

.cost-head h3 {
  font-size: 22px;
}

.cost-bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cost-bars li {
  display: grid;
  grid-template-columns: 170px 1fr 150px;
  align-items: center;
  gap: 16px;
}

.cost-name {
  font-weight: 550;
}

.cost-bar {
  height: 14px;
}

.cost-bar i {
  display: block;
  width: max(calc(var(--v) * 100%), 6px);
  height: 100%;
  border-radius: 7px;
  background: var(--bar);
  transform-origin: left;
}

.reveal.shown .cost-bar i {
  animation: grow 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cost-bars li:nth-child(2) i {
  animation-delay: 0.08s !important;
}

.cost-bars li:nth-child(3) i {
  animation-delay: 0.16s !important;
}

.cost-bars li:nth-child(4) i {
  animation-delay: 0.24s !important;
}

.cost-bars .mine .cost-bar i {
  background: var(--accent);
}

.cost-val {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.cost-val small,
.compare td small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  letter-spacing: 0;
}

.mine .cost-name,
.mine .cost-val {
  color: var(--accent-text);
}

.compare {
  margin-top: var(--gap);
  padding: 12px 12px 24px;
}

.compare-scroll {
  overflow-x: auto;
  border-radius: 14px;
}

.compare table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tbody th {
  width: 26%;
  font-weight: 550;
}

.compare .us {
  background: var(--card-2);
}

.compare thead .us {
  border-radius: 12px 12px 0 0;
  color: var(--accent-text);
}

.compare tbody tr:last-child .us {
  border-radius: 0 0 12px 12px;
}

.compare b {
  font-weight: 600;
}

.compare b.y::before,
.compare b.n::before {
  display: inline-block;
  width: 1.2em;
  font-weight: 700;
}

.compare b.y::before {
  content: "✓";
  color: var(--mint-ink);
}

.compare b.n {
  color: var(--text-3);
  font-weight: 500;
}

.compare b.n::before {
  content: "–";
}

.compare-notes {
  padding: 18px 16px 0;
}

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

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

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

.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: 120px;
  padding: 90px 32px 170px;
  overflow: hidden;
  text-align: center;
}

.cta .lead {
  margin-inline: auto;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.downloads .btn.other {
  background: var(--card-2);
  color: var(--text);
}

.cta .small {
  max-width: 38em;
}

.cta .small a {
  color: var(--accent-text);
}

.cta .wave {
  left: 0;
  right: 0;
  justify-content: center;
}

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

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 56px 0 40px;
}

.footer-brand p {
  margin-top: 10px;
}

.made-by {
  color: var(--text-3);
  font-size: 14px;
}

.made-by a,
.footer-legal a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.made-by a:hover,
.footer-legal a:hover {
  color: var(--accent-text);
}

.footer-cols {
  display: flex;
  gap: 72px;
}

.footer-cols div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-cols a,
.footer-cols span {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

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

.footer-title {
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

/* Without JavaScript, show everything. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes level {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

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

/* ---------- Wide screens: the hero video as a pane beside the copy ----------
   The video is exactly as tall as the copy, turned in 3D to face it, so its
   inner (left) edge is the far, smaller one, and that edge fades in. */

@media (min-width: 961px) {
  .hero {
    grid-template-columns: minmax(0, 31rem) 1fr;
    align-items: stretch;
    padding-right: 32px;
  }
  .hero-demo {
    /* Out of the flow: the copy alone sets the row's height. */
    position: relative;
    container-type: size;
    perspective: 1350px;
    perspective-origin: 0% 50%;
  }
  .hero-video {
    position: absolute;
    top: 50%;
    right: 0;
    /* As tall as the copy, unless that would make it too wide for its column
       (where the copy wraps less): turned 50°, it shows about 0.54 of its
       width, and its first, transparent sliver may pass under the copy. */
    height: min(100cqh, 120cqw);
    width: auto;
    max-width: none;
    box-shadow: none;
    /* Steep enough that a pane as tall as the copy fits beside it. */
    transform: translateY(-50%) rotateY(-50deg);
    transform-origin: 100% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
    mask-image: linear-gradient(to right, transparent, #000 30%);
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 28px 140px;
  }
  .wave {
    left: 28px;
    right: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat.wide {
    grid-column: span 2;
  }
  .privacy > * ,
  .privacy > :nth-child(1),
  .privacy > :nth-child(2),
  .privacy > .small {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .hero {
    padding: 36px 20px 120px;
    gap: 36px;
  }
  .wave {
    left: 20px;
    right: 20px;
    height: 90px;
  }
  .stats,
  .bento {
    grid-template-columns: 1fr;
  }
  .stat.wide,
  .span-2 {
    grid-column: auto;
  }
  .span-2 {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 26px 22px;
    min-height: 0;
  }
  .section {
    padding-top: 84px;
  }
  .app-chips li,
  .app-chips li.big,
  .app-chips li:hover {
    padding: 16px 20px;
    font-size: 16px;
  }
  .cta {
    margin-top: 84px;
    padding: 64px 20px 130px;
  }
  .downloads .btn {
    width: 100%;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    gap: 48px;
  }
  .footnote {
    text-align: left;
  }
  .cost {
    padding: 26px 22px;
  }
  .cost-bars li {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .cost-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .footer-cols {
    flex-wrap: wrap;
  }
}
