/* TestEdge AI - public page. Colours, type and radii come from design/design-system/tokens.css (copied next to this file by build.sh). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
/* an anchor jumps instead of gliding for whoever asked for less motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--te-color-surface-primary);
  color: var(--te-color-text-primary);
  font-family: var(--te-font-family);
  font-size: 17px;
  line-height: var(--te-line-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--te-color-text-link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--te-color-brand-navy); line-height: var(--te-line-tight); }
p { margin: 0; }
code { font-family: var(--te-font-mono); font-size: 0.86em; }

/* One column for every section: the same left edge, the same width, and one vertical rhythm. A section that follows one of its own
   colour (the steps after the hero) starts closer, so two white sections do not read as a gap. */
:root { --gutter: 16px; --section-y: clamp(64px, 7vw, 100px); --head-gap: clamp(32px, 4vw, 48px); }
@media (min-width: 601px) { :root { --gutter: 32px; } }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--te-color-surface-primary); border-radius: var(--te-radius-control); }
.skip:focus { top: 12px; }

/* buttons */
/* Inter, the brand's (design/brand/fonts, OFL), the page's own copy: the same letter on Windows as on a Mac. Shown with the system's
   until it arrives, never a blank text */
@font-face { font-family: Inter; src: url("/fonts/Inter-site.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--te-touch-min); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--te-radius-control);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--te-motion-fast), border-color var(--te-motion-fast);
}
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--te-color-brand-blue); color: var(--te-color-text-inverse); }
.btn-primary:hover { background: var(--te-color-text-link); }
.btn { transition: background-color var(--te-motion-fast), border-color var(--te-motion-fast), transform var(--te-motion-fast), box-shadow var(--te-motion-fast); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(8,119,206,.18); }
.btn:active { transform: none; box-shadow: none; }
.btn-outline { border-color: var(--te-color-border-strong); color: var(--te-color-brand-navy); background: var(--te-color-surface-primary); }
.btn-outline:hover { border-color: var(--te-color-brand-blue); }
.btn-quiet { color: var(--te-color-brand-navy); }
.btn-quiet:hover { background: var(--te-color-surface-secondary); }

/* top bar: the logo always sits on white (brand-guidelines.md) */
.bar { position: sticky; top: 0; z-index: var(--te-zIndex-header); background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--te-color-border-default); backdrop-filter: saturate(1.4) blur(6px); transition: box-shadow var(--te-motion-normal); }
/* once the page moves under it (site.js) */
.bar.is-scrolled { box-shadow: 0 6px 20px rgba(11,35,75,0.08); }
.bar-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand img { width: 170px; }
.nav { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--te-color-text-primary); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a { position: relative; display: inline-block; padding: 6px 0; white-space: nowrap; }
/* five sections and the bar's buttons fit on one line from about 1250 px (Portuguese, the longest); under that the menu goes rather
   than wrap a name onto two lines or push the bar taller */
@media (max-width: 1260px) { .nav { display: none; } }
.nav a:hover { color: var(--te-color-text-link); }
/* the section on screen (site.js): the cyan of the frame's active entry */
.nav a[aria-current] { color: var(--te-color-brand-navy); font-weight: 600; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--te-color-brand-cyan); }
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* language menu: a disclosure (details), so it works without JavaScript; site.js only closes it on Esc or a click outside */
.lang-menu { position: relative; margin-right: 4px; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--te-touch-min); padding: 0 10px 0 12px;
  border: 1px solid var(--te-color-border-default); border-radius: var(--te-radius-control);
  background: var(--te-color-surface-primary); color: var(--te-color-text-primary);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; user-select: none;
  transition: border-color var(--te-motion-fast), background-color var(--te-motion-fast);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--te-color-border-strong); background: var(--te-color-surface-canvas); }
.lang-menu[open] summary { border-color: var(--te-color-brand-blue); }
.lang-menu svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lang-globe { width: 18px; height: 18px; color: var(--te-color-text-secondary); }
.lang-chevron { width: 16px; height: 16px; color: var(--te-color-text-secondary); transition: transform var(--te-motion-normal); }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-short { display: none; }
.lang-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--te-zIndex-popover); width: 224px; padding: 6px;
  border: 1px solid var(--te-color-border-default); border-radius: var(--te-radius-panel);
  background: var(--te-color-surface-primary); box-shadow: var(--te-shadow-popover);
}
.lang-title { padding: 8px 10px 6px; font-size: 12px; font-weight: 600; color: var(--te-color-text-muted); }
.lang-panel ul { margin: 0; padding: 0; list-style: none; }
.lang-panel a {
  display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px; border-radius: var(--te-radius-control);
  color: var(--te-color-text-primary); font-size: 15px; text-decoration: none;
}
.lang-panel a:hover, .lang-panel a:focus-visible { background: var(--te-color-surface-secondary); }
.lang-panel a[aria-current="page"] { color: var(--te-color-brand-navy); font-weight: 600; background: var(--te-color-brand-sky); }
.lang-item-code { font-size: 12px; font-weight: 600; color: var(--te-color-text-muted); }
.lang-check { grid-column: 3; width: 18px; height: 18px; color: var(--te-color-text-link); }

/* the menu under 1260 px, where the one above hides (site/README.md, «Lo que dice»): a disclosure (details) at the bar's right end,
   its panel the bar's width under it, so opening it moves nothing in the bar. Above 1260 px it does not exist. */
.site-menu { display: none; }
.site-menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--te-touch-min); min-width: var(--te-touch-min); padding: 0 12px;
  border: 1px solid var(--te-color-border-default); border-radius: var(--te-radius-control);
  background: var(--te-color-surface-primary); color: var(--te-color-brand-navy);
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; user-select: none;
  transition: border-color var(--te-motion-fast), background-color var(--te-motion-fast);
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover { border-color: var(--te-color-border-strong); background: var(--te-color-surface-canvas); }
.site-menu[open] summary { border-color: var(--te-color-brand-blue); }
.site-menu summary:focus-visible, .menu-links a:focus-visible, .lang-menu summary:focus-visible { outline: 2px solid var(--te-color-border-focus); outline-offset: 2px; }
.site-menu-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-menu-close, .site-menu[open] .site-menu-open { display: none; }
.site-menu[open] .site-menu-close { display: inline; }
.site-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: var(--te-zIndex-popover);
  max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 20px;
  border-bottom: 1px solid var(--te-color-border-default); background: var(--te-color-surface-primary); box-shadow: var(--te-shadow-popover);
}
.menu-links { margin: 0; padding: 0; list-style: none; }
.menu-links li + li { border-top: 1px solid var(--te-color-border-default); }
.menu-links a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--te-color-text-primary); font-size: 16px; font-weight: 500; text-decoration: none;
}
.menu-links a:hover { color: var(--te-color-text-link); background: var(--te-color-surface-canvas); }
/* the section on screen (site.js), as in the menu above: the cyan of the frame's active entry, here on the left */
.menu-links a[aria-current] { color: var(--te-color-brand-navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--te-color-brand-cyan); }
.site-menu-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.site-menu-actions .btn { flex: 1 1 200px; }
@media (max-width: 1260px) {
  .site-menu { display: block; }
  /* «Ingresar» is in the menu: the bar keeps the language, the demo (above 600 px) and the menu */
  .bar-actions > .btn-quiet { display: none; }
}
@media (max-width: 370px) {
  /* the word goes on the narrowest phones so the bar fits; it stays the button's name for a screen reader */
  .site-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-menu summary { padding: 0; justify-content: center; }
}

/* hero */
.hero { padding: clamp(40px, 5.5vw, 80px) 0 clamp(48px, 5.5vw, 72px); background: linear-gradient(180deg, var(--te-color-surface-canvas), var(--te-color-surface-primary) 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.02em; max-width: 15ch; }
.lede { margin-top: 24px; max-width: 54ch; font-size: 19px; color: var(--te-color-text-secondary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 28px; max-width: 52ch; padding-left: 14px; border-left: 3px solid var(--te-color-brand-cyan); font-size: 15px; color: var(--te-color-text-secondary); }

/* the one picture: where each piece runs */
.boundary { margin: 0; position: relative; }
/* the picture sits on the Studio's canvas: its dot grid (tokens: canvasGrid 20 px), fading out at the edges */
.boundary::before {
  content: ""; position: absolute; inset: -28px -20px 32px; z-index: -1; border-radius: 24px;
  background-image: radial-gradient(circle, var(--te-color-border-strong) 1.2px, transparent 1.4px);
  background-size: var(--te-layout-canvasGrid) var(--te-layout-canvasGrid);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
  opacity: .55;
}
.hero { isolation: isolate; overflow-x: clip; }   /* the grid may reach past the picture, never past the page */
.boundary svg { width: 100%; height: auto; overflow: visible; }
.boundary figcaption { margin-top: 12px; font-size: 14px; color: var(--te-color-text-secondary); max-width: 52ch; }
.node-platform rect { fill: var(--te-color-brand-navy); }
.t-plat-title { fill: #fff; font-size: 17px; font-weight: 700; }
.t-plat { fill: var(--te-nav-text); font-size: 14px; }
.port { fill: var(--te-color-brand-cyan); stroke: #fff; stroke-width: 2; }
.link { stroke: var(--te-color-brand-blue); stroke-width: 2.5; fill: none; }
.link-label rect { fill: #fff; stroke: var(--te-color-border-default); }
.t-link { fill: var(--te-color-brand-navy); font-size: 14px; font-weight: 600; }
.t-link-sub { fill: var(--te-color-text-secondary); font-size: 13.5px; }
.pulse { fill: var(--te-color-brand-cyan); opacity: 0; }
/* the job, coming back down as the response to the agent's request: hollow and smaller, so it never reads as a call from the platform */
.pulse-response { fill: #fff; stroke: var(--te-color-brand-blue); stroke-width: 2; }
.net { fill: var(--te-color-brand-sky); fill-opacity: 0.55; stroke: var(--te-color-brand-cyan); stroke-width: 1.5; stroke-dasharray: 7 6; }
.t-net { fill: var(--te-color-brand-navy); font-size: 15px; font-weight: 700; }
.node rect { fill: #fff; stroke: var(--te-color-border-strong); }
.node-vault rect { stroke-dasharray: 3 3; }
.t-node-title { fill: var(--te-color-brand-navy); font-size: 15px; font-weight: 600; }
.t-node { fill: var(--te-color-text-secondary); font-size: 13.5px; }
.wire { stroke: var(--te-color-border-strong); stroke-width: 1.5; fill: none; }

/* sections */
.section { padding-block: var(--section-y); }
.section-after-hero { padding-top: clamp(24px, 3vw, 40px); }
.section-tint { background: var(--te-color-surface-canvas); }
.section h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
/* a heading and its lede: the same block in every section, kept to a reading width */
.section-head { max-width: 760px; }
.section-lede { margin-top: 16px; max-width: 62ch; font-size: 18px; color: var(--te-color-text-secondary); }
.section h3 { font-size: 18px; font-weight: 650; }

/* a real sequence, drawn as blocks of the Studio's canvas: a card per step, cyan ports and a wire between them */
.steps { --gap: 32px; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: var(--head-gap) 0 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 18px 20px;
  border: 1px solid var(--te-color-border-strong); border-radius: var(--te-radius-panel); background: var(--te-color-surface-primary);
}
.steps li::before, .steps li::after {
  content: ""; position: absolute; top: 30px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--te-color-brand-cyan); border: 2px solid var(--te-color-surface-primary); box-shadow: 0 0 0 1px var(--te-color-brand-cyan);
}
.steps li::before { left: -6px; }
.steps li::after { right: -6px; }
.steps li:first-child::before, .steps li:last-child::after { display: none; }
.step-wire { position: absolute; top: 35px; left: calc(100% + 6px); width: calc(var(--gap) - 12px); height: 2px; background: var(--te-color-brand-blue); }
.step-wire::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--te-color-brand-blue); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.steps li:last-child .step-wire { display: none; }
.step-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--te-color-text-muted); }
.step-kind::before {
  content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--te-radius-xs);
  background: var(--te-color-brand-navy); color: var(--te-color-text-inverse); font-size: 12px; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--te-color-text-secondary); }

/* modules: a definition list in two columns, each entry under a rule, not a card grid */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: var(--head-gap) 0 0; }
.module { padding: 28px 0 32px; border-top: 1px solid var(--te-color-border-default); }
.module dt { display: flex; align-items: center; gap: 14px; }
.module dd { margin-top: 14px; }
/* icons: Lucide, the brand's set (brand-guidelines.md), drawn with the text's colour */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.module-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--te-radius-panel); background: var(--te-color-brand-sky); color: var(--te-color-brand-navy); flex: none; }
.module-name { font-size: 21px; font-weight: 700; color: var(--te-color-brand-navy); }
.module dd { margin-inline: 0; margin-bottom: 0; max-width: 60ch; color: var(--te-color-text-primary); }

/* security, on navy (no logo here) */
.section-navy { background: var(--te-nav-bg); color: var(--te-nav-text); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-lede { color: var(--te-nav-muted); }
.section-navy code { color: #fff; background: rgba(19,181,220,0.16); padding: 1px 6px; border-radius: var(--te-radius-xs); }
.ledger { margin-top: var(--head-gap); border: 1px solid rgba(168,191,215,0.32); border-radius: var(--te-radius-panel); overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr; }
.ledger-row > span { padding: 18px 24px; border-top: 1px solid rgba(168,191,215,0.22); }
.ledger-row > span + span { border-left: 1px solid rgba(168,191,215,0.22); color: var(--te-nav-muted); }
.ledger-head > span { border-top: 0; font-weight: 700; color: #fff; background: rgba(255,255,255,0.04); }
.ledger-head > span + span { color: #fff; }
.ledger-head > span:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border: 2px dashed var(--te-nav-marker); border-radius: 3px; vertical-align: 0; }
.guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: var(--head-gap) 0 0; padding: 0; list-style: none; }
.guarantees li { padding-top: 18px; border-top: 2px solid var(--te-nav-marker); }
.guarantees .icon { display: block; width: 26px; height: 26px; margin-bottom: 14px; color: var(--te-nav-marker); }
.guarantees p { margin-top: 8px; font-size: 15.5px; color: var(--te-nav-muted); }

/* CI */
/* the copy on the left, the pipeline and its gate on the right, wider: the calls are long and are read as a log */
.ci-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ci-copy { padding-top: 8px; }
.plain { margin: 24px 0 0; padding-left: 20px; color: var(--te-color-text-primary); }
.plain li + li { margin-top: 8px; }
.ci-demo { display: grid; gap: 16px; width: 100%; }
/* what the pipeline does, as its log would show it: the three calls of docs/33, on the navy of the frame */
.ci-log { margin: 0; border-radius: var(--te-radius-panel); background: var(--te-nav-bg); color: var(--te-nav-text); overflow: hidden; }
.ci-log-head { padding: 12px 20px; border-bottom: 1px solid rgba(168,191,215,0.22); font-size: 13px; font-weight: 600; color: var(--te-nav-muted); }
.ci-calls { margin: 0; padding: 12px 20px 4px; list-style: none; font-family: var(--te-font-mono); font-size: 13px; line-height: 1.45; }
.ci-calls li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; padding: 8px 0; }
.ci-calls li + li { border-top: 1px dashed rgba(168,191,215,0.2); }
.ci-step { grid-row: span 2; font-family: var(--te-font-family); font-size: 13px; font-weight: 600; color: var(--te-nav-marker); }
.ci-calls code { font-size: 13px; color: #fff; overflow-wrap: anywhere; }
.ci-res { color: var(--te-nav-muted); }
.ci-res::before { content: "\2192\00a0"; }
.ci-res-fail { color: #FFB3BA; }
.ci-outcome { padding: 10px 20px 16px; font-size: 14px; color: var(--te-nav-text); }
.gate { padding: 28px; border: 1px solid var(--te-color-border-default); border-left: 4px solid var(--te-color-semantic-danger); border-radius: var(--te-radius-panel); background: var(--te-color-surface-primary); box-shadow: var(--te-shadow-card); }
.gate-title { font-size: 20px; font-weight: 700; color: var(--te-color-brand-navy); }
.gate-list { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.gate-list li { display: flex; align-items: baseline; gap: 10px; }
.gate-list li + li { margin-top: 10px; }
.chip { flex: none; padding: 1px 10px; border-radius: var(--te-radius-pill); font-size: 13px; font-weight: 600; }
.chip-pass { color: var(--te-color-semantic-success); background: var(--te-color-semantic-successBg); }
.chip-fail { color: var(--te-color-semantic-danger); background: var(--te-color-semantic-dangerBg); }
.gate-foot { margin-top: 20px; font-size: 14px; color: var(--te-color-text-secondary); }

/* FAQ: the heading in the left column, the questions in the right, so the list keeps a reading width and the row is used whole */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.faq-title { position: sticky; top: 104px; }
.faq { border-top: 1px solid var(--te-color-border-default); }
.faq details { border-bottom: 1px solid var(--te-color-border-default); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--te-color-brand-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--te-color-text-link); transition: transform var(--te-motion-normal); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 68ch; padding: 0 0 22px; color: var(--te-color-text-secondary); }
/* the answer opens instead of jumping, where the browser can animate a <details> (it still opens at once everywhere else) */
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height var(--te-motion-normal) ease-out, content-visibility var(--te-motion-normal) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }

/* contact: what the demo is on the left, the form on the right, on white so it reads as the one place to type */
.contact { background: var(--te-color-brand-sky); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3vw, 38px); }
.contact-copy p { margin-top: 16px; max-width: 46ch; font-size: 18px; color: var(--te-color-text-primary); }
.contact-copy .contact-note { font-size: 15px; color: var(--te-color-text-secondary); }
.contact-panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--te-color-border-default); border-radius: var(--te-radius-panel); background: var(--te-color-surface-primary); box-shadow: var(--te-shadow-card); }
.contact-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form fieldset[disabled] { opacity: .6; }
.field { display: grid; gap: 6px; align-content: start; }
.field-full, .form-status { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--te-color-brand-navy); }
.field-optional { font-weight: 400; color: var(--te-color-text-secondary); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: var(--te-touch-min); padding: 10px 12px;
  border: 1px solid var(--te-color-border-control); border-radius: var(--te-radius-control);
  background: var(--te-color-surface-primary); color: var(--te-color-text-primary); font: inherit; font-size: 16px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--te-color-border-focus); outline-offset: 1px; border-color: var(--te-color-border-focus); }
.field [aria-invalid="true"] { border-color: var(--te-color-semantic-danger); }
.field-hint { font-size: 14px; color: var(--te-color-text-secondary); }
.field-error { font-size: 14px; font-weight: 600; color: var(--te-color-semantic-danger); }
.field-check { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--te-color-brand-blue); }
.field-check label { font-weight: 400; color: var(--te-color-text-primary); }
.field-check .field-error { grid-column: 2; }
.field[hidden] { display: none; }
/* the field only programs fill in: out of sight and out of the tab order (contact.js sends it; the API discards what has it) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 10px 14px; border-radius: var(--te-radius-control); background: var(--te-color-semantic-dangerBg); color: var(--te-color-semantic-danger); font-weight: 600; font-size: 15px; }
.form-actions { display: flex; }
.form-nojs { margin-top: 16px; font-size: 15px; }
.form-done { display: grid; justify-items: start; gap: 8px; }
.form-done[hidden] { display: none; }
.form-done .icon { width: 32px; height: 32px; color: var(--te-color-semantic-success); }
.form-done h3 { font-size: 22px; }

/* «Así se ve»: the canvas takes the whole row; the others sit beside their caption, at a size their text can still be read */
.screens { display: grid; gap: clamp(40px, 5vw, 64px); margin-top: var(--head-gap); }
.screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); grid-template-areas: "cap img"; gap: 24px 48px; align-items: center; margin: 0; }
.screen-wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "cap"; }
.screen-link { grid-area: img; display: block; border: 1px solid var(--te-color-border-default); border-radius: var(--te-radius-panel); overflow: hidden; background: var(--te-color-surface-primary); box-shadow: var(--te-shadow-card); transition: border-color var(--te-motion-fast); }
.screen-link:hover { border-color: var(--te-color-border-strong); }
.screen-link img { width: 100%; }
.screen figcaption { grid-area: cap; max-width: 46ch; color: var(--te-color-text-secondary); }
.screen-wide figcaption { max-width: 72ch; }
.screen figcaption strong { display: block; margin-bottom: 4px; font-size: 18px; color: var(--te-color-brand-navy); }
.screen-wide figcaption strong { display: inline; margin: 0; font-size: inherit; }

/* footer, on white so the logo is legal */
.foot { padding: 40px 0; border-top: 1px solid var(--te-color-border-default); font-size: 14px; color: var(--te-color-text-secondary); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-inner img { width: 140px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.foot-copy { margin-left: auto; }

/* motion: the one moment is the picture's cycle, 7 s on a loop, the same length as the SVG's own animations (index.html says its four
   beats: the agent asks, the job comes back as the response, the agent runs it, the verdict goes up) */
.verdict rect { fill: var(--te-color-semantic-successBg); }
.t-verdict { fill: var(--te-color-semantic-success); font-size: 13.5px; font-weight: 700; }
.verdict { opacity: 0; animation: verdict 7s linear infinite; }
@keyframes verdict { 0%, 77% { opacity: 0; } 80%, 95% { opacity: 1; } 100% { opacity: 0; } }
.wire-run { fill: none; stroke: var(--te-color-brand-cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 24 126; stroke-dashoffset: 150; opacity: 0; animation: wire-run 7s linear infinite; }
.wire-run-2 { animation-delay: .15s; }
.wire-run-3 { animation-delay: .3s; }
@keyframes wire-run { 0%, 35% { opacity: 0; stroke-dashoffset: 150; } 38% { opacity: 1; } 58% { opacity: 1; stroke-dashoffset: 0; } 61%, 100% { opacity: 0; stroke-dashoffset: 0; } }
.node-agent rect { animation: agent-runs 7s linear infinite; }
@keyframes agent-runs { 0%, 33%, 63%, 100% { stroke: var(--te-color-border-strong); } 36%, 60% { stroke: var(--te-color-brand-cyan); } }
@media (prefers-reduced-motion: reduce) {
  .pulse, .wire-run { display: none; }
  .verdict { animation: none; opacity: 1; }   /* still says what the picture is about, without moving */
  .node-agent rect { animation: none; }
}

@media (max-width: 1100px) {
  /* the picture keeps its own width: side by side it would shrink its texts under 12 px */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .boundary::before { inset: -20px 0 28px; }
  .boundary { max-width: 560px; }
  /* under 1100 the flow runs downwards: ports above and below, the wire between them */
  .steps { --gap: 28px; grid-template-columns: 1fr; }
  /* a card per row, its name on the left and what it does on the right, so the row is used and the text keeps a reading width */
  .steps li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .steps li .step-kind { grid-column: 1; }
  .steps li h3 { grid-column: 1; }
  .steps li p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: 60ch; }
  .screen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "cap"; }
  .screen figcaption { max-width: 72ch; }
  .screen figcaption strong { display: inline; margin: 0; font-size: inherit; }
  .ci-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li::before, .steps li::after { top: auto; left: 28px; right: auto; }
  .steps li::before { top: -6px; }
  .steps li::after { bottom: -6px; }
  .step-wire { top: calc(100% + 6px); left: 33px; width: 2px; height: calc(var(--gap) - 12px); }
  .step-wire::after { right: auto; top: auto; bottom: -1px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--te-color-brand-blue); border-bottom: 0; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-title { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar-inner { gap: 8px; min-height: 64px; }
  .lang-menu { margin-right: 0; }
  .lang-menu summary { gap: 6px; padding: 0 8px; }
  .lang-name { display: none; }
  .lang-short { display: inline; }
  .brand img { width: 140px; }
  .bar-actions > .btn-primary { display: none; }
  /* the picture shrinks to ~0.7 on a phone: its texts grow so none reads under 12 px */
  .t-plat-title { font-size: 22px; } .t-plat { font-size: 19.5px; } .t-net { font-size: 20px; }
  .t-node-title { font-size: 20px; } .t-node, .t-link-sub { font-size: 19px; } .t-link { font-size: 19.5px; }
  .t-verdict { font-size: 19.5px; }
  /* with the larger letters the platform's name reaches the verdict: it moves just outside the box, still at its top */
  .verdict { transform: translateX(106px); }
  .guarantees { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row > span + span { border-left: 0; border-top: 0; padding-top: 0; }
  .ledger-head { display: none; }
  .ledger-row > span:first-child { font-weight: 600; color: #fff; }
  .foot-copy { margin-left: 0; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: block; }
  .steps li p { margin-top: 8px; }
  .contact-form fieldset { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }
  /* the calls go under their step, so a path fits on its line */
  .ci-calls li { grid-template-columns: 1fr; }
  .ci-step { grid-row: auto; margin-bottom: 2px; }
  .ci-calls code { overflow-wrap: normal; }
}

/* answers to the pointer: a module's tile takes the navy of the frame, a guarantee's line thickens */
.module-icon { transition: background-color var(--te-motion-normal), color var(--te-motion-normal); }
.module:hover .module-icon { background: var(--te-color-brand-navy); color: var(--te-color-text-inverse); }
.guarantees li { transition: border-top-color var(--te-motion-normal), box-shadow var(--te-motion-normal); }
.guarantees li:hover { box-shadow: inset 0 2px 0 var(--te-nav-marker); }
.ledger-row:not(.ledger-head) { transition: background-color var(--te-motion-normal); }
.ledger-row:not(.ledger-head):hover { background: rgba(19,181,220,0.06); }

/* the language menu opens instead of appearing */
.lang-menu[open] .lang-panel { animation: lang-open var(--te-motion-normal) ease-out; }
@keyframes lang-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* the five steps, once in view: a run lights each block in turn, as a test goes through a flow, and ends on the gate */
.steps.is-running li { animation: step-lit 1.1s ease-out both; }
.steps.is-running li:nth-child(1) { animation-delay: .0s; }
.steps.is-running li:nth-child(2) { animation-delay: .35s; }
.steps.is-running li:nth-child(3) { animation-delay: .7s; }
.steps.is-running li:nth-child(4) { animation-delay: 1.05s; }
.steps.is-running li:nth-child(5) { animation-delay: 1.4s; animation-name: step-lit-last; animation-duration: 1.6s; }
@keyframes step-lit { 0% { border-color: var(--te-color-border-strong); box-shadow: none; } 30% { border-color: var(--te-color-brand-cyan); box-shadow: 0 0 0 3px rgba(19,181,220,.18); } 100% { border-color: var(--te-color-border-strong); box-shadow: none; } }
@keyframes step-lit-last { 0% { border-color: var(--te-color-border-strong); box-shadow: none; } 25% { border-color: var(--te-color-brand-cyan); box-shadow: 0 0 0 3px rgba(19,181,220,.18); } 100% { border-color: var(--te-color-brand-blue); box-shadow: 0 0 0 1px var(--te-color-brand-blue); } }
.steps.is-running .step-wire { animation: wire-lit .6s ease-out both; }
.steps.is-running li:nth-child(1) .step-wire { animation-delay: .25s; }
.steps.is-running li:nth-child(2) .step-wire { animation-delay: .6s; }
.steps.is-running li:nth-child(3) .step-wire { animation-delay: .95s; }
.steps.is-running li:nth-child(4) .step-wire { animation-delay: 1.3s; }
@keyframes wire-lit { 0% { background: var(--te-color-brand-blue); } 50% { background: var(--te-color-brand-cyan); box-shadow: 0 0 6px var(--te-color-brand-cyan); } 100% { background: var(--te-color-brand-blue); } }

/* the pipeline, once in view: launch, wait and decide light in order, then the gate comes in */
.ci-demo.is-running .ci-calls li { animation: call-lit .9s ease-out both; }
.ci-demo.is-running .ci-calls li:nth-child(1) { animation-delay: .1s; }
.ci-demo.is-running .ci-calls li:nth-child(2) { animation-delay: .6s; }
.ci-demo.is-running .ci-calls li:nth-child(3) { animation-delay: 1.1s; }
@keyframes call-lit { 0% { background: transparent; } 35% { background: rgba(19,181,220,.12); } 100% { background: transparent; } }
.ci-calls li { border-radius: var(--te-radius-xs); margin-inline: -8px; padding-inline: 8px; }
.ci-demo.is-running .gate { animation: gate-in .5s ease-out 1.7s both; }
@keyframes gate-in { from { transform: translateY(6px); box-shadow: none; } to { transform: none; box-shadow: var(--te-shadow-card); } }

@media (prefers-reduced-motion: reduce) {
  .steps.is-running li, .steps.is-running .step-wire, .ci-demo.is-running .ci-calls li, .ci-demo.is-running .gate, .lang-menu[open] .lang-panel { animation: none; }
  .btn-primary:hover, .btn-outline:hover { transform: none; }
}

/* The ledger, once in view: row by row, what stays in the network lights first, and then what reaches the platform in its place.
   Nothing is hidden before or without it; prefers-reduced-motion leaves it still. */
.ledger.is-running .ledger-row:not(.ledger-head) span:first-child { animation: ledger-stays .9s ease-out both; }
.ledger.is-running .ledger-row:not(.ledger-head) span:last-child { animation: ledger-reaches .9s ease-out both; }
.ledger.is-running .ledger-row:nth-child(2) span:first-child { animation-delay: 0s; }
.ledger.is-running .ledger-row:nth-child(2) span:last-child { animation-delay: .3s; }
.ledger.is-running .ledger-row:nth-child(3) span:first-child { animation-delay: .55s; }
.ledger.is-running .ledger-row:nth-child(3) span:last-child { animation-delay: .85s; }
.ledger.is-running .ledger-row:nth-child(4) span:first-child { animation-delay: 1.1s; }
.ledger.is-running .ledger-row:nth-child(4) span:last-child { animation-delay: 1.4s; }
.ledger.is-running .ledger-row:nth-child(5) span:first-child { animation-delay: 1.65s; }
.ledger.is-running .ledger-row:nth-child(5) span:last-child { animation-delay: 1.95s; }
@keyframes ledger-stays { 0% { box-shadow: inset 3px 0 0 transparent; } 35% { box-shadow: inset 3px 0 0 rgba(255,255,255,.55); background: rgba(255,255,255,.05); } 100% { box-shadow: inset 3px 0 0 transparent; } }
@keyframes ledger-reaches { 0% { background: transparent; } 35% { background: rgba(19,181,220,.16); box-shadow: inset 3px 0 0 var(--te-color-brand-cyan); } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ledger.is-running .ledger-row span { animation: none; } }

/* on a phone, the two calls to action take the whole width, one over the other: the same size, the same target */
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }
