/* ========================================
   WhatsApp Brand Site — Shared Stylesheet
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* brand palette */
  --green-900: #062c22;
  --green-800: #0a4f3c;
  --green-700: #0d6b51;
  --green-600: #128C7E;
  --green-500: #1ebe96;
  --green-400: #25D366;
  --green-300: #7be19e;
  --green-200: #b5edd3;
  --green-100: #ddf5ea;
  --green-50:  #f0fdf4;

  --cyan-400:  #2dd4bf;
  --cyan-500:  #14b8a6;

  /* neutrals */
  --gray-900: #0b1417;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  /* surfaces */
  --surface-white:   #ffffff;
  --surface-subtle:  #f0fdf4;
  --surface-dark:    #050d0a;
  --surface-card:    rgba(255,255,255,.85);

  /* typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --tracking-tight: -.02em;
  --leading-snug:   1.35;

  /* spacing */
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* layout */
  --max-w: 1200px;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--surface-white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.display-h1 {
  font-size: clamp(2.25rem, 5vw + .5rem, 3.75rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  text-wrap: balance;
}
.display-h2 {
  font-size: clamp(1.75rem, 3vw + .25rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw + .25rem, 2rem);
  font-weight: 700;
  line-height: 1.25;
}
.body-lg {
  font-size: clamp(1rem, 1.2vw + .5rem, 1.125rem);
  line-height: 1.75;
}
.small-caps-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* ---------- Layout Helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--space-6); }
@media (min-width: 640px) { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

.grid-auto {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-auto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-auto { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-auto.wide-4 { grid-template-columns: repeat(4, 1fr); } }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

.section-padding { padding-block: var(--space-16); }
@media (min-width: 768px) { .section-padding { padding-block: var(--space-24); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--space-6);
}
@media (min-width: 640px) { .header-inner { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .header-inner { padding-inline: var(--space-12); } }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.125rem; color: var(--green-800); letter-spacing: -.01em; }

/* desktop nav */
.nav-desktop { display: none; gap: var(--space-8); }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: .9375rem; font-weight: 500; color: var(--gray-600);
  transition: color .2s;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--green-700); }
.nav-desktop a[aria-current="page"] { font-weight: 600; }

/* header cta */
.btn-sm-outline {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-300); color: var(--green-700);
  font-size: .875rem; font-weight: 600; transition: all .2s;
}
.btn-sm-outline:hover { background: var(--green-50); border-color: var(--green-400); }

/* mobile menu toggle */
.menu-toggle { display: flex; background: none; border: none; cursor: pointer; padding: var(--space-2); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--green-800); }

.mobile-nav {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--surface-white); border-bottom: 1px solid var(--green-100);
  padding: var(--space-6);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: var(--space-3) 0; font-size: 1rem; font-weight: 500;
  color: var(--gray-700); border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: .875rem 2rem; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: #fff; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-primary:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; }
.btn-primary svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: .75rem 1.75rem; border-radius: var(--radius-md);
  background: transparent; color: var(--green-700);
  font-weight: 600; font-size: .9375rem;
  border: 1.5px solid var(--green-200);
  transition: all .2s;
}
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-300); }
.btn-secondary:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }

.card-feature {
  display: flex; flex-direction: column; gap: var(--space-4);
}
.card-feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-feature-icon svg { width: 22px; height: 22px; stroke: var(--green-600); fill: none; stroke-width: 1.8; }
.card-feature h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--gray-900); }
.card-feature p  { font-size: .9375rem; color: var(--gray-600); line-height: 1.65; }

/* ---------- News Cards ---------- */
.news-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.card-news {
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow .25s, border-color .25s;
}
.card-news:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card-news-date { font-size: .8125rem; color: var(--gray-500); }
.card-news h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--gray-900); }
.card-news p  { font-size: .9375rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.card-news .btn-link {
  font-size: .875rem; font-weight: 600; color: var(--green-600);
  display: inline-flex; align-items: center; gap: var(--space-2);
  transition: color .2s;
}
.card-news .btn-link:hover { color: var(--green-500); }
.card-news .btn-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Table ---------- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .9375rem;
}
.data-table thead th {
  text-align: left; font-weight: 600; color: var(--gray-700);
  padding: var(--space-3) var(--space-4);
  background: var(--green-50);
  border-bottom: 2px solid var(--green-200);
  white-space: nowrap;
}
.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.data-table tbody tr:nth-child(even) { background: var(--gray-50); }
.data-table tbody tr:hover { background: var(--green-50); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--green-200); }
.faq-item[open] { border-color: var(--green-300); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-size: 1rem; font-weight: 600; color: var(--gray-800);
  cursor: pointer; user-select: none;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary:focus-visible { outline: 2px solid var(--green-400); outline-offset: -2px; border-radius: var(--radius-md); }

.faq-chevron {
  width: 20px; height: 20px; stroke: var(--green-600); fill: none; stroke-width: 2;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(90deg); }

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  font-size: .9375rem; color: var(--gray-600); line-height: 1.7;
}

/* ---------- Related Links ---------- */
.related-list { display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 640px) { .related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
@media (min-width: 960px) { .related-list { grid-template-columns: repeat(4, 1fr); } }

.related-item a {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all .2s;
}
.related-item a:hover { border-color: var(--green-300); background: var(--green-50); }
.related-item a:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }
.related-item h4 { font-size: .9375rem; font-weight: 600; color: var(--gray-800); line-height: 1.4; }
.related-item span { font-size: .8125rem; color: var(--gray-500); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--gray-400);
  padding-block: var(--space-12);
}
.footer-inner {
  display: flex; flex-direction: column; gap: var(--space-8);
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--space-6);
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-weight: 600; font-size: 1rem; color: var(--gray-300); }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-links a { font-size: .875rem; color: var(--gray-500); transition: color .2s; }
.footer-links a:hover { color: var(--green-300); }
.footer-copy { font-size: .8125rem; color: var(--gray-600); }

/* ---------- Section Dividers ---------- */
.section-divider {
  display: flex; align-items: center; justify-content: center;
  padding-block: var(--space-4);
}
.section-divider svg { width: 100%; max-width: 600px; height: auto; }

/* ---------- Dark section base ---------- */
.dark-section {
  background: linear-gradient(170deg, var(--green-900) 0%, var(--surface-dark) 100%);
  color: var(--green-100);
}
.dark-section .display-h2, .dark-section .section-title { color: var(--surface-white); }
.dark-section p { color: var(--green-200); }
.dark-section .small-caps-label { color: var(--green-300); }

/* ---------- Download area ---------- */
.download-hero {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  color: #fff;
}
@media (min-width: 640px) { .download-hero { padding: var(--space-12) var(--space-10); } }
.download-hero h3 { color: #fff; }
.download-hero p { color: var(--green-100); }
.download-hero .btn-primary { background: #fff; color: var(--green-700); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.download-hero .btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.download-hero .btn-primary svg { stroke: var(--green-700); }

.requirements-grid {
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
}
@media (min-width: 640px) { .requirements-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .requirements-grid { grid-template-columns: repeat(4, 1fr); } }
.req-card {
  padding: var(--space-5); border-radius: var(--radius-md);
  background: var(--green-50); border: 1px solid var(--green-100);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.req-card h4 { font-size: .875rem; font-weight: 700; color: var(--green-800); }
.req-card p  { font-size: .875rem; color: var(--gray-600); }

.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: var(--space-6);
  border-left: 2px solid var(--green-200);
}
.step-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: -1rem; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--green-600); color: #fff;
  font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: var(--space-2); }
.step-list p  { font-size: .9375rem; color: var(--gray-600); }

/* ---------- Focus visible global ---------- */
:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

/* ---------- SVG Animation Keyframes ---------- */
@keyframes dashProgress {
  0%   { stroke-dashoffset: 1; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes drawArc {
  0%   { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseRing {
  0%, 100% { opacity: .6; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { opacity: .3; r: 3; }
  50%      { opacity: 1;   r: 5; }
}

.animate-dash    { animation: dashProgress 4s ease-in-out infinite; }
.animate-draw    { animation: drawArc 3s ease-in-out infinite alternate; }
.animate-pulse   { animation: pulseRing 3s ease-in-out infinite; }
.animate-float   { animation: floatUp 4s ease-in-out infinite; }
.animate-orbit   { animation: orbitSpin 20s linear infinite; transform-origin: center; transform-box: fill-box; }
.animate-breathe { animation: breathe 3s ease-in-out infinite; }
.delay-1 { animation-delay: .5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-dash, .animate-draw, .animate-pulse, .animate-float,
  .animate-orbit, .animate-breathe {
    animation: none !important;
  }
}
