/* ==========================================================================
   Pocket Hisaab — Design System & Stylesheet (v2.0)
   Color Palette: Deep Navy (#0F172A, #1B365D), Emerald (#10B981, #0D9488),
   Slate (#64748B), Soft Canvas (#F8FAFC), Dark (#0B111E, #151E2E)
   Typography: Manrope & Inter
   ========================================================================== */

:root {
  /* Brand Primitives */
  --navy-950: #0B111E;
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --primary: #1B365D;
  --primary-hover: #132742;
  --primary-light: #EEF4FF;
  --accent: #10B981;
  --accent-dark: #0D9488;
  --accent-light: #ECFDF5;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --secondary: #3B82F6;
  --purple: #8B5CF6;
  --amber: #F59E0B;
  --rose: #F43F5E;

  /* Theme Tokens - Light Mode */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F1F5F9;
  --bg-header: rgba(248, 250, 252, 0.88);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-faint: #94A3B8;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.07);
  --border-hover: rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 20px 40px -10px rgba(15, 23, 42, 0.12);

  /* Layout & Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --container-width: 1160px;
  --container-narrow: 860px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-page: #0B111E;
  --bg-card: #151E2E;
  --bg-card-subtle: #1E293B;
  --bg-header: rgba(11, 17, 30, 0.88);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --border-subtle: rgba(248, 250, 252, 0.08);
  --border-card: rgba(248, 250, 252, 0.07);
  --border-hover: rgba(248, 250, 252, 0.18);
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-light: rgba(59, 130, 246, 0.15);
  --accent: #10B981;
  --accent-dark: #34D399;
  --accent-light: rgba(16, 185, 129, 0.15);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 20px 48px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0B111E;
    --bg-card: #151E2E;
    --bg-card-subtle: #1E293B;
    --bg-header: rgba(11, 17, 30, 0.88);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-faint: #64748B;
    --border-subtle: rgba(248, 250, 252, 0.08);
    --border-card: rgba(248, 250, 252, 0.07);
    --border-hover: rgba(248, 250, 252, 0.18);
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --primary-light: rgba(59, 130, 246, 0.15);
    --accent: #10B981;
    --accent-dark: #34D399;
    --accent-light: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.42);
    --shadow-float: 0 20px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand, .font-display {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

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

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

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

.container-narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 12px;
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: #0F172A;
  color: #FFFFFF;
}
[data-theme="dark"] .btn-primary {
  background-color: #3B82F6;
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .btn-primary:hover {
  background-color: #60A5FA;
}

.btn-outline {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-subtle);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero-section {
    padding: 90px 0 110px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.035em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.4rem;
  }
}

.hero-content h1 span {
  background: linear-gradient(135deg, #1B365D 0%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero-content h1 span {
  background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  background-color: #0F172A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}
.store-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .store-badge-btn {
  background-color: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .store-badge-btn:hover {
  background-color: #273549;
}

.store-badge-btn .badge-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  display: block;
  line-height: 1.2;
}
.store-badge-btn .badge-title {
  font-size: 0.98rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-faint);
  font-weight: 600;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg {
  color: var(--accent);
}

/* Hero Media & Floating Mockup */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #0F172A;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mockup-screen {
  border-radius: 32px;
  overflow: hidden;
  background-color: #FFFFFF;
}

.mockup-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Glass Stat Cards */
.floating-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 34px -6px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #0F172A;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

[data-theme="dark"] .floating-chip {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  box-shadow: 0 14px 34px -6px rgba(0, 0, 0, 0.4);
}

.chip-top-left {
  top: 12%;
  left: -20px;
  animation-delay: 0s;
}

.chip-bottom-right {
  bottom: 14%;
  right: -24px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .floating-chip {
    display: none;
  }
}

/* ==========================================================================
   Editorial Highlight Strip
   ========================================================================== */
.strip-section {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

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

@media (min-width: 768px) {
  .strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.strip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .strip-icon {
  color: var(--accent);
}

.strip-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.strip-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Interactive Feature Explorer (Tabs)
   ========================================================================== */
.section-features {
  padding: 90px 0;
}

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

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Feature Navigation Tabs */
.feature-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.feature-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feature-tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.feature-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 54, 93, 0.25);
}
[data-theme="dark"] .feature-tab-btn.active {
  background: #3B82F6;
  border-color: #3B82F6;
}

.feature-explorer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 40px;
}

@media (min-width: 860px) {
  .feature-explorer-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
  }
}

.explorer-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.explorer-info p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.explorer-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.explorer-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-main);
  font-weight: 500;
}

.explorer-bullets li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.explorer-preview {
  display: flex;
  justify-content: center;
}

.explorer-preview .preview-frame {
  max-width: 320px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 4px solid var(--bg-card-subtle);
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.section-gallery {
  padding: 90px 0;
  background-color: var(--bg-card-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: 380px 1fr;
    gap: 60px;
  }
}

.gallery-phone-wrap {
  display: flex;
  justify-content: center;
}

.gallery-phone {
  width: 100%;
  max-width: 340px;
  background: #0F172A;
  border-radius: 40px;
  padding: 8px;
  box-shadow: var(--shadow-float);
}

.gallery-phone img {
  border-radius: 32px;
  width: 100%;
}

.gallery-info h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.gallery-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .gallery-thumbs {
    grid-template-columns: repeat(6, 1fr);
  }
}

.gallery-thumb-item {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.gallery-thumb-item:hover {
  transform: translateY(-2px);
}

.gallery-thumb-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ==========================================================================
   Pricing & Pro Feature Matrix
   ========================================================================== */
.section-pricing {
  padding: 90px 0;
}

.pricing-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.pricing-table th {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 1.05rem;
}

.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3),
.pricing-table th:nth-child(2),
.pricing-table th:nth-child(3) {
  text-align: center;
}

.feature-check {
  color: var(--accent);
  font-weight: 700;
}

.feature-dash {
  color: var(--text-faint);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.section-faq {
  padding: 90px 0;
  background-color: var(--bg-card-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.section-cta {
  padding: 90px 0;
}

.cta-box {
  background: linear-gradient(135deg, #0F172A 0%, #1B365D 60%, #0D9488 100%);
  color: #FFFFFF;
  border-radius: 32px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-faint);
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Subpage Article Layout (About, Support, Privacy, Terms) */
.subpage-wrap {
  max-width: var(--container-narrow);
  margin: 48px auto 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .subpage-wrap {
    padding: 64px;
  }
}

.subpage-wrap h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.subpage-wrap .subpage-date {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.subpage-wrap h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 36px;
  margin-bottom: 14px;
}

.subpage-wrap p, .subpage-wrap ul {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.subpage-wrap ul {
  padding-left: 24px;
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }
}

/* ==========================================================================
   Responsive Refinements across Breakpoints
   ========================================================================== */

/* Tablet & Smaller Screens (< 960px) */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .gallery-info {
    text-align: center;
  }

  .gallery-thumbs {
    justify-content: center;
  }
}

/* Medium Tablets & Mobile (< 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-features,
  .section-gallery,
  .section-pricing,
  .section-faq,
  .section-cta {
    padding: 68px 0;
  }

  .subpage-wrap {
    padding: 36px 24px;
    margin: 32px auto 64px;
    border-radius: 20px;
  }
}

/* Mobile Screens (< 640px) */
@media (max-width: 640px) {
  .strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-explorer-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .feature-tabs-nav {
    gap: 8px;
  }

  .feature-tab-btn {
    padding: 8px 14px;
    font-size: 0.86rem;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* Small Handheld Mobile (< 540px) */
@media (max-width: 540px) {
  .header-actions .btn-sm {
    display: none;
  }

  .hero-section {
    padding: 36px 0 54px;
  }

  .hero-content h1 {
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .store-badge-btn {
    width: 100%;
    justify-content: center;
  }

  .mockup-frame {
    max-width: 290px;
    border-radius: 36px;
    padding: 6px;
  }

  .mockup-screen {
    border-radius: 30px;
  }

  .explorer-preview .preview-frame {
    max-width: 270px;
    border-radius: 24px;
  }

  .gallery-phone {
    max-width: 280px;
    border-radius: 36px;
    padding: 6px;
  }

  .gallery-phone img {
    border-radius: 30px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cta-box {
    padding: 40px 20px;
    border-radius: 22px;
  }

  .cta-box h2 {
    font-size: 1.85rem;
  }

  .cta-box p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .cta-actions .store-badge-btn {
    width: 100%;
    justify-content: center;
  }

  .subpage-wrap {
    padding: 24px 18px;
    margin: 20px auto 48px;
    border-radius: 16px;
  }

  .subpage-wrap h1 {
    font-size: 1.85rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
