/* N8IV Digital — public landing page */
.l-head{position:sticky;top:0;z-index:30;background:rgba(12,24,56,.96);backdrop-filter:blur(8px);color:var(--cream);border-bottom:1px solid var(--on-navy-line)}
.l-head-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.l-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--f-display);font-size:1.2rem;letter-spacing:.02em}
.l-brand img{border-radius:50%}
.l-brand span{font-weight:700;color:var(--on-navy-muted)}.l-brand b{color:var(--cream)}
.l-nav{display:flex;gap:26px}
.l-nav a{text-decoration:none;font-weight:500;color:var(--on-navy-muted)}
.l-nav a:hover{color:var(--cream)}
@media (max-width:780px){.l-nav{display:none}}

.hero{background:var(--navy-deep);color:var(--cream);padding:clamp(48px,4vw + 24px,112px) 0 clamp(56px,5vw + 24px,128px);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--on-navy-line) 1px,transparent 1px),linear-gradient(90deg,var(--on-navy-line) 1px,transparent 1px);background-size:64px 64px;opacity:.25;mask-image:linear-gradient(to bottom,#000,transparent 85%);pointer-events:none}
.hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(32px,4vw,72px);align-items:center}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}}
.hero-copy{display:flex;flex-direction:column;gap:24px}
.hero-t{font-size:clamp(3rem,1.5rem + 5.6vw,6.4rem)}
.hero-t span{color:var(--pink)}
.status{display:flex;align-items:center;gap:10px;font-size:.88rem;color:var(--on-navy-muted)}
.status .dot{width:8px;height:8px;border-radius:50%;background:#E9C46A;box-shadow:0 0 0 4px rgba(233,196,106,.2)}

.decoder{background:var(--cream);color:var(--ink);border-radius:var(--r-m);padding:26px;display:flex;flex-direction:column;gap:14px;box-shadow:0 30px 60px -30px rgba(0,0,0,.6);transform:rotate(-1deg)}
.decoder blockquote{font-family:var(--f-serif);font-style:italic;font-size:clamp(1.8rem,1.4rem + 1.4vw,2.5rem);line-height:1.1}
.dec-ctx{color:var(--muted)}
.dec-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}
.dec-tabs button{border:0;background:none;padding:10px 4px;margin-right:12px;font-weight:600;font-size:.9rem;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px}
.dec-tabs button[aria-selected="true"]{color:var(--brick);border-bottom-color:var(--brick)}
.dec-panel{min-height:72px;display:flex;flex-direction:column;gap:6px;animation:in .3s var(--ease)}

.sec{padding:clamp(64px,4rem + 4vw,140px) 0}
.sec .wrap{display:flex;flex-direction:column;gap:20px}
.sec.sand{background:var(--sand)}
.sec.navy{background:var(--navy);color:var(--cream)}
.sec-t{font-size:clamp(2.4rem,1.5rem + 3.6vw,4.6rem)}
.split{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4vw,80px)!important;align-items:start}
.split>div:first-child{display:flex;flex-direction:column;gap:18px}
.two{display:grid!important;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,72px)!important}
.two article{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
@media (max-width:820px){.split,.two{grid-template-columns:1fr}}

.demo-sec{background:var(--cream)}
.demo-grid{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,4vw,64px)!important;align-items:start}
@media (max-width:900px){.demo-grid{grid-template-columns:1fr}}
.demo-intro{display:flex;flex-direction:column;gap:18px;position:sticky;top:96px}
@media (max-width:900px){.demo-intro{position:static}}
.demo-facts{padding-left:1.1em;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.95rem}
.demo-stage{background:var(--sand);border-radius:var(--r-m);padding:clamp(14px,2vw,24px);min-height:520px}
.demo-stage .m-act{background:linear-gradient(to bottom,transparent,var(--sand) 18px)}
.demo-cover{min-height:470px;display:flex;flex-direction:column;justify-content:flex-end;gap:18px;padding:28px;border-radius:var(--r-s);background:var(--navy);color:var(--cream);background-image:radial-gradient(circle at 80% 20%,rgba(232,180,182,.25),transparent 45%),radial-gradient(circle at 15% 85%,rgba(155,34,38,.4),transparent 50%)}
.demo-cover .label{color:var(--pink)}
.demo-cover-t{font-family:var(--f-serif);font-style:italic;font-size:clamp(1.8rem,1.4rem + 1.6vw,2.8rem);line-height:1.1}
.demo-cover .btn{align-self:flex-start}

.stages7{list-style:none;padding:0;display:grid;grid-template-columns:repeat(7,1fr);border-top:2px solid var(--navy);margin-top:12px}
.stages7 li{padding:18px 14px 0 0;display:flex;flex-direction:column;gap:6px}
.stages7 li+li{padding-left:14px;border-left:1px solid var(--line)}
.stages7 span{font-family:var(--f-display);font-weight:700;color:var(--brick);font-size:.85rem;letter-spacing:.1em}
.stages7 b{font-family:var(--f-display);font-size:1.25rem}
.stages7 p{font-size:.9rem;color:var(--muted)}
@media (max-width:1000px){.stages7{grid-template-columns:repeat(2,1fr)}.stages7 li{border-left:0!important;padding:16px 12px 16px 0!important;border-bottom:1px solid var(--line)}}

.divs{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:2px solid var(--navy);margin-top:12px}
.divs article{padding:22px 22px 8px 0;display:flex;flex-direction:column;gap:10px}
.divs article+article{padding-left:22px;border-left:1px solid var(--line-strong)}
@media (max-width:820px){.divs{grid-template-columns:1fr}.divs article+article{padding-left:0;border-left:0;border-top:1px solid var(--line-strong)}}
.state{align-self:flex-start;font-family:var(--f-display);font-weight:700;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;padding:3px 8px;border-radius:4px;border:1px solid var(--line-strong);color:var(--muted)}
.state.live{background:var(--navy);border-color:var(--navy);color:var(--cream)}

.lib-sample{list-style:none;padding:0;border-top:1px solid var(--line)}
.lib-sample li{padding:18px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.lib-sample .l-en{font-size:1.5rem}
.lib-sample .mis{font-size:.88rem;color:var(--brick)}

.feature-status{display:flex;flex-direction:column;gap:12px;border:1px solid var(--on-navy-line);border-radius:var(--r-m);padding:24px}
.feature-status.light{border-color:var(--line-strong)}
.feature-status h3{font-family:var(--f-display);font-size:.85rem;letter-spacing:.14em;text-transform:uppercase}
.feature-status ul{padding-left:1.1em;display:flex;flex-direction:column;gap:4px}
.on-navy .feature-status ul{color:var(--on-navy-muted)}

.faq{max-width:860px}
.faq details{border-bottom:1px solid var(--line-strong);padding:16px 0}
.faq summary{cursor:pointer;font-weight:600;font-size:1.1rem;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::after{content:"+";font-family:var(--f-display);font-size:1.4rem;line-height:1;color:var(--brick)}
.faq details[open] summary::after{content:"–"}
.faq details p{margin-top:8px;color:var(--muted);max-width:65ch}
.final .wrap{align-items:flex-start}

.l-foot{background:var(--navy-deep);color:var(--on-navy-muted);padding:28px 0;font-size:.9rem}
.l-foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.l-foot nav{display:flex;flex-wrap:wrap;gap:18px}
.l-foot a{color:var(--cream)}

/* ==== CLIENT HAND-OFF BLOCK (13 Nov 2026): rules that js/landing.js used to inject at runtime ====
   Moved here unchanged in effect, so the page is right before any script runs. Kept as one block at
   the end of the file; each group can later be merged into the matching rules above. */

/* -- Account button, sign-in dialog, waitlist form (was <style id="n8-account-css">) -- */
.n8-acc-btn{background:transparent;color:inherit;border-color:currentColor}
.n8-acc-btn:hover{background:rgba(255,253,245,.12)}
.n8-dialog{overscroll-behavior:contain;border:0;border-radius:var(--r-m);padding:0;max-width:min(440px,calc(100vw - 32px));width:100%;background:var(--cream);color:var(--ink);box-shadow:0 24px 60px rgba(12,24,56,.35)}
.n8-ts:empty{display:none}.n8-ts{min-height:0}
.n8-dialog::backdrop{background:rgba(12,24,56,.55)}
.n8-dialog .n8-in{padding:28px 28px 24px;display:grid;gap:14px}
.n8-dialog h2{font-family:var(--f-display);font-size:1.6rem;line-height:1.1;margin:0}
.n8-x{position:absolute;top:6px;right:8px;width:44px;height:44px;border:0;background:transparent;font-size:1.4rem;line-height:1;cursor:pointer;color:var(--muted)} /* was 36px at top:10px right:12px */
.n8-field{display:grid;gap:6px;font-weight:600;font-size:.95rem}
.n8-field input[type=email],.n8-field input[type=password],.n8-field input[type=text]{height:48px;padding:0 14px;border:1.5px solid var(--line-strong);border-radius:var(--r-s);background:#fff;font-size:1rem;font-weight:400}
.n8-field input:focus-visible{outline:2px solid var(--brick);outline-offset:1px}
.n8-check{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;line-height:1.4}
.n8-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--brick);flex:none}
.n8-msg{margin:0;font-size:.92rem;min-height:1.2em}
.n8-msg.err{color:var(--brick)}
.n8-msg.ok{color:var(--green)}
.n8-note{margin:0;font-size:.85rem;color:var(--muted)}
.n8-wl{display:grid;gap:14px;max-width:520px;margin-top:8px}
.n8-wl .row{margin:0}

/* -- Header on one line (was the "Ajustes visuales móvil" style block) -- */
.l-head-row{flex-wrap:nowrap;gap:8px}
.l-head-row .btn{white-space:nowrap;flex:none;line-height:1.1;text-align:center}
.l-head-row a:not(.btn){min-width:0;line-height:1.05}
@media (max-width:640px){
  .l-head-row{gap:6px}
  .l-head-row .btn{padding:0 14px;min-height:44px;font-size:.88rem;border-width:1.5px} /* was min-height:40px */
  .l-head-row .n8-acc-btn{padding:0 12px}
  .l-head-row a:not(.btn){font-size:.95rem}
  .l-head-row a:not(.btn) img{width:40px;height:40px}
}

/* -- Demo cover card: plain navy card that the sand box hugs. The script used to find the card by
      looking for a gradient background and then restyled it and its two parents (.demo-host,
      .demo-stage) with !important rules; these are the same results as ordinary rules. -- */
.demo-stage,.demo-host{display:flex;flex-direction:column;min-height:0}
.demo-stage>#demo-host:not(:has(*)){display:none}
.demo-cover{flex:1 1 auto;justify-content:center;align-items:flex-start;gap:14px;min-height:0;padding:28px 24px;background:#0C1838;border:1px solid rgba(255,255,255,.14)}
.demo-cover .label{color:#F0D9B5;font-size:.8rem;letter-spacing:.12em}
.demo-cover #demo-start{align-self:stretch;justify-content:center;text-align:center;min-height:52px;font-size:1.05rem}

/* -- New: waitlist form at the end of the demo (mounted by landing.js inside the mission) -- */
.n8-wl-demo{max-width:none;margin-top:0;padding:16px 18px;border:1px solid var(--line-strong);border-radius:var(--r-m);background:#fff}

/* -- New: tap targets of at least 44px on the landing page -- */
.dec-tabs button{min-height:44px}
.n8-check{min-height:44px}
.l-foot nav a{display:inline-flex;align-items:center;min-height:44px}
/* ==== end of CLIENT HAND-OFF BLOCK ==== */

/* The decoder card is cream inside a navy section: its label needs the dark-on-light colour. */
.on-navy .decoder .label{color: var(--brick)}
