/* Kordo · landing. Usa los tokens de app.css (colores, tipografías).
   Tema oscuro fijo: es la marca (luz de escenario sobre fondo oscuro).
   Radios: botones píldora, tarjetas 20px, campos 12px. */

body.landing { overflow-x: hidden; }
.landing main { display: block; }
.landing h1, .landing h2, .landing h3 { letter-spacing: -0.025em; color: var(--text); margin: 0; }
.landing h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; font-weight: 800; }
.landing h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.landing p { line-height: 1.6; }
.landing section { padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }

.btn.big { padding: 15px 26px; font-size: 17px; }
.btn.ghost-line { background: transparent; border-color: #4a433b; color: var(--text); }
.btn.ghost-line:hover { border-color: var(--text); background: rgba(255,255,255,.03); }
.btn { transition: background .2s, border-color .2s, transform .15s cubic-bezier(.16,1,.3,1); }
.btn:active { transform: translateY(1px) scale(.98); }

/* ------------------------------------------------------------ luz de escenario (fondo) */
body.landing::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 8%, rgba(255, 179, 71, .13), transparent 70%),
    radial-gradient(45% 40% at 5% 65%, rgba(122, 211, 200, .06), transparent 70%),
    var(--bg);
}

/* ------------------------------------------------------------ navegación */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(18, 17, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; margin-right: auto; }
/* logo oficial: la palabra "kordo", minúsculas, 800, naranja (marca/IDENTIDAD.md) */
.wordmark { font-family: var(--ui); font-weight: 800; letter-spacing: -0.003em; color: var(--accent) !important; font-size: 28px; line-height: 1; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; }

/* ------------------------------------------------------------ portada */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px);
  align-items: center; min-height: calc(100dvh - 68px); padding-top: clamp(32px, 6vw, 80px) !important;
}
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.04; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 30ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* la demo: el modo tocar en miniatura */
.demo {
  background: linear-gradient(180deg, #1c1a17, #151412); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-head b { display: block; font-size: 15px; }
.demo-head span { color: var(--dim); font-size: 13px; }
.demo-live { display: flex; align-items: center; gap: 7px; color: var(--muted) !important; font-weight: 600; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 132px; }
.demo-stage {
  height: 330px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
}
.demo-sheet { padding: 110px 18px 140px; font-family: var(--mono); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.dl { padding: 7px 10px; border-radius: 10px; transition: background .4s, opacity .4s; }
.dl .dc { color: var(--chord); font-weight: 700; font-size: 13px; white-space: pre; transition: color .3s; }
.dl .dy { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl.past { opacity: .38; }
.dl.now { background: var(--accent-soft); }
.dl.now .dy { color: var(--text); background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--text) var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl .dc b.on { color: var(--accent); }
.demo-panel { border-left: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; justify-items: center; gap: 4px; }
.dp-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; gap: 6px; }
.dp-label em { font-style: normal; font-family: var(--mono); letter-spacing: 0; text-transform: none; color: var(--accent); }
.dp-now { font-family: var(--mono); font-size: 40px; color: var(--chord); line-height: 1.1; }
.dp-next { font-family: var(--mono); font-size: 24px; color: var(--text); }
.dp-diagram { margin-bottom: 14px; }
.dp-diagram .diagram { width: 84px; height: 100px; }
.dp-bar { width: 100%; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.dp-bar div { height: 100%; width: 0; background: var(--accent); }
.dp-now.pop { animation: pop .3s cubic-bezier(.16,1,.3,1); }
@keyframes pop { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ cómo funciona */
.how h2 { max-width: 16ch; margin-bottom: 48px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; }
.how-step { position: relative; padding: 28px 24px 26px; border-top: 1px solid var(--line); }
.how-n { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 15px; display: block; margin-bottom: 18px; }
.how-step p { color: var(--muted); margin: 10px 0 0; max-width: 34ch; }
.how-input {
  margin-top: 22px; display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: var(--text); min-height: 46px;
}
.caret { width: 2px; height: 18px; background: var(--accent); animation: live 1s steps(1) infinite; }

/* ------------------------------------------------------------ lo que hace (bento 4) */
.features h2 { max-width: 18ch; margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.cell { border-radius: 20px; padding: 28px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; }
.cell p { color: var(--muted); margin: 10px 0 0; max-width: 36ch; }
.cell-next { grid-row: span 2; background: linear-gradient(160deg, #2a2014 0%, #1b1916 55%); border-color: #4a3a22; }
.cell-tone { background: linear-gradient(140deg, #16211f 0%, var(--surface) 70%); border-color: #26403c; }
.cell-ear { background: var(--surface-2); }
.cell-phone { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.cell-phone p { margin: 0; }
.countdown { margin-top: auto; padding-top: 40px; display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 18px; font-family: var(--mono); }
.countdown b { font-size: clamp(54px, 7vw, 92px); color: var(--chord); line-height: 1; }
.countdown .cd-to { color: var(--text); }
.cd-arrow { color: var(--dim); font-size: 32px; }
.cd-track { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; width: min(100%, 360px); }
.cd-track div { height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: fill 3s linear infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chips { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.chips span { font-family: var(--mono); font-weight: 700; color: var(--chord); background: rgba(122,211,200,.08); border: 1px solid #2b4b46; border-radius: 12px; padding: 10px 14px; min-width: 56px; text-align: center; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s; }
.chips.flip span { transform: translateY(-6px); opacity: .2; }
.tone-label { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 10px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: auto; padding-top: 24px; max-width: 300px; }
.bars i { flex: 1; background: var(--chord); opacity: .75; border-radius: 3px; height: 30%; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.bars i:nth-child(3n) { animation-duration: .8s; background: var(--accent); }
.bars i:nth-child(4n+1) { animation-duration: 1.4s; }
.bars i:nth-child(2n) { animation-delay: -.4s; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 92%; } }

/* ------------------------------------------------------------ historia */
.story { max-width: 920px !important; }
.story h2 { font-size: clamp(34px, 5.4vw, 64px); }
.story-body { margin-top: 34px; display: grid; gap: 16px; max-width: 62ch; }
.story-body p { color: var(--muted); font-size: 18px; margin: 0; }
.story-body strong { color: var(--text); }
.story-sign { color: var(--accent) !important; font-weight: 700; font-size: 16px !important; margin-top: 8px !important; }

/* ------------------------------------------------------------ cuenta */
.account { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.account-copy p { color: var(--muted); font-size: 18px; max-width: 42ch; margin: 18px 0 0; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.google-slot { display: flex; justify-content: center; }
.google-slot:empty { display: none; }
.google-btn { justify-content: center; background: var(--text); color: #151412; border-color: var(--text); font-size: 16px; padding: 13px 18px; }
.google-btn:hover { background: #fff; }
.google-btn svg { width: 20px; height: 20px; }
.google-btn:disabled { opacity: .45; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-form, .fb-form { display: grid; gap: 8px; }
.landing label { color: var(--muted); font-size: 14px; font-weight: 600; }
.landing input[type=email], .landing input[type=text], .landing textarea { border-radius: 12px; font-family: var(--ui); font-size: 16px; background: var(--bg); }
.landing textarea { min-height: 130px; resize: vertical; }
.landing input::placeholder, .landing textarea::placeholder { color: #8a8175; }
.email-form .btn, .fb-form .btn { justify-content: center; margin-top: 6px; }
.help { color: var(--dim); font-size: 13px; margin: 0; }
.form-status { font-size: 14px; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.legal-note { color: var(--dim); font-size: 13px; margin: 0; }
.legal-note a { color: var(--muted); }
.in-app-warn { margin: 0; background: var(--accent-soft); border: 1px solid #5a4424; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text); line-height: 1.5; }

/* ------------------------------------------------------------ comentarios */
.feedback-in { max-width: 640px; margin: 0 auto; background: linear-gradient(180deg, #1c1a17, var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.feedback-sub { color: var(--muted); font-size: 17px; margin: 14px 0 24px; }
.fb-kinds { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.fb-kinds legend { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.fb-kinds label { cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.fb-kinds input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt { color: var(--dim); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ preguntas */
.faq h2 { margin-bottom: 32px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.faq a { color: var(--accent); }

/* ------------------------------------------------------------ cierre y pie */
.closing { text-align: center; display: grid; justify-items: center; gap: 26px; padding-bottom: 80px !important; }
.closing h2 { font-size: clamp(44px, 8vw, 104px); }
.foot { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 30px 20px 44px; color: var(--dim); font-size: 14px; border-top: 1px solid rgba(255,255,255,.05); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ------------------------------------------------------------ aparecer al hacer scroll */
/* solo se esconde si el JS está listo para mostrarlo (si algo falla, se ve todo) */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.how-step.reveal:nth-child(2) { transition-delay: .08s; }
.how-step.reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo-live i, .caret, .cd-track div, .bars i { animation: none; }
  .demo-sheet { transition: none; }
}

/* ------------------------------------------------------------ celular */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px !important; }
  .hero-sub { max-width: none; }
  .nav-links { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-next { grid-row: auto; }
  .cell-phone { flex-direction: column; }
  .account { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* el panel del acorde pasa abajo, en una fila: la letra usa todo el ancho */
  .demo-body { grid-template-columns: 1fr; }
  .demo-stage { height: 230px; }
  .demo-sheet { padding: 80px 12px 110px; }
  .dl .dy { font-size: 14px; }
  .demo-panel {
    border-left: 0; border-top: 1px solid var(--line); padding: 10px 14px;
    grid-template-columns: auto auto 1fr auto auto; grid-template-rows: auto auto; align-items: center; justify-items: start; column-gap: 10px;
  }
  .demo-panel .dp-label:first-of-type { grid-column: 1; grid-row: 1; }
  .dp-now { grid-column: 1; grid-row: 2; font-size: 28px; }
  .dp-diagram { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .dp-diagram .diagram { width: 48px; height: 58px; }
  .demo-panel .dp-label:nth-of-type(2) { grid-column: 4; grid-row: 1; }
  .dp-next { grid-column: 4; grid-row: 2; font-size: 20px; }
  .dp-bar { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .nav { gap: 12px; }
  .nav-brand.wordmark { font-size: 25px; }
}
