.landing-theme {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
:where(a,button):focus-visible { outline: 3px solid #a66b00; outline-offset: 4px; }
#sample-gallery { scroll-margin-top: 24px; }
.gallery-panel [hidden] { display: none; }
@media (max-width: 680px) {
  .nav .landing-theme { position: absolute; right: 62px; top: 16px; }
  .nav .nav-actions:has(.landing-theme) { display: contents; }
  .nav .nav-actions > a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f7fb;
  --paper: #101318;
  --white: #1b2028;
  --muted: #b1bfd3;
  --line: rgba(177, 191, 211, .25);
  --orange: #f5b400;
  --dark: #1b2028;
}
[data-theme="dark"] body {
  background: radial-gradient(ellipse 88% 470px at 50% 0%, #263348, transparent 100%), var(--paper);
}
[data-theme="dark"] .hero {
  background-image: radial-gradient(ellipse 42% 64% at 76% 58%,
    rgba(245, 180, 0, .13), rgba(245, 180, 0, .045) 53%, transparent 82%);
}
@media (max-width: 680px) {
  [data-theme="dark"] .hero {
    background-image: radial-gradient(ellipse 68% 370px at 93% 410px,
      rgba(245, 180, 0, .13), rgba(245, 180, 0, .045) 56%, transparent 84%);
  }
}

[data-theme="dark"] .nav { background: rgba(16, 19, 24, .95); }
[data-theme="dark"] :is(.nav-links, .hero-copy, .section-head p, .value-card p, .process-card p, .feature-copy > p, .feature-list, .demo-intro p, .demo-step, .board-top, .gallery-foot, .brand small, footer .footer-brand p, footer .footer-col a, footer .footer-bottom) { color: var(--muted); }
[data-theme="dark"] :is(.section-head h2, .value-card h3, .process-card h3, .feature-copy h2, .demo-intro h3, .floating-card) { color: var(--ink); }
[data-theme="dark"] :is(.eyebrow, .hero h1 em, .live, .match-count, .demo .eyebrow, .demo-step b, .board-top span:last-child, .gallery-foot strong, .process-card .num, .value-icon, .value-no, .feature-list .check) { color: #ffcf4a; }
[data-theme="dark"] .section-head h2 em, [data-theme="dark"] .feature-copy h2 em { color: #ffcf4a !important; }
[data-theme="dark"] :is(.demo, .process, footer) { background: linear-gradient(180deg, #263348, #101318 180px); color: var(--ink); }
[data-theme="dark"] :is(.floating-card, .demo-board) { background: #1b2028; }
[data-theme="dark"] :is(.selfie-panel, .demo-step b) { background: #253041; }
[data-theme="dark"] .selfie-panel small { color: var(--muted); }
[data-theme="dark"] .btn:not(.dark):not(.light) { color: var(--ink); }
[data-theme="dark"] .btn:hover { color: #202124 !important; }
[data-theme="dark"] :where(a,button):focus-visible { outline-color: #ffcf4a; }


[data-theme="dark"] .brand-logo {
  background: #fffdf8;
  border-radius: 8px;
  padding: 3px 5px;
}

/* Give the photo caption and match overlay separate space. */
.hero-visual { --match-card-width: 220px; }
.hero-visual .floating-card { width: var(--match-card-width); }
.hero-visual .photo-caption {
  right: calc(var(--match-card-width) - 25px + 16px);
  overflow-wrap: anywhere;
}
.hero-visual .photo-caption strong { display: block; }

@media (max-width: 1050px) {
  .hero-visual {
    --match-card-width: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .hero-visual .hero-photo {
    position: relative;
    inset: auto;
    height: clamp(300px, 52vw, 430px);
    margin-right: 15px;
  }
  .hero-visual .photo-caption { right: 20px; }
  .hero-visual .floating-card {
    position: relative;
    inset: auto;
    justify-self: end;
    margin-top: -12px;
    z-index: 2;
  }
}

body { overflow-x: clip; }

[data-theme="dark"] .nav {
  background: #1a1f26;
  border-bottom-color: rgba(245, 180, 0, .28);
}
[data-theme="dark"] .nav .brand-logo {
  content: url("/landing/logo-dark.png");
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 11px rgba(245, 180, 0, .2));
}
@media (max-width: 680px) {
  [data-theme="dark"] .nav-inner { gap: 8px; }
  [data-theme="dark"] .nav .brand { gap: 9px; }
  [data-theme="dark"] .nav .brand-logo { width: clamp(95px, 34vw, 152px); }
  [data-theme="dark"] .nav .brand small { font-size: 7px; letter-spacing: .12em; }
  [data-theme="dark"] .nav .landing-theme { position: static; width: 34px; height: 34px; }
  [data-theme="dark"] .nav .nav-actions:has(.landing-theme) { display: flex; margin-inline-start: auto; }
  [data-theme="dark"] .nav .menu { padding: 0 3px; color: var(--ink); }
}
