/* ==========================================================================
   AppZoho — Design System
   Core styles: tokens, resets, typography, layout, components.
   Breakpoint-specific overrides live in responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-primary: #5B7FFF;
  --color-primary-hover: #4A6BF0;
  --color-secondary: #8B5CF6;
  --color-accent: #22C55E;

  /* Surface colors — light mode */
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #5B7FFF 0%, #8B5CF6 100%);
  --gradient-soft: linear-gradient(180deg, rgba(91,127,255,0.08) 0%, rgba(139,92,246,0.02) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.10);
  --shadow-focus: 0 0 0 3px rgba(91, 127, 255, 0.35);

  /* Radius scale */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* Typography scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.7rem + 2vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.9rem + 3.2vw, 4.25rem);
  --text-5xl: clamp(2.9rem, 2rem + 5vw, 5.5rem);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-width: 1160px;
  --header-height: 76px;

  color-scheme: light;
}

/* Dark mode — activated via [data-theme="dark"] or system preference */
:root[data-theme="dark"] {
  --color-primary: #7B99FF;
  --color-primary-hover: #91A9FF;
  --color-secondary: #A78BFA;
  --color-accent: #34D399;

  --color-bg: #0A0B0F;
  --color-bg-secondary: #131620;
  --color-surface: #171A24;
  --color-text: #F3F4F6;
  --color-muted: #9CA3AF;
  --color-border: #262A38;

  --gradient-soft: linear-gradient(180deg, rgba(123,153,255,0.10) 0%, rgba(23,26,36,0) 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #7B99FF;
    --color-primary-hover: #91A9FF;
    --color-secondary: #A78BFA;
    --color-accent: #34D399;

    --color-bg: #0A0B0F;
    --color-bg-secondary: #131620;
    --color-surface: #171A24;
    --color-text: #F3F4F6;
    --color-muted: #9CA3AF;
    --color-border: #262A38;

    --gradient-soft: linear-gradient(180deg, rgba(123,153,255,0.10) 0%, rgba(23,26,36,0) 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: var(--leading-tight); letter-spacing: -0.02em; }
p { color: var(--color-muted); }

/* Focus states — visible, accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Layout Primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}
.section-header.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.875rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px) scale(1.015); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

.btn-block { width: 100%; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: var(--text-xs); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: height var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.navbar.is-scrolled {
  height: 64px;
  border-color: var(--color-border);
  box-shadow: 0 12px 30px -18px rgba(17, 24, 39, 0.28);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform var(--duration-slow) var(--ease-out); }
.theme-toggle:hover svg { transform: rotate(20deg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-3xl) var(--space-2xl);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  z-index: -1;
  animation: heroAmbient 10s ease-in-out infinite alternate;
}
@keyframes heroAmbient {
  from { opacity: 0.75; }
  to { opacity: 1; }
}
.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  perspective: 1400px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
  line-height: var(--leading-snug);
}
.hero-art { width: 100%; height: auto; }

/* Hero entrance — staggered fade-up on load (above the fold; not scroll-gated) */
.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s var(--ease-out) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.16s; }
.hero-content > *:nth-child(3) { animation-delay: 0.27s; }
.hero-content > *:nth-child(4) { animation-delay: 0.38s; }
.hero-content > *:nth-child(5) { animation-delay: 0.49s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero art — entrance (opacity/scale) on outer tilt wrapper, ambient float (translate) on inner */
[data-hero-parallax] {
  opacity: 0;
  scale: 0.96;
  animation: heroArtIn 0.9s var(--ease-out) 0.32s forwards;
  transition: transform 0.25s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes heroArtIn {
  to { opacity: 1; scale: 1; }
}
.hero-art-motion {
  animation: heroFloat 7s ease-in-out 1.2s infinite;
}
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-blob {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroBlobPulse 9s ease-in-out infinite;
}
.hero-blob-b { animation-duration: 12s; animation-direction: reverse; }
@keyframes heroBlobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(6px, -6px); }
}

.hero-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroDotFloat 4s ease-in-out infinite;
}
@keyframes heroDotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-content > *,
  [data-hero-parallax],
  .hero-art-motion,
  .hero-blob,
  .hero-dot {
    opacity: 1 !important;
    scale: 1 !important;
    translate: 0 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* Feature cards */
.feature-card {
  text-align: left;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: var(--space-md);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.feature-card p { font-size: var(--text-sm); margin: 0; }

/* App cards */
.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.app-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.app-card-title { font-size: var(--text-lg); margin-bottom: 0.15rem; }
.app-card-tagline { font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; }
.app-card-desc { font-size: var(--text-sm); margin: 0; }
.app-card-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-top: auto; }
.app-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

/* Coming soon card */
.card-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2xs);
  border-style: dashed;
  color: var(--color-muted);
  min-height: 220px;
}
.card-coming-soon .feature-icon { background: var(--color-bg-secondary); color: var(--color-muted); }

/* --------------------------------------------------------------------------
   8. Sections — About / Why-choose / CTA
   -------------------------------------------------------------------------- */
.section-alt { background: var(--color-bg-secondary); }

.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-inline: auto; margin-bottom: var(--space-lg); }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary); box-shadow: none; }
.cta-banner .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-secondary);
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand p {
  font-size: var(--text-sm);
  max-width: 32ch;
  margin-top: var(--space-sm);
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-col a { font-size: var(--text-sm); color: var(--color-text); transition: color var(--duration-fast) var(--ease-out); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   10. Mobile Nav Drawer
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-lg);
  display: none;
  flex-direction: column;
  gap: var(--space-2xs);
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: var(--text-xl);
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.mobile-nav a[aria-current="page"] { color: var(--color-primary); }
.mobile-nav .btn { margin-top: var(--space-md); }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   11. Forms (Contact — UI only, no backend)
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-md);
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2xs); }
.form-field label { font-size: var(--text-sm); font-weight: 600; }
.form-field .hint { font-size: var(--text-xs); color: var(--color-muted); font-weight: 400; }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
}
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}
.form-success.is-visible { display: flex; }

/* --------------------------------------------------------------------------
   12. Contact info tiles
   -------------------------------------------------------------------------- */
.info-tile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.info-tile .feature-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.info-tile .feature-icon svg { width: 20px; height: 20px; }
.info-tile h3 { font-size: var(--text-base); margin-bottom: 0.2rem; }
.info-tile p { font-size: var(--text-sm); margin: 0; }
.info-tile a { color: var(--color-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Legal document layout (Privacy / Terms)
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-block: var(--space-2xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.legal-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-sm);
}
.legal-layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
  padding-block: var(--space-2xl);
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--color-surface);
}
.legal-toc h2 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.legal-toc ol { display: flex; flex-direction: column; gap: 0.4rem; counter-reset: toc; }
.legal-toc a {
  font-size: var(--text-sm);
  color: var(--color-text);
  display: block;
  padding: 0.3rem 0;
}
.legal-toc a:hover { color: var(--color-primary); }

.legal-content { max-width: 68ch; }
.legal-content section { margin-bottom: var(--space-xl); scroll-margin-top: calc(var(--header-height) + 1rem); }
.legal-content h2 { font-size: var(--text-xl); margin-bottom: var(--space-sm); padding-top: var(--space-2xs); }
.legal-content h3 { font-size: var(--text-base); margin-block: var(--space-md) var(--space-2xs); }
.legal-content p { margin-bottom: var(--space-sm); font-size: var(--text-sm); line-height: var(--leading-normal); }
.legal-content ul { margin-bottom: var(--space-sm); display: flex; flex-direction: column; gap: 0.4rem; }
.legal-content li { font-size: var(--text-sm); color: var(--color-muted); padding-left: 1.4rem; position: relative; }
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.legal-content strong { color: var(--color-text); }
.legal-callout {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   14. Directory pages (Apps / Privacy / Terms index)
   -------------------------------------------------------------------------- */
.directory-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.directory-item-main { display: flex; align-items: center; gap: var(--space-md); }
.directory-item h3 { font-size: var(--text-lg); margin-bottom: 0.15rem; }
.directory-item p { font-size: var(--text-sm); margin: 0; }

/* --------------------------------------------------------------------------
   15. App detail page
   -------------------------------------------------------------------------- */
.app-hero {
  padding-block: var(--space-2xl);
}
.app-hero-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.app-hero .app-icon { width: 88px; height: 88px; border-radius: var(--radius-lg); font-size: var(--text-2xl); }
.app-hero h1 { font-size: var(--text-3xl); margin-bottom: 0.2rem; }
.app-hero .app-card-tagline { font-size: var(--text-sm); }
.app-hero p.lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 60ch; margin-block: var(--space-md); }
.app-meta-row { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }
.app-meta-item { font-size: var(--text-xs); color: var(--color-muted); }
.app-meta-item strong { display: block; color: var(--color-text); font-size: var(--text-sm); }

.screenshot-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshot-placeholder {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-bg-secondary), var(--color-surface));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-sm);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration-base) var(--ease-out);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-out);
}
.faq-answer p { padding-bottom: var(--space-md); font-size: var(--text-sm); }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 400px; }

/* --------------------------------------------------------------------------
   16. Utility: reveal-on-scroll animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   17. 404 page
   -------------------------------------------------------------------------- */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-3xl);
}
.error-code {
  font-size: clamp(4rem, 6vw + 2rem, 8rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   18. Values / story lists (About page)
   -------------------------------------------------------------------------- */
.value-item { display: flex; gap: var(--space-md); }
.value-index {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.5;
  flex-shrink: 0;
  width: 2.5ch;
}
.tech-pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.tech-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
