/* ProtoHub — direction "The sentence is the layout" (taste-skill seed 35918229).
   One family (Archivo), three stone tones, the grey-green only on actions. */

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #5f5b57;
  --accent: #5c6b54;
  --accent-press: #4d5a46;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;
  --field-2: #b8ad9e;
  --field-3: #6f675f;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  /* The page title (h1) is the largest type on a page; section headings sit clearly below it. */
  --step-head: clamp(2.25rem, 1rem + 2.8vw, 3.5rem);
  --step-display: clamp(2.75rem, 1rem + 3.6vw, 4.25rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(16px, 1.6vw, 24px);
  --section-gap: clamp(120px, 14vw, 220px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
  --stagger: 80ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-body);
  font-variation-settings: "wdth" 100;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--field-3) var(--surface); }
kbd { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Display voice: Archivo at its narrowest, heaviest, in capitals. */
.display {
  font-weight: 800;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.86;
}
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.measure { max-width: 62ch; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.4em;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 "Archivo", sans-serif;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 40px; padding: 0 1em; font-size: var(--step-small); }
.button--light { background: var(--bg); color: var(--ink); }
.button svg { width: 1.05em; height: 1.05em; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-press); }
  .button--light:hover { background: #ffffff; }
}

/* ---------- navigation ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gutter);
  padding: 22px var(--margin);
  font-size: var(--step-small);
}
.wordmark {
  font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62;
  text-transform: uppercase; font-size: 26px; letter-spacing: 0; line-height: 1; text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__links a:not(.button) { text-decoration: none; }
.nav__links a:not(.button) { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:not(.button):hover { text-decoration-color: currentColor; }
}

/* ---------- hero: the sentence reads around the product, corner to corner ----------
   "Software de IA" opens top left, the product fills the middle, "listo para usar" closes bottom
   right; the supporting sentence and the reel's progress hold the other two corners. */
.hero { position: relative; height: 230svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero__stage .nav { position: relative; z-index: 3; }
.hero__body { position: relative; flex: 1; }
.hero__title { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-size: clamp(2.4rem, 4.8vw, 6.4rem); }
.hero__half { position: absolute; white-space: nowrap; }
.hero__half--a { left: var(--margin); top: clamp(8px, 2vh, 24px); }
.hero__half--b { right: var(--margin); bottom: 32px; text-align: right; }
/* The product window: frames change inside it as the page scrolls. */
.hero__reel { --w: min(54vw, calc((100svh - 340px) * 16 / 9)); position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 16 / 9; transform: translate(-50%, -52%); z-index: 1; overflow: hidden; border-radius: 6px; background: #1b1b1b; }
.hero__track { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; will-change: transform; transition: transform 700ms var(--ease-expo); }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1b1b1b; flex: none; }
.hero__track .frame { border-radius: 0; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.frame--contain img { object-fit: contain; background: #1f1f1f; }
.frame figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: var(--radius); background: rgba(20, 20, 20, 0.78); color: #f1efec; font-size: 13px; line-height: 1.3; }
.hero__lead { position: absolute; left: var(--margin); bottom: 32px; z-index: 2; width: min(19vw, 300px); font-size: var(--step-body); line-height: 1.45; }
.hero__lead .button { margin-top: 18px; white-space: nowrap; }
.hero__count { position: absolute; right: var(--margin); top: clamp(14px, 2.6vh, 30px); z-index: 2; width: min(22vw, 300px); font-size: var(--step-small); color: var(--muted); text-align: right; }
.hero__progress { display: flex; gap: 6px; margin-bottom: 12px; }
.hero__progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--field-1); transition: background-color 300ms ease; }
.hero__progress span.is-on { background: var(--ink); }

/* ---------- section rhythm ---------- */
.section { padding: var(--section-gap) var(--margin) 0; }
.section__head { font-size: var(--step-head); }

/* ---------- showcase: the headline is a hotkey you can press ---------- */
.keys { min-height: 88svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-content: start; }
.keys__heading { grid-column: 1 / -1; }
.keys__input {
  width: 100%; field-sizing: content; max-width: 100%; border: 0; background: transparent; color: var(--ink); padding: 0;
  font: 800 var(--step-display)/0.95 "Archivo", sans-serif; font-stretch: 62%; font-variation-settings: "wdth" 62;
  text-transform: uppercase; caret-color: transparent; cursor: text;
}
.keys__input:focus-visible { outline: none; }
.keys__line { position: relative; display: flex; align-items: center; gap: 0.06em; }
.keys__caret { width: 0.08em; height: 0.78em; background: var(--ink); font-size: var(--step-display); flex: none; }
.keys__hint { grid-column: 1 / -1; margin-top: 14px; }
.keys__answer { grid-column: 1 / 6; margin-top: 48px; }
.keys__picture { grid-column: 7 / -1; margin-top: 48px; align-self: start; }
.keys__picture img { width: 100%; border-radius: var(--radius); }
.keys__examples { grid-column: 1 / 6; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; }
.keys__examples button {
  border: 0; background: none; padding: 6px 0; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--field-3); text-underline-offset: 0.25em;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .keys__examples button:hover { text-decoration-color: var(--ink); } }

/* The answer is a real piece of Capturix: its notification, at true size. */
.toast { display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; max-width: 460px; padding: 16px 18px 18px; border-radius: 8px; background: #2b2b2b; color: #ececec; font-size: 15px; line-height: 1.45; }
.toast img { width: 32px; height: 32px; grid-row: span 3; }
.toast__app { font-size: 13px; color: #b9b9b9; }
.toast__title { font-weight: 600; font-size: 16px; color: #ffffff; }
.toast__body { white-space: pre-line; color: #dcdcdc; }
.keys__desc { margin-top: 20px; max-width: 46ch; }

/* ---------- how it was built: the progress bar is the diagram ---------- */
.build__head { font-size: var(--step-head); margin-bottom: 64px; }
.bar { display: flex; gap: 6px; height: 22vh; min-height: 150px; }
.bar__seg { flex-basis: 0; min-width: 12%; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.bar__dur { font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2.4rem); line-height: 0.95; }
.bar__seg:nth-child(1) { background: var(--field-1); }
.bar__seg:nth-child(2) { background: var(--field-2); }
.bar__seg:nth-child(3) { background: var(--field-3); color: #ffffff; }
.bar__seg:nth-child(4) { background: var(--ink); color: var(--bg); }
.bar__notes { display: flex; gap: 6px; margin-top: 18px; }
.bar__notes p { flex-basis: 0; min-width: 12%; padding-right: 12px; }
.build__sum { margin-top: 56px; font-size: var(--step-lead); max-width: 34ch; }

/* ---------- spec sheet: statement left, table pushed right ---------- */
.spec__head { font-size: var(--step-head); line-height: 0.98; }
.spec__head span { display: block; }
.spec__head span:first-child { padding-left: 3vw; }
.spec__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: 56px; align-items: end; }
.spec__photo { grid-column: 1 / 6; align-self: stretch; margin: 0; display: flex; flex-direction: column; }
.spec__photo div { flex: 1; min-height: 420px; display: flex; align-items: center; justify-content: center; background: var(--field-1); border-radius: var(--radius); padding: 32px; }
.spec__photo img { width: auto; max-width: 100%; border-radius: var(--radius); }
.spec__photo figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); max-width: 40ch; }
.spec__label { grid-column: 7 / 8; align-self: start; font-size: var(--step-small); color: var(--muted); padding-top: 4px; }
.spec__table { grid-column: 8 / -1; width: 100%; border-collapse: collapse; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.spec__table th, .spec__table td { padding: 0 0 26px; text-align: left; vertical-align: top; font-weight: 400; }
.spec__table th { color: var(--muted); width: 34%; padding-right: 16px; }
.spec__table td:last-child { text-align: right; }
.spec__table tr.group th, .spec__table tr.group td { padding-top: 18px; }
/* The installer's fingerprint is data: monospace keeps its 64 characters legible. */
.hash, .cmd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.82em; word-break: break-all; } /* taste-skill-ignore: literal hash and command to copy */
.cmd { display: inline-block; background: var(--surface); padding: 6px 10px; border-radius: var(--radius); }
.spec__table td.verify { text-align: left; }
.verify__actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: var(--step-small); }
.verify__note { display: block; margin-top: 8px; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-button.is-done { text-decoration: none; color: var(--accent); }
.close__dl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.close__hash { font-size: var(--step-small); color: rgba(238, 236, 234, 0.72); }
.close__hash a { color: var(--bg); }

/* ---------- capabilities as one sentence ---------- */

/* ---------- news ---------- */
.news__item { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: 72px; align-items: start; }
.news__date { grid-column: 1 / 5; font-size: var(--step-head); }
.news__body { grid-column: 5 / 10; }
.news__body h3 { font-size: var(--step-lead); line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.news__body p + p { margin-top: 12px; }
.news__body .button { margin-top: 26px; }
.news__pic { grid-column: 10 / -1; }
.news__pic img { width: 100%; border-radius: var(--radius); }

/* ---------- close: the idea again, inverted ---------- */
.close { margin-top: var(--section-gap); background: var(--ink); color: var(--bg); padding: clamp(88px, 12vh, 136px) var(--margin) 48px; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 7vh, 88px); }
.close__head { font-size: var(--step-display); line-height: 0.9; }
.close__foot { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); flex-wrap: wrap; }
.close__foot p { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.close .button { min-height: 56px; padding: 0 1.8em; }

/* ---------- footer: a quiet close under the inverted call to action ---------- */
.footer { background: var(--field-1); padding: 40px var(--margin) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.footer__top { display: flex; justify-content: space-between; gap: var(--gutter); font-size: var(--step-small); }
.footer__notes { display: flex; flex-wrap: wrap; gap: 8px 36px; max-width: 58%; }
.footer__contact { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem); text-decoration: none; display: inline-block; line-height: 0.95; }
.footer__contact:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }
.footer__meta { display: flex; justify-content: space-between; gap: var(--gutter); font-size: var(--step-small); margin-top: 28px; flex-wrap: wrap; }
.footer__meta nav { display: flex; gap: 20px; }

/* ---------- product page parts ---------- */
.dl { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.dl__statement { grid-column: 1 / 7; }
.dl__statement h2 { font-size: var(--step-head); }
.dl__statement p { margin-top: 24px; max-width: 52ch; }
.dl__statement .button { margin-top: 32px; }
.dl__table { grid-column: 8 / -1; margin-top: 12px; }
.feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.feature__text { grid-column: 1 / 6; }
.feature__text h2 { font-size: var(--step-head); margin-bottom: 22px; }
.feature__text p + p { margin-top: 12px; }
.feature__pic { grid-column: 7 / -1; }
.feature__pic img, .feature__pic video { width: 100%; border-radius: var(--radius); }
.feature--flip .feature__text { grid-column: 8 / -1; grid-row: 1; }
.feature--flip .feature__pic { grid-column: 1 / 7; grid-row: 1; }
.feature__pic--narrow { display: flex; justify-content: center; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); }
.feature__pic--narrow img { width: auto; max-width: 100%; }
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.faq h2 { grid-column: 1 / 5; font-size: var(--step-head); }
.faq dl { grid-column: 6 / -1; margin: 0; }
.faq dt { font-weight: 700; font-size: var(--step-lead); line-height: 1.25; }
.faq dd { margin: 10px 0 40px; max-width: 58ch; }

/* ---------- entrances (only when script runs; content is visible without it) ---------- */
.js .reveal > * { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in > * { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); }
.js .reveal.is-in > *:nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
.js .reveal.is-in > *:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.js .reveal.is-in > *:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
.js .reveal.is-in > *:nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
.js .reveal.is-in > *:nth-child(n+6) { transition-delay: calc(var(--stagger) * 5); }
/* The bar grows from its left edge, segment by segment, like the progress it is. */
.js .bar--grow .bar__seg { transform: scaleX(0); transform-origin: left center; }
.js .bar--grow.is-in .bar__seg { transform: none; transition: transform 1100ms var(--ease-expo); }
.js .bar--grow.is-in .bar__seg:nth-child(2) { transition-delay: 120ms; }
.js .bar--grow.is-in .bar__seg:nth-child(3) { transition-delay: 240ms; }
.js .bar--grow.is-in .bar__seg:nth-child(4) { transition-delay: 360ms; }
/* The table arrives row by row. */
.js .rows tr { opacity: 0; transform: translateY(12px); }
.js .rows.is-in tr { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
/* Pictures open from a mask as they scroll in. Pure CSS: where scroll timelines are not
   supported the picture is simply visible, so it can never stay hidden. */
@supports (animation-timeline: view()) {
  .opens { animation: open-mask linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  @keyframes open-mask { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}
/* Hero load: the halves come in from the edges they belong to. */
.js .hero__half--a { translate: -0.35em 0; }
.js .hero__half--b { translate: 0.35em 0; }
.js.loaded .hero__half--a, .js.loaded .hero__half--b { translate: 0 0; transition: translate 900ms var(--ease-expo); }
.js.loaded .hero__half--b { transition-delay: 90ms; }
@keyframes blink { 50% { opacity: 0; } }
.keys__caret { animation: blink 1.06s steps(1) infinite; }
.toast { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.toast.is-swapping { opacity: 0; transform: translateY(6px); }

/* ---------- phone composition ---------- */
@media (max-width: 860px) {
  .nav__links a:not(.button):not(.nav__keep) { display: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; overflow: visible; }
  .hero__body { display: flex; flex-direction: column; gap: 22px; padding: 16px var(--margin) 40px; }
  .hero__title { position: static; display: flex; flex-direction: column; font-size: 13vw; line-height: 0.92; }
  .hero__half { position: static; transform: none; }
  .hero__half--b { align-self: flex-end; }
  .hero__reel { order: 2; position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: auto; border-radius: var(--radius); }
  .hero__track { position: static; transform: none !important; }
  .hero__track .frame:not(:first-child) { display: none; }
  .hero__track .frame { aspect-ratio: 4 / 3; }
  .hero__lead { order: 4; position: static; width: auto; }
  .hero__count { display: none; }
  .keys__answer, .keys__examples, .keys__picture { grid-column: 1 / -1; }
  .keys__picture { margin-top: 28px; }
  .keys__examples button { min-height: 44px; padding: 0 14px; background: var(--surface); border-radius: var(--radius); text-decoration: none; }
  .bar { flex-direction: column; height: 70svh; }
  .bar__seg { min-width: 0; min-height: 72px; }
  .js .bar--grow .bar__seg { transform: scaleY(0); transform-origin: center top; }
  .bar__notes { display: none; }
  .bar__seg .bar__clause { display: block; }
  .spec__grid { display: flex; flex-direction: column; align-items: stretch; margin-top: 48px; }
  .spec__label { display: none; }
  .spec__table th { width: 42%; }
  .spec__photo { order: 2; align-self: flex-end; width: 60%; margin-top: 24px; }
  .spec__head span:first-child { padding-left: 0; }
  .news__item, .dl, .feature, .faq { display: flex; flex-direction: column; gap: 24px; }
  .feature__pic, .news__pic { order: 2; }
  .close__foot .button { width: 100%; }
  .footer__notes { max-width: none; flex-direction: column; }
  .footer__meta { flex-direction: column; gap: 6px; }
  .footer { min-height: 0; }
  .close { min-height: 0; }
}
.bar__clause { display: none; font-weight: 400; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .keys__caret { animation: none; }
  .opens { animation: none; }
  .js .reveal > *, .js .rows tr, .js .bar--grow .bar__seg, .js .hero__half--a, .js .hero__half--b {
    opacity: 1; transform: none; translate: 0 0; clip-path: none; transition: opacity 200ms ease;
  }
  .hero__track { transform: none !important; }
}

.hero__lead p, .news__body p, .feature__text p, .faq dd, .build__sum { max-width: 60ch; }

/* The hotkey tryout follows the pinned hero closely: the hero's last screen is its rest. */
#capturix.section { padding-top: clamp(64px, 7vw, 112px); }

/* Product features read as one run of evidence: closer than the page's section gap. */
.section.feature { padding-top: clamp(72px, 8vw, 128px); }
.section.feature:first-child { padding-top: var(--section-gap); }


/* A half of up to 15 characters still has to clear the centre frame. */
.hero__title--long { font-size: clamp(2.2rem, 4.4vw, 6rem); }

/* Phone: each spec row stacks its name over the value, the value's detail right-aligned. */
@media (max-width: 860px) {
  .spec__table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-bottom: 20px; }
  .spec__table th { grid-column: 1 / -1; width: auto; padding: 0 0 2px; font-size: var(--step-small); }
  .spec__table td { padding: 0; }
  .spec__table td[colspan] { grid-column: 1 / -1; text-align: left; }
  .spec__table tr.group th { padding-top: 16px; }
  .spec__table tr.group td { padding-top: 0; }
}
