/* ==========================================================================
   Onus support site — styles
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}
img,
picture {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Theme tokens -------------------------------------------------------
   Light palette lives on bare :root. Dark palette is layered on twice:
   once for the OS-level preference, once for the manual toggle, so the
   toggle always wins over prefers-color-scheme.
   -------------------------------------------------------------------- */
:root {
  --primary: #0c9699;
  --primary-strong: #087679;
  --accent: #c28b0a;

  --bg: #ffffff;
  --bg-alt: #f4f7f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #12191b;
  --text-muted: #55636a;
  --border: #e3e9ea;
  --shadow:
    0 1px 2px rgba(20, 30, 32, 0.04), 0 12px 28px -12px rgba(20, 30, 32, 0.16);
  --shadow-sm: 0 1px 3px rgba(20, 30, 32, 0.08);
  --code-bg: #eef2f3;

  --primary-contrast: #ffffff;
  --focus-ring: #0c9699;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --container: 1120px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #14cbcf;
    --primary-strong: #3fd9dc;
    --accent: #fabd2e;

    --bg: #0a0f10;
    --bg-alt: #0f1517;
    --surface: #141b1d;
    --surface-raised: #171f21;
    --text: #eef3f4;
    --text-muted: #9aa8ac;
    --border: #253032;
    --shadow:
      0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --code-bg: #1b2426;

    --primary-contrast: #05191a;
    --focus-ring: #14cbcf;
  }
}

:root[data-theme="dark"] {
  --primary: #14cbcf;
  --primary-strong: #3fd9dc;
  --accent: #fabd2e;

  --bg: #0a0f10;
  --bg-alt: #0f1517;
  --surface: #141b1d;
  --surface-raised: #171f21;
  --text: #eef3f4;
  --text-muted: #9aa8ac;
  --border: #253032;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --code-bg: #1b2426;

  --primary-contrast: #05191a;
  --focus-ring: #14cbcf;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 72px;
}
section + section {
  border-top: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* ---- Top nav ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 10px 24px -10px
    color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-alt);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: 64px 56px;
  background:
    radial-gradient(
      600px 320px at 15% -10%,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent
    ),
    radial-gradient(
      500px 300px at 90% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent
    );
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 560px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.hero-banner {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Screenshots ---------------------------------------------------------- */
.shot-group {
  margin-bottom: 52px;
}
.shot-group:last-child {
  margin-bottom: 0;
}

.shot-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.shot-group-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.shot-group-head .platform-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tabbar {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
}

.tabbar button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.tabbar button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-block: 4px 14px;
  scroll-snap-type: x proximity;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}
.gallery::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.shot-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: zoom-in;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 168px;
}

.shot-card .frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.shot-card:hover .frame,
.shot-card:focus-visible .frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot-card.watch {
  width: 118px;
}
.shot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-card .cap {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ---- Features ------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- FAQ -------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 650;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.faq-item .faq-body p + p {
  margin-top: 10px;
}

.todo-flag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---- Contact / support -------------------------------------------------------- */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, var(--surface)),
    var(--surface)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.contact-card p {
  color: var(--text-muted);
  max-width: 46ch;
}

.contact-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Privacy preview ---------------------------------------------------------- */
.privacy-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.privacy-card ul {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.privacy-card ul li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 800;
}

/* ---- Footer --------------------------------------------------------------------- */
.site-footer {
  padding-block: 44px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ---- Lightbox ------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 9, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px 16px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-height: 88vh;
  max-width: min(90vw, 420px);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Privacy page --------------------------------------------------------------- */
.doc {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 56px 80px;
}
.doc h1 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.doc .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 34px;
}
.doc h2 {
  font-size: 1.25rem;
  margin-top: 38px;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.doc p {
  margin-bottom: 14px;
  color: var(--text);
}
.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}
.doc li {
  margin-bottom: 6px;
}
.doc a {
  color: var(--primary);
  font-weight: 600;
}
.doc .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.doc code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}

/* ---- Responsive ------------------------------------------------------------------ */
@media (max-width: 640px) {
  section {
    padding-block: 52px;
  }
  .hero {
    padding-block: 44px 40px;
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .privacy-card {
    flex-direction: column;
  }
}
