/* KitchenDrop marketing site. Depends on brand.css. */

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

body {
  overflow-x: hidden;
}

section[id],
.output-showcase[id] {
  scroll-margin-top: 82px;
}

/* ============ Navigation ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav .kd-logo {
  flex: none;
  font-size: 1rem;
  color: #eef1f7;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(238, 241, 247, 0.72);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: #eef1f7;
}

.nav-cta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav .btn-ghost-light {
  white-space: nowrap;
  padding: 0.55em 0.9em;
  border: 1px solid rgba(238, 241, 247, 0.22);
  border-radius: var(--r-sm);
  background: transparent;
  color: #eef1f7;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav .btn-ghost-light:hover {
  background: rgba(238, 241, 247, 0.1);
  border-color: rgba(238, 241, 247, 0.4);
}

/* Below 1140px the section links live behind this button instead. */
.nav-menu-btn {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(238, 241, 247, 0.22);
  border-radius: var(--r-sm);
  background: transparent;
  color: #eef1f7;
  cursor: pointer;
}

.nav-menu-btn line {
  transition: transform 0.2s var(--ease);
  transform-origin: 12px 12px;
}

.nav.open .nav-menu-a { transform: rotate(45deg) translateY(5px); }
.nav.open .nav-menu-b { transform: rotate(-45deg) translateY(-5px); }

/* Dashboard is a button in the bar; it only joins the list inside the menu,
   and only once the bar has had to drop it. */
.nav-links-dash {
  display: none;
}

/* Once past the dark hero the bar has to earn its own background. */
.nav.lifted:not(.docked) {
  background: rgba(16, 24, 40, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav.docked {
  background: var(--veil);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav.docked .kd-logo,
.nav.docked .nav-links a:hover {
  color: var(--fg);
}

.nav.docked .nav-links a {
  color: var(--fg-2);
}

.nav.docked .btn-ghost-light {
  border-color: var(--line-strong);
  color: var(--fg);
}

.nav.docked .btn-ghost-light:hover {
  background: var(--surface-2);
}

.nav.docked .nav-menu-btn {
  border-color: var(--line-strong);
  color: var(--fg);
}

/* ============ Hero ============ */

.hero {
  position: relative;
  margin-top: -68px;
  padding-top: 68px;
  background: #101828;
  color: #eef1f7;
  overflow: hidden;
  isolation: isolate;
}

/* Photo bleeds off the right edge and dissolves into the ink. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #101828 4%, rgba(16, 24, 40, 0.95) 26%,
      rgba(16, 24, 40, 0.62) 52%, rgba(16, 24, 40, 0.5) 72%, rgba(16, 24, 40, 0.8) 100%),
    linear-gradient(#101828 -10%, transparent 22%);
}

/* Fine grain so the flat ink doesn't read as a CSS rectangle. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
  padding-block: 84px 96px;
}

.hero-copy {
  max-width: 34em;
}

.hero .eyebrow {
  color: var(--brand-strong);
  color: #f5a34a;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 8, "WONK" 1;
  color: #f5a34a;
  /* Italic serif needs the side bearing back or it welds to the next word. */
  padding-right: 0.07em;
}

.hero-lead {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(238, 241, 247, 0.76);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.hero-actions .btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #eef1f7;
  --btn-line: rgba(238, 241, 247, 0.28);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(238, 241, 247, 0.09);
  border-color: rgba(238, 241, 247, 0.5);
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(238, 241, 247, 0.5);
}

/* The beta line stays on phones, where .hero-note is hidden: it is the one
   thing a visitor needs to know before pressing the button above it. */
.hero-beta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: rgba(238, 241, 247, 0.78);
}

.hero-beta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============ Message thread mock ============ */

.thread {
  width: 100%;
  max-width: 372px;
  /* Sits low in the column so the cook's face in the hero clip stays clear. */
  margin: 120px 0 0 auto;
  padding: 14px;
  border-radius: var(--r-xl);
  background: rgba(25, 32, 52, 0.72);
  border: 1px solid rgba(238, 241, 247, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 32px 70px -20px rgba(0, 0, 0, 0.8);
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px 12px;
  border-bottom: 1px solid rgba(238, 241, 247, 0.1);
  margin-bottom: 12px;
}

.thread-head img {
  width: 26px;
  height: 26px;
}

.thread-head strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: #eef1f7;
}

.thread-head span {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(238, 241, 247, 0.6);
}

.thread-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 84%;
  padding: 0.55em 0.75em;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.msg time {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* On the ember the label needs more of itself to clear 4.5:1. */
.msg-out time { opacity: 0.92; }

.msg-out {
  align-self: flex-end;
  background: var(--brand-ink);
  color: var(--on-brand);
  border-bottom-right-radius: 5px;
}

.msg-in {
  align-self: flex-start;
  background: rgba(238, 241, 247, 0.1);
  color: rgba(238, 241, 247, 0.92);
  border-bottom-left-radius: 5px;
}

.msg-media {
  padding: 5px;
  width: 62%;
}

.msg-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.msg-media p {
  padding: 6px 5px 2px;
}

.msg-caption {
  display: block;
  margin: 7px 0;
  padding: 0.5em 0.6em;
  border-left: 2px solid var(--brand);
  border-radius: 0 6px 6px 0;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(238, 241, 247, 0.82);
}

.msg-typing {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  padding: 0.75em;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  background: rgba(238, 241, 247, 0.1);
}

.msg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(238, 241, 247, 0.55);
  animation: kd-typing 1.3s var(--ease) infinite;
}

.msg-typing i:nth-child(2) { animation-delay: 0.18s; }
.msg-typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes kd-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ============ Facts strip ============ */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: none;
  padding-left: 0;
}

.fact b {
  display: block;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums lining-nums;
}

.fact span {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.45;
}

/* ============ Thesis ============ */

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.thesis-col {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

/* Ours carries a brand ring, like the plan card marked "Most popular", so the
   two "this is the one" signals on the page read as the same language. */
.thesis-col.is-ours {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-2);
}

.thesis-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}

.thesis-col.is-ours .thesis-tag {
  color: var(--brand-ink);
}

.thesis-col h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin-bottom: 16px;
}

.thesis-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
}

.thesis-col li {
  position: relative;
  padding-left: 17px;
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.5;
}

/* A dash for the alternatives, a filled dot for ours — a fair contrast rather
   than crosses against ticks. */
.thesis-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--fg-4);
}

.thesis-col.is-ours li::before {
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.thesis-foot {
  max-width: 64ch;
  margin: 30px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-2);
}

/* Four cards read as two pairs; four across leaves each one too narrow for its list. */
.thesis-grid.learn-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .thesis-grid,
  .thesis-grid.learn-grid-4 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

/* ============ Generic section ============ */

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 34ch;
  margin-bottom: 52px;
}

.section-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.95rem, 3.5vw, 2.65rem);
  letter-spacing: -0.022em;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 46ch;
}

/* ============ Steps ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step {
  padding: 30px 28px 34px;
  background: var(--bg);
}

.step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 9px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.step p + p {
  margin-top: 0.7em;
}

.step code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--fg);
}

/* ============ Anatomy ============ */

.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.phone {
  width: 100%;
  max-width: 288px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 38px;
  background: #0d120e;
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #0d120e;
  z-index: 3;
}

/* The overlays the renderer actually burns in: location tag + word captions. */
.burn-tag {
  position: absolute;
  top: 46px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}

.burn-tag svg {
  width: 11px;
  height: 11px;
}

.burn-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 2;
  padding: 0 18px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.burn-caption mark {
  background: #f2c94c;
  color: #101828;
  padding: 0 0.14em;
  border-radius: 3px;
}

.phone-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.anatomy-list {
  list-style: none;
  counter-reset: anat;
}

.anatomy-list li {
  position: relative;
  padding: 20px 0 20px 46px;
  border-top: 1px solid var(--line);
  counter-increment: anat;
}

.anatomy-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.anatomy-list li::before {
  content: counter(anat, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--brand);
}

.anatomy-list h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.anatomy-list p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ============ Reel wall ============ */

.output-showcase {
  margin-top: 80px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.output-showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 32px;
}

.output-showcase-head h3 {
  max-width: 20ch;
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.output-showcase-head > p {
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.6;
}

.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wall figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-2);
  transition: transform 0.3s var(--ease);
}

.wall figure:hover {
  transform: translateY(-5px);
}

.wall img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
}

.wall figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
}

.wall figcaption b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.wall figcaption span {
  font-size: 0.75rem;
  opacity: 0.66;
}

/* ============ Controls preview ============ */

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.control-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

.control-card > .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.voice-row:last-of-type {
  border-bottom: none;
}

.voice-row b {
  font-size: 0.9375rem;
  font-weight: 600;
}

.voice-row span {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.control-list {
  list-style: none;
}

.control-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.55;
}

.control-list svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: none;
  color: var(--brand);
}

.control-list b {
  color: var(--fg);
  font-weight: 600;
}

/* ============ FAQ ============ */

.faq {
  max-width: 760px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 1.8px solid var(--fg-3);
  border-bottom: 1.8px solid var(--fg-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details p {
  padding: 0 0 22px;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ============ Closing CTA ============ */

.closer {
  position: relative;
  isolation: isolate;
  padding: 104px 0;
  background: #101828;
  color: #eef1f7;
  overflow: hidden;
  text-align: center;
}

.closer img.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(16, 24, 40, 0.3), rgba(16, 24, 40, 0.88) 72%, #101828 100%);
}

.closer h2 {
  max-width: 17ch;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

.closer p {
  max-width: 44ch;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  color: rgba(238, 241, 247, 0.72);
}

.closer .hero-actions {
  justify-content: center;
}

/* ============ Footer ============ */

.foot {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.foot .kd-logo {
  font-size: 0.9375rem;
  margin-right: auto;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot a {
  font-size: 0.875rem;
  color: var(--fg-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--fg);
}

.foot small {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 60px 72px;
  }

  .hero-photo {
    inset: 0;
    opacity: 0.62;
  }

  .hero-photo::after {
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.45) 0%,
      rgba(16, 24, 40, 0.72) 42%, #101828 92%);
  }

  .hero-copy {
    max-width: none;
  }

  .thread {
    margin: 0 auto;
  }

  .anatomy,
  .controls {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .output-showcase-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .output-showcase-head > p {
    max-width: 52ch;
  }
}

/* Six links, the logo and both buttons need about 1120px. Below that the
   links wrapped a word per line and pushed the signup button off the edge;
   the page itself is one scroll away from every section they point to. */
@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  /* Over the hero the open bar goes dark and solid, so the panel under it
     reads as one piece with it rather than floating over the photo. */
  .nav.open:not(.docked) {
    background: #101828;
    border-bottom-color: rgba(238, 241, 247, 0.1);
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px 24px 14px;
    background: #101828;
    border-bottom: 1px solid rgba(238, 241, 247, 0.1);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
  }

  .nav.docked.open .nav-links {
    background: var(--surface);
    border-bottom-color: var(--line);
  }

  .nav.open .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
  }

  .nav.open .nav-links li + li {
    border-top: 1px solid rgba(238, 241, 247, 0.08);
  }

  .nav.docked.open .nav-links li + li {
    border-top-color: var(--line);
  }
}

@media (max-width: 760px) {

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .facts-inner {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 20px 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .fact:first-child {
    border-top: none;
  }

  .closer {
    padding: 76px 0;
  }
}

@media (max-width: 620px) {
  .nav:not(.docked) {
    background: rgba(16, 24, 40, 0.94);
    border-bottom-color: rgba(238, 241, 247, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav .btn-ghost-light {
    display: none;
  }

  .nav-links-dash {
    display: list-item;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-cta {
    gap: 8px;
  }

  .nav .kd-logo b {
    font-size: 1em;
  }

  .nav-cta .btn {
    padding: 0.5em 0.8em;
    font-size: 0.8125rem;
  }

  .hero-inner {
    gap: 26px;
    padding-block: 42px 58px;
  }

  .hero h1 {
    margin: 13px 0 16px;
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero-actions {
    margin: 22px 0 0;
  }

  .hero-note {
    display: none;
  }

  .thread {
    max-width: 340px;
    padding: 11px;
  }

  .thread-body .msg:nth-child(2),
  .thread-body .msg:nth-child(3),
  .thread-body .msg:nth-child(5) {
    display: none;
  }

  .output-showcase {
    margin-top: 56px;
    padding-top: 42px;
  }
}

@media (max-width: 460px) {
  .wall {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============ Video ============ */

/* Every clip on the page is muted and loops; the poster stands in until it
   plays, and stays if the browser refuses autoplay (low-power mode, data
   saver), so a stalled clip is a still rather than a black box. */
.clip {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #000;
}

.hero-photo .clip {
  height: 100%;
  object-position: 58% 46%;
}

.msg-media .clip {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.phone-screen > .clip {
  height: 100%;
}

.wall .clip {
  aspect-ratio: 9 / 14;
}

.closer .clip.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  opacity: 0.52;
}

/* ============ Formats ============ */

.section-dark {
  background: #101828;
  color: #eef1f7;
  border-block: 1px solid rgba(238, 241, 247, 0.08);
}

.section-dark .section-head p {
  color: rgba(238, 241, 247, 0.72);
}

.formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.format {
  margin: 0;
}

.phone-sm {
  max-width: 232px;
  padding: 7px;
  border-radius: 32px;
}

.phone-sm .phone-screen {
  border-radius: 26px;
}

.phone-sm .burn-caption {
  bottom: 40px;
  font-size: 0.9375rem;
}

.format figcaption {
  max-width: 232px;
  margin: 18px auto 0;
}

.format figcaption b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.format figcaption span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(238, 241, 247, 0.66);
}

.formats-foot {
  max-width: 64ch;
  margin: 48px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(238, 241, 247, 0.72);
}

/* ============ Stills ============ */

.stills {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.stills .section-head {
  margin-bottom: 0;
}

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stills-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}

.output-stills {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
}

/* ============ Reveal on scroll ============ */

/* Only once the script has run: without it every section is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) { transition-delay: 0.09s; }
.js .reveal:nth-child(3) { transition-delay: 0.18s; }
.js .reveal:nth-child(4) { transition-delay: 0.27s; }
.js .reveal:nth-child(5) { transition-delay: 0.36s; }
.js .reveal:nth-child(6) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .stills {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .output-stills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .formats {
    gap: 28px 14px;
  }

  .phone-sm .burn-caption {
    font-size: 0.75rem;
    bottom: 28px;
  }

  .stills-grid {
    gap: 8px;
  }
}
