/* ==========================================================================
   MESL Cloud - Apple Pro-Series Dark-Mode UI Design System
   Inspired by Apple iPhone Pro & MacBook Pro Product Pages
   Palette: Pure OLED Void Black (#000000), Apple Dark Surface (#161617),
            Titanium Hairline (#2C2C2E), Crisp White (#F5F5F7),
            Titanium Gray (#86868B), Apple Dark-Mode Blue (#2997FF)
   ========================================================================== */

:root {
  /* Dark Mode Default (Apple Pro-Series Dark Aesthetic) */
  --bg-oled: #000000;
  --bg-surface: #161617;
  --bg-surface-elevated: #1d1d1f;
  --bg-surface-hover: #242426;
  --border-hairline: #2c2c2e;
  --border-specular: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(41, 151, 255, 0.4);
  --text-headline: #f5f5f7;
  --text-subcopy: #86868b;
  --text-muted: #6e6e73;
  --apple-blue: #2997ff;
  --apple-blue-hover: #47a7ff;
  --apple-blue-glow: rgba(41, 151, 255, 0.22);
  --apple-green: #30d158;
  --navbar-bg: rgba(0, 0, 0, 0.82);
  --card-radius: 24px;
  --card-radius-sm: 16px;
  --transition-apple: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  /* Daylight Theme (Apple Studio Pearl Light Aesthetic) */
  --bg-oled: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f5f5f7;
  --bg-surface-hover: #ebebee;
  --border-hairline: #d2d2d7;
  --border-specular: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 113, 227, 0.3);
  --text-headline: #1d1d1f;
  --text-subcopy: #515154;
  --text-muted: #86868b;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-glow: rgba(0, 113, 227, 0.15);
  --apple-green: #28cd41;
  --navbar-bg: rgba(251, 251, 253, 0.82);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-oled);
  color: var(--text-headline);
  line-height: 1.6;
  letter-spacing: -0.015em;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Titanium-Blue Glow */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 900px;
  background: radial-gradient(circle at 50% 12%, var(--apple-blue-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Apple Frosted Navbar
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
  transition: var(--transition-apple);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: 2px 0;
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-logo .logo-dark {
  display: block;
}

.brand-logo .logo-light {
  display: none;
}

[data-theme="light"] .brand-logo .logo-dark {
  display: none;
}

[data-theme="light"] .brand-logo .logo-light {
  display: block;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-subcopy);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-headline);
}

.nav-links .nav-highlight {
  color: var(--apple-blue) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links .nav-highlight:hover {
  color: var(--apple-blue-hover) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-login-link {
  color: var(--text-headline);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.nav-login-link:hover {
  color: var(--apple-blue);
}

/* Apple Pro Pill Button */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: var(--transition-apple);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-apple-primary {
  background: var(--apple-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 var(--apple-blue-glow);
}

.btn-apple-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 20px 2px var(--apple-blue-glow);
}

.btn-apple-secondary {
  background: var(--bg-surface);
  color: var(--text-headline) !important;
  border-color: var(--border-hairline);
}

.btn-apple-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.btn-apple-lg {
  padding: 13px 28px;
  font-size: 1.02rem;
  border-radius: 980px;
}

/* Refined Titanium Theme Toggle */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-headline);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-apple);
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--apple-blue);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle-btn .icon-sun {
  display: block;
}

.theme-toggle-btn .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-headline);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Hero Section (Pro Dark Hero)
   ========================================================================== */
.hero-section {
  padding: 90px 0 60px;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 980px;
  background: rgba(41, 151, 255, 0.1);
  color: var(--apple-blue);
  border: 1px solid rgba(41, 151, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill-badge svg {
  width: 14px;
  height: 14px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-headline);
  margin-bottom: 20px;
}

.hero-headline .text-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-headline .text-gradient {
  background: linear-gradient(180deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subcopy {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-subcopy);
  line-height: 1.55;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* Floating #161617 4-Item Overview Card (24px Radius, 1px Specular Highlight) */
.hero-overview-floating {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 36px;
  max-width: 1100px;
  margin: 0 auto 48px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.overview-item {
  padding: 12px 16px;
  border-right: 1px solid var(--border-hairline);
}

.overview-item:last-child {
  border-right: none;
}

.overview-icon {
  width: 28px;
  height: 28px;
  color: var(--apple-blue);
  margin-bottom: 12px;
}

.overview-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-headline);
}

.overview-desc {
  font-size: 0.85rem;
  color: var(--text-subcopy);
  line-height: 1.5;
}

/* Stat Strip: 6 | 5 | 24/7 | 2022 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--card-radius-sm);
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-cell {
  text-align: center;
  border-right: 1px solid var(--border-hairline);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--apple-blue);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Section Commons
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--apple-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-headline);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-subcopy);
  line-height: 1.55;
}

/* ==========================================================================
   1-2-3 Stepper Module
   ========================================================================== */
.stepper-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition-apple);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid var(--apple-blue);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 0 16px var(--apple-blue-glow);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-headline);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-subcopy);
  line-height: 1.6;
}

/* ==========================================================================
   Pro 6-Card Product Grid (24px Radius, Hairline, Hover Sheen)
   ========================================================================== */
.pro-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
  position: relative;
  overflow: hidden;
}

.pro-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.pro-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  margin-bottom: 22px;
}

.pro-card-icon svg {
  width: 22px;
  height: 22px;
}

.pro-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-headline);
}

.pro-card-desc {
  font-size: 0.94rem;
  color: var(--text-subcopy);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pro-card-feature-list {
  list-style: none;
  border-top: 1px solid var(--border-hairline);
  padding-top: 18px;
  margin-top: auto;
}

.pro-card-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-subcopy);
  margin-bottom: 8px;
}

.pro-card-feature-list li svg {
  width: 14px;
  height: 14px;
  color: var(--apple-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Streaming & AI Dual Pro Showcase
   ========================================================================== */
.showcase-grid-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.showcase-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 44px 38px;
  transition: var(--transition-apple);
}

.showcase-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.showcase-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 14px;
}

.showcase-h3 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-headline);
}

.showcase-p {
  font-size: 0.96rem;
  color: var(--text-subcopy);
  line-height: 1.6;
  margin-bottom: 28px;
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.capsule-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-headline);
}

.capsule-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.showcase-checklist {
  list-style: none;
  margin-bottom: 30px;
}

.showcase-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-subcopy);
  margin-bottom: 10px;
}

.showcase-checklist li svg {
  width: 15px;
  height: 15px;
  color: var(--apple-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Dark Pricing Cards (¥50 & ¥70 Apple Pro Style)
   ========================================================================== */
.pricing-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 80px;
}

.price-card-pro {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
  position: relative;
}

.price-card-pro:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

/* Featured Apple Pro Card - Adaptive Contrast */
.price-card-pro.featured {
  background: var(--bg-surface);
  border: 2px solid var(--apple-blue);
  box-shadow: 0 16px 40px -8px var(--apple-blue-glow);
}

[data-theme="dark"] .price-card-pro.featured,
:root:not([data-theme="light"]) .price-card-pro.featured {
  background: linear-gradient(180deg, #1c1c1f 0%, #161617 100%);
  border-color: var(--apple-blue);
  box-shadow: 0 16px 40px -10px var(--apple-blue-glow);
}

[data-theme="light"] .price-card-pro.featured {
  background: #ffffff;
  border: 2px solid var(--apple-blue);
  box-shadow: 0 16px 36px -4px rgba(0, 113, 227, 0.18);
}

.price-pro-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--apple-blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 980px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px var(--apple-blue-glow);
}

.price-tier-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.price-tier-sub {
  font-size: 0.88rem;
  color: var(--text-subcopy);
  min-height: 44px;
  margin-bottom: 20px;
}

.price-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apple-blue);
}

.price-val {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-headline);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-hairline-sep {
  height: 1px;
  background: var(--border-hairline);
  margin-bottom: 24px;
}

.price-features-ul {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}

.price-features-ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-headline);
  margin-bottom: 12px;
  font-weight: 500;
}

.price-features-ul li strong {
  font-weight: 700;
  color: var(--text-headline);
}

.price-features-ul li svg {
  width: 15px;
  height: 15px;
  color: var(--apple-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Security You Control Module (Interactive Tactile Switches)
   ========================================================================== */
.security-module {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 48px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}

.security-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.security-head-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 8px;
}

.security-head-desc {
  font-size: 0.98rem;
  color: var(--text-subcopy);
  max-width: 640px;
}

.security-switches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.switch-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--card-radius-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-apple);
}

.switch-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.switch-info {
  flex-grow: 1;
}

.switch-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 4px;
}

.switch-desc {
  font-size: 0.86rem;
  color: var(--text-subcopy);
  line-height: 1.45;
}

/* Apple Pro Tactile Switch Component */
.apple-switch {
  position: relative;
  width: 52px;
  height: 32px;
  background: #333336;
  border-radius: 980px;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  border: none;
  outline: none;
}

.apple-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-switch.active {
  background: var(--apple-green);
}

.apple-switch.active::after {
  transform: translateX(20px);
}

/* ==========================================================================
   User Reviews Section
   ========================================================================== */
.reviews-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-pro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
}

.review-pro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.review-pro-stars {
  display: flex;
  gap: 4px;
  color: var(--apple-blue);
  margin-bottom: 16px;
}

.review-pro-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.review-pro-quote {
  font-size: 0.95rem;
  color: var(--text-subcopy);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.review-pro-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 18px;
}

.review-avatar-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--apple-blue);
}

.review-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-headline);
}

.review-author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-pro-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-pro-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--card-radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-apple);
}

.faq-pro-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-pro-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-pro-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--apple-blue);
}

.faq-pro-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 26px;
}

.faq-pro-item.active .faq-pro-body {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-pro-body p {
  color: var(--text-subcopy);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Conversion CTA Banner
   ========================================================================== */
.pro-cta-banner {
  margin: 80px 0 100px;
  padding: 64px 48px;
  border-radius: var(--card-radius);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  text-align: center;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pro-cta-banner,
:root:not([data-theme="light"]) .pro-cta-banner {
  background: linear-gradient(180deg, #161617 0%, #0d0d0e 100%);
}

[data-theme="light"] .pro-cta-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border-color: #d2d2d7;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.06);
}

.pro-cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, var(--apple-blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.pro-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  margin-bottom: 16px;
}

.pro-cta-desc {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-subcopy);
}

/* ==========================================================================
   Article / Subpages / Legal Pages Styling
   ========================================================================== */
.subpage-hero {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  margin-bottom: 12px;
}

.subpage-hero p {
  color: var(--text-subcopy);
  font-size: 1.1rem;
}

.subpage-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 40px 36px;
  margin-bottom: 30px;
  transition: var(--transition-apple);
}

.content-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-card h2 svg {
  width: 22px;
  height: 22px;
  color: var(--apple-blue);
  flex-shrink: 0;
}

.content-card p {
  color: var(--text-subcopy);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-card ul li {
  color: var(--text-subcopy);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sitemap-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 32px 28px;
}

.sitemap-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 18px;
}

.sitemap-group ul {
  list-style: none;
  padding: 0;
}

.sitemap-group ul li {
  margin-bottom: 12px;
}

.sitemap-group ul li a {
  color: var(--text-subcopy);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sitemap-group ul li a:hover {
  color: var(--text-headline);
}

/* ==========================================================================
   Article / News Insights Page Styling
   ========================================================================== */
.article-header {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: center;
}

.article-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--apple-blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.article-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--card-radius);
  padding: 40px;
  margin-bottom: 30px;
}

.article-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 18px;
}

.article-card p {
  color: var(--text-subcopy);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.article-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-card ul li {
  color: var(--text-subcopy);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer (Strictly 4 Navigation Titles Opening in New Tabs)
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding: 56px 0 40px;
  transition: var(--transition-apple);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-subcopy);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--apple-blue);
  transition: width 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text-headline);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
}

/* ==========================================================================
   Responsive Adaptations (@media)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-overview-floating {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-item:nth-child(2) {
    border-right: none;
  }
  .pro-grid-6,
  .pricing-pro-grid,
  .reviews-pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-hairline);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-overview-floating {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .overview-item {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 16px 0;
  }

  .overview-item:last-child {
    border-bottom: none;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }

  .pro-grid-6,
  .pricing-pro-grid,
  .reviews-pro-grid,
  .showcase-grid-dual,
  .security-switches-grid {
    grid-template-columns: 1fr;
  }

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

  .security-module {
    padding: 28px 20px;
  }

  .footer-nav {
    gap: 20px;
  }

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

  .hero-ctas .btn-apple {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 12px 0;
  }
  .stat-cell:last-child {
    border-bottom: none;
  }
  .capsule-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
