/* Backcode — landing. Misma paleta que la app (app/src/lib/theme.ts): terracota, crema cálido y carbón. */
:root {
  --bg: #F5F2EA;
  --card: #FFFFFF;
  --text: #1F1E1D;
  --muted: #73706A;
  --border: #E6E1D6;
  --primary: #C96442;
  --primary-text: #FFFFFF;
  --primary-soft: #F7E6DE;
  --code: #EFEBE1;
  --success: #248A3D;
  --success-bg: #E8F7EC;
  --warning-bg: #FFF4E5;
  --warning-text: #8A4B00;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --s-backlog: #8E8E93;
  --s-execute: #0A84FF;
  --s-running: #BF5AF2;
  --s-waiting: #FF9500;
  --s-done: #30A46C;
  --s-merged: #5E5CE6;
  --s-deployed: #0E9F9A;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1E1D;
    --card: #2A2927;
    --text: #F5F2EA;
    --muted: #A39E93;
    --border: #3D3A36;
    --primary: #D97757;
    --primary-text: #1F1E1D;
    --primary-soft: #3D261D;
    --code: #353330;
    --success: #30D158;
    --success-bg: #0F2A17;
    --warning-bg: #3A2A12;
    --warning-text: #FFCC80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --s-backlog: #AEAEB2;
    --s-execute: #409CFF;
    --s-running: #DA8FFF;
    --s-waiting: #FFB340;
    --s-done: #4CC38A;
    --s-merged: #8E8CF5;
    --s-deployed: #3CC8C2;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--code); padding: .1em .35em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 18px; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--muted); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s ease, opacity .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .soon { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--code); border-radius: 999px; padding: 2px 7px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 20px; color: var(--muted); margin: 20px 0 28px; max-width: 560px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Flujo del hero: móvil → ordenador → PR */
.flow { display: grid; gap: 14px; }
.flow-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; }
.flow-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.flow-label svg { width: 16px; height: 16px; color: var(--primary); }
.flow-arrow { display: flex; justify-content: center; color: var(--muted); font-size: 13px; gap: 8px; align-items: center; }
.flow-arrow::before, .flow-arrow::after { content: ""; height: 1px; width: 40px; background: var(--border); }
.bubble { background: var(--primary); color: var(--primary-text); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 15px; max-width: 92%; margin-left: auto; width: fit-content; }
.voice { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 8px; justify-content: flex-end; }
.wave { display: flex; gap: 2px; align-items: center; height: 14px; }
.wave i { width: 3px; background: var(--primary); border-radius: 2px; opacity: .6; }
.term { background: #1F1E1D; color: #E9E5DC; border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow: hidden; }
.term .ok { color: #4CC38A; } .term .dim { color: #8B867D; } .term .acc { color: #D97757; }
.pr { display: flex; align-items: center; gap: 12px; }
.pr-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.pr-icon svg { width: 18px; height: 18px; }
.pr strong { display: block; font-size: 15px; }
.pr span { font-size: 13px; color: var(--muted); }

/* Badges de estado (como status-badge.tsx) */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* En 30 segundos */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio .card { padding: 26px; }
.trio .num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.trio h3 { font-size: 20px; margin-bottom: 8px; }
.trio p { color: var(--muted); }
.trio .who { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.trio .who svg { width: 16px; height: 16px; color: var(--primary); }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.alt { background: var(--card); border-block: 1px solid var(--border); }
.alt .card { background: var(--bg); box-shadow: none; }

/* Pasos (como how-it-works.tsx) */
.steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .steps-layout { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps .rail { display: flex; flex-direction: column; align-items: center; }
.steps .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.steps .dot svg { width: 20px; height: 20px; }
.steps .line { width: 2px; flex: 1; min-height: 18px; background: var(--border); }
.steps li:last-child .line { display: none; }
.steps .body { padding: 8px 0 26px; }
.steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.steps p { color: var(--muted); }
.board { position: sticky; top: 88px; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.board-head strong { font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { background: var(--bg); border-radius: 12px; padding: 10px; min-height: 220px; }
.alt .col { background: var(--code); }
.col h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; justify-content: space-between; }
.task { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 13px; line-height: 1.35; }
.task .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.avatar { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.board .caption { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .cols { grid-template-columns: 1fr; } .col { min-height: 0; } }

/* Ejemplo de una tarea */
.example { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .example { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .example { grid-template-columns: 1fr; } }
.ex { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ex-step { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.ex h3 { font-size: 16px; }
.ex ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.ex ul li { margin: 3px 0; }
.ex .q { background: var(--warning-bg); color: var(--warning-text); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ex .a { background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; align-self: flex-end; }
.ex .diff { font-family: var(--mono); font-size: 12px; background: var(--code); border-radius: 10px; padding: 10px 12px; line-height: 1.6; }
.diff .add { color: var(--success); } .diff .del { color: #D70015; }
.ex-time { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Rejilla de características */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.feat { padding: 22px; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15px; }

/* Comparativa */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
th.us, td.us { background: var(--primary-soft); }
th.us { color: var(--primary); }
td:first-child { font-weight: 600; }

/* Seguridad */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--success); margin-top: 1px; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 15px; }
.sandbox { padding: 22px; }
.sandbox .box { border: 2px dashed var(--border); border-radius: 12px; padding: 16px; margin-top: 12px; }
.sandbox .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.sandbox .row:last-child { border-bottom: 0; }
.yes { color: var(--success); font-weight: 600; } .no { color: #D70015; font-weight: 600; }
@media (prefers-color-scheme: dark) { .no, .diff .del { color: #FF6961; } }

/* Requisitos */
.need { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .need { grid-template-columns: 1fr; } }
.need .card { padding: 26px; }
.need h3 { font-size: 20px; margin: 6px 0 12px; }
.need ul { margin: 0; padding-left: 20px; color: var(--muted); }
.need li { margin: 6px 0; }
.need li strong { color: var(--text); }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); }
.plan .tag { align-self: flex-start; background: var(--primary-soft); color: var(--primary); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; margin-bottom: 12px; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 20px; color: var(--muted); font-size: 14px; max-width: 880px; }

.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { text-wrap: balance; }
/* El bloque para pegar en Claude Code: como su terminal, con el prompt solo visual (no se copia). */
.prompt { position: relative; background: #1F1E1D; border-radius: 12px; padding: 14px 48px 14px 16px; }
.prompt code { display: block; background: none; padding: 0; color: #E9E5DC; font-size: 12.5px; line-height: 1.8; white-space: normal; }
/* Una línea por comando; si no cabe (en el móvil), sigue debajo con sangría. Lo que se copia es el texto, con sus saltos. */
.prompt code span { display: block; padding-left: 1.1em; text-indent: -1.1em; overflow-wrap: anywhere; }
.prompt code span::before { content: "›"; display: inline-block; width: 1.1em; text-indent: 0; color: #D97757; }
.prompt .copy { position: absolute; top: 8px; right: 8px; color: #A39E93; }
.prompt .copy:hover { background: #353330; color: #F5F2EA; }
.prompt .copy.done { color: #4CC38A; background: #0F2A17; }
@media (prefers-color-scheme: dark) { .prompt { box-shadow: inset 0 0 0 1px var(--border); } }
.cmd { display: flex; align-items: center; gap: 8px; background: var(--code); border: 1px solid var(--border); border-radius: 10px; padding: 4px 4px 4px 12px; }
.cmd code { flex: 1; font-size: 12px; background: none; padding: 0; overflow-x: auto; white-space: nowrap; }
.copy { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; }
.copy:hover { background: var(--border); color: var(--text); }
.copy svg { width: 16px; height: 16px; }
.copy.done { color: var(--success); background: var(--success-bg); }
.mobile-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 36px; color: var(--muted); font-size: 15px; }
.mobile-app > span { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.mobile-app > span svg { width: 18px; height: 18px; color: var(--primary); }

/* Empieza aquí: tres pasos a la vista */
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: .85fr 1.3fr 1.1fr; gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .quick { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; } }
.alt .qs { background: var(--card); box-shadow: var(--shadow); }
.qs { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.qs > p { color: var(--muted); font-size: 15px; }
.qs > p strong { color: var(--text); font-weight: 600; }
.qs-head { display: flex; gap: 14px; align-items: center; }
.qs-n { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--primary-text); display: grid; place-items: center; font-weight: 800; flex: none; }
.qs-head h3 { font-size: 19px; }
.qs-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.qs-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.qs .cmd code { font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; padding-block: 6px; }
.qs-or { font-size: 14px !important; margin-top: auto; }
.lane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lane i { width: 14px; height: 2px; background: var(--border); border-radius: 2px; }
.lane .badge { animation: lane 6s infinite; opacity: .35; }
.lane .badge:nth-of-type(2) { animation-delay: 1.5s; }
.lane .badge:nth-of-type(3) { animation-delay: 3s; }
.lane .badge:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes lane { 0%, 30% { opacity: 1; } 40%, 100% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lane .badge { animation: none; opacity: 1; } }
.qs-alt { border-top: 1px solid var(--border); padding-top: 12px; font-size: 14px; }
.qs-alt summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.qs-alt summary:hover { color: var(--text); }
.qs-alt-body { display: grid; gap: 10px; margin-top: 12px; }
.qs-alt-body .btn { justify-self: start; }
.qs-alt-body p { color: var(--muted); font-size: 13px; }
.quick-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 15px; text-align: center; }
.quick-note svg { width: 18px; height: 18px; color: var(--primary); }

/* Funciones agrupadas */
.feat-group { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 32px 0 14px; }
.feat-group:first-of-type { margin-top: 0; }
.task .sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Cierre */
.final { text-align: center; }
.final .card { padding: 56px 24px; background: var(--primary-soft); border: 0; box-shadow: none; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.final .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* Páginas de texto (privacidad, soporte) */
.doc { max-width: 760px; padding: 56px 20px 88px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Que ningún hijo de grid (comando largo, terminal, tabla) ensanche la página en el móvil */
.hero .wrap > *, .trio > *, .steps-layout > *, .example > *, .grid3 > *, .split > *, .need > *, .plans > *, .quick > *, .flow > * { min-width: 0; }
.term { overflow-x: auto; white-space: nowrap; }
@media (max-width: 520px) { .hero .lead { font-size: 18px; } .pr { flex-wrap: wrap; } }
.feat h3 .pill { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; margin-left: 4px; letter-spacing: 0; }
