/* Origo — mobile condensing + accessibility. Monochrome only. Desktop (>900) untouched. */

/* ---- global a11y base (all widths) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, .answer-tab:focus-visible, .brand:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
/* contrast: lift faint labels (#6A6A6A ≈ 4:1 on black, fails AA) to #8A8A8A (~5.9:1) */
.method-num, .footer-col h4, .footer-bot span, .engines .lbl { color: #8A8A8A; }

/* ---- mobile nav toggle + overlay menu (base styling; shown at <=900) ---- */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-left: auto; background: none; border: none; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 1.5px; background: #fff;
  transition: transform .2s var(--ease-out), opacity .2s; }
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.navmenu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(0,0,0,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; padding: 14px 20px calc(env(safe-area-inset-bottom) + 24px); }
.navmenu-links { display: flex; flex-direction: column; }
.navmenu-links a { display: flex; align-items: center; min-height: 54px; font-family: var(--font-sans);
  font-size: 19px; color: var(--fg); border-bottom: 1px solid var(--border-1); }
.navmenu-links a:active { color: #fff; }
.navmenu .btn { margin-top: 18px; width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .navmenu { animation: navmenu-in .24s var(--ease-out) both; } }
@keyframes navmenu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- tablet/phone: hide desktop nav + CTA, show the toggle ---- */
@media (max-width: 900px) {
  .nav-actions { display: none; }   /* desktop CTA hidden; it lives in the menu */
  .nav-toggle { display: inline-flex; }
}

/* ---- phone ---- */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .wrap { padding-left: 20px; padding-right: 20px; }

  /* hero condense */
  .hero { padding: 58px 0 50px; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 46px); max-width: 16ch; letter-spacing: -.035em; }
  .hero-sub { font-size: 16px; margin-top: 18px; }
  .hero-demo { margin-top: 34px; }

  /* answer demo — fix the tight, overflowing card: scrollable tabs, comfy targets, contained */
  .answer { max-width: 100%; }
  .answer-tabs { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .answer-tabs::-webkit-scrollbar { display: none; }
  .answer-tab { flex: 0 0 auto; min-height: 46px; padding: 12px 15px; font-size: 10px; }
  .answer-body { padding: 18px 16px; min-height: 0; }
  .answer-a { font-size: 15px; }
  .answer-q { font-size: 14px; }
  .answer-foot { flex-wrap: wrap; gap: 8px 12px; }
  .answer-src { margin-left: 0; }

  /* sections condense */
  .sec { padding: 58px 0; }
  .cta { padding: 66px 0; }
  .sec-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .sec-head p { font-size: 16px; }
  .cta h2 { font-size: clamp(30px, 9vw, 42px); }

  /* engine strip stack */
  .engines { padding: 24px 0; }
  .engines-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .engines .names { gap: 14px 20px; }

  /* method / stats */
  .method-cell { padding: 26px 22px; }
  .stat { padding: 32px 14px; }

  /* footer stack */
  .footer { padding: 48px 0 36px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 24px 40px; }
  .footer-col a { min-height: 40px; display: flex; align-items: center; }
}

/* ---- small phone ---- */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(30px, 11vw, 38px); }
  .stats { grid-template-columns: 1fr; }
}
