/* Cuey site — "Chroma" system: colour bands (key green, ink, blue, sun), Archivo. */
:root {
  --ink: #0E1A12;
  --paper: #FFFFFF;
  --key: #00B140;
  --key-tint: #E6F7EC;
  --blue: #0B4BFF;
  --soft: #EEF2EE;
  --muted: #4F5C54;
  --line: #DCE3DE;
  --rec: #FF4433;
  --sun: #FFD23F;
  --radius: 22px;
  --wide: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #0838C2; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-weight: 850; font-stretch: 125%; font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { text-decoration: underline; }
.nav .pill { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; }
.nav .pill:hover { color: #fff; text-decoration: none; opacity: 0.9; }

/* Type */
h1, h2, h3 { line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.5px; }
h1 { font-weight: 850; font-stretch: 125%; font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-weight: 850; font-stretch: 118%; font-size: clamp(30px, 4vw, 44px); }
h3 { font-weight: 800; font-stretch: 110%; font-size: 22px; letter-spacing: -0.2px; }
p { margin: 0 0 1em; }
.lead { font-size: 21px; color: var(--muted); max-width: 34ch; }

/* Hero — chroma-key green */
.site-header { background: var(--key); }
.hero { background: var(--key); padding: 24px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 96px; align-self: center; }
.hero .lead { color: var(--ink); opacity: 0.82; }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 30px 0 14px; }
.link { color: var(--ink); font-weight: 700; }
.link:hover { color: var(--ink); }
.note { font-size: 15px; font-weight: 600; opacity: 0.75; }

.btn { height: 58px; padding: 0 26px; border: none; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn.key { background: var(--key); color: var(--ink); }
.btn.key:hover { color: var(--ink); }

.hero-art { display: flex; justify-content: center; }
.device { width: 330px; height: 640px; margin-bottom: -40px; background: var(--ink); border-radius: 52px 52px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(14,26,18,0.35); transform: rotate(-3deg); transform-origin: bottom center; }
.screen { position: relative; height: 100%; border-radius: 42px 42px 0 0; overflow: hidden; background: #1C211E; }
.screen img { position: absolute; left: 0; right: 0; top: 96px; width: 100%; height: calc(100% - 96px); object-fit: cover; object-position: 50% 0; }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #1C211E 0%, #1C211E 15%, rgba(28,33,30,0.5) 32%, rgba(28,33,30,0) 50%); }
.topbar { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #fff; }
.rec { display: inline-flex; gap: 6px; align-items: center; background: rgba(14,26,18,0.55); padding: 4px 10px; border-radius: 999px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(2) infinite; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.part { background: var(--key); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
@keyframes blink { 50% { opacity: 0.2; } }
.script { position: absolute; z-index: 2; top: 54px; left: 0; right: 0; height: 168px; overflow: hidden; margin: 0; padding: 0 18px; }
.script .lines { margin: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.script .w { display: inline-block; font-weight: 800; font-stretch: 112%; font-size: 23px; line-height: 1.3; color: rgba(255,255,255,0.55); padding: 0 3px; margin: 0 -3px; border-radius: 6px; transition: color .2s, background-color .2s; }
.script .w.said { color: #fff; }
.script .w.now { background: var(--key); color: var(--ink); }
.script { mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent); }
.wave { position: absolute; z-index: 2; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: center; height: 34px; padding: 0 14px; background: rgba(14,26,18,0.55); border-radius: 999px; }
.wave i { width: 4px; height: 22px; border-radius: 2px; background: var(--key); animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; }
.wave i:nth-child(4) { animation-delay: .1s; } .wave i:nth-child(5) { animation-delay: .25s; }
.wave i:nth-child(6) { animation-delay: .05s; } .wave i:nth-child(7) { animation-delay: .2s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* Sections */
section { padding: 88px 0; }
.band-soft { background: var(--soft); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue .lead { color: #DCE5FF; }
.band-sun { background: var(--sun); }
.band-sun .lead { color: var(--ink); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .lead { color: #B9C4BD; }

/* Creators — dark band with a moving strip of photos */
.creators { background: var(--ink); color: #fff; overflow: hidden; }
.creators .lead { color: #B9C4BD; max-width: 46ch; }
.marquee { display: flex; width: max-content; margin-top: 44px; }
.marquee:hover .track { animation-play-state: paused; }
.track { list-style: none; margin: 0; padding: 0 18px 0 0; display: flex; gap: 18px; animation: slide 60s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
.creator { position: relative; width: 240px; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--c); flex: none; }
.creator:nth-child(even) { margin-top: 36px; }
.creator img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator span { position: absolute; left: 12px; right: 12px; top: 12px; background: var(--c); color: var(--ink); font-weight: 800; font-stretch: 110%; font-size: 16px; line-height: 1.2; padding: 8px 10px; border-radius: 10px; }
.creator:nth-child(4n+2) span { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .track, .rec i, .wave i { animation: none; }
  .marquee { width: auto; overflow-x: auto; }
  .marquee .track[aria-hidden] { display: none; }
}

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--soft); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--key); color: var(--ink); font-weight: 850; align-items: center; justify-content: center; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feature { border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,0.1); }
.feature p { margin: 0; font-size: 17px; color: #DCE5FF; }
.feature.green { background: var(--key); color: var(--ink); }
.feature.green p { color: var(--ink); }
.feature.blue { background: #fff; color: var(--ink); }
.feature.blue p { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.plan { background: #fff; border-radius: var(--radius); padding: 28px; }
.plan.pick { background: var(--ink); color: #fff; }
.plan.pick ul { color: #B9C4BD; }
.plan .price { font-weight: 850; font-stretch: 118%; font-size: 34px; margin: 6px 0 10px; }
.plan ul { padding-left: 20px; margin: 0; color: var(--muted); font-size: 17px; }
.form-note { font-size: 15px; color: var(--muted); }
.band-sun .form-note { color: var(--ink); opacity: 0.75; }

.faq details { border-bottom: 2px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 20px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.guide { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 240px; padding: 24px; border-radius: var(--radius); background: var(--soft); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.guide:nth-child(5n+1) { background: var(--key-tint); }
.guide:nth-child(5n+3) { background: #E7EDFF; }
.guide:nth-child(5n+4) { background: #FFF4C7; }
.guide:hover { background: var(--key); color: var(--ink); }
.guide strong { font-weight: 800; font-stretch: 112%; font-size: 22px; line-height: 1.15; }
.guide span { color: var(--muted); font-size: 16px; }

.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta h2 { max-width: 18ch; margin-inline: auto; }

/* Articles & legal */
.article { padding: 24px 0 72px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(36px, 5vw, 54px); font-stretch: 118%; }
.article h2 { font-size: 30px; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { max-width: 68ch; }
.article .meta { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.article blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--key-tint); border-radius: 16px; }
.article blockquote p:last-child { margin: 0; }
.article table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 16px; }
.article .table-scroll { overflow-x: auto; }
.article th, .article td { border-bottom: 2px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.article th { font-weight: 800; }
.article .end-cta { margin-top: 48px; background: var(--key); border-radius: var(--radius); padding: 32px; }
.article .end-cta p { max-width: 50ch; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 2px solid var(--line); font-size: 16px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

@media (max-width: 600px) {
  .nav a:not(.pill) { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .device { width: 280px; height: 540px; margin-bottom: -40px; }
  .script .w { font-size: 20px; }
  .creator { width: 190px; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
