@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root,
[data-theme="dark"] {
  /* PastryClass Color DNA (Dark Mode Default) */
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --bg-biscuit: #dbc187;   /* biscuit-900 */
  
  --text-primary: #ffffff;
  --text-secondary: #d2d2d7; /* silvery-200 */
  --text-tertiary: #86868b;  /* silvery-300 */
  --text-biscuit: #dbc187;   /* biscuit-900 */
  
  --border-subtle: #1a1a1a;
  --border-biscuit: #dbc187;
  
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1.15rem;
  --line-height-base: 1.7;
  --letter-spacing-body: -0.015em;
  --letter-spacing-heading: -0.025em;
  --letter-spacing-badge: 0.14em;
}

[data-theme="light"] {
  /* PastryClass Color DNA (Light Mode) */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #e8e8ed;
  --bg-biscuit: #dbc187; 
  
  --text-primary: #1d1d20;
  --text-secondary: #515154;
  --text-tertiary: #86868b;
  --text-biscuit: #b59a5d; 
  
  --border-subtle: #d2d2d7;
  --border-biscuit: #dbc187;
}

body,
.pastry-nav,
.apple-card,
.apple-box,
footer,
.apple-footer,
.pastry-footer,
.segmented-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-body);
  -webkit-font-smoothing: antialiased;
}

/* Universal Apple DNA Component & Color Bindings */
h1, h2, h3, h4, h5, h6,
.apple-headline,
.apple-title {
  color: var(--text-primary);
}

.apple-subtitle,
.apple-muted {
  color: var(--text-secondary);
}

.apple-caption,
.text-tertiary {
  color: var(--text-tertiary);
}

hr,
.apple-divider {
  border-color: var(--border-subtle);
}

/* Apple Cards (Download cards, integrity cards, info cards) */
.apple-card,
.apple-box {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Primary Action Buttons */
.apple-btn-primary {
  background-color: #ffffff !important;
  color: #000000 !important;
  transition: all 0.3s ease;
}

[data-theme="light"] .apple-btn-primary {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Apple Footers */
footer,
.apple-footer,
.pastry-footer {
  background-color: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-tertiary) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

footer a,
.apple-footer a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
}

footer a:hover,
.apple-footer a:hover {
  color: var(--text-primary) !important;
}

/* Scrollytelling Light Theme Complete Apple Clean Aesthetic */
[data-theme="light"] .scrolly-section {
  background-color: #ffffff !important;
}

[data-theme="light"] .scrolly-sticky {
  background-color: #ffffff !important;
}

[data-theme="light"] .scrolly-img {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.06)) !important;
}

[data-theme="light"] .scrolly-vignette {
  background: 
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(255, 255, 255, 0.45) 75%, #ffffff 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, transparent 15%, transparent 85%, #ffffff 100%) !important;
}

[data-theme="light"] .scrolly-badge {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #1d1d20 !important;
}

[data-theme="light"] .scrolly-title {
  color: #1d1d20 !important;
  text-shadow: none !important;
}

[data-theme="light"] .scrolly-desc {
  color: #515154 !important;
  text-shadow: none !important;
}

[data-theme="light"] .scrolly-hint {
  color: #515154 !important;
}

[data-theme="light"] .scrolly-progress-track {
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .scrolly-progress-bar {
  background: linear-gradient(90deg, #1d1d20, #515154, #86868b) !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   GLASSMORPHISM MOBILE APP UI HEADER & NAVIGATION
   Aesthetic: Frosted glass elements, soft lighting, subtle reflections,
              minimalist color palette of soft grays & whites, layered depth.
   ========================================================================== */

/* ==========================================================================
   MINIMALIST LIQUID GLASS MENU HEADER (MONOCHROME DARK & WHITE)
   Aesthetic: Ultra-pure liquid glass, frosted backdrop blur, minimalist palette 
              of deep blacks, crisp whites, and translucent gray reflections.
   ========================================================================== */

/* Theme Toggle Minimalist Borderless Apple UI Switch (Static, No Borders) */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: #2c2c2e;
  border-radius: 9999px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  user-select: none;
  z-index: 3;
  transition: background-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.theme-toggle .toggle-thumb {
  position: absolute;
  top: 3px;
  left: 25px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: none !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  z-index: 4;
}

.theme-toggle .toggle-thumb svg {
  width: 12px;
  height: 12px;
  color: #1c1c1e;
  filter: none !important;
  transition: opacity 0.2s ease;
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle {
  background: #e5e5ea;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .theme-toggle:focus,
[data-theme="light"] .theme-toggle:focus-visible,
[data-theme="light"] .theme-toggle:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-theme="light"] .theme-toggle .toggle-thumb {
  left: 3px;
  background: #ffffff;
  border: none !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
  color: #1d1d20 !important;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* 100% Solid Opaque Dark & White Apple UI Header (Zero Transparency) */
.pastry-nav {
  position: fixed !important;
  top: 0.75rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 50 !important;
  width: 92% !important;
  max-width: 1240px !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  padding: 0.55rem 1.25rem !important;
  font-family: var(--font-body) !important;
  
  /* 100% Complete Solid Dark Color (Zero Transparency / No Backdrop Blur) */
  background: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  
  /* Crisp Hairline Border & Ambient Depth Shadow */
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 
    0 16px 40px -10px rgba(0, 0, 0, 0.8), 
    0 6px 18px -4px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="light"] .pastry-nav {
  /* 100% Complete Solid White Color (Zero Transparency / No Backdrop Blur) */
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 
    0 14px 36px -10px rgba(0, 0, 0, 0.12), 
    0 6px 18px 0 rgba(0, 0, 0, 0.06) !important;
}

.pastry-nav.scrolled-header {
  background: #000000 !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] .pastry-nav.scrolled-header {
  background: #ffffff !important;
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.15) !important;
}

/* Beautiful Apple Header Black & Red Aligned Left / Shifted Middle-Left */
.header-logo-container {
  display: flex;
  align-items: center;
  margin-left: 0.5rem; /* Shifted middle-left */
  gap: 0.6rem;
}

.header-logo {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(218, 41, 28, 0.35));
}

/* ==========================================================================
   SIMPLE TEXT-ONLY NAVIGATION LINKS (HOME...SUPPORT) - ZERO BUTTON EFFECT
   ========================================================================== */
.pastry-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.25s ease, opacity 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Text Hover State: Pure Text Glow, No Background/Button Shape */
.pastry-link:hover {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Focus Ring: Clean Text Focus */
.pastry-link:focus,
.pastry-link:focus-visible {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Dark Mode Active State: Clean Text Highlight (No Pill/Button) */
.pastry-link.active {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Light Mode Navigation Links */
[data-theme="light"] .pastry-link {
  color: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="light"] .pastry-link:hover {
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

[data-theme="light"] .pastry-link:focus,
[data-theme="light"] .pastry-link:focus-visible {
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

[data-theme="light"] .pastry-link.active {
  color: #000000 !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Apple Segmented Action Control */
.action-segmented-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  border-radius: 9999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px;
  gap: 2px;
  z-index: 3;
}

.segmented-btn {
  position: relative;
  padding: 0.38rem 1.1rem;
  font-family: var(--font-body) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.015em;
}

.segmented-btn:hover {
  color: #ffffff;
}

/* "Get Started" Button: Solid Minimal White/Black */
.segmented-btn.active,
.action-segmented-toggle .segmented-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

.segmented-btn.active:hover,
.action-segmented-toggle .segmented-btn.active:hover {
  background: #e5e5e5 !important;
  color: #000000 !important;
  transform: scale(1.02);
}

[data-theme="light"] .action-segmented-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .segmented-btn {
  color: rgba(15, 15, 18, 0.82);
}

[data-theme="light"] .segmented-btn:hover {
  color: #000000;
}

[data-theme="light"] .segmented-btn.active,
[data-theme="light"] .action-segmented-toggle .segmented-btn.active {
  background: #000000 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Base utility overrides */
.text-gold { color: var(--text-biscuit); }
.border-gold { border-color: var(--border-biscuit); }
.bg-gold { background-color: var(--bg-biscuit); color: #000; }

/* Logo Red Color Switcher Filter */
.header-logo {
  transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  filter: none;
}
.header-logo.logo-red {
  filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(6341%) hue-rotate(352deg) brightness(97%) contrast(114%) drop-shadow(0 0 8px rgba(230, 0, 0, 0.6));
}

/* State-of-the-art Golden Metallic Glow Buttons */
.btn-pastry-hero {
  position: relative;
  background: linear-gradient(135deg, #dbc187 0%, #f3e5ab 50%, #b89748 100%);
  color: #000000 !important;
  font-weight: 700;
  border-radius: 100px;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 0 15px rgba(219, 193, 135, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid #F5F5F8;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 1;
  text-decoration: none;
}

.btn-pastry-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
}

.btn-pastry-hero:hover::before {
  transform: rotate(30deg) translateY(100%);
}

.btn-pastry-hero:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 30px rgba(219, 193, 135, 0.9), 0 8px 25px rgba(0, 0, 0, 0.7);
  color: #000000 !important;
}

.btn-pastry-hero-secondary {
  position: relative;
  background: rgba(29, 29, 32, 0.85);
  color: #dbc187 !important;
  font-weight: 700;
  border-radius: 100px;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid #dbc187;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(219, 193, 135, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.btn-pastry-hero-secondary:hover {
  background: #dbc187;
  color: #000000 !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 30px rgba(219, 193, 135, 0.7);
}

/* Pastry Buttons */
.btn-pastry-primary {
  background: linear-gradient(135deg, #dbc187 0%, #f3e5ab 50%, #b89748 100%);
  color: #000000 !important;
  border-radius: 100px;
  font-weight: 700;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(219, 193, 135, 0.3);
}
.btn-pastry-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 25px rgba(219, 193, 135, 0.8);
  color: #000000 !important;
}

.btn-pastry-outline {
  border: 1px solid var(--border-biscuit);
  color: var(--text-biscuit);
  border-radius: 100px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-pastry-outline:hover {
  background-color: var(--bg-biscuit);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(219, 193, 135, 0.2);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
}
h1 { font-size: 3rem; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 2.5rem; letter-spacing: -1px; }

main {
  padding-top: 5rem;
}

main:has(.scrolly-section) {
  padding-top: 0 !important;
}

/* Mobile Dropdown Menu */
.mobile-menu-container {
  display: none;
  background-color: rgba(15, 15, 18, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

[data-theme="light"] .mobile-menu-container {
  background-color: rgba(245, 245, 247, 0.98);
}
.mobile-menu-container.active {
  display: block;
}

/* Bento Cards -> Pastry Cards */
.pastry-card {
  background-color: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.pastry-card:hover {
  border-color: var(--border-biscuit);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Slider (Swiper style replica) */
.pastry-slider-wrapper {
  position: relative;
  width: 100%;
}

.pastry-slider-container {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding: 1rem 0.5rem 1.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  margin-top: 1rem;
}
.pastry-slider-container::-webkit-scrollbar {
  display: none;
}
.pastry-slide {
  flex: 0 0 auto;
  width: 270px;
  height: 420px;
  border-radius: 20px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pastry-slide:hover {
  border-color: var(--border-biscuit);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(219, 193, 135, 0.15);
}
.pastry-slide-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.pastry-slide:hover .pastry-slide-bg { 
  opacity: 0.9; 
  transform: scale(1.08);
}
.pastry-slide-content { 
  position: relative; 
  z-index: 1; 
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
  padding: 2.5rem 1.5rem 1.5rem;
  margin: -1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.pastry-slide-content h4 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.pastry-slide-content p {
  font-size: 0.95rem;
  color: var(--text-biscuit);
}

/* Slider Arrow Buttons */
.pastry-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(29, 29, 32, 0.9);
  border: 1px solid var(--border-biscuit);
  color: var(--text-biscuit);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}
.pastry-slider-arrow:hover {
  background: var(--bg-biscuit);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(219, 193, 135, 0.4);
}
.pastry-slider-arrow.left { left: -20px; }
.pastry-slider-arrow.right { right: -20px; }
@media (max-width: 768px) {
  .pastry-slider-arrow.left { left: 5px; }
  .pastry-slider-arrow.right { right: 5px; }
}

/* FAQ Styles */
.pastry-faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}
.pastry-faq-item summary {
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.3s ease, transform 0.2s ease;
}
.pastry-faq-item summary:hover {
  color: var(--text-biscuit);
}
.pastry-faq-item summary::-webkit-details-marker { display: none; }
.pastry-faq-item summary:after {
  content: '+';
  color: var(--text-biscuit);
  font-size: 1.75rem;
  font-weight: 400;
  transition: transform 0.3s ease, color 0.3s ease;
}
.pastry-faq-item[open] summary:after { 
  content: '−';
  transform: rotate(180deg);
}
.pastry-faq-item p {
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
  padding-right: 2rem;
  transition: opacity 0.3s ease;
}

/* Tabs & Columns Grid */
.pastry-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}
.pastry-tab {
  padding: 1rem 0;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.pastry-tab:hover, .pastry-tab.active {
  color: var(--text-biscuit);
  border-bottom-color: var(--border-biscuit);
}

.pastry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .pastry-grid { grid-template-columns: 1fr 1fr; }
}

/* Apple Pop UI Modal DNA */
.pastry-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.pastry-modal-overlay.active { opacity: 1; pointer-events: auto; }
.pastry-modal {
  background: rgba(28, 28, 34, 0.92) !important;
  padding: 2.75rem 2.25rem;
  border-radius: 28px !important;
  width: 90%; max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  font-family: var(--font-body);
}

[data-theme="light"] .pastry-modal {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 
    0 24px 60px -10px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}

.pastry-modal-overlay.active .pastry-modal {
  transform: scale(1) translateY(0);
}

.pastry-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

[data-theme="light"] .pastry-modal-close {
  background: rgba(0, 0, 0, 0.06);
}

.pastry-modal-close:hover {
  background: rgba(218, 41, 28, 0.9);
  color: #ffffff;
  transform: scale(1.08);
}

/* Strict suppression: Never display close / X mark on password protection modal */
#maintenance-modal-overlay .pastry-modal-close,
#maintenance-modal-overlay [class*="close"],
#maintenance-modal-overlay button[aria-label*="close" i],
#maintenance-modal-overlay .modal-close {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.pastry-modal-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Apple Styled Inputs */
.pastry-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  outline: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
}

[data-theme="light"] .pastry-input {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.pastry-input:focus { 
  border-color: #DA291C;
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.25);
}
.pastry-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}

/* Apple Button for Login Pop Modal */
.pastry-modal button[type="submit"],
.pastry-modal .btn-pastry-primary,
.pastry-modal .btn-pastry-hero {
  background: #DA291C !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  border-radius: 9999px !important;
  border: none !important;
  padding: 0.85rem 1.5rem !important;
  box-shadow: 0 4px 18px rgba(218, 41, 28, 0.45) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pastry-modal button[type="submit"]:hover,
.pastry-modal .btn-pastry-primary:hover,
.pastry-modal .btn-pastry-hero:hover {
  background: #c02217 !important;
  color: #ffffff !important;
  transform: scale(1.02) translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(218, 41, 28, 0.55) !important;
}

/* Scrollytelling Section */
.scrolly-section {
  position: relative;
  height: 420vh;
  width: 100%;
  background-color: var(--bg-primary);
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
}

.scrolly-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
  transition: filter 0.4s ease;
}

/* Cinematic Vignette Overlay - natural and minimal blend */
.scrolly-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.4) 75%, #000000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 15%, transparent 85%, #000000 100%);
}

.scrolly-overlay {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  max-width: 900px;
  height: 260px;
  margin: 0 auto;
  text-align: center;
}

.scrolly-step {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  width: 90%;
  max-width: 800px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  pointer-events: none;
}

.scrolly-step.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0);
}

.scrolly-badge {
  display: inline-block;
  color: var(--text-biscuit);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
  background: rgba(219, 193, 135, 0.12);
  border: 1px solid rgba(219, 193, 135, 0.3);
  backdrop-filter: blur(8px);
}

.scrolly-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-shadow: none !important;
}

.scrolly-desc {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: none !important;
}

/* Scroll Hint Indicator */
.scrolly-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-align: center;
}

.scrolly-hint.hidden {
  opacity: 0;
}

/* Progress Track and Bar */
.scrolly-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.scrolly-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dbc187, #f3e5ab, #ff3b30);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(219, 193, 135, 0.8);
}

/* Footer */
.pastry-footer {
  background-color: var(--bg-secondary);
  padding: 4rem 0 2rem; font-size: 15px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 5rem;
}
.pastry-footer h4 { color: var(--text-biscuit); margin-bottom: 1.5rem; font-size: 1rem; }
.pastry-footer a { color: var(--text-secondary); transition: color 0.3s ease, transform 0.2s ease; display: inline-block; }
.pastry-footer a:hover { color: var(--text-primary); transform: translateX(3px); }

/* Mobile Responsive Glassmorphism Layout */
@media (max-width: 768px) {
  .pastry-nav {
    width: 95% !important;
    margin: 0.5rem auto !important;
    border-radius: 20px !important;
    padding: 0.55rem 0.85rem !important;
  }
  
  .mobile-menu-container {
    width: 95% !important;
    margin: 0.5rem auto !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(25, 28, 36, 0.92) 0%, rgba(15, 17, 24, 0.88) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
  }
  
  [data-theme="light"] .mobile-menu-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 244, 255, 0.88) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 16px 40px rgba(167, 139, 250, 0.2) !important;
  }
}

/* Merged Liquid Glass Segmented Action Control (Get Started | Login) */
.action-segmented-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.action-segmented-toggle .segmented-btn {
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  white-space: nowrap;
}

.action-segmented-toggle .segmented-btn:hover {
  color: #ffffff;
}

.action-segmented-toggle .segmented-btn.active {
  color: #ffffff !important;
  background: #DA291C !important;
  box-shadow: 0 4px 16px rgba(218, 41, 28, 0.45) !important;
  border: none !important;
}

[data-theme="light"] .action-segmented-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .action-segmented-toggle .segmented-btn {
  color: #475569;
}

[data-theme="light"] .action-segmented-toggle .segmented-btn:hover {
  color: #0f172a;
}

[data-theme="light"] .action-segmented-toggle .segmented-btn.active {
  color: #ffffff !important;
  background: #DA291C !important;
  box-shadow: 0 4px 16px rgba(218, 41, 28, 0.35) !important;
  border: none !important;
}

/* ==============================================================================
   STUDIO CMS & ADMIN VISIBILITY ENGINE
   Strictly hidden by default; revealed only to authenticated administrators.
   ============================================================================== */
button[onclick*="swissiumToggleAdminEdit"],
.nav-admin-link,
#swissium-sidebar-tab,
#swissium-admin-sidebar {
  display: none;
}

body.swissium-is-admin #swissium-sidebar-tab {
  display: flex !important;
}

body.swissium-is-admin #swissium-admin-sidebar {
  display: flex !important;
}

body.swissium-is-admin.studio-cms-open #swissium-sidebar-tab {
  display: none !important;
}

#swissium-admin-sidebar input,
#swissium-admin-sidebar select,
#swissium-admin-sidebar textarea {
  background: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000 !important;
  border: 1px solid #cfcfcf !important;
  color-scheme: light;
}

#swissium-admin-sidebar option {
  background: #ffffff !important;
  color: #000000 !important;
}


