/* --------------------------------------------------------------------------
   DocVault Minimal, Grounded Design System
   Modern Sans Typography, Borderless Cards, Authentic App Icons
   -------------------------------------------------------------------------- */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  
  /* Color Palette - Light Mode */
  --bg-primary: #FAFAF7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2F4F0;
  --bg-subtle-hover: #EBECE8;
  --bg-card: #F2F4F0;
  
  --text-primary: #141817;
  --text-secondary: #505A57;
  --text-muted: #7E8884;
  --text-inverse: #FFFFFF;
  
  --border-light: #E2E6E2;
  --border-subtle: #EEEEEC;
  
  --primary: #155E63;
  --primary-hover: #0E484C;
  --primary-light: #C6F0EA;
  --primary-dark: #093235;
  
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #101413;
  --bg-surface: #181E1D;
  --bg-subtle: #1C2322;
  --bg-subtle-hover: #232C2B;
  --bg-card: #181E1D;
  
  --text-primary: #F0F4F2;
  --text-secondary: #A0AAA6;
  --text-muted: #6E7975;
  --text-inverse: #101413;
  
  --border-light: #26302E;
  --border-subtle: #1F2826;
  
  --primary: #8FD7D0;
  --primary-hover: #A6E2DC;
  --primary-light: #004F4D;
  --primary-dark: #B5F0E8;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: radial-gradient(ellipse 90% 440px at 50% 0%, rgba(21, 94, 99, 0.08) 0%, transparent 100%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-theme="dark"] body {
  background-image: radial-gradient(ellipse 90% 440px at 50% 0%, rgba(143, 215, 208, 0.09) 0%, transparent 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation (Transparent by default, frosted when scrolled) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .site-header.scrolled {
  background-color: rgba(16, 20, 19, 0.88);
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* Google Play Badge Link */
.play-badge-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: opacity var(--transition-fast);
}

.play-badge-link:hover {
  opacity: 0.88;
}

.play-badge-img {
  height: 52px;
  width: auto;
  display: block;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-subtle-hover);
  color: var(--text-primary);
}

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

/* Mobile Nav Drawer & Toggle (Hidden on Desktop by default) */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.mobile-menu-drawer {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-primary {
  color: #003735;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle-hover);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.assurance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.assurance-item svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Core Values Section (Borderless, Bigger Icons, No Hover Scale) */
.values-section {
  padding: 1.5rem 0 4.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.value-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.value-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.value-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Section Header */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Clean, Simplified Tools Grid (Borderless, Bigger Icons, No Bullet Text-wall) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.tool-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Presets & Quick Tools Grid (Borderless, Bigger Icons, No Hover Scale) */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.preset-chip {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preset-chip img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.preset-chip span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.preset-chip small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Comparison Table (Minimal, Airy, Clean) */
.comparison-wrapper {
  background-color: transparent;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.comparison-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background-color: transparent;
  font-weight: 600;
  padding-top: 1.25rem;
}

.comparison-table td {
  font-size: 0.925rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-feature {
  font-weight: 500;
  color: var(--text-primary);
  width: 36%;
}

.status-positive {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-muted {
  color: var(--text-muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}

/* FAQ Accordion (Borderless Cards) */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: none;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

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

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* CTA Section */
.cta-banner {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 3.5rem 0;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

/* Footer (Borderless, Clean, No raw email) */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-top: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.footer-col a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Article Layout (Privacy Page) */
.article-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

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

.article-content {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 4rem;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content p, .article-content li {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

[data-theme="dark"] .article-content blockquote {
  background-color: rgba(255, 255, 255, 0.03);
}

.article-content blockquote p {
  color: var(--text-primary);
  margin: 0;
}

/* Contact Page Styles (Centered, Formless, Clean) */
.contact-container {
  max-width: 580px;
  margin: 1.5rem auto 4.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin: 1.75rem 0;
}

.email-address {
  font-family: monospace;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-menu-drawer {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  }
  
  .mobile-menu-drawer.open {
    display: block !important;
  }
  
  .mobile-menu-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .mobile-menu-drawer a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-content {
    padding: 2rem 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}
