/* The main landing (chat.html, signed out), 2026-10-19: a white canvas,
   Nunito, chunky 3D buttons in Jomoq cobalt (#2E5BFF; it was Duolingo green
   until the same day, too close to theirs), sentence-case headlines, our
   birds as the characters, and the launch video in the hero
   (media/jomoq-launch.*, made from recordings of the real app). One video,
   no frames, no fixed layers, no blur. Birds stop animating offscreen
   (js/landing-fun.js); the video pauses offscreen (js/landing-home.js). */

.duo-main {
  --brand: #2E5BFF;      /* white text 5.2:1 */
  --brand-d: #1E40D0;    /* 3D button edge */
  --brand-soft: #EAF0FF;
  --navy: #0B1B4D;
  --duo-ink: #3C3F4A;
  --duo-mute: #777777;
  --duo-line: #E5E5E5;
  --duo-font: "Nunito", "Noto Color Emoji", ui-rounded, system-ui, sans-serif;
  position: relative;
  overflow-x: clip;
  background: #FFFFFF;
  color: var(--duo-ink);
  font-family: var(--duo-font);
}
.duo-main h1,
.duo-main h2 { font-family: var(--duo-font); letter-spacing: 0; }

/* The nav on this page speaks the same language. */
.rd-landing:has(.duo-main.is-page) .landing-nav { border-bottom: 2px solid #E5E5E5; }
.rd-landing:has(.duo-main.is-page) .landing-brand { color: #2E5BFF; }
/* index.css colours .brand-logo itself, so the svg needs its own rule. */
.rd-landing:has(.duo-main.is-page) .landing-nav .landing-brand .brand-logo { color: #2E5BFF; }
.rd-landing:has(.duo-main.is-page) .rd-topbar { background: #EAF0FF; color: #0B1B4D; font-family: "Nunito", system-ui, sans-serif; font-weight: 700; }
.rd-landing:has(.duo-main.is-page) .rd-topbar-chip { background: #2E5BFF; color: #FFFFFF; font-family: inherit; font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: none; }
.rd-landing:has(.duo-main.is-page) :is(.rd-nav-login, .rd-uc-btn) {
  color: #6B7080;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.rd-landing:has(.duo-main.is-page) :is(.rd-nav-login, .rd-uc-btn):hover { color: #0B1B4D; }
.rd-landing:has(.duo-main.is-page) .rd-nav-btn {
  border: 0;
  border-radius: 14px;
  background: #2E5BFF;
  box-shadow: 0 4px 0 #1E40D0;
  color: #FFFFFF;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.rd-landing:has(.duo-main.is-page) .rd-nav-btn:hover { background: #4570FF; }
.rd-landing:has(.duo-main.is-page) .rd-nav-btn:active { transform: translateY(4px); box-shadow: none; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.duo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-family: var(--duo-font);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.duo-main .duo-btn.is-brand { background: var(--brand); box-shadow: 0 4px 0 var(--brand-d); color: #FFFFFF; }
.duo-main .duo-btn.is-white { border: 2px solid var(--duo-line); background: #FFFFFF; box-shadow: 0 4px 0 var(--duo-line); color: var(--brand); }
.duo-main .duo-btn.is-ink { border-color: #FFFFFF; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); color: var(--brand); }
.duo-main .duo-btn:hover { filter: brightness(1.06); text-decoration: none; }
.duo-main .duo-btn:active { transform: translateY(4px); box-shadow: none; }
.duo-btn:focus-visible { outline: 3px solid #0D99FF; outline-offset: 3px; }

/* ── Hero: the film and one line ───────────────────────────────────────── */
.duo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px var(--rd-gutter, 40px) 72px;
}
.duo-film { position: relative; }
.duo-film-bird { position: absolute; left: -26px; top: -78px; z-index: 2; line-height: 0; }
.duo-film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--duo-line);
  border-radius: 24px;
  background: #F7F7F7;
  box-shadow: 0 6px 0 var(--duo-line);
}
.duo-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo-video-toggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  color: var(--duo-ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* Sound: the film autoplays muted (browsers require it); one tap turns the
   soundtrack on. Icon only, showing the current state (volume_off while
   muted), always visible, unlike the pause button. */
.duo-video-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 0 rgba(11, 27, 77, 0.16);
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
}
.duo-video-sound .material-symbols-rounded { font-size: 24px; }
.duo-video-sound:hover { background: #FFFFFF; }
.duo-video-sound:active { transform: translateY(2px); box-shadow: none; }
.duo-video-sound:focus-visible, .duo-video-toggle:focus-visible { outline: 3px solid #0D99FF; outline-offset: 2px; }
.duo-film-frame:hover .duo-video-toggle,
.duo-video-toggle:focus-visible,
.duo-film-frame.is-paused .duo-video-toggle { opacity: 1; }
.duo-hero-copy { text-align: center; }
.duo-main .duo-title {
  max-width: 460px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 900;
  line-height: 1.1;
}
.duo-main .duo-lede {
  max-width: 400px;
  margin: 16px auto 0;
  color: var(--duo-mute);
  font-family: var(--duo-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}
.duo-cta { display: grid; gap: 14px; max-width: 340px; margin: 32px auto 0; }

/* ── "Works with" ───────────────────────────────────────────────────────── */
.duo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px var(--rd-gutter, 40px);
  border-top: 2px solid var(--duo-line);
  border-bottom: 2px solid var(--duo-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.duo-strip-label { flex: none; color: var(--navy); font-size: 16px; font-weight: 900; }
.duo-strip ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.duo-strip li {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  color: #6B7080;
  font-size: 16px;
  font-weight: 800;
}
/* Real provider logos (the same favicon service the model menu uses), each
   in a white tile; Jomoq's own icon (the two eyes) as is. */
.duo-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--duo-line);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 2px 0 var(--duo-line);
  overflow: hidden;
}
.duo-logo img { display: block; width: 22px; height: 22px; border-radius: 4px; }
.duo-logo.is-jomoq { border: 0; background: none; box-shadow: 0 2px 0 var(--brand-d); }
.duo-logo.is-jomoq svg { display: block; width: 100%; height: 100%; }

/* ── Feature sections ──────────────────────────────────────────────────── */
.duo-feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px var(--rd-gutter, 40px);
}
.duo-feat.is-flip .duo-feat-copy { order: 2; }
.duo-feat + .duo-feat { border-top: 2px solid var(--duo-line); }
.duo-feat-copy h2,
.duo-ways h2,
.duo-proof h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
}
.duo-feat-copy p { margin: 22px 0 0; color: var(--duo-mute); font-size: 19px; font-weight: 600; line-height: 1.55; }

/* The illustrations: our birds with chunky app pieces. */
.duo-art { position: relative; min-height: 360px; }
.duo-art-bird { position: absolute; line-height: 0; }
.duo-card {
  position: absolute;
  padding: 18px 20px;
  border: 2px solid var(--duo-line);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 5px 0 var(--duo-line);
}
.duo-card small { display: block; color: #AFAFAF; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.duo-card strong { display: block; margin-top: 4px; color: var(--duo-ink); font-size: 19px; font-weight: 800; }

.duo-art-models .duo-art-bird { left: 50%; top: 50%; translate: -50% -48%; }
.duo-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--duo-line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 4px 0 var(--duo-line);
  color: var(--duo-ink);
  font-size: 18px;
  font-weight: 800;
  animation: duo-bob 4s ease-in-out infinite;
}
.duo-bubble img { display: block; width: 26px; height: 26px; border-radius: 6px; }
.duo-bubble .duo-logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.duo-bubble b { color: var(--brand); font-size: 20px; }
.duo-bubble.is-on { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-d); }
.duo-bubble.is-a { left: 2%; top: 6%; animation-delay: -1s; }
.duo-bubble.is-b { right: 4%; top: 2%; animation-delay: -2s; }
.duo-bubble.is-c { left: 0; bottom: 12%; animation-delay: -3s; }
.duo-bubble.is-d { right: 0; bottom: 6%; }
.duo-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--duo-line);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 0 var(--duo-line);
  animation: duo-bob 4s ease-in-out infinite;
}
.duo-chip img { width: 30px; height: 30px; }
.duo-chip.is-e { right: 6%; top: 40%; animation-delay: -1.5s; }
.duo-chip.is-f { left: 10%; top: 42%; animation-delay: -2.5s; }
@keyframes duo-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.duo-art-quiz .duo-art-bird { left: 0; bottom: 6px; }
.duo-quiz { right: 0; top: 10px; width: min(360px, 78%); display: grid; gap: 10px; }
.duo-quiz strong { margin: 0 0 4px; }
.duo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 2px solid var(--duo-line);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--duo-line);
  color: var(--duo-ink);
  font-size: 16px;
  font-weight: 700;
}
.duo-opt.is-ok { border-color: #8FD8AA; background: #E4F8EB; box-shadow: 0 3px 0 #8FD8AA; color: #146C43; }
.duo-opt b { font-size: 22px; }
.duo-quiz-ok { color: #146C43; font-size: 15px; font-weight: 800; }

.duo-timer { left: 0; top: 0; width: min(330px, 76%); text-align: center; }
.duo-timer strong { margin-bottom: 6px; }
.duo-tree { display: block; width: 120px; height: 140px; margin: 4px auto 0; transform-origin: 50% 100%; animation: duo-grow 5s ease-in-out infinite; }
@keyframes duo-grow { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.02); } }
.duo-time { display: block; margin-top: 4px; color: var(--duo-ink); font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.duo-fuse { display: block; height: 12px; margin-top: 14px; border-radius: 99px; background: #F0F0F0; overflow: hidden; }
.duo-fuse i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFC800, #FF9600); }
.duo-art-focus .duo-art-bird.is-side { right: 4%; bottom: 0; }
.duo-score {
  position: absolute;
  right: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 6px solid var(--brand);
  border-radius: 50%;
  background: #FFFFFF;
  color: #AFAFAF;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.duo-score b { color: var(--duo-ink); font-size: 30px; font-weight: 900; }

.duo-art-friends .duo-art-bird.is-left { left: 0; bottom: 0; }
.duo-art-friends .duo-art-bird.is-right { right: 0; bottom: 0; }
.duo-say {
  position: absolute;
  max-width: 62%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
}
.duo-say.is-them { left: 22%; border: 2px solid var(--duo-line); background: #FFFFFF; box-shadow: 0 4px 0 var(--duo-line); color: var(--duo-ink); }
.duo-say.is-you { right: 20%; background: var(--brand); box-shadow: 0 4px 0 var(--brand-d); color: #FFFFFF; }
.duo-say.is-1 { top: 8%; }
.duo-say.is-2 { top: 34%; }
.duo-say.is-3 { top: 60%; }

.duo-app { left: 0; top: 0; width: min(360px, 80%); display: grid; gap: 10px; padding: 0 0 18px; overflow: hidden; }
.duo-app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid var(--duo-line); background: #F7F7F7; }
.duo-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E5E5E5; }
.duo-app-bar em { margin-left: 8px; color: #AFAFAF; font-size: 13px; font-style: normal; font-weight: 800; }
.duo-app strong, .duo-app-row { margin: 0 18px; }
.duo-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--duo-line);
  border-radius: 14px;
  color: var(--duo-ink);
  font-size: 16px;
  font-weight: 700;
}
.duo-app-row b { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--duo-line); border-radius: 8px; font-size: 18px; }
.duo-app-row.is-done b { border-color: var(--brand); background: var(--brand); color: #FFFFFF; }
.duo-badge {
  position: absolute;
  right: 6%;
  top: 8%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--brand);
  box-shadow: 0 4px 0 var(--brand-d);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  animation: duo-bob 4s ease-in-out infinite;
}
.duo-art-build .duo-art-bird.is-side { right: 2%; bottom: 0; }

/* ── Use cases ─────────────────────────────────────────────────────────── */
.duo-ways { max-width: 1160px; margin: 0 auto; padding: 96px var(--rd-gutter, 40px) 40px; text-align: center; border-top: 2px solid var(--duo-line); }
/* Flex, not grid, so a short last row sits centred. */
.duo-auds {
  --cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
  text-align: left;
}
.duo-main .duo-aud {
  flex: 0 1 calc((100% - 18px * (var(--cols) - 1)) / var(--cols));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 2px solid var(--duo-line);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 4px 0 var(--duo-line);
  color: var(--duo-ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.duo-main .duo-aud:hover { border-color: #CECECE; transform: translateY(-3px); }
.duo-aud-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--tint); color: var(--duo-ink); font-size: 26px; }
.duo-aud strong { font-size: 19px; font-weight: 900; }
.duo-aud q { color: var(--duo-mute); font-size: 16px; font-weight: 600; line-height: 1.45; }
.duo-aud em { margin-top: auto; padding-top: 6px; color: var(--brand); font-size: 15px; font-style: normal; font-weight: 800; }

/* ── Benchmark ─────────────────────────────────────────────────────────── */
.duo-proof { max-width: 1080px; margin: 0 auto; padding: 96px var(--rd-gutter, 40px) 110px; text-align: center; }
.duo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 40px 0 0; }
.duo-stats > div { padding: 26px 20px; border: 2px solid var(--duo-line); border-radius: 20px; box-shadow: 0 4px 0 var(--duo-line); }
.duo-stats dt { color: var(--duo-ink); font-size: 44px; font-weight: 900; line-height: 1; }
.duo-stats dd { margin: 10px 0 0; color: var(--duo-mute); font-size: 16px; font-weight: 700; line-height: 1.4; }
.duo-main .duo-link { display: inline-block; margin-top: 28px; color: var(--brand); font-size: 16px; font-weight: 800; text-decoration: none; }

/* ── The blue close ────────────────────────────────────────────────────── */
.duo-close { position: relative; background: var(--brand); color: #FFFFFF; text-align: center; }
.duo-wave { position: absolute; left: 0; right: 0; top: -79px; display: block; width: 100%; height: 80px; }
.duo-close-inner { display: grid; justify-items: center; gap: 22px; padding: 30px 24px 110px; }
.duo-close-inner .rd-bird { line-height: 0; }
.duo-main .duo-close h2 { margin: 0; color: #FFFFFF; font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.05; }
.duo-close .duo-btn { min-width: 300px; }
/* The shared footer rule is :is(.rd-landing, body.landing-page.rd-site) .rd-foot,
   (0,3,1), so these carry .auth-foot to win. */
.rd-landing:has(.duo-main.is-page) .rd-foot.auth-foot { padding-top: 40px; background: #0B1B4D; font-family: "Nunito", "Noto Color Emoji", sans-serif; }
.rd-landing:has(.duo-main.is-page) .rd-foot.auth-foot .rd-foot-grid { padding-top: 32px; }
.rd-landing:has(.duo-main.is-page) .rd-foot.auth-foot nav h2 { color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 900; letter-spacing: 0.04em; }
.rd-landing:has(.duo-main.is-page) .rd-foot.auth-foot :is(p, a, span) { color: #FFFFFF; font-weight: 700; }
.rd-landing:has(.duo-main.is-page) .rd-foot.auth-foot .auth-foot-inner { border-top-color: rgba(255, 255, 255, 0.28); }

/* ── Smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .duo-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 72px; }
  .duo-strip { justify-content: flex-start; }
  .duo-feat { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 72px 20px; text-align: center; }
  .duo-feat.is-flip .duo-feat-copy { order: 0; }
  .duo-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .duo-auds { --cols: 2; }
  .duo-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .duo-hero { padding: 64px 16px 48px; }
  .duo-film-bird { left: -6px; top: -64px; }
  .duo-film-bird svg { width: 84px; height: 84px; }
  .duo-strip-label { font-size: 15px; }
  .duo-feat-copy p { font-size: 17px; }
  .duo-art { min-height: 320px; }
  .duo-auds { --cols: 1; }
  .duo-say { font-size: 16px; }
  /* Phones: the quiz takes the full width with the owl under it, and the
     chat bubbles move up so the last one clears the robin. */
  .duo-art-quiz { min-height: 0; padding-bottom: 96px; }
  .duo-quiz { position: relative; top: 0; right: auto; width: 100%; }
  .duo-art-quiz .duo-art-bird { left: 6px; bottom: 0; }
  .duo-say.is-1 { top: 2%; }
  .duo-say.is-2 { top: 26%; }
  .duo-say.is-3 { top: 50%; }
  .duo-close .duo-btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-bubble, .duo-chip, .duo-badge, .duo-tree { animation: none; }
}
