/* ══════════════════════════════════════════
   Dee Jellie — marketing site styles
   Dark-first, Jellyfin-blue accent, glass cards,
   scroll-linked reveals, bouncy springs.
   ══════════════════════════════════════════ */

:root {
  /* ── Brand (theme-agnostic) ── */
  --accent:        #5B8DEF;
  --accent-soft:   rgba(91, 141, 239, 0.28);
  --accent-glow:   rgba(91, 141, 239, 0.55);
  --accent-2:      #9B6CFF;          /* purple secondary */
  --supporter:     #55D68F;          /* green for "Supporter" badges */
  --lifetime:      #F6D57A;          /* gold for lifetime supporter */
  --sidebar-w:     248px;
  --spring:        cubic-bezier(0.32, 1.35, 0.55, 1);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Dark (default) ── */
:root, :root[data-theme="dark"] {
  --bg:            #0F1322;          /* bluer-tinted dark so body bg matches the rendered page */
  --bg-2:          #131829;
  --bg-card:       rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text:          #ECEDF3;
  --text-soft:     #C3C8D6;
  --text-muted:    #8E94A8;
  --shadow-glow:   0 20px 60px -20px rgba(91, 141, 239, 0.4);
  --chrome-color:  #0F1322;           /* matches body bg so Safari chrome is continuous with the page */
  /* Sidebar glass matches the sticky-footer pattern: translucent accent at the far end,
     saturated accent at the end that meets the footer. */
  --sidebar-grad-top:    color-mix(in srgb, var(--accent) 45%, transparent);
  --sidebar-grad-bottom: color-mix(in srgb, var(--accent) 85%, #0F1322);
  --sidebar-blur:        6px;
  --sidebar-saturate:    1.6;
  --aurora-1:      rgba(91, 141, 239, 0.22);
  --aurora-2:      rgba(155, 108, 255, 0.18);
  --aurora-3:      rgba(91, 141, 239, 0.10);
}

/* Sidebar text contrast: the accent-tinted glass is a tough backdrop for muted
   greys in either theme. Override --text-soft / --text-muted inside the sidebar
   subtree so brand-sub, nav-link text, and the disclaimer all read at a glance. */
:root .sidebar {
  --text-soft:  #EDEFF5;   /* nav-link default — was #C3C8D6 */
  --text-muted: #B8BECC;   /* brand-sub, disclaimer — was #8E94A8 */
}
:root[data-theme="light"] .sidebar {
  --text-soft:  #141928;
  --text-muted: #2D344A;
  --sidebar-grad-top:    color-mix(in srgb, var(--accent) 25%, rgba(255, 255, 255, 0.88));
  --sidebar-grad-bottom: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.88));
}
:root[data-theme="light"] .sidebar-disclaimer a {
  color: #141928;
  text-decoration-color: rgba(20, 25, 40, 0.35);
}

/* ── Light ── */
:root[data-theme="light"] {
  --bg:            #F6F8FC;
  --bg-2:          #ECEFF6;
  --bg-card:       rgba(15, 25, 55, 0.035);
  --bg-card-hover: rgba(15, 25, 55, 0.065);
  --border:        rgba(15, 25, 55, 0.10);
  --border-strong: rgba(15, 25, 55, 0.18);
  --text:          #141928;
  --text-soft:     #30384A;
  --text-muted:    #5D6578;
  --shadow-glow:   0 20px 60px -20px rgba(91, 141, 239, 0.25);
  --chrome-color:  #F6F8FC;          /* Matches body background */
  --sidebar-grad-top:    color-mix(in srgb, var(--accent) 30%, transparent);
  --sidebar-grad-bottom: color-mix(in srgb, var(--accent) 60%, #FFFFFF);
  --sidebar-blur:        6px;
  --sidebar-saturate:    1.6;
  --aurora-1:      rgba(91, 141, 239, 0.14);
  --aurora-2:      rgba(155, 108, 255, 0.10);
  --aurora-3:      rgba(91, 141, 239, 0.05);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3rem; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv01", "cv11";
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Discourage casual image copying / text selection. Paired with the
   contextmenu/dragstart listeners in scripts.js — not real protection,
   just friction to keep our mascot + screenshots off the desktop of a
   casual visitor. Inputs and textareas get selection back below. */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img, picture, video, svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* ── Aurora / background glow ── */
.aurora {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%,  var(--aurora-1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 25%, var(--aurora-2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--aurora-3) 0%, transparent 60%);
  filter: blur(30px);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: calc(0.75rem + env(safe-area-inset-left, 0px));
  bottom: calc(var(--footer-h, 32px) + 0.75rem + env(safe-area-inset-bottom, 0px));
  width: var(--sidebar-w);
  z-index: 50;
  padding: 1.1rem 0.9rem 1rem;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, var(--sidebar-grad-top) 0%, var(--sidebar-grad-bottom) 100%);
  backdrop-filter: blur(var(--sidebar-blur)) saturate(var(--sidebar-saturate));
  -webkit-backdrop-filter: blur(var(--sidebar-blur)) saturate(var(--sidebar-saturate));
  border: 0.75px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--spring);
}

.brand {
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.4rem 0.6rem 0;
}
.brand img { border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15); }
.brand-name    { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); line-height: 1.1; }
.brand-sub     { font-size: 0.72rem; color: var(--text-muted); margin-top: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-author  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.05rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.brand-version {
  display: block;
  align-self: stretch;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.5rem 0 0.8rem;
  border-bottom: 1px solid var(--border);
  margin: 0.4rem 0 0.7rem;
}

.nav { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; overflow-y: auto; padding-right: 2px; }
.nav::-webkit-scrollbar { width: 0; }

.nav-link {
  position: relative;
  display: flex; gap: 0.8rem; align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.2s var(--spring);
}
.nav-link:hover { background: var(--bg-card-hover); color: var(--text); transform: translateX(2px); }
.nav-link.active { background: var(--accent-soft); color: var(--text); }
.nav-link.active::before {
  content: ""; position: absolute; left: -0.9rem; top: 0.55rem; bottom: 0.55rem;
  width: 3px; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-glow);
}
.nav-glyph {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: color 0.18s var(--ease);
}
.nav-glyph .nav-svg { width: 20px; height: 20px; display: block; }
.nav-link:hover .nav-glyph { color: var(--text); }
.nav-link.active .nav-glyph { color: var(--accent); }

.sidebar-disclaimer {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
  margin: 0.9rem 0.25rem 0;
  padding: 0 0.2rem;
}
.sidebar-disclaimer a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.sidebar-disclaimer a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.sidebar-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sidebar-legal a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar-legal a:hover { color: var(--accent); }

.sidebar-foot {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;                 /* centers the badge */
}
.sidebar-badge { display: flex; justify-content: center; width: 100%; }
.sidebar-badge img { width: auto; height: 44px; max-width: 100%; }
.sidebar-foot .widget-row { justify-content: center; width: 100%; }
.buy-btn {
  display: flex; gap: 0.5rem; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 10px 26px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease);
}
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2); }
.buy-btn .arrow { transition: transform 0.3s var(--spring); }
.buy-btn:hover .arrow { transform: translateX(4px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  left: calc(0.85rem + env(safe-area-inset-left, 0px));
  z-index: 60;
  width: 44px; height: 44px;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  transition: transform 0.35s var(--spring);
}
/* When the sidebar is open on mobile, slide the toggle with it so it always
   sits just to the right of the active sidebar edge. */
.sidebar.open ~ .menu-toggle {
  transform: translateX(calc(260px + 0.5rem));
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s var(--spring), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main {
  margin-left: calc(var(--sidebar-w) + 1.5rem);
  position: relative; z-index: 1;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}
.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  max-width: 1200px;
  scroll-margin-top: 2rem;
}
.section:first-child { padding-top: clamp(4rem, 9vw, 9rem); }
/* Party Mode flows directly out of the Apple TV showcase at the end of Everywhere —
   so it gets a shorter top gap than the default section break. */
#social { padding-top: clamp(1.5rem, 3.5vw, 3rem); }

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.eyebrow.accent { border-color: var(--accent-soft); color: var(--accent); background: rgba(91,141,239,0.08); }

h1, h2, h3 { color: var(--text); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
p  { color: var(--text-soft); font-size: clamp(1rem, 1.15vw, 1.08rem); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--text-soft); max-width: 52ch; }

.gradient-text {
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy > * + * { margin-top: 1.25rem; }
.hero-copy h1 { margin-top: 1rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex; gap: 0.45rem; align-items: center;
  padding: 0.85rem 1.3rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn.primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 22px 42px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn.ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: var(--bg-card-hover); transform: translateY(-2px); }

.hero-mascot {
  position: relative;
  width: 100%; max-width: 420px;
  justify-self: center;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 40px 80px rgba(91, 141, 239, 0.45))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
.hero-mascot img {
  width: 100%; height: auto;
  display: block;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Feature callout — highlighted box used for single-idea features without screenshots */
.feature-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 10%, transparent) 0%,
    var(--bg-card) 70%);
  backdrop-filter: blur(14px) saturate(1.2);
  margin-bottom: 2rem;
}
.feature-callout-icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(155, 108, 255, 0.25));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.25rem;
}
.feature-callout h3 { margin: 0 0 0.45rem; }
.feature-callout p  { margin: 0; }
a.dj-link {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a.dj-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
@media (max-width: 600px) {
  .feature-callout { grid-template-columns: 1fr; }
}

/* Two callouts side-by-side (collapses to stacked on narrow screens) */
.callout-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.callout-pair .feature-callout { margin-bottom: 0; }

/* Platform icon row (mirrors flore-tech releases page) */
.platform-row {
  display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}
.platform-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s var(--spring);
  cursor: default;
}
.platform-chip:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
/* The car glyph has more negative space than the device icons — bump it up so it reads at the same visual weight. */
.platform-chip svg[aria-label="CarPlay"] { width: 28px; height: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Feature highlight chips — clickable, scroll to the matching section */
.feature-highlights {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1.25rem;
}
.highlight-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  backdrop-filter: blur(8px);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s var(--spring), box-shadow 0.25s var(--ease);
}
.highlight-chip:hover {
  color: var(--text);
  border-color: var(--accent-soft);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}
.highlight-chip .highlight-glyph {
  color: var(--accent);
  font-size: 0.9em;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
}

/* ═══════════════════════════════════════════
   FEATURE GRID / CARDS
   ═══════════════════════════════════════════ */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head > * + * { margin-top: 0.85rem; }
.fineprint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.6rem;
}
.card-grid + .fineprint { margin-top: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--spring), background 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateY(-3px); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 120px at var(--mx, 50%) 0%, rgba(91,141,239,0.12) 0%, transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(155, 108, 255, 0.25));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-soft);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.badge.supporter { color: var(--supporter); border-color: rgba(85, 214, 143, 0.38); background: rgba(85, 214, 143, 0.10); }
.badge.lifetime  { color: var(--lifetime);  border-color: rgba(246, 213, 122, 0.4);  background: rgba(246, 213, 122, 0.12); }
.badge.iap       { color: var(--accent-2);  border-color: rgba(155, 108, 255, 0.35); background: rgba(155, 108, 255, 0.08); }

/* Split sections — screenshot + copy */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.5), 0 0 0 1.5px rgba(91,141,239,0.1);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}
.split-media:hover { transform: translateY(-4px); box-shadow: 0 50px 120px -40px rgba(91,141,239,0.35), 0 0 0 1.5px rgba(91,141,239,0.25); }
.split-media img { width: 100%; height: auto; display: block; }

/* Screenshot strip */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .shot {
  scroll-snap-align: start;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 18px 60px -28px rgba(0,0,0,0.7);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.strip .shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 30px 80px -28px rgba(91,141,239,0.35); }
.strip .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  backdrop-filter: blur(12px);
}
.stat .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.stat .l { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; letter-spacing: 0.02em; }

/* Device showcase */
.devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}
.device-card {
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  transition: transform 0.3s var(--spring), border-color 0.3s var(--ease);
}
.device-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.device-card .glyph { font-size: 2rem; margin-bottom: 0.6rem; color: var(--accent); opacity: 0.9; }
.device-card .title { color: var(--text); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.device-card .blurb { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; }

/* Reveal animation (sections + cards) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].visible > *:nth-child(1) { transition-delay: 0.00s; }
[data-reveal-stagger].visible > *:nth-child(2) { transition-delay: 0.06s; }
[data-reveal-stagger].visible > *:nth-child(3) { transition-delay: 0.12s; }
[data-reveal-stagger].visible > *:nth-child(4) { transition-delay: 0.18s; }
[data-reveal-stagger].visible > *:nth-child(5) { transition-delay: 0.24s; }
[data-reveal-stagger].visible > *:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .hero-mascot, .aurora { animation: none !important; }
}

/* ═══════════════════════════════════════════
   STICKY FOOTER — mirrors the main flore-tech site pattern
   ═══════════════════════════════════════════ */
:root { --footer-h: 32px; }

.sticky-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  min-height: var(--footer-h);
  padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--accent) 85%, #0A0B12) 0%,
    color-mix(in srgb, var(--accent) 45%, transparent) 100%
  );
  backdrop-filter: blur(6px) saturate(1.6);
  -webkit-backdrop-filter: blur(6px) saturate(1.6);
  border-top: 0.75px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 -1px 18px rgba(0, 0, 0, 0.18);
}
.sticky-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.4); transition: text-decoration-color 0.2s ease; }
.sticky-footer a:hover { text-decoration-color: rgba(255,255,255,1); }

:root[data-theme="light"] .sticky-footer {
  color: #fff;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--accent) 95%, #FFFFFF) 0%,
    color-mix(in srgb, var(--accent) 55%, transparent) 100%
  );
  border-top-color: rgba(255, 255, 255, 0.4);
}

/* Leave room so the footer doesn't overlap the last section or sidebar content. */
.main { padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px) + 1.5rem); }
/* sidebar clears the footer via its `bottom:` offset, so no extra padding needed */

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-copy { order: 2; }                      /* copy moves below mascot on narrow screens */
  .hero-mascot { order: 1; max-width: 320px; }  /* mascot floats above the lead */
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

@media (max-width: 720px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    /* Translate past the 0.75rem left inset so no edge peeks out when collapsed. */
    transform: translateX(calc(-100% - 1.5rem));
    width: 260px;
    box-shadow: 28px 0 60px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .main {
    margin-left: 0;
    padding-top: 3rem;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    padding-bottom: calc(var(--footer-h, 32px) + env(safe-area-inset-bottom, 0px) + 2.5rem);
  }
  .footer { padding: 2rem 0 2.5rem; }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (EULA, Privacy)
   ═══════════════════════════════════════════ */
.legal-banner {
  position: relative;
  max-width: 820px;
  margin: 1rem auto 1.75rem;
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.25rem;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow:
    0 18px 48px -24px color-mix(in srgb, var(--accent) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.legal-banner-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 70% 120% at 100% 100%, color-mix(in srgb, var(--accent-2) 45%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
.legal-banner-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.legal-banner-text { min-width: 0; }
.legal-banner-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
  display: inline-block;
  margin-bottom: 0.25rem;
}
.legal-banner h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.legal-banner-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.legal-banner-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.25rem 0.25rem 4rem;
  line-height: 1.65;
  color: var(--text-soft);
}
.legal-container h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.legal-container .last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}
.legal-container .lead-quote {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
  margin: 0 0 2rem;
}
.legal-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 2.2rem 0 0.7rem;
}
.legal-container p {
  margin: 0 0 0.9rem;
}
.legal-container ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.legal-container li { margin-bottom: 0.4rem; }
.legal-container a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-container a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}
.legal-container .contact-block {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.legal-container .contact-block p { margin-bottom: 0.7rem; }
.legal-container .contact-block p:last-child { margin-bottom: 0; }
.legal-container .uppercase { text-transform: uppercase; font-size: 0.82rem; }
.legal-container strong { color: var(--text); font-weight: 600; }

/* Legal pages use the same floating sidebar but the main column can stretch wider. */
body.legal-page .main { padding-top: 1.5rem; }

@media (max-width: 560px) {
  .legal-banner {
    grid-template-columns: 64px 1fr;
    padding: 1.1rem 1.15rem;
    gap: 0.9rem;
  }
  .legal-banner-icon { width: 64px; height: 64px; border-radius: 16px; }
}
