/* ── Local Fonts ── */

/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin/dm-sans-v17-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin/dm-sans-v17-latin-300italic.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin/dm-sans-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin/dm-sans-v17-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin/dm-sans-v17-latin-600.woff2') format('woff2');
}

/* DM Serif Display */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-v17-latin/dm-serif-display-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-v17-latin/dm-serif-display-v17-latin-italic.woff2') format('woff2');
}

/* Syne */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/syne-v24-latin/syne-v24-latin-800.woff2') format('woff2');
}

/* ── Design tokens ── */
:root {
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --green-500: #34D399;
  --red-500: #F87171;
  --amber: #FBBF24;
  --dark-base: #050A17;
  --dark-900: #111827;
  --dark-800: #151D2E;
  --dark-700: #1B2538;
  --dark-600: #243047;
  --dark-border: #263244;
  --dark-borm: #334155;
  --text-1: #FFFFFF;
  --text-2: #CDD5E0;
  --text-3: #A0AEBB;
  --text-4: #7A8FA0;
  --glow-teal: rgba(20, 184, 166, .18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-base);
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Brand name — misma tipografía que la PWA ── */
.tl-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-2);
  letter-spacing: -0.3px;
  text-shadow: 0 0 20px rgba(20, 184, 166, .4);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transform: scaleY(1.5);
  /* ← igual que la PWA */
  transform-origin: center center;
}

.tl-brand:hover {
  color: var(--text-1);
  text-decoration: none;
}

/* ── Topbar (docs: privacy, terms, delete-account) ── */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(5, 10, 23, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.topbar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.topbar-back:hover {
  color: var(--teal-400);
}

.topbar-back::before {
  content: '←';
  font-size: 14px;
}

/* ── Navbar (landing index) ── */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(5, 10, 23, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}

.lang-bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-bar nav a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  transition: color .2s;
}

.lang-bar nav a:hover {
  color: var(--teal-400);
}

@media (max-width: 640px) {
  .lang-bar {
    padding: 12px 20px;
  }

  .lang-bar nav a {
    display: none;
  }
}

/* ── Lang buttons ── */
.lang-btns {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: var(--dark-700);
  border: 1px solid var(--dark-borm);
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .6px;
  transition: all .2s;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--teal-700);
  border-color: var(--teal-500);
  color: #FFFFFF; /* was teal-400 (#2DD4BF) — ratio 2.8:1 fail. White = 9.2:1 pass WCAG AA */
}

/* ── Footer (docs) ── */
.doc-footer {
  border-top: 1px solid var(--dark-border);
  padding: 28px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-4);
}

.doc-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}

.doc-footer a:hover {
  color: var(--teal-400);
}

.doc-footer-links {
  display: flex;
  gap: 24px;
}

/* ── Footer (landing) ── */
footer {
  background: var(--dark-900);
  border-top: 1px solid var(--dark-border);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-desc {
  font-size: 13px;
  color: var(--text-4);
  max-width: 280px;
  line-height: 1.6;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .footer-links {
    align-items: flex-start;
  }
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 12px;
  color: var(--text-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--dark-border);
  margin: 0;
}

/* ── Favicon inline ── */
link[rel="icon"] {
  color-scheme: dark;
}

/* ═══════════════════════════════════════════
   index.css
═══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
  animation: gridPulse 8s ease-in-out infinite;
  will-change: opacity;
}

.hero::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background: radial-gradient(ellipse, rgba(20, 184, 166, .12) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: .6
  }

  50% {
    opacity: 1
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, .1);
  border: 1px solid rgba(20, 184, 166, .3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-400);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 8px var(--teal-500);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  animation: fadeUp .7s .1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-400);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 44px;
  font-weight: 300;
  line-height: 1.65;
  animation: fadeUp .7s .2s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-500);
  color: var(--dark-base);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  will-change: transform;
  box-shadow: 0 0 32px rgba(20, 184, 166, .3);
}

.btn-primary:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(20, 184, 166, .45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-2);
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--dark-borm);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  will-change: transform;
}

.btn-secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-400);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── Phone mockup ── */
.hero-phone {
  margin-top: 72px;
  animation: fadeUp .8s .4s ease both;
  display: inline-block;
}

.phone-frame {
  width: 240px;
  height: 480px;
  border-radius: 36px;
  border: 2px solid var(--dark-borm);
  background: var(--dark-800);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--dark-border), 0 40px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(20, 184, 166, .08);
  margin: 0 auto;
}

.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background: var(--dark-900);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 10px;
}

.phone-row {
  height: 14px;
  border-radius: 7px;
  background: var(--dark-700);
  animation: shimmer 2.5s ease-in-out infinite;
  will-change: opacity;
}

.phone-row.accent {
  background: rgba(20, 184, 166, .25);
}

.phone-row.green {
  background: rgba(52, 211, 153, .2);
  width: 60%;
}

.phone-row.red {
  background: rgba(248, 113, 113, .2);
  width: 45%;
}

.phone-row.short {
  width: 70%;
}

.phone-row.tall {
  height: 60px;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: .7
  }

  50% {
    opacity: 1
  }
}

.phone-stat-row {
  display: flex;
  gap: 8px;
}

.phone-stat {
  flex: 1;
  height: 52px;
  border-radius: 10px;
  background: var(--dark-700);
}

.phone-stat.t {
  background: rgba(20, 184, 166, .15);
}

.phone-stat.g {
  background: rgba(52, 211, 153, .12);
}

.phone-stat.r {
  background: rgba(248, 113, 113, .12);
}

/* ── Section commons ── */
section {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .4), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  border-color: rgba(20, 184, 166, .3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 0 30px rgba(20, 184, 166, .06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.fi-teal {
  background: rgba(20, 184, 166, .12);
}

.fi-green {
  background: rgba(52, 211, 153, .12);
}

.fi-amber {
  background: rgba(251, 191, 36, .12);
}

.fi-blue {
  background: rgba(96, 165, 250, .12);
}

.fi-purple {
  background: rgba(192, 132, 252, .12);
}

.fi-red {
  background: rgba(248, 113, 113, .12);
}

.feature-group {
  margin-top: 56px;
}

.feature-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-border);
}

/* ── Security ── */
.security-section {
  background: var(--dark-900);
  border-radius: 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 96px 24px;
}

.security-section>* {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.security-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 28px;
}

.security-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 8px;
}

.security-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Pricing ── */
.pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .pricing-wrapper {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--dark-border);
  background: var(--dark-800);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(145deg, var(--dark-700), var(--dark-800));
  border-color: rgba(20, 184, 166, .4);
  box-shadow: 0 0 40px rgba(20, 184, 166, .1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: var(--dark-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 22px;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 28px;
}

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

.pricing-features li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal-500);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.pricing-features li.locked {
  color: var(--text-4);
}

.pricing-features li.locked::before {
  content: '—';
  color: var(--text-4);
}

.pricing-cta {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}

.pricing-cta.primary {
  background: var(--teal-500);
  color: var(--dark-base);
}

.pricing-cta.primary:hover {
  background: var(--teal-400);
}

.pricing-cta.secondary {
  border: 1px solid var(--dark-borm);
  color: var(--text-3);
}

.pricing-cta.secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-400);
}

.trial-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trial-note::before {
  content: '★';
  color: var(--amber);
}

/* ── Navbar brand ── */
.lang-bar .tl-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-2);
  letter-spacing: -0.3px;
  text-shadow: 0 0 20px rgba(20, 184, 166, .4);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transform: scaleY(1.5);
  /* ← igual que la PWA */
  transform-origin: center center;
}