/* ==========================================================================
   Tovilo — Routine Planner Design System
   Brand tokens: Ink (#292B2D), Canvas (#F8F4EF), Orange (#FF7A1A), 
   Peach (#FFD9B6), Cream (#F9F7ED), Lime (#A4BE3C), Pink (#DE83C8)
   Typography: Manrope (SIL Open Font License)
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/tovilo/fonts/Manrope-Variable.ttf') format('truetype-variations'),
       url('/assets/tovilo/fonts/Manrope-Variable.ttf') format('truetype');
}

:root {
  /* Core brand tokens */
  --ink: #292B2D;
  --canvas: #F8F4EF;
  --orange: #FF7A1A;
  --orange-hover: #E8660B;
  --orange-light: #FFF1E5;
  --peach: #FFD9B6;
  --peach-subtle: #FFF5EC;
  --cream: #F9F7ED;
  --lime: #88A526;
  --lime-bg: #F4F8E5;
  --pink: #C55E9E;
  --pink-bg: #FDF0F8;

  /* Theme tokens - Light mode */
  --bg-page: var(--canvas);
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F3EFE9;
  --bg-header: rgba(248, 244, 239, 0.88);
  --text-main: var(--ink);
  --text-muted: #5E6367;
  --text-faint: #8B9094;
  --border-subtle: rgba(41, 43, 45, 0.08);
  --border-card: rgba(41, 43, 45, 0.07);
  --border-hover: rgba(41, 43, 45, 0.16);
  --shadow-sm: 0 2px 6px rgba(41, 43, 45, 0.04);
  --shadow-card: 0 10px 30px -8px rgba(41, 43, 45, 0.07), 0 2px 8px -2px rgba(41, 43, 45, 0.04);
  --shadow-float: 0 16px 38px -10px rgba(41, 43, 45, 0.12);

  /* Radius & Spacing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --container-width: 1140px;
  --container-narrow: 840px;
  --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: #151617;
  --bg-card: #1F2124;
  --bg-card-subtle: #272A2E;
  --bg-header: rgba(21, 22, 23, 0.88);
  --text-main: #F7F5EE;
  --text-muted: #A3A7AA;
  --text-faint: #6D7276;
  --border-subtle: rgba(247, 245, 238, 0.09);
  --border-card: rgba(247, 245, 238, 0.08);
  --border-hover: rgba(247, 245, 238, 0.2);
  --orange: #FF8A33;
  --orange-hover: #FFA054;
  --orange-light: rgba(255, 122, 26, 0.16);
  --peach: #4A3323;
  --peach-subtle: #2E2218;
  --lime: #B4D33C;
  --lime-bg: rgba(164, 190, 60, 0.15);
  --pink: #E095D1;
  --pink-bg: rgba(222, 131, 200, 0.15);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.38);
  --shadow-float: 0 20px 44px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #151617;
    --bg-card: #1F2124;
    --bg-card-subtle: #272A2E;
    --bg-header: rgba(21, 22, 23, 0.88);
    --text-main: #F7F5EE;
    --text-muted: #A3A7AA;
    --text-faint: #6D7276;
    --border-subtle: rgba(247, 245, 238, 0.09);
    --border-card: rgba(247, 245, 238, 0.08);
    --border-hover: rgba(247, 245, 238, 0.2);
    --orange: #FF8A33;
    --orange-hover: #FFA054;
    --orange-light: rgba(255, 122, 26, 0.16);
    --peach: #4A3323;
    --peach-subtle: #2E2218;
    --lime: #B4D33C;
    --lime-bg: rgba(164, 190, 60, 0.15);
    --pink: #E095D1;
    --pink-bg: rgba(222, 131, 200, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.38);
    --shadow-float: 0 20px 44px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font-family: 'Manrope', -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;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Accessibility focus indicator */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

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

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
  transform: rotate(-4deg) scale(1.05);
}

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

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

.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(--orange);
  border-radius: 2px;
}

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

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

.theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: var(--bg-card-subtle);
}

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

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

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

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-mobile .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

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

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

.btn-primary {
  background-color: var(--orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.28);
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost {
  color: var(--text-main);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--bg-card-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-orange {
  background-color: var(--orange-light);
  color: var(--orange);
}

.badge-lime {
  background-color: var(--lime-bg);
  color: var(--lime);
}

.badge-pink {
  background-color: var(--pink-bg);
  color: var(--pink);
}

.badge-neutral {
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
}

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

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

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  align-self: flex-start;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  transition: all var(--transition-fast);
  text-align: left;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-text-group {
  display: flex;
  flex-direction: column;
}

.store-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.store-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-status-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--orange-light);
  color: var(--orange);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* Phone Mockup Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-card-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.phone-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 36px;
  padding: 10px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.phone-card:hover {
  transform: translateY(-4px);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating feature badges */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatSubtle 6s ease-in-out infinite;
}

.float-card-left {
  left: -28px;
  bottom: 22%;
  animation-delay: -3s;
}

.float-card-right {
  right: -24px;
  top: 18%;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.float-text {
  display: flex;
  flex-direction: column;
}

.float-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.float-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Editorial Callout / Philosophy
   ========================================================================== */
.section-editorial {
  padding: 60px 0;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.editorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--orange);
}

.editorial-quote {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.editorial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.section-features {
  padding: 80px 0;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.feature-icon-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.feature-icon-lime {
  background: var(--lime-bg);
  color: var(--lime);
}

.feature-icon-pink {
  background: var(--pink-bg);
  color: var(--pink);
}

.feature-icon-peach {
  background: var(--peach-subtle);
  color: var(--orange);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.feature-body {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Screenshots Gallery / Tabs Showcase
   ========================================================================== */
.section-gallery {
  padding: 80px 0;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.28);
}

.gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  min-height: 480px;
}

.gallery-stage-copy {
  flex: 1;
  max-width: 440px;
}

.gallery-screen-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.gallery-screen-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.gallery-screen-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-screen-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.gallery-screen-details li svg {
  color: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
}

.gallery-stage-phone {
  flex-shrink: 0;
  width: 280px;
  background: var(--bg-page);
  padding: 10px;
  border-radius: 36px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-float);
}

.gallery-stage-phone img {
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

/* Small gallery carousel reel for overview */
.gallery-reel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.gallery-thumb-item {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
  border-color: var(--orange);
  transform: scale(1.02);
}

.gallery-thumb-item img {
  border-radius: calc(var(--radius-md) - 2px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-thumb-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.section-pricing {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.pricing-card.featured {
  border: 2px solid var(--orange);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 28px;
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.pricing-interval {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-main);
}

.pricing-features-list li svg {
  color: var(--orange);
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

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

.cta-box {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.cta-box .badge {
  background: rgba(255, 122, 26, 0.2);
  color: #FFA054;
  margin-bottom: 16px;
}

.cta-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.cta-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
  color: #D3D1CA;
}

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

.cta-box .store-btn {
  background: #1C1E20;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.cta-box .store-btn:hover {
  background: #25282B;
  border-color: rgba(255, 255, 255, 0.24);
}

.cta-box .store-name {
  color: #FFFFFF;
}

.cta-box .store-label {
  color: #9E9E98;
}

/* ==========================================================================
   Editorial Content Pages (About, Support, Privacy, Terms)
   ========================================================================== */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-top: 12px;
  margin-bottom: 12px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.placeholder-pill {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  padding: 1px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88em;
  font-weight: 700;
  border: 1px dashed var(--orange);
}

.content-article {
  padding-bottom: 80px;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.prose p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.prose strong, .prose b {
  color: var(--text-main);
  font-weight: 700;
}

.prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-top: 36px;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 10px;
}

.prose blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-main);
  border-top: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.prose a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--orange-hover);
}

.contact-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
}

.contact-highlight-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

/* ==========================================================================
   Support FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

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

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--orange);
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--orange);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

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

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-copy {
  color: var(--text-faint);
  line-height: 1.5;
}

/* ==========================================================================
   Restrained Animation & Responsive Utilities
   ========================================================================== */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion preference */
@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 Media Queries */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

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

  .hero-meta-list {
    justify-content: center;
  }

  .float-card-left {
    left: 0;
  }

  .float-card-right {
    right: 0;
  }

  .gallery-stage {
    flex-direction: column-reverse;
    text-align: center;
  }

  .gallery-stage-copy {
    max-width: 100%;
  }

  .gallery-screen-details {
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0 60px;
  }

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

  .float-card {
    display: none; /* Hide floating chips on small mobile to prevent overlap */
  }

  .pricing-card {
    padding: 30px 20px;
  }
}
