/* Threadboard — landing. Tokens Nocturne (design_handoff_kanban_freelance/README.md).
   Solo modo oscuro. El acento se usa como línea, borde, punto o texto; nunca como relleno grande. */

:root {
  --bg: #161826;
  --bg-deep: #0d0f17;
  --surface: #1f2130;
  --surface-elevated: #232532;
  --chip: #292b31;
  --text: #e9e9ed;
  --text-secondary: #cfd3e5;
  --text-muted: #b2b6ca;
  --text-tertiary: #9397ab;
  --text-faint: #75798c;
  --accent: #9184d9;
  --accent-light: #b5abfc;
  --accent-lighter: #d2cefd;
  --accent-tint: #2b2741;
  --accent-tint-card: #221f33;
  --border: rgba(233, 233, 237, 0.08);
  --border-elevated: rgba(233, 233, 237, 0.10);
  --border-accent: rgba(145, 132, 217, 0.5);
  --border-accent-soft: rgba(145, 132, 217, 0.3);
  --rule: linear-gradient(90deg, transparent, rgba(233, 233, 237, 0.14), transparent);
  --glow: 0 0 32px rgba(145, 132, 217, 0.26);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: 16px;
  --measure: 34rem;
  --radius-card: 14px;
  --radius-button: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 6.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -0.022em; margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent-lighter); }
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--surface-elevated); color: var(--text); padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-accent); border-radius: var(--radius-button); z-index: 10;
}
.skip:focus { top: 0.75rem; }

.rule { height: 1px; background: var(--rule); margin: 0 0 2.5rem; }

.eyebrow {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1rem;
}
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); max-width: var(--measure); margin-top: 1.1rem; }
.fine { font-size: 0.75rem; line-height: 1.6; color: var(--text-faint); margin-top: 1rem; }
.link { color: var(--accent-light); border-bottom: 1px solid var(--border-accent-soft); padding-bottom: 1px; }

/* ---- botón del App Store ---- */
.cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2rem; }
.cta-soon {
  padding: 0 1.25rem; border-radius: var(--radius-button);
  background: var(--accent-tint); color: var(--accent-lighter); border: 1px solid var(--border-accent);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em;
}
.cta-badge { padding: 0; margin: 2rem 0 0 -2px; }
.cta-badge img { height: 60px; width: auto; }

/* ---- teléfono ---- */
.phone {
  margin: 0; width: min(100%, 300px); aspect-ratio: 402 / 874;
  padding: 10px; border-radius: 48px;
  background: var(--bg-deep); border: 1px solid var(--border-elevated);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--glow);
  position: relative;
}
.phone-screen { overflow: hidden; border-radius: 38px; background: var(--bg); height: 100%; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---- portada ---- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 3.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; justify-items: center; }
.hero-copy { width: 100%; max-width: var(--measure); }
.hero .phone { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---- secciones ---- */
section { padding: 2.5rem 0; }
.how, .features, .privacy, .closing { padding-top: 1.5rem; }

.steps { display: grid; gap: 3rem; counter-reset: step; }
.step { display: grid; gap: 1.5rem; align-items: center; justify-items: center; }
.step-text { width: 100%; max-width: var(--measure); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; margin-bottom: 0.9rem;
  border: 1px solid var(--border-accent); color: var(--accent-light);
  font-size: 0.85rem; font-weight: 500;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); }
.step .phone { width: min(100%, 260px); }

.features-grid { display: grid; gap: 2.5rem; align-items: center; justify-items: center; }
.feature-list { display: grid; gap: 10px; width: 100%; }
.feature-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.1rem 1.15rem;
}
.feature-list h3 { margin-bottom: 0.3rem; }
.feature-list p { font-size: 0.925rem; color: var(--text-tertiary); line-height: 1.55; }
.features .phone { width: min(100%, 260px); }

.privacy-points { display: grid; gap: 0.9rem; max-width: var(--measure); margin-bottom: 1.5rem; }
.privacy-points li { position: relative; padding-left: 1.4rem; color: var(--text-secondary); }
.privacy-points li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 12px rgba(145, 132, 217, 0.6);
}

.closing { text-align: center; padding-bottom: 4rem; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing .lede { margin-top: 0.25rem; }

/* ---- pie ---- */
.footer { padding: 1rem 0 3rem; color: var(--text-faint); font-size: 0.8125rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.footer-nav a { color: var(--text-muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--text); }
.footer-nav [data-lang-switch] { margin-left: auto; color: var(--accent-light); }
.footer-publisher { color: var(--text-tertiary); }
.footer-disclaimer { margin-top: 0.5rem; max-width: 48rem; }

/* ---- documentos (legales, soporte, 404) ---- */
.document main { padding: 2.5rem 0 3rem; }
.back { margin-bottom: 2rem; font-size: 0.9rem; }
.back a { color: var(--text-muted); }
.prose { max-width: var(--measure); }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: var(--text-secondary); font-size: 0.975rem; line-height: 1.65; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; display: grid; gap: 0.4rem; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2rem 0; }
.prose strong { color: var(--text); font-weight: 500; }
.support-email { margin: 1.25rem 0 0.5rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.support-email .label { color: var(--text-tertiary); margin-right: 0.5rem; }
.support-email.pending { color: var(--text-tertiary); }
.faq-item h2 { margin-top: 2rem; }
.notfound main { min-height: 60vh; }

/* ---- animación ---- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone { animation: none; }
}

/* ---- pantallas anchas ---- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; justify-items: start; }
  .hero .phone { justify-self: end; width: 320px; }
  .steps, .features-grid, .privacy-points, .privacy .link { max-width: 56rem; margin-left: auto; margin-right: auto; }
  .how h2, .features h2, .privacy h2, .privacy p { max-width: 56rem; margin-left: auto; margin-right: auto; }
  .step { grid-template-columns: minmax(0, 1fr) 260px; gap: 4rem; justify-items: start; }
  .step:nth-child(even) { grid-template-columns: 260px 1fr; }
  .step:nth-child(even) .step-text { order: 2; }
  .features-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 4rem; align-items: start; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 0; }
}
