/* Kutula Design System & Web Application Stylesheet (v4 Clean Box-Free Pause Icon)
   Strict alignment with Android App Design System (DESIGN-SYSTEM.md)
   Colors: Base #0A141C, Gradient #0D1E29 -> #070E14, CTA mint->blue (#6FEBC9 -> #63A8EE)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  --bg-base: #0a141c;
  --bg-gradient: linear-gradient(180deg, #0d1e29 0%, #070e14 100%);
  --bg-deep: #070f16;
  
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --mint-wash: rgba(94, 234, 212, 0.08);
  --border-mint: rgba(94, 234, 212, 0.4);
  
  --mint: #5eead4;
  --cyan: #5ab0f0;
  --blue: #4c97e0;
  
  --grad-cta: linear-gradient(135deg, #6febc9 0%, #63c8d9 50%, #63a8ee 100%);
  --text-on-cta: #04231f;
  
  --text-primary: #f3f8fb;
  --text-secondary: #aec0cc;
  --text-tertiary: #6e8290;
  --text-legal: #516471;
  
  --font-title: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-glow: 0 0 35px rgba(111, 235, 201, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LANGUAGE VISIBILITY RULES (Guaranteed 100% Exclusion for Content Elements)
   ========================================================================== */
[data-i18n="en"] {
  display: none !important;
}

[data-i18n="pt"] {
  display: block;
}

span[data-i18n="pt"],
a[data-i18n="pt"],
strong[data-i18n="pt"],
em[data-i18n="pt"],
code[data-i18n="pt"],
b[data-i18n="pt"] {
  display: inline !important;
}

html[lang="en"] [data-i18n="pt"] {
  display: none !important;
}

html[lang="en"] [data-i18n="en"] {
  display: block !important;
}

html[lang="en"] span[data-i18n="en"],
html[lang="en"] a[data-i18n="en"],
html[lang="en"] strong[data-i18n="en"],
html[lang="en"] em[data-i18n="en"],
html[lang="en"] code[data-i18n="en"],
html[lang="en"] b[data-i18n="en"] {
  display: inline !important;
}

/* ==========================================================================
   Typography & Accessibility Focus
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); font-weight: 700; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 0.75rem;
  display: block;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s var(--transition-ease);
}

a:hover, a:focus-visible {
  color: #86efac;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==========================================================================
   Header & Navigation (Clean Box-Free Pause Icon directly over background)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 20, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
}

/* Header Logo & Scroll Progress Container: NO BOX, NO RECTANGLE BACKGROUND */
.header-logo-progress-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.header-logo-svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(111, 235, 201, 0.25));
}

.header-ring-bg {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
  fill: none;
}

.header-scroll-progress-ring {
  stroke: url(#headerGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transform: rotate(-90deg);
  transform-origin: 26px 26px;
  transition: stroke-dashoffset 0.15s ease-out;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s var(--transition-ease);
}

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

/* Language Switcher Buttons: ALWAYS VISIBLE SIDE BY SIDE */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  display: inline-block !important;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--transition-ease);
}

.lang-btn.active {
  background: var(--grad-cta);
  color: var(--text-on-cta);
  box-shadow: 0 2px 10px rgba(111, 235, 201, 0.3);
}

/* ==========================================================================
   Intro Pause Experience Overlay (Single Pause Symbol, No Box Backgrounds)
   ========================================================================== */
.pause-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--transition-ease), visibility 0.6s var(--transition-ease);
}

.pause-intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pause-ring-container {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.pause-ring-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pause-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
  fill: none;
}

.pause-ring-circle-fill {
  stroke: url(#introGrad);
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  animation: introFillRing 2.6s var(--transition-ease) forwards;
}

@keyframes introFillRing {
  0% { stroke-dashoffset: 471; }
  100% { stroke-dashoffset: 0; }
}

/* EXACT SINGLE PAUSE SYMBOL OVER PAGE BACKGROUND */
.single-pause-symbol {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.pause-bar {
  width: 15px;
  height: 48px;
  border-radius: 8px;
  background: var(--grad-cta);
  box-shadow: 0 0 20px rgba(111, 235, 201, 0.5);
  animation: introBreatheBar 2.6s infinite ease-in-out;
}

@keyframes introBreatheBar {
  0%, 100% { transform: scaleY(0.85); opacity: 0.8; }
  50% { transform: scaleY(1.1); opacity: 1; box-shadow: 0 0 30px rgba(111, 235, 201, 0.8); }
}

.intro-word-text {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  min-height: 2.8rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.intro-skip-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--transition-ease);
}

.intro-skip-btn:hover, .intro-skip-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Prefers Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .pause-intro-overlay {
    display: none !important;
  }
  
  .pause-ring-circle-fill,
  .pause-bar {
    animation: none !important;
  }

  .header-scroll-progress-ring {
    transition: none !important;
  }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s var(--transition-ease);
  border: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-cta {
  background: var(--grad-cta);
  color: var(--text-on-cta);
  box-shadow: var(--shadow-glow);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(111, 235, 201, 0.35);
  color: var(--text-on-cta);
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ==========================================================================
   Cards & Layout Components (Clean Icons - No Box Containers)
   ========================================================================== */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--mint-wash);
  border: 1px solid var(--border-mint);
  color: var(--mint);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mint);
}

.hero h1 span.highlight {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Premium Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s var(--transition-ease);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Card Icons: Clean SVG, NO BACKGROUND BOXES */
.card-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 0.5rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How It Works (3 Steps) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: all 0.3s var(--transition-ease);
}

.step-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* Plan Comparison (Gratuito vs Premium Adaptativo) */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--transition-ease);
}

.plan-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.plan-card.premium {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.08) 0%, rgba(10, 20, 28, 0.6) 100%);
  border: 1px solid var(--border-mint);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.plan-card.premium:hover {
  border-color: var(--mint);
}

.plan-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--grad-cta);
  color: var(--text-on-cta);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-features li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

/* Privacy & Autonomy Box */
.transparency-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
}

/* Document & Legal Pages */
.doc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.doc-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-section {
  margin-bottom: 2rem;
}

.doc-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.doc-section p, .doc-section ul, .doc-section ol {
  margin-bottom: 1rem;
}

.doc-section ul, .doc-section ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.doc-section li {
  margin-bottom: 0.5rem;
}

.alert-highlight {
  background: rgba(94, 234, 212, 0.08);
  border-left: 4px solid var(--mint);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.alert-warning {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* FAQ Section */
.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.faq-card h3 {
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

/* Animation on Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-ease), transform 0.6s var(--transition-ease);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .container, .container-narrow {
    padding: 2.5rem 1.25rem;
  }
  
  .doc-box {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 3rem 1rem 2rem;
  }
  
  .footer-container {
    flex-direction: column;
  }
}
