/* Veskyra Safety marketing site, brand tokens per veskyra.com's existing cross-brand
   wordmark tokens (--ryskra-ink / --ryskra-accent): deep forest green +
   goldenrod. Light is default; dark is an explicit override via
   [data-theme="dark"] on <html>. Toggle persists to localStorage under
   'ryskra_theme', matching the sibling Kyrvec/Reskyr sites' pattern. */

/* Self-hosted fonts (latin subset, from @fontsource 5.3.0, SIL OFL 1.1: fonts/OFL.txt). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
}

:root,
[data-theme='light'] {
  --ink: #16241d;
  --primary: #1f4037; /* deep forest green */
  --accent: #d4a017; /* goldenrod, the period */
  --accent-ink: #876509; /* text-only gold: 5:1 on paper, 5.4:1 on white (was #a67c0d, 3.5:1) */
  --paper: #f5f6f1;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --muted: #5b6b62;
  --border: #dde3dc;
  --danger: #c0392b;
  --success: #1a7a4a;
  --nav-bg: rgba(245, 246, 241, 0.92);
  --footer-bg: #16241d;
  --footer-text: #a9bdb1;
  --footer-border: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] {
  --ink: #e8ece7;
  --primary: #7fc1a8;
  --accent: #e6bc42;
  --accent-ink: #f0ce72;
  --paper: #0e1613;
  --surface: #16221d;
  --surface-2: #1c2a23;
  --muted: #9db0a5;
  --border: #26362e;
  --danger: #e85c4a;
  --success: #2fa562;
  --nav-bg: rgba(14, 22, 19, 0.88);
  --footer-bg: #0a100d;
  --footer-text: #8fa79a;
  --footer-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  text-wrap: pretty;
}
h1,
h2,
h3,
.wordmark {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
a {
  color: var(--accent-ink);
}
img,
svg {
  max-width: 100%;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}
section {
  padding: clamp(56px, 9vw, 112px) 0;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 14px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-links a.active:not(.btn) {
  color: var(--accent-ink);
  font-weight: 700;
}
/* The full nav needs ~1,090px (the two-word wordmark), so narrower screens use the menu button. */
@media (min-width: 1140px) {
  .nav-links {
    display: flex;
  }
}
@media (min-width: 1140px) and (max-width: 1279px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
}
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}
@media (min-width: 1140px) {
  .nav-mobile-toggle {
    display: none;
  }
}
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
}
#mobile-menu.open {
  display: flex;
}
#mobile-menu a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
#mobile-menu a.active:not(.btn) {
  color: var(--accent-ink);
  font-weight: 700;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}
[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #16241d;
}
.btn-primary:hover {
  filter: brightness(0.92);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.hero {
  padding-top: clamp(64px, 10vw, 120px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.hero .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 24px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.home-hero {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.home-hero + #what {
  padding-top: clamp(40px, 6vw, 72px);
}
.home-hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background: #142820;
}
.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}
.home-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 19, 14, 0.96) 0%, rgba(7, 19, 14, 0.86) 47%, rgba(7, 19, 14, 0.28) 100%);
  z-index: 1;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 5vw, 64px);
  max-width: 820px;
  color: #fff;
}
.home-hero .eyebrow {
  color: #e6bc42;
}
.home-hero .lead {
  color: #d6e0d8;
}
.home-hero .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.home-hero .btn-secondary:hover {
  background: #fff;
  color: #16241d;
}
@media (max-width: 640px) {
  .home-hero-content {
    padding: 36px 28px;
  }
  .home-hero-banner::before {
    background: linear-gradient(
      180deg,
      rgba(7, 19, 14, 0.68) 0%,
      rgba(7, 19, 14, 0.91) 38%,
      rgba(7, 19, 14, 0.97) 100%
    );
  }
  .home-hero-image {
    object-position: 66% center;
  }
  .home-hero .lead {
    font-size: 1rem;
  }
}

.page-hero {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: 8px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.page-hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 64ch;
  margin-top: 18px;
}

.consultant-hero {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.consultant-hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
  border-radius: 22px;
  background: #142820;
  color: #fff;
}
.consultant-hero-visual {
  min-height: 590px;
}
.consultant-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
}
.consultant-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 52px);
}
.consultant-hero-content .eyebrow {
  color: #e6bc42;
}
.consultant-hero-content .lead {
  color: #d6e0d8;
}
.consultant-hero-content .hero-ctas {
  margin-top: 28px;
}
.consultant-hero-content .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.consultant-hero-content .btn-secondary:hover {
  background: #fff;
  color: #16241d;
}
@media (max-width: 760px) {
  .consultant-hero-banner {
    grid-template-columns: 1fr;
  }
  .consultant-hero-visual {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .consultant-hero-visual img {
    object-position: center center;
  }
  .consultant-hero-content {
    padding: 32px 28px 36px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card ul {
  padding-left: 18px;
  margin: 16px 0;
  color: var(--muted);
}
.card ul li {
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  max-width: 24ch;
}
.section-head {
  max-width: 640px;
}
p.body-muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #16241d;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cta-band {
  background: #1f4037;
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  max-width: none;
  margin: 0 auto;
}
.cta-band p {
  color: #c9d9d1;
  max-width: 50ch;
  margin: 16px auto 32px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.contact-card .big-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-block;
  margin: 8px 0 20px;
}

.contact-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-mini p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}
.contact-mini .btn {
  flex-shrink: 0;
}

/* FAQ accordion — matches the sibling Kyrvec/Reskyr sites' pattern */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
summary {
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
details p {
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}
details:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px -18px rgba(17, 24, 39, 0.16);
}
[data-theme='dark'] details:hover {
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.55);
}

/* scroll reveal: JS adds .reveal-ready then .is-visible; no-JS/no-observer = always visible */
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.nav.scrolled {
  box-shadow: 0 8px 24px -18px rgba(17, 24, 39, 0.25);
}
[data-theme='dark'] .nav.scrolled {
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.6);
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 32px;
  transition: background 0.18s ease;
}
footer .wordmark {
  color: #fff;
}
footer a {
  color: var(--footer-text);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
  font-size: 0.85rem;
  color: var(--footer-text);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom a {
  color: var(--footer-text);
}
.family-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.family-strip a {
  color: #fff;
  text-decoration: none;
}
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.social-icons a {
  color: #a9bdb1;
  display: inline-flex;
}
.social-icons a:hover {
  color: #fff;
}
.social-icons svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Footer logo: the approved lockup (dark-background artwork), its built-in margin trimmed. */
.footer-logo {
  display: inline-block;
  line-height: 0;
}
.footer-logo img {
  display: block;
  width: 260px;
  max-width: none;
  height: auto;
  margin: -15px 0 -9px -22px;
}

/* Approved badge: theme-aware in navigation, light artwork in the dark footer. */
.marketing-symbol {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.marketing-symbol img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.marketing-symbol .mark-dark {
  display: none;
}
[data-theme='dark'] .marketing-symbol .mark-light {
  display: none;
}
[data-theme='dark'] .marketing-symbol .mark-dark {
  display: block;
}
footer .marketing-symbol .mark-light {
  display: none;
}
footer .marketing-symbol .mark-dark {
  display: block;
}

/* Section jump links + back-to-top (features, consultants) */
section[id] {
  scroll-margin-top: 72px;
}
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.jump-links a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.jump-links a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.section-top {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.section-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 4px;
}
.section-top a:hover {
  color: var(--accent-ink);
}
.section-top svg {
  width: 16px;
  height: 16px;
}

/* Scene cards (photo + floating product panel, Mitti-style). A photo in images/photos/ shows
   when present; otherwise the on-brand blueprint-grid scene underneath shows. */
:root {
  --scene-a: #1f4037;
  --scene-b: #0e1f19;
  --scene-ink: #ffffff;
  --scene-panel: #ffffff;
  --scene-panel-ink: #16241d;
  --scene-panel-muted: #5b6770;
  --scene-good: #1a7a4a;
  --scene-warn: #b7860b;
  --scene-bad: #b84040;
}
.scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .scenes {
    grid-template-columns: repeat(6, 1fr);
  }
  .scene {
    grid-column: span 3;
  }
  .scene-sm {
    grid-column: span 2;
  }
}
.scene {
  position: relative;
  display: block;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  color: var(--scene-ink);
  text-decoration: none;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8, 18, 14, 0) 35%, rgba(8, 18, 14, 0.82) 100%),
    var(--scene-photo, none) center / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 85% 10%, rgba(212, 160, 23, 0.28), transparent 55%),
    linear-gradient(145deg, var(--scene-a), var(--scene-b));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.scene:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(8, 18, 14, 0.6);
}
.scene-sm {
  min-height: 380px;
}
.scene-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  margin: 0;
  color: var(--scene-ink);
}
.scene-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-arrow svg {
  width: 20px;
  height: 20px;
}
.scene-panel {
  position: absolute;
  top: 28px;
  left: 28px;
  width: min(290px, calc(100% - 100px));
  background: var(--scene-panel);
  color: var(--scene-panel-ink);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  font-size: 0.82rem;
}
.scene-panel .sp-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--scene-panel-muted);
  display: block;
  margin-bottom: 6px;
}
.scene-panel .sp-big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.scene-panel .sp-up {
  color: var(--scene-good);
  font-weight: 700;
  font-size: 0.8rem;
  margin-left: 6px;
}
.scene-panel .sp-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #e7eae4;
}
.scene-panel .sp-row:first-of-type {
  border-top: none;
}
.scene-panel .sp-muted {
  color: var(--scene-panel-muted);
}
.sp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.sp-good {
  background: var(--scene-good);
}
.sp-warn {
  background: var(--scene-warn);
}
.sp-bad {
  background: var(--scene-bad);
}
.sp-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 8px;
}
.sp-bars i {
  flex: 1;
  background: var(--scene-good);
  border-radius: 2px;
  opacity: 0.85;
}
.sp-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f7ebc9;
  color: #7a5a06;
}
.sp-pill-good {
  background: #d8efe2;
  color: #1f5a3c;
}
.sp-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #16241d;
  margin-bottom: 8px;
}
@media (max-width: 759px) {
  .scene,
  .scene-sm {
    min-height: 340px;
  }
}

/* Photos (images/photos/): full-width bands and side-by-side pairs. */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  background: var(--surface-2);
}
.hero-photo {
  margin-top: clamp(36px, 5vw, 56px);
  aspect-ratio: 2 / 1;
  max-height: 560px;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .photo-pair {
    grid-template-columns: 1fr 1fr;
  }
}
.photo-pair .photo {
  aspect-ratio: 3 / 2;
}
/* .scene-low: panel sits just above the title so the photo's subject (upper half) stays visible. */
.scene-low {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 26px;
}
.scene-low .scene-panel {
  position: static;
  margin-bottom: 16px;
  width: min(290px, 100%);
}
.scene-low .scene-title {
  position: static;
}
@media (min-width: 760px) {
  .scene-sm.scene-low {
    min-height: 460px;
  }
  .scenes .scene-sm {
    min-height: 460px;
  }
}
.scene-low:not(.scene-sm) .scene-panel {
  width: min(250px, 100%);
}
@media (min-width: 760px) {
  .scene:not(.scene-sm) {
    min-height: 400px;
  }
}

/* About: "The Veskyra family" card, the same row pattern as the platform panel
   on veskyra.com/contact and the korlea.com and valkred.com About pages: one
   row per sister platform with its badge, its name in its own color and one
   line on what it does. Colors are veskyra.com's per-platform tokens; the row
   border takes the platform color on hover. Two columns on wide screens. */
:root,
[data-theme='light'] {
  --reskyr-accent: #e8541a;
  --kyrvec-accent: #3360c9;
  --valkred-accent: #2c5a45;
  --korlea-accent: #695c7c;
}
[data-theme='dark'] {
  --reskyr-accent: #f2794f;
  --kyrvec-accent: #5b8ae0;
  --valkred-accent: #8fc3a8;
  --korlea-accent: #76678b;
}
.family-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.family-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .platform-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
.platform-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  height: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.platform-row:hover {
  transform: translateY(-1px);
}
.platform-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fam-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}
.fam-badge-dark {
  display: none;
}
[data-theme='dark'] .fam-badge-light {
  display: none;
}
[data-theme='dark'] .fam-badge-dark {
  display: block;
}
.platform-row-name {
  display: block;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}
.platform-row-line {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}
.row-reskyr .platform-row-name {
  color: var(--reskyr-accent);
}
.platform-row.row-reskyr:hover {
  border-color: var(--reskyr-accent);
}
.row-kyrvec .platform-row-name {
  color: var(--kyrvec-accent);
}
.platform-row.row-kyrvec:hover {
  border-color: var(--kyrvec-accent);
}
.row-valkred .platform-row-name {
  color: var(--valkred-accent);
}
.platform-row.row-valkred:hover {
  border-color: var(--valkred-accent);
}
.row-korlea .platform-row-name {
  color: var(--korlea-accent);
}
.platform-row.row-korlea:hover {
  border-color: var(--korlea-accent);
}

/* Member sign-in button in the nav (partials/nav.html, mobile-menu.html): the outlined .btn-secondary,
   so it reads as a button without competing with the filled "Start free trial". */
.nav-links a.btn,
#mobile-menu a.btn {
  white-space: nowrap;
}
#mobile-menu a.signin {
  align-self: flex-start;
  padding: 12px 22px;
}

/* App store buttons (partials/app-badges.html): black on every theme and background, like the stores' own badges. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.cta-band .store-badges {
  justify-content: center;
  margin-top: 14px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  line-height: 1.1;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}
.store-btn:hover {
  transform: translateY(-1px);
}
.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
}
.cta-band p.cta-apps {
  margin: 40px auto 0;
  font-size: 0.95rem;
}
