/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette - Sophisticated Dark Graphite/Slate */
  --bg-main: #0b0d11;
  --bg-surface: #12151c;
  --bg-surface-alt: #171b24;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-active: rgba(255, 255, 255, 0.09);
  --bg-card: rgba(18, 22, 29, 0.75);

  /* Subtle Glass-Morphism Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(52, 211, 153, 0.3);

  /* Unified Studio Accent Palette (ByRoutine Signature Mint & Emerald) */
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-primary-muted: rgba(16, 185, 129, 0.12);
  --accent-mint: #34d399;
  --accent-emerald: #10b981;
  --accent-green: #10b981;
  --accent-blue: #38bdf8;
  --accent-indigo: #10b981;
  --accent-purple: #a78bfa;
  --accent-cyan: #38bdf8;
  --accent-orange: #fb923c;
  --accent-red: #f87171;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Font Families (Apple SF Pro Font Stack) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid Typography Clamps */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.825rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.4vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 1vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.5rem + 1.75vw, 2.75rem);
  --text-hero: clamp(2.35rem, 4.5vw + 0.5rem, 4.25rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  /* Refined Studio Drop-Shadows & Ambient Glows (No harsh neon flares) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.55), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 35px rgba(16, 185, 129, 0.06);
  --glow-button: 0 2px 14px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Max Widths - Balanced for indie software studio aesthetics */
  --max-width: 1160px;
  --max-width-narrow: 800px;
  --navbar-top: calc(clamp(0.75rem, 2vw, 1.25rem) + env(safe-area-inset-top, 0px));
  --navbar-height: 4.25rem;
  --content-top: calc(var(--navbar-top) + var(--navbar-height) + 1.5rem);
  color-scheme: dark;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  max-width: 100%;
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

/* Prevent layout jump when modal locks scroll */
body.modal-open,
body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul[role="list"] {
  list-style: none;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

/* Sections, containers, and non-interactive elements must never show focus outlines */
section:focus,
section:focus-visible,
main:focus,
main:focus-visible,
div:focus,
div:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none !important;
}

/* Selection Highlight */
::selection {
  background-color: rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

/* --- Ambient Glow Backgrounds --- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.5;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 90vw);
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.02) 45%, transparent 75%);
}

.glow-right {
  top: 25%;
  right: 0;
  width: min(500px, 60vw);
  height: 600px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, rgba(16, 185, 129, 0.01) 45%, transparent 75%);
}

/* --- Common Layout & Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

/* Ensure anchors and section headers are never covered by the floating navbar */
html {
  scroll-padding-top: 100px;
}

section,
[id] {
  scroll-margin-top: 100px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Glass Panel Utility --- */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring), 
              border-color var(--duration-normal) ease, 
              box-shadow var(--duration-normal) ease;
}

/* --- Header & Navbar --- */
.navbar-wrapper {
  position: fixed;
  top: var(--navbar-top);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand-logo img.logo-icon {
  border-radius: var(--radius-full);
  object-fit: cover;
}

.brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: background var(--duration-fast) ease, 
              color var(--duration-fast) ease, 
              border-color var(--duration-fast) ease, 
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-light);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.theme-toggle .theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Dark Mode: Sun visible (prompting switch to light mode), Moon hidden */
.theme-toggle .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light Mode: Moon visible (prompting switch to dark mode), Sun hidden */
[data-theme="light"] .theme-toggle .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  position: relative;
  flex-shrink: 0;
  gap: 2px;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
  user-select: none;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

/* Light mode for Language Switcher */
[data-theme="light"] .lang-switch {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-btn {
  color: var(--text-secondary);
}

[data-theme="light"] .lang-btn:hover {
  color: var(--text-primary);
}

[data-theme="light"] .lang-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* Prevent flicker on initial load for English users */
html[data-lang="en"]:not(.i18n-ready) body {
  opacity: 0;
  /* A failed translation download must not leave the website invisible. */
  animation: i18n-fallback 0s 1s forwards;
}

@keyframes i18n-fallback {
  to { opacity: 1; }
}

html.i18n-ready body {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}

/* Mobile drawer theme toggle row */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  gap: 5px;
  transition: background var(--duration-fast) ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-spring), opacity var(--duration-fast) ease;
}

/* Hamburger active state */
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-left: 1px solid var(--border-light);
  z-index: 999;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-spring);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.mobile-nav-drawer.active {
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.mobile-nav-link {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: var(--text-base);
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform var(--duration-fast) ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
}

/* Sleek borderless micro-label for category headers */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.section-header .status-dot,
.status-pill .status-dot {
  display: none !important;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  max-width: 6px;
  max-height: 6px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: none;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
}

.status-dot::after {
  display: none;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 860px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Hero Mockup Card */

.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.light.green { background-color: #27c93f; }

.badge-mini {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-active {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Showcase / App Cards --- */

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

/* App Icon Continuous Squircle */
.squircle {
  width: 58px;
  height: 58px;
  border-radius: 15px; /* Continuous corner curvature */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.squircle-svg {
  width: 30px;
  height: 30px;
}

.squircle-img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  display: block;
}

.brand-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: text-bottom;
  display: inline-block;
}

/* Functional status tags inside cards */
.pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.2;
}

.pill-blue {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.2);
}

.pill-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tag-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.tag-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.app-card-body {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.app-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.app-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
}

.app-availability {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-tertiary);
}

.app-availability svg {
  color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SECTION (Compact Overview on Homepage)
   ========================================================================== */
.projects-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.status-pill-blue {
  background: transparent;
  border: none;
  margin-bottom: 0.85rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.project-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(2.25rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-xl);
  background: rgba(14, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  align-items: center;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  transition-delay: 0s !important;
}

.project-teaser-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.08);
  transition-delay: 0s !important;
}

.project-teaser-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.02) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.project-teaser-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.project-teaser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.project-teaser-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-teaser-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.project-teaser-tagline {
  font-size: var(--text-sm);
  color: #34d399;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.project-teaser-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

.compact-chips {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.project-teaser-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.project-btn {
  padding: 0.75rem 1.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.project-teaser-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.project-teaser-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  min-width: 0;
}

.project-preview-mockup-link {
  display: block;
  text-decoration: none;
  width: min(230px, 100%);
  max-width: 230px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.project-preview-mockup-link:hover {
  transform: translateY(-4px);
}

.mini-iphone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 1024;
  background: #0e1117;
  border-radius: 32px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.project-preview-mockup-link:hover .mini-iphone-frame {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12);
}

.mini-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
  display: block;
}

.mini-iphone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
}

/* ==========================================================================
   SUBPAGE & DEDICATED BYROUTINE PAGE STYLES
   ========================================================================== */

.brand-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-subpage-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.subpage-hero {
  padding-top: clamp(6.5rem, 11vw, 9.5rem) !important;
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.nav-back-link:hover {
  color: var(--text-primary);
}

.nav-back-link svg {
  transition: transform var(--duration-fast) ease;
}

.nav-back-link:hover svg {
  transform: translateX(-3px);
}

.byroutine-deepdive {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.deepdive-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: rgba(18, 22, 26, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s ease;
  transition-delay: 0s !important;
}

.deepdive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.08);
  transition-delay: 0s !important;
}

.deepdive-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deepdive-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.deepdive-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- ByRoutine Sneak Peek Showcase --- */
.status-pill-green {
  background: transparent;
  border: none;
  margin-bottom: 0.85rem;
}

.text-green {
  color: rgba(255, 255, 255, 0.6);
}

.icon-grad-routine {
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.sneak-peek-showcase {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-xl);
  background: rgba(14, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.sneak-peek-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.sneak-peek-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-title-sub {
  display: inline;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--text-secondary);
}

.sneak-peek-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-icon-bullet {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-text span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Routine Release Callout --- */

.sneak-peek-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mockup-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 90%);
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.02) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.devices-display {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 1;
}

.iphone-frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(220px, 48%);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.iphone-frame-wrapper:hover {
  transform: translateY(-4px);
}

.iphone-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  white-space: nowrap;
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: none;
}

.badge-garden .caption-dot {
  background: #38bdf8;
  box-shadow: none;
}

.caption-dot-cyan {
  background: #38bdf8 !important;
}

.caption-dot-purple {
  background: #a78bfa !important;
}

.iphone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 1024;
  background: #0e1117;
  border-radius: 34px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease, border-color var(--duration-normal) ease;
}

.iphone-mockup:hover,
.iphone-mockup:focus-visible {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #0e1117;
  position: relative;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-normal) ease;
}

.iphone-mockup:hover .screenshot-img {
  transform: scale(1.02);
}

.iphone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
  z-index: 2;
}

.zoom-indicator {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.iphone-mockup:hover .zoom-indicator,
.iphone-mockup:focus-visible .zoom-indicator {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sneak-peek-hint {
  margin-top: 1.15rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Lightbox Modal for Screenshots */
.modal-screenshot {
  width: min(92vw, 420px);
  max-width: 420px;
  background: rgba(14, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.08);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.modal-screenshot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.85rem;
  min-width: 0;
}

.screenshot-preview-container {
  height: clamp(340px, 58vh, 520px);
  aspect-ratio: 460 / 1024;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-screenshot-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.modal-screenshot-caption {
  font-size: 0.825rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
}

/* --- Philosophy / Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.pillar-icon-emerald {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(52, 211, 153, 0.2) !important;
  color: #34d399 !important;
}

.pillar-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: rgba(14, 17, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s ease;
  transition-delay: 0s !important;
}

.pillar-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.06);
  transform: translateY(-4px);
  transition-delay: 0s !important;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #34d399;
}

.pillar-svg {
  width: 24px;
  height: 24px;
}

.pillar-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* --- Waitlist / Newsletter Section --- */
.waitlist-section {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.waitlist-card {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.06) 0%, rgba(14, 17, 23, 0.85) 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.04);
}

.waitlist-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.waitlist-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Spinner inside button */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Consent Checkbox */

.inline-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) ease;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-link:hover {
  text-decoration-color: #ffffff;
}

/* --- Coming Soon Waitlist State --- */

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

/* --- DSGVO Cookie Banner --- */

@keyframes banner-slide-up {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* --- Modals (Legal & Cookie Settings) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 29, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-lg {
  max-width: 760px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-intro {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.5);
}

/* Cookie Category Toggles */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.category-info {
  flex: 1;
}

.category-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.category-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.category-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legal Modals Content Styling */
.legal-text-content {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.legal-text-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-text-content h4:first-child {
  margin-top: 0;
}

.legal-text-content h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.legal-text-content p {
  margin-bottom: 0.85rem;
}

.legal-text-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-text-content li {
  margin-bottom: 0.4rem;
}

.legal-text-content .legal-objection {
  padding: 1rem;
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.legal-text-content .legal-objection strong {
  font-weight: 700;
}

.legal-text-content .legal-updated {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* --- Micro-Animations & Scroll Reveal --- */

.animate-fade-up {
  animation: fade-in-up 0.48s var(--ease-spring) both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Reveal (Smooth & Snappy Fade-In) --- */
html.js-reveal .reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

html.js-reveal .reveal {
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

html.js-reveal .reveal.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

/* Hover transitions must ALWAYS react immediately with 0s delay */
.pillar-card:hover,
.project-teaser-card:hover,
.deepdive-card:hover {
  transition-delay: 0s !important;
}

/* Tablet & Smaller Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .sneak-peek-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Small Desktops & Tablets Landscape (<= 960px) */
@media (max-width: 960px) {
  .project-teaser-card {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: clamp(2rem, 4vw, 2.75rem);
  }

  .project-teaser-actions {
    margin-bottom: 0.5rem;
  }

  .project-preview-mockup-link {
    width: min(230px, 60%);
    margin: 0 auto;
  }
}

/* Collapse navigation before links and actions start competing for space. */
@media (max-width: 1024px) {
  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Tablet Portrait & Large Phones (<= 834px) */
@media (max-width: 834px) {
  .navbar-wrapper {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .navbar .lang-switch {
    display: none;
  }

  .navbar .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .navbar .theme-toggle,
  .navbar .mobile-toggle {
    width: 44px;
    height: 44px;
  }

  .project-teaser-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-preview-mockup-link {
    width: min(220px, 65%);
    margin: 0 auto;
  }

  .deepdive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .modal-dialog {
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-screenshot {
    width: min(92vw, 360px);
  }

  .modal-screenshot-body {
    padding: 0.75rem 1rem 1.15rem;
    gap: 0.75rem;
  }

  .screenshot-preview-container {
    height: clamp(280px, 52vh, 420px);
    border-radius: 24px;
  }

}

@media (max-height: 600px) {
  .screenshot-preview-container {
    height: clamp(200px, 46vh, 320px);
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Global Overflow Containment (prevent horizontal scroll on all screen sizes) --- */
html, body {
  overflow-x: clip;
}

main, header, footer, section {
  overflow-x: clip;
}

.navbar-wrapper {
  overflow-x: clip;
}

/* Mobile: ensure all widths stay within viewport */
@media (max-width: 640px) {
  .navbar {
    width: 100%;
    border-radius: var(--radius-full);
  }

  .badge-mini {
    max-width: 50%;
    text-align: right;
    white-space: normal;
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .sneak-peek-showcase {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .devices-display {
    gap: 0.65rem;
    width: 100%;
  }

  .iphone-frame-wrapper {
    width: calc(50% - 0.35rem);
    max-width: 155px;
  }

  .iphone-mockup {
    border-radius: 24px;
    padding: 4px;
    border-width: 1.5px;
  }

  .iphone-screen {
    border-radius: 20px;
  }

  .iphone-caption-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
    gap: 0.3rem;
  }

  .zoom-indicator {
    display: none;
  }
}

/* Product introduction and release status */
:where(section[id], main[id], .anchor-alias) { scroll-margin-top: 110px; }
.anchor-alias { display: block; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 2000; padding: .75rem 1rem; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.hero-section { padding-top: max(var(--content-top), clamp(7.5rem, 11vw, 10rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-container { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: clamp(2.5rem, 5vw, 4rem); max-width: var(--max-width); align-items: center; text-align: left; }
.hero-copy { min-width: 0; }
.hero-copy .hero-title { font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.hero-copy .hero-subtitle { margin: 1.5rem 0; max-width: 48ch; line-height: 1.65; font-size: clamp(1rem, 1.1vw, 1.15rem); color: var(--text-secondary); }
.hero-copy .hero-actions { justify-content: flex-start; gap: 0.85rem; margin-top: 1.75rem; }
.hero-preview { display: flex; align-items: center; flex-direction: column; gap: 0.85rem; color: var(--text-tertiary); font-size: var(--text-sm); text-align: center; }
.hero-preview img { width: min(250px, 100%); height: auto; aspect-ratio: 470 / 1024; object-fit: cover; background: #0e1117; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 30px; box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.hero-preview:hover img { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12); }
.hero-preview span { font-size: 0.825rem; font-weight: 500; color: var(--text-tertiary); transition: color var(--duration-fast) ease; }
.hero-preview:hover span { color: var(--accent-mint); }
.release-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; text-align: left; }
.release-steps li { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-md); transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.release-steps li:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.25); }
.release-steps strong { color: var(--text-primary); font-size: 1rem; }
.release-steps span { font-size: var(--text-sm); color: var(--text-secondary); }
.release-step-label { color: #34d399; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.release-note { margin: 0 0 1.5rem; }
.waitlist-card > .btn { white-space: normal; }
.byspoof-release-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0; text-align: left; }
.byspoof-release-details > div { padding: 1rem 1.25rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.byspoof-release-details dt { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: .4rem; }
.byspoof-release-details dd { margin: 0; color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.byspoof-release-details dd span { color: var(--text-secondary); font-weight: 400; font-size: var(--text-sm); }
.byspoof-release > .btn { white-space: normal; }
.byspoof-release button:disabled { opacity: .7; cursor: default; transform: none; }
.byspoof-release-notes, .byspoof-install { text-align: left; margin-top: 2rem; }
.byspoof-release-notes h3, .byspoof-install h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: .75rem; }
.byspoof-release-notes p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-secondary); }
.byspoof-install { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; margin-bottom: 1.75rem; color: var(--text-secondary); line-height: 1.7; }
.byspoof-install ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.byspoof-install li + li { margin-top: .35rem; }
.byspoof-install p { margin-bottom: .75rem; }
@media (max-width: 640px) {
  .byspoof-release-details { grid-template-columns: 1fr; }
}
.sneak-peek-grid { grid-template-columns: 1fr 1fr; }
.sneak-peek-info .app-card-top { margin-bottom: 1rem; }
.sneak-peek-info .app-card-footer { flex-wrap: wrap; gap: 1rem; }
.subpage-hero .section-header { margin-bottom: 2rem; }
@media (max-width: 1024px) {
  .sneak-peek-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-container { gap: 2rem; }
  .hero-copy .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-copy .hero-subtitle { margin: 1rem auto; font-size: 1rem; }
  .hero-copy .hero-actions { margin-top: 1.25rem; justify-content: center; flex-direction: column; }
  .hero-copy .status-pill { margin-bottom: 1rem; justify-content: center; }
  .hero-preview img { width: 190px; }
  .release-steps { grid-template-columns: 1fr; }
  .status-text { letter-spacing: .04em; }
  .brand-subpage-badge { display: none; }
}

/* 3-Device Showcase Layout & Responsiveness */
.sneak-peek-showcase-3 {
  max-width: 1140px;
}

.sneak-peek-grid-3 {
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr) !important;
  gap: clamp(1.75rem, 3.2vw, 3rem);
  align-items: center;
}

.devices-display-3 {
  display: flex;
  gap: clamp(0.65rem, 1.3vw, 1.1rem);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 1;
}

.devices-display-3 .iphone-frame-wrapper {
  flex: 1 1 0;
  max-width: 200px;
  min-width: 0;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-spring), opacity var(--duration-fast) ease;
}

.devices-display-3 .iphone-mockup {
  aspect-ratio: 460 / 1024;
}

.devices-display-3 .iphone-caption-badge {
  font-size: clamp(0.64rem, 0.78vw, 0.72rem);
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.devices-display-3:hover .iphone-frame-wrapper:not(:hover) {
  opacity: 0.78;
  transform: scale(0.98);
}

.devices-display-3 .iphone-frame-wrapper:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.02);
  z-index: 2;
}

@media (max-width: 1024px) {
  .sneak-peek-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .devices-display-3 {
    max-width: 660px;
    margin: 0 auto;
    gap: 1.25rem;
  }

  .devices-display-3 .iphone-frame-wrapper {
    max-width: 205px;
  }
}

@media (max-width: 680px) {
  .devices-display-3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.85rem;
    padding-top: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    scrollbar-width: none;
  }

  .devices-display-3::-webkit-scrollbar {
    display: none;
  }

  .devices-display-3 .iphone-frame-wrapper {
    flex: 0 0 clamp(185px, 55vw, 225px);
    width: auto;
    max-width: 225px;
    scroll-snap-align: center;
  }

  .devices-display-3:hover .iphone-frame-wrapper:not(:hover) {
    opacity: 1;
    transform: none;
  }

  .devices-display-3 .iphone-frame-wrapper:hover {
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   White Mode / Light Mode Theme Styles
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  /* Color Palette */
  --bg-main: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #ebebf0;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --bg-glass-active: rgba(235, 235, 240, 0.95);
  --bg-card: rgba(255, 255, 255, 0.85);

  /* Glass Borders */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.22);
  --border-accent: rgba(16, 185, 129, 0.4);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  /* Brand Accents adjusted for light mode contrast (Unified Mint/Emerald) */
  --accent-indigo: #059669;
  --accent-blue: #0284c7;
  --accent-purple: #7c3aed;
  --accent-cyan: #0284c7;
  --accent-green: #10b981;
  --accent-emerald: #10b981;
  --accent-mint: #059669;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;

  /* Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --glow-primary: 0 0 35px rgba(16, 185, 129, 0.05);
  --glow-button: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Ambient Glows in light mode */
[data-theme="light"] .glow-top {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(52, 211, 153, 0.02) 50%, transparent 75%);
  opacity: 0.8;
}

[data-theme="light"] .glow-right {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, rgba(16, 185, 129, 0.01) 50%, transparent 75%);
  opacity: 0.8;
}

/* Selection highlight in light mode */
[data-theme="light"] ::selection {
  background-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

/* Navbar in light mode */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Theme toggle in light mode */
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Mobile toggle & drawer in light mode */
[data-theme="light"] .mobile-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link:active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="light"] .mobile-theme-row {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Buttons in light mode */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0f172a;
}

/* Sleek borderless micro-labels in light mode */
[data-theme="light"] .status-pill,
[data-theme="light"] .section-tag {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0.85rem;
  color: rgba(0, 0, 0, 0.55) !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

[data-theme="light"] .status-dot {
  background-color: var(--accent-emerald);
  box-shadow: none;
}

[data-theme="light"] .status-text {
  color: rgba(0, 0, 0, 0.55);
}

/* Softened text gradient in light mode */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 35%, #1e293b 70%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Code window mockup in light mode */

[data-theme="light"] .badge-mini {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .badge-active {
  background: rgba(48, 209, 88, 0.15);
  color: #15803d;
}

/* Cards & Bento Grid in light mode */

[data-theme="light"] .tag-chip {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text-secondary);
}

[data-theme="light"] .pill-blue {
  background: rgba(10, 132, 255, 0.12);
  color: #0066cc;
}

[data-theme="light"] .pill-green {
  background: rgba(48, 209, 88, 0.14);
  color: #15803d;
}

[data-theme="light"] .project-teaser-card {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), 0 0 30px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .project-teaser-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 40px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .project-teaser-tagline {
  color: #059669;
}

[data-theme="light"] .project-teaser-glow {
  opacity: 0.35;
}

/* ByRoutine Subpage elements in light mode */
[data-theme="light"] .brand-subpage-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .deepdive-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .deepdive-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 0 25px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

[data-theme="light"] .deepdive-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .status-pill-green {
  background: transparent !important;
  border: none !important;
  color: #059669 !important;
  padding: 0 !important;
}

[data-theme="light"] .text-green {
  color: #059669;
}

[data-theme="light"] .pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .sneak-peek-showcase {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06), 0 0 35px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .feature-icon-bullet {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

/* Phone Mockup Frames in light mode */
[data-theme="light"] .mini-iphone-frame,
[data-theme="light"] .iphone-mockup {
  background: #181b22;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .project-preview-mockup-link:hover .mini-iphone-frame,
[data-theme="light"] .mini-iphone-frame:hover,
[data-theme="light"] .iphone-mockup:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2), 0 0 30px rgba(16, 185, 129, 0.18);
}

[data-theme="light"] .hero-preview img {
  border-color: #d2d2d7;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .hero-preview {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-preview:hover {
  color: var(--text-primary);
}

[data-theme="light"] .iphone-caption-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .zoom-indicator {
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Philosophy Pillars in light mode */
[data-theme="light"] .pillar-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pillar-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 20px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

[data-theme="light"] .pillar-title {
  color: var(--text-primary);
}

[data-theme="light"] .pillar-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .pillar-icon-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .pillar-icon-emerald {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #059669 !important;
}

/* Release Status Card (#status) in light mode */
[data-theme="light"] .waitlist-card {
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.06) 0%, #ffffff 70%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 0 40px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .waitlist-card .section-tag {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  color: #059669 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .waitlist-title {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

[data-theme="light"] .waitlist-subtitle {
  color: var(--text-secondary);
}

[data-theme="light"] .release-note {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Three Roadmap Phases: Step 1 (Green / Active), Step 2 (Blue / Next), Step 3 (Purple / Future) */
[data-theme="light"] .release-steps li {
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

[data-theme="light"] .release-steps li:hover {
  transform: translateY(-3px);
}

/* Step 1: Jetzt (Android in Entwicklung) */
[data-theme="light"] .release-steps li:nth-child(1) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, #ffffff 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .release-steps li:nth-child(1):hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .release-steps li:nth-child(1) .release-step-label {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(1) strong {
  color: #065f46;
}

[data-theme="light"] .release-steps li:nth-child(1) span:not(.release-step-label) {
  color: #2e604d;
}

/* Step 2: Als Nächstes (Android-Vorabversion) */
[data-theme="light"] .release-steps li:nth-child(2) {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, #ffffff 100%);
  border: 1.5px solid rgba(10, 132, 255, 0.3);
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.08);
}

[data-theme="light"] .release-steps li:nth-child(2):hover {
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.45);
}

[data-theme="light"] .release-steps li:nth-child(2) .release-step-label {
  background: rgba(10, 132, 255, 0.12);
  color: #0066cc;
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(2) strong {
  color: #0056b3;
}

[data-theme="light"] .release-steps li:nth-child(2) span:not(.release-step-label) {
  color: #2b578a;
}

/* Step 3: Danach (Version für iOS) */
[data-theme="light"] .release-steps li:nth-child(3) {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.06) 0%, #ffffff 100%);
  border: 1.5px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .release-steps li:nth-child(3):hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(100, 116, 139, 0.35);
}

[data-theme="light"] .release-steps li:nth-child(3) .release-step-label {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(3) strong {
  color: #334155;
}

[data-theme="light"] .release-steps li:nth-child(3) span:not(.release-step-label) {
  color: #64748b;
}

/* Contact Button in light mode */
[data-theme="light"] .waitlist-card .btn-secondary {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.06);
  transition: all var(--duration-fast) ease;
}

[data-theme="light"] .waitlist-card .btn-secondary:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

/* Modals & Dialogs in light mode */
[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .modal-screenshot {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 35px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .screenshot-preview-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .modal-close-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .category-item {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .legal-text-content {
  color: var(--text-secondary);
}

[data-theme="light"] .mobile-nav-link[style*="color"] {
  color: #059669 !important;
}

/* ==========================================================================
   404 Error Page Styles
   ========================================================================== */
.error-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--content-top), clamp(6.5rem, 12vw, 9rem)) 1.5rem clamp(3rem, 6vw, 5rem);
  position: relative;
  width: 100%;
}

.error-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--accent-primary-muted);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 1.5rem;
}

.error-badge .status-dot {
  display: inline-block !important;
  background-color: var(--accent-mint);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.error-badge-text {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-mint);
}

.error-visual {
  position: relative;
  margin-bottom: 1.25rem;
  line-height: 1;
  user-select: none;
}

.error-number {
  font-size: clamp(5.5rem, 16vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #ffffff 25%, #94a3b8 70%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 18px rgba(16, 185, 129, 0.15));
}

.error-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.error-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2rem;
}

.error-quicklinks {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.error-quicklinks-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.error-quicklinks-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.error-quicklink {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.error-quicklink:hover {
  color: var(--accent-mint);
}

/* Light mode adjustments */
[data-theme="light"] .error-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.08), 0 0 35px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .error-number {
  background: linear-gradient(135deg, #0f172a 20%, #475569 65%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(16, 185, 129, 0.1));
}

[data-theme="light"] .error-badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .error-badge-text {
  color: #047857;
}

[data-theme="light"] .error-quicklinks {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .error-quicklink:hover {
  color: #059669;
}

/* Compact project entry for the standalone background remover. */
.project-remover-card { gap: 2rem; }
.project-remover-card .project-teaser-badges { margin-bottom: 1rem; }
.remover-project-preview { display: grid; justify-items: center; gap: .75rem; font-size: var(--text-xs); text-align: center; }
.remover-project-preview svg { width: min(100%, 280px); height: auto; }
.remover-project-preview:hover { color: var(--accent-mint); }

/* Utility */
.text-center {
  text-align: center;
}

/* --- Dedicated Projects Page (Compact Directory) --- */
.projects-page-main {
  padding-top: max(var(--content-top), clamp(5.5rem, 8vw, 7.5rem));
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  min-height: calc(100vh - 280px);
}

.projects-page-container {
  max-width: 900px;
  margin: 0 auto;
}

.projects-page-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-page-header .status-pill {
  justify-content: center;
  margin-bottom: 0.85rem;
}

.projects-page-title {
  text-align: center;
  font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 0.6rem 0;
  line-height: 1.15;
}

.projects-page-subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto;
}

.projects-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.projects-category-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-heading-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  line-height: 1;
}

.compact-projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compact-project-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth),
              border-color var(--duration-fast) var(--ease-smooth);
}

.compact-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.08);
}

.compact-project-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-project-meta {
  flex: 1;
  min-width: 0;
}

.compact-project-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

.compact-project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.compact-project-cta {
  flex-shrink: 0;
}

.compact-btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.compact-btn .btn-arrow,
.compact-btn span[aria-hidden="true"] {
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.compact-btn:hover .btn-arrow,
.compact-btn:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

.icon-grad-remover {
  background: linear-gradient(145deg, #0f766e 0%, #064e3b 100%);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.35);
}

@media (max-width: 720px) {
  .compact-project-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.75rem 1rem;
    padding: 1.25rem;
    align-items: center;
  }

  .compact-project-icon-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .compact-project-meta {
    grid-column: 1 / -1;
    display: contents;
  }

  .compact-project-name {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: center;
  }

  .compact-project-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .compact-project-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0.25rem;
    width: 100%;
  }

  .compact-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }
}

/* Light mode adjustments for compact project cards */
[data-theme="light"] .compact-project-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .compact-project-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* A shorter homepage for phones and portrait tablets, using the studio tokens. */
.home-mobile {
  display: none;
}

.projects-overview-cta {
  margin-top: 2.25rem;
}

@media (max-width: 834px) {
  [data-page="index"] .navbar {
    max-width: 520px;
  }

  [data-page="index"] .mobile-nav-drawer .lang-switch {
    height: 50px;
  }

  [data-page="index"] .mobile-nav-drawer .lang-btn {
    min-width: 44px;
    height: 44px;
  }

  [data-page="index"] .container {
    max-width: 560px;
    padding-inline: 1.25rem;
  }

  .home-desktop,
  [data-page="index"] .projects-grid,
  [data-page="index"] .projects-section .status-pill,
  [data-page="index"] .projects-section .section-subtitle,
  [data-page="index"] .philosophy-section .section-tag,
  [data-page="index"] .pillars-grid,
  [data-page="index"] .waitlist-card .section-tag,
  [data-page="index"] .release-steps,
  [data-page="index"] .release-note,
  [data-page="index"] .hero-preview span {
    display: none;
  }

  .home-mobile {
    display: inline;
  }

  [data-page="index"] .hero-section {
    padding-block: var(--content-top) 1rem;
  }

  [data-page="index"] .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    text-align: center;
  }

  [data-page="index"] .hero-copy {
    display: contents;
  }

  [data-page="index"] .hero-title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .home-accent {
    color: var(--accent-mint);
  }

  [data-page="index"] .hero-details {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  [data-page="index"] .hero-copy .hero-subtitle {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
  }

  [data-page="index"] .hero-copy .hero-actions {
    justify-content: center;
    align-items: center;
    margin: 1rem 0 0;
    width: 100%;
  }

  [data-page="index"] .hero-actions .home-mobile-cta {
    display: inline-flex;
    width: auto;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--accent-mint);
    color: #031b13;
    box-shadow: none;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  [data-page="index"] .hero-preview {
    display: none;
  }

  [data-page="index"] .section {
    padding-block: 2rem;
  }

  [data-page="index"] .projects-section {
    padding-top: 1.5rem;
  }

  [data-page="index"] .section-header.text-center {
    margin: 0 0 1.25rem;
    text-align: left;
  }

  [data-page="index"] .section-title,
  [data-page="index"] .waitlist-title {
    margin-bottom: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }

  .home-project-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
  }

  [data-page="index"] .projects-overview-cta {
    margin-top: 1rem;
  }

  [data-page="index"] .projects-overview-cta .btn {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-md);
  }

  .home-project-entry {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
  }

  .home-project-entry:hover {
    background: var(--bg-surface-alt);
    border-color: var(--border-accent);
  }

  .home-project-entry:active {
    background: var(--bg-glass-active);
  }

  .home-project-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: none;
  }

  .home-project-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-project-copy {
    display: grid;
    gap: 0.25rem;
  }

  .home-project-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
  }

  .home-project-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .home-project-status {
    margin-top: 0.25rem;
    color: var(--accent-mint);
    font-size: 0.75rem;
    line-height: 1.4;
  }

  [data-theme="light"] .home-project-status {
    color: #047857;
  }

  .home-project-arrow {
    color: var(--text-secondary);
  }

  [data-page="index"] .philosophy-section .section-header {
    margin-bottom: 0;
  }

  [data-page="index"] .philosophy-section .section-subtitle {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--border-hover);
    text-underline-offset: 5px;
  }

  .home-text-link:hover {
    color: var(--accent-mint);
    text-decoration-color: currentColor;
  }

  [data-page="index"] .waitlist-section {
    padding-block: 1rem 2.5rem;
  }

  [data-page="index"] .waitlist-card {
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: none;
    text-align: left;
  }

  [data-page="index"] .waitlist-card::before,
  [data-page="index"] .waitlist-card::after {
    display: none;
  }

  [data-page="index"] .waitlist-subtitle {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* Compact sections stay visible during resize and native anchor navigation. */
  [data-page="index"].js-reveal .reveal,
  [data-page="index"].js-reveal .reveal:not(.is-revealed) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 360px) {
  .home-project-entry {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 0.75rem;
    padding: 1rem 0.875rem;
  }

  .home-project-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
}

[data-theme="light"] .category-heading-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .category-count {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Product Pages (Clean Studio Layout: BySpoof & ByRoutine)
   ========================================================================== */
:is([data-page="byspoof"], [data-page="byroutine"]) .ambient-glow {
  display: none;
}

:is([data-page="byspoof"], [data-page="byroutine"]) .brand-subpage-badge {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

:is([data-page="byspoof"], [data-page="byroutine"]) .btn-primary {
  background: #10b981;
  color: #031b13;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: none;
}

:is([data-page="byspoof"], [data-page="byroutine"]) .btn-primary:hover {
  background: #34d399;
  border-color: #34d399;
  color: #031b13;
  box-shadow: none;
}

[data-theme="light"]:is([data-page="byspoof"], [data-page="byroutine"]) .btn-primary {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: none;
}

[data-theme="light"]:is([data-page="byspoof"], [data-page="byroutine"]) .btn-primary:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  box-shadow: none;
}

/* Hero & Interactive Preview */
:is([data-page="byspoof"], [data-page="byroutine"]) .studio-hero-section {
  padding-top: max(calc(var(--content-top) + 0.5rem), clamp(6.25rem, 7.5vw, 7.25rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.studio-hero-copy {
  min-width: 0;
}

.studio-identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.studio-app-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  background: #070a08;
  border: 1px solid var(--border-light);
}

[data-theme="light"] .studio-app-mark {
  border-color: rgba(15, 23, 42, 0.14);
}

.studio-app-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.studio-identity-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.studio-identity-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

.studio-hero-title {
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 1.15rem;
}

.studio-hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.studio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.studio-hero-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.studio-hero-specs > div {
  min-width: 0;
}

.studio-hero-specs dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.studio-hero-specs dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Interactive Screenshot Stage */
.studio-hero-stage {
  min-width: 0;
}

.studio-stage-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 2vw, 1.45rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

[data-theme="light"] .studio-stage-surface {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.studio-stage-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
}

.studio-stage-tab {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.studio-stage-tab:hover {
  color: var(--text-primary);
}

.studio-stage-tab.is-active,
.studio-stage-tab[aria-selected="true"] {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .studio-stage-tab.is-active,
[data-theme="light"] .studio-stage-tab[aria-selected="true"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.studio-stage-viewport {
  width: 100%;
}

.studio-stage-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.studio-stage-panel[hidden] {
  display: none;
}

.studio-device-frame {
  position: relative;
  display: block;
  width: min(246px, 100%);
  aspect-ratio: 460 / 1024;
  padding: 6px;
  border-radius: 28px;
  background: #0c0f15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), border-color 0.2s ease, box-shadow 0.22s ease;
}

[data-page="byroutine"] .studio-device-frame {
  aspect-ratio: 470 / 1024;
}

[data-theme="light"] .studio-device-frame {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.2);
}

.studio-device-frame:hover,
.studio-device-frame:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.studio-device-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0d11;
}

.studio-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-zoom-chip {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(11, 13, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

[data-theme="light"] .studio-zoom-chip {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

.studio-device-frame:hover .studio-zoom-chip,
.studio-device-frame:focus-visible .studio-zoom-chip {
  opacity: 1;
  transform: translateY(0);
}

.studio-stage-caption {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  max-width: 42ch;
  margin: 0;
}

.studio-stage-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0;
}

/* Technical Capabilities Matrix */
:is([data-page="byspoof"], [data-page="byroutine"]) .studio-capabilities-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.studio-section-head {
  max-width: 620px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: left;
}

.studio-section-head .section-tag {
  margin-bottom: 0.65rem;
}

.studio-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

[data-page="byroutine"] .studio-capabilities-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-capability {
  background: var(--bg-surface);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.studio-capability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  color: var(--accent-mint);
}

.studio-spec-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.studio-capability-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.35;
}

.studio-capability-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.58;
  margin: 0;
}

/* Download, Status & Roadmap Hub */
:is([data-page="byspoof"], [data-page="byroutine"]) .studio-download-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.studio-release-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

[data-theme="light"] .studio-release-shell {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.studio-release-header {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.studio-release-header .section-tag {
  margin-bottom: 0.5rem;
}

.studio-release-title {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

.studio-release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.studio-release-primary,
.studio-release-guide {
  min-width: 0;
}

[data-page="byspoof"] .byspoof-release,
.studio-status-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

[data-page="byspoof"] .byspoof-release .waitlist-subtitle,
.studio-status-primary .waitlist-subtitle {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: var(--text-base);
  color: var(--text-secondary);
}

[data-page="byspoof"] .byspoof-release-details,
.studio-status-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

[data-page="byspoof"] .byspoof-release-details > div,
.studio-status-cards > div {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}

.studio-status-cards dt {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 0.4rem;
}

.studio-status-cards dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.studio-status-cards dd strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

.studio-status-cards dd span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: var(--text-sm);
}

[data-page="byspoof"] .byspoof-release-details dd {
  font-variant-numeric: tabular-nums;
}

[data-page="byspoof"] #byspoof-download {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
}

[data-page="byspoof"] .byspoof-release-notes,
.studio-status-note {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-mint);
  border-radius: var(--radius-md);
  text-align: left;
}

.studio-status-note {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

[data-page="byspoof"] .byspoof-release-notes h3,
.studio-status-note h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

[data-page="byspoof"] .byspoof-release-notes p,
.studio-status-note p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.55;
}

.studio-status-primary .btn {
  min-height: 44px;
  white-space: normal;
  text-align: center;
}

/* ByRoutine Roadmap Steps */
.studio-roadmap-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-align: left;
}

.studio-roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.studio-roadmap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.studio-roadmap-item.is-active {
  border-color: var(--border-accent);
}

.studio-roadmap-badge {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.studio-roadmap-item.is-active .studio-roadmap-badge {
  background: var(--accent-primary-muted);
  border-color: var(--border-accent);
  color: var(--accent-mint);
}

[data-theme="light"] .studio-roadmap-item.is-active .studio-roadmap-badge {
  color: #047857;
}

.studio-roadmap-body {
  min-width: 0;
}

.studio-roadmap-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.studio-roadmap-body p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

[data-page="byspoof"] .byspoof-install {
  border-top: none;
  padding-top: 0;
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
}

[data-page="byspoof"] .byspoof-install h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

[data-page="byspoof"] .byspoof-install ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: install-step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-page="byspoof"] .byspoof-install li {
  counter-increment: install-step;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

[data-page="byspoof"] .byspoof-install li::before {
  content: counter(install-step);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.byspoof-install-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.6;
}

.byspoof-install-meta p {
  margin: 0;
}

.byspoof-install-meta .inline-link {
  align-self: flex-start;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-decoration-color: var(--border-hover);
}

.byspoof-install-meta .inline-link:hover {
  color: var(--text-primary);
}

.byspoof-support-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.byspoof-support-row .btn {
  min-height: 44px;
  white-space: normal;
  text-align: center;
}

@media (max-width: 960px) {
  .studio-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .studio-capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-release-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .studio-release-guide {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  :is([data-page="byspoof"], [data-page="byroutine"]) .studio-hero-section {
    padding-top: calc(var(--content-top) + 0.5rem);
  }

  .studio-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .studio-stage-surface {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .studio-stage-tab {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .studio-device-frame {
    width: min(244px, 74vw);
    border-radius: 24px;
    padding: 5px;
  }

  .studio-device-screen {
    border-radius: 19px;
  }

  .studio-zoom-chip {
    display: none;
  }

  .studio-capabilities-grid,
  [data-page="byroutine"] .studio-capabilities-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-release-shell {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  [data-page="byspoof"] .byspoof-release-details,
  .studio-status-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-roadmap-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .studio-roadmap-badge {
    grid-row: auto;
    justify-self: start;
    min-width: 0;
  }

  [data-page="byspoof"] #byspoof-download,
  .byspoof-support-row .btn,
  .studio-status-primary .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .studio-hero-specs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .studio-hero-specs > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .studio-hero-specs dt {
    margin-bottom: 0;
  }

  .studio-hero-specs dd {
    text-align: right;
  }
}

