/* Facturize · landing. Design tokens from the app (docs/03-DISENO.md). */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/roboto-mono-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Roboto Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/roboto-mono-latin-500-normal.woff2) format("woff2");
}

:root {
  --display: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, sans-serif; --mono: "Roboto Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* Colour tokens. Dark is the default theme. The same dark values are re-applied to the product mockups
   (.stage, .how-visual) when the page is light, because Facturize itself is a dark app. */
:root,
html[data-theme="light"] :is(.stage, .how-visual) {
  --obsidian: #0f1011; --abyss: #090a0b; --graphite: #2e2e2e; --steel: #3f4041;
  --fog: #6a6b6b; --ash: #9f9fa0; --cloud: #f5f5f7; --pure: #fff; --void: #000;
  --iris: #847dff; --cyan: #00b3dd; --amber: #f2b84b; --red: #ff6b6b; --periwinkle: #90b8f0;
  --panel: #18191a;
  --fg-rgb: 255, 255, 255;   /* overlays, hairlines and hover tints are this colour at low opacity */
  --bg-rgb: 15, 16, 17;      /* glass header and menu */
  --panel-rgb: 24, 25, 26;   /* glass chips */
  --deep-rgb: 9, 10, 11;
  --text-rgb: 245, 245, 247; /* words not yet lit in the problem paragraph */
  --line: rgba(var(--fg-rgb), .08); --line-2: rgba(var(--fg-rgb), .15);
  --sh-strong: rgba(0, 0, 0, .9); --sh-mid: rgba(0, 0, 0, .8); --sh-soft: rgba(0, 0, 0, .6);
  --l1-bg: #353535; --err-text: #ffb4b4; --note-text: var(--amber);
  color-scheme: dark;
}
html[data-theme="light"] {
  --obsidian: #f6f5f1; --abyss: #eeece6; --graphite: #e9e7e1; --steel: #dcd9d1;
  --fog: #6c6e73; --ash: #4f5259; --cloud: #15161a; --pure: #0f1011; --void: #fff;
  --iris: #5a52e0; --cyan: #007c9c; --amber: #c98a12; --red: #cf3b3b; --periwinkle: #3a63b6;
  --panel: #fff;
  --fg-rgb: 15, 16, 17; --bg-rgb: 246, 245, 241; --panel-rgb: 255, 255, 255; --deep-rgb: 238, 236, 230; --text-rgb: 21, 22, 26;
  --line: rgba(var(--fg-rgb), .09); --line-2: rgba(var(--fg-rgb), .16);
  --sh-strong: rgba(30, 32, 40, .22); --sh-mid: rgba(30, 32, 40, .18); --sh-soft: rgba(30, 32, 40, .12);
  --l1-bg: #fff; --err-text: #b42318; --note-text: #8a5a00;
  color-scheme: light;
}
html[data-theme="light"] :is(.device, .chip, .how-visual) { color: var(--cloud); }
/* the mockups stay dark, but cast a soft shadow on a light page */
html[data-theme="light"] :is(.stage, .how-visual) { --sh-strong: rgba(20, 24, 36, .28); --sh-mid: rgba(20, 24, 36, .22); --sh-soft: rgba(20, 24, 36, .14); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--obsidian); color: var(--cloud); font-family: var(--sans); font-size: 17px;
  line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain: barely visible, gives the dark surfaces texture. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: rgba(132, 125, 255, .35); color: var(--pure); }
:focus-visible { outline: 2px solid var(--pure); outline-offset: 3px; border-radius: 4px; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--pure); color: var(--void); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.link { text-decoration: underline; text-decoration-color: rgba(var(--fg-rgb), .35); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--pure); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); padding: 14px 20px; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s;
  transform: translate(var(--mx), var(--my));
}
.btn-primary { background: var(--pure); color: var(--void); box-shadow: 0 0 0 0 rgba(var(--fg-rgb), .0); }
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(var(--fg-rgb), .45); }
.btn-ghost { background: transparent; color: var(--cloud); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(var(--fg-rgb), .4); background: rgba(var(--fg-rgb), .03); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-lg { padding: 17px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn span[aria-hidden] { transition: transform .3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ------------------------------------------------------------------ progress + nav */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--iris), var(--periwinkle), var(--cyan)); }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 500 14px/1 var(--mono);
  background: var(--pure); color: var(--void);
}
.brand-word { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--ash); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--pure); background: rgba(var(--fg-rgb), .06); }
.nav-toggle { display: none; margin-left: 0; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span[aria-hidden] { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cloud); transition: transform .3s var(--ease); }
.nav-toggle span[aria-hidden]:nth-of-type(2) { top: 17px; }
.nav-toggle span[aria-hidden]:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 8px var(--gutter) 24px; display: grid; gap: 4px; background: rgba(var(--bg-rgb), .96); backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); }
.menu[hidden] { display: none; }
.nav:has(.menu:not([hidden])) { background: var(--obsidian); border-bottom-color: var(--line); }
@media (min-width: 721px) { .menu { display: none !important; } }
.menu a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 16px; border: 0; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 136px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 20%), rgba(var(--fg-rgb), .06), transparent 60%);
  transition: opacity .4s;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.hero-glow-a { width: 520px; height: 520px; left: 50%; top: 40%; margin-left: -520px; background: rgba(132, 125, 255, .16); animation: drift 18s var(--ease) infinite alternate; }
.hero-glow-b { width: 460px; height: 460px; left: 50%; top: 52%; margin-left: 40px; background: rgba(0, 179, 221, .10); animation: drift 22s var(--ease) infinite alternate-reverse; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, -40px) scale(1.1); } 100% { transform: translate(-60px, 30px) scale(.95); } }

.hero-copy { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 36px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash);
  background: rgba(var(--fg-rgb), .04); border: 1px solid var(--line-2);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 0 rgba(132, 125, 255, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(132, 125, 255, .55); } 70% { box-shadow: 0 0 0 10px rgba(132, 125, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(132, 125, 255, 0); } }
.hero-title {
  font-family: var(--display); font-weight: 300; font-size: clamp(52px, 8.4vw, 128px); line-height: .92; letter-spacing: -.035em;
  margin: 0; font-variation-settings: "opsz" 72;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .06em .08em; }
.hero-title em { font-weight: 300; color: var(--pure); }
.hero-title .ch { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(8px); }
.is-loaded .hero-title .ch { animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + 150ms); }
@keyframes rise { to { transform: translateY(0); opacity: 1; filter: blur(0); } }
.hero-sub { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.5vw, 19px); font-weight: 300; color: var(--ash); line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font: 400 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fog); }

.intro { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.is-loaded .intro { animation: rise 1.2s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 300ms); }

/* ------------------------------------------------------------------ hero stage (product mockup) */
.stage { position: relative; max-width: 1240px; margin: 64px auto 0; padding: 0 var(--gutter); perspective: 1800px; }
.stage-tilt { --rx: 22deg; --sc: .9; --ty: 0px; transform: rotateX(var(--rx)) scale(var(--sc)) translateY(var(--ty)); transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
.device {
  --s: 1; position: relative; width: 1160px; transform: scale(var(--s)); transform-origin: 0 0;
  background: var(--panel); border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 1px 0 rgba(var(--fg-rgb), .08) inset, 0 60px 120px -40px var(--sh-strong), 0 0 0 1px var(--sh-soft), 0 0 120px -20px rgba(132, 125, 255, .18);
}
.device-frame { position: relative; }
.device::after { /* top sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(var(--fg-rgb), .05), transparent 20%);
}
.device-bar { height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(var(--bg-rgb), .8); }
.device-brand { font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.device-tabs { display: flex; gap: 4px; flex: 1; }
.device-tabs span { font-size: 12.5px; color: var(--ash); padding: 6px 11px; border-radius: 7px; display: inline-flex; gap: 7px; align-items: center; }
.device-tabs span.on { background: rgba(var(--fg-rgb), .1); color: var(--pure); border: 1px solid var(--line-2); }
.device-tabs i { font: 400 9.5px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 99px; background: rgba(242, 184, 75, .2); color: var(--cloud); transition: transform .3s; }
.device-tabs i.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.device-user { font-size: 12px; color: var(--ash); }
.device-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; background: var(--obsidian); }
.pane { background: var(--graphite); border-radius: 14px; overflow: hidden; position: relative; }
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid rgba(var(--fg-rgb), .07); }
.pane-head .mono-label { font-size: 9.5px; }
.pane-tools { display: flex; gap: 6px; }
.pane-tools span { font-size: 11px; color: var(--ash); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; }
.paper-wrap { position: relative; background: var(--abyss); padding: 18px; height: 528px; display: flex; justify-content: center; overflow: hidden; }
.paper {
  background: #fff; color: #161616; width: 100%; max-width: 440px; border-radius: 2px; padding: 24px 24px 20px;
  font-size: 10.5px; line-height: 1.5; box-shadow: 0 20px 50px -20px var(--sh-mid); transition: opacity .5s, transform .6s var(--ease);
}
.paper.is-out { opacity: 0; transform: translateY(14px) scale(.985); }
.paper .p-top { display: flex; justify-content: space-between; align-items: flex-start; }
.paper .p-emisor { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.paper .p-muted { color: #6b6b6b; }
.paper .p-lin { height: 1px; background: #e4e4e4; margin: 12px 0; }
.paper table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.paper th { background: #f3f3f3; color: #444; text-align: left; font-weight: 500; padding: 5px 6px; }
.paper td { border-top: 1px solid #eee; padding: 5px 6px; }
.paper .r { text-align: right; font-variant-numeric: tabular-nums; }
.paper .p-tot { display: flex; justify-content: space-between; margin-top: 4px; }
.paper .p-big { font-weight: 600; font-size: 12px; border-top: 1px solid #ccc; padding-top: 6px; margin-top: 6px; }
.paper .p-foot { color: #8a8a8a; font-size: 8.5px; }
.paper .p-right { text-align: right; } .paper .p-bold { font-weight: 600; } .paper .p-mt { margin-top: 10px; } .paper .p-mt-s { margin-top: 6px; }
.paper .hl { border-radius: 2px; transition: background .4s, box-shadow .4s; }
.paper .hl.on { background: #fff1b8; }
.paper .hl.link { background: #d7d4ff; box-shadow: 0 0 0 2px #847dff; }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(132, 125, 255, .14) 70%, rgba(132, 125, 255, .55) 98%, transparent);
  border-bottom: 1px solid rgba(178, 174, 255, .9);
}
.scan.run { animation: scan 1.7s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-120px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(560px); } }

.pane-form { display: flex; flex-direction: column; }
.notice { margin: 0; padding: 12px 16px; font-size: 12.5px; line-height: 1.5; border-left: 3px solid var(--amber); background: rgba(242, 184, 75, .1); min-height: 58px; transition: background .4s, border-color .4s, opacity .4s; }
.notice.ok { border-left-color: var(--cyan); background: rgba(0, 179, 221, .1); }
.notice.is-out { opacity: 0; }
.notice b { font-weight: 500; }
.fgroup { padding: 14px 16px 0; }
.fgroup-title { font: 400 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 9px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.f-label { display: block; font: 400 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin-bottom: 5px; }
.f-input {
  display: block; height: 34px; padding: 9px 11px; border-radius: 7px; background: var(--void); border: 1px solid rgba(var(--fg-rgb), .12);
  font-size: 12.5px; color: var(--cloud); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .35s, box-shadow .35s;
}
.f-input.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.f-input.typing::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--pure); animation: blink .7s steps(1) infinite; }
.f-input.filled { border-color: rgba(var(--fg-rgb), .2); }
.f-input.doubt { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 184, 75, .14); animation: doubt 1.6s ease-in-out infinite; }
.f-input.match { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 179, 221, .14); }
@keyframes doubt { 50% { box-shadow: 0 0 0 5px rgba(242, 184, 75, .06); } }
@keyframes blink { 50% { opacity: 0; } }
.cuadre { margin: 14px 16px 0; display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 8px; font-size: 12px; background: rgba(var(--fg-rgb), .04); border-left: 3px solid var(--fog); transition: background .4s, border-color .4s; }
.cuadre-val { font-family: var(--mono); color: var(--ash); transition: color .3s; }
.cuadre.ok { background: rgba(0, 179, 221, .1); border-left-color: var(--cyan); }
.cuadre.ok .cuadre-val { color: var(--cyan); }
.device-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(var(--deep-rgb), .9); border-top: 1px solid rgba(var(--fg-rgb), .1); }
.d-ghost { font-size: 11.5px; color: var(--ash); border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 11px; }
.d-keys { font: 400 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }
.d-primary { margin-left: auto; font-size: 12px; font-weight: 500; background: var(--pure); color: var(--void); border-radius: 7px; padding: 9px 14px; transition: transform .2s, box-shadow .3s; }
.d-primary.press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(var(--fg-rgb), .15); }

.device.is-compact .device-body { grid-template-columns: 1fr; }
.device.is-compact .pane-pdf, .device.is-compact .device-tabs span:not(.on), .device.is-compact .d-keys, .device.is-compact .d-ghost:nth-child(2) { display: none; }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px;
  font: 400 12px/1.2 var(--mono); color: var(--cloud); white-space: nowrap;
  background: rgba(var(--panel-rgb), .78); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px var(--sh-mid); opacity: 0; transform: translate3d(var(--px, 0), calc(var(--py, 0px) + 16px), 0) scale(.96);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.chip.is-on { opacity: 1; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
.chip-a { left: 0; top: 28%; }
.chip-b { right: 5%; top: -22px; }
.chip-c { right: 4%; bottom: 14%; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--fog); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(0, 179, 221, .8); }
.dot-iris { background: var(--iris); box-shadow: 0 0 12px rgba(132, 125, 255, .8); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.xls { font: 500 9px/1 var(--mono); padding: 4px 5px; border-radius: 4px; background: #1d6f42; color: #fff; letter-spacing: .04em; }
.stage-note { text-align: center; margin: 22px 0 0; font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-label { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.section-label span { color: var(--pure); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; }
.section-title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; margin: 0 0 64px; max-width: 16ch; font-variation-settings: "opsz" 72; }
.section-title em, .cta-title em { color: var(--ash); }
.lead { font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; color: var(--ash); max-width: 58ch; }

.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--rd, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------------ problem */
.problem { border-top: 1px solid var(--line); }
.lightup { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -.02em; margin: 0; max-width: 24ch; font-variation-settings: "opsz" 48; }
.lightup .w { color: rgba(var(--text-rgb), .16); transition: color .25s linear; }
.lightup .w.lit { color: var(--cloud); }
.marquee { margin: clamp(64px, 9vw, 120px) 0; display: grid; overflow: hidden; gap: 18px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.inv {
  width: 230px; flex: none; background: #f4f4f2; color: #1b1b1b; border-radius: 6px; padding: 16px 16px 14px; font-size: 10px; line-height: 1.4;
  box-shadow: 0 30px 60px -30px var(--sh-strong), 0 0 0 1px var(--line); position: relative; overflow: hidden;
}
.inv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .04)); }
.inv b { display: block; font-size: 11.5px; margin-bottom: 2px; }
.inv .meta { font-family: var(--mono); font-size: 9px; color: #6d6d6d; }
.inv .bars { margin: 12px 0; display: grid; gap: 5px; }
.inv .bars i { display: block; height: 5px; border-radius: 3px; background: #e2e2df; }
.inv .bars i:nth-child(2) { width: 78%; } .inv .bars i:nth-child(3) { width: 55%; }
.inv .tot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; border-top: 1px solid #ddd; padding-top: 6px; }
.inv .stamp { position: absolute; right: 10px; top: 10px; font: 500 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; }
.inv .stamp.todo { color: #9c6500; background: #ffeb9c; }
.inv .stamp.typed { color: #6d6d6d; background: #e9e9e6; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pain { background: var(--obsidian); padding: 36px 32px 40px; }
.pain-n { font: 400 11px/1 var(--mono); letter-spacing: .14em; color: var(--fog); }
.pain h3 { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.1; margin: 28px 0 12px; letter-spacing: -.01em; }
.pain p { margin: 0; color: var(--ash); font-weight: 300; font-size: 16px; }

/* ------------------------------------------------------------------ how it works (sticky story) */
.how-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-step { padding: 22px 0 22px 28px; border-left: 1px solid var(--line-2); opacity: .32; transition: opacity .5s var(--ease), border-color .5s; position: relative; cursor: pointer; }
.how-step:not(.is-active):hover { opacity: .6; }
.how-step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--pure); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }
.how-step.is-active { opacity: 1; }
.how-step.is-active::before { transform: scaleY(var(--hp, 1)); transition: none; }
.how-n { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.how-step h3 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 12px 0 10px; letter-spacing: -.01em; }
.how-btn { font: inherit; color: inherit; letter-spacing: inherit; text-align: left; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.how-btn::after { content: ""; position: absolute; inset: 0; } /* whole step is the hit area */
.how-step p { margin: 0; color: var(--ash); font-weight: 300; font-size: 16px; max-width: 46ch; }
.how-visual { position: relative; height: 540px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -50px var(--sh-strong); }
.how-progress { position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); z-index: 2; }
.how-progress span { display: block; height: 100%; background: var(--pure); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.scene { position: absolute; inset: 0; padding: 36px; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .7s var(--ease), transform .8s var(--ease); pointer-events: none; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.scene.is-active { opacity: 1; transform: none; }

.drop { border: 1px dashed rgba(var(--fg-rgb), .22); border-radius: 16px; padding: 30px; text-align: center; position: relative; overflow: hidden; }
.drop::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(132, 125, 255, .18), transparent 60%); opacity: 0; transition: opacity .8s; }
.scene-upload.is-active .drop::before { opacity: 1; }
.drop-title { font-family: var(--display); font-weight: 300; font-size: 26px; }
.drop-sub { font-size: 13px; color: var(--ash); margin-top: 6px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.files li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; padding: 12px 14px; background: var(--graphite); border-radius: 12px; opacity: 0; transform: translateY(-40px) rotate(-2deg); }
.scene-upload.is-active .files li { animation: drop-in .9s var(--ease) forwards; }
.scene-upload.is-active .files li:nth-child(2) { animation-delay: .18s; }
.scene-upload.is-active .files li:nth-child(3) { animation-delay: .36s; }
.scene-upload.is-active .files li:nth-child(4) { animation-delay: .54s; }
@keyframes drop-in { to { opacity: 1; transform: none; } }
.ficon { grid-row: span 2; width: 32px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: var(--steel); font: 400 8.5px/1 var(--mono); color: var(--ash); }
.ficon.zip { background: rgba(132, 125, 255, .2); color: var(--cloud); }
.fname { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fstate { font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); padding: 5px 9px; border-radius: 99px; background: rgba(106, 107, 107, .2); }
.fstate.ok { background: rgba(0, 179, 221, .16); color: var(--cloud); }
.fstate.work { background: rgba(132, 125, 255, .18); color: var(--cloud); }
.fbar { grid-column: 2 / -1; height: 3px; border-radius: 3px; background: var(--steel); overflow: hidden; }
.fbar i { display: block; height: 100%; width: 0; background: var(--cyan); }
.scene-upload.is-active .files li:nth-child(1) .fbar i { animation: fill 1.2s .6s var(--ease) forwards; }
.scene-upload.is-active .files li:nth-child(2) .fbar i { animation: fill 1.4s .8s var(--ease) forwards; }
.scene-upload.is-active .files li:nth-child(3) .fbar i { background: var(--iris); animation: fill-part 2.4s 1s var(--ease) forwards; }
.scene-upload.is-active .files li:nth-child(4) .fbar i { background: var(--fog); width: 8%; }
@keyframes fill { to { width: 100%; } }
@keyframes fill-part { to { width: 66%; } }

.scene-extract { flex-direction: row; align-items: center; gap: 24px; }
.mini-paper { position: relative; flex: 0 0 42%; background: #fff; color: #1b1b1b; border-radius: 4px; padding: 18px; font-size: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px var(--sh-strong); }
.mp-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mp-head b { font-size: 11.5px; } .mp-head span { font-family: var(--mono); font-size: 8.5px; color: #777; white-space: nowrap; }
.mp-line { height: 5px; border-radius: 3px; background: #ebebeb; margin: 5px 0; } .w80 { width: 80%; } .w60 { width: 60%; }
.mp-sep { height: 1px; background: #e4e4e4; margin: 12px 0; }
.mp-row { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid #f0f0f0; font-variant-numeric: tabular-nums; }
.mp-total { font-weight: 600; border-top: 1px solid #ccc; }
.mp-scan { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(132, 125, 255, .35)); border-bottom: 1px solid var(--iris); transform: translateY(-80px); }
.scene-extract.is-active .mp-scan { animation: mp-scan 2.6s .2s var(--ease) infinite; }
@keyframes mp-scan { 0% { transform: translateY(-80px); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }
.extracted { flex: 1; display: grid; gap: 6px; }
.ex-row { display: grid; grid-template-columns: 96px auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; background: var(--graphite); font-size: 12.5px; opacity: 0; transform: translateX(16px); }
.ex-row span { font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.ex-row b { font-family: var(--mono); font-weight: 400; font-size: 12.5px; }
.ex-row i { font-style: normal; font-size: 11px; justify-self: end; white-space: nowrap; }
.ex-row i.ok { color: var(--cyan); } .ex-row i.link { color: var(--periwinkle); }
.scene-extract.is-active .ex-row { animation: ex-in .6s var(--ease) forwards; animation-delay: calc(var(--k) * 140ms + 300ms); }
@keyframes ex-in { to { opacity: 1; transform: none; } }
.ex-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 9px; background: rgba(0, 179, 221, .1); border-left: 3px solid var(--cyan); font-size: 12px; opacity: 0; }
.scene-extract.is-active .ex-check { animation: ex-in .6s 1.5s var(--ease) forwards; }
.ex-sum { font-family: var(--mono); color: var(--ash); font-size: 11.5px; } .ex-sum b { color: var(--cyan); font-weight: 400; white-space: nowrap; }

.sheet { border-radius: 10px; overflow: hidden; border: 1px solid rgba(var(--fg-rgb), .1); font-size: 11.5px; }
.sheet-row { display: grid; grid-template-columns: 96px 78px 1fr 78px 64px; background: #f6f6f4; color: #1b1b1b; opacity: 0; transform: translateY(10px); }
.sheet-row span { padding: 9px 10px; border-right: 1px solid #dcdcd8; border-bottom: 1px solid #dcdcd8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-row span:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-head { background: #1f3864; color: #fff; font-weight: 600; font-size: 10.5px; }
.sheet-head span { border-color: rgba(255, 255, 255, .2); }
.r-mid { background: #fff7d6; } .r-mid span:last-child { background: #ffeb9c; color: #9c6500; }
.r-low { background: #ffc7ce; } .r-low span:last-child { color: #9c0006; }
.sheet-row:not(.sheet-head):not(.r-mid):not(.r-low) span:last-child { background: #c6efce; color: #006100; }
.scene-excel.is-active .sheet-row { animation: ex-in .5s var(--ease) forwards; }
.scene-excel.is-active .sheet-row:nth-child(2) { animation-delay: .25s; } .scene-excel.is-active .sheet-row:nth-child(3) { animation-delay: .4s; }
.scene-excel.is-active .sheet-row:nth-child(4) { animation-delay: .55s; } .scene-excel.is-active .sheet-row:nth-child(5) { animation-delay: .7s; }
.scene-excel.is-active .sheet-row:nth-child(6) { animation-delay: .85s; }
.excel-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.dl, .confirm { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font: 400 12px/1.2 var(--mono); opacity: 0; }
.dl { background: var(--pure); color: var(--void); }
.dl b { font-weight: 500; }
.confirm { background: rgba(0, 179, 221, .12); color: var(--cloud); }
.tick { color: var(--cyan); }
.scene-excel.is-active .dl { animation: ex-in .6s 1.1s var(--ease) forwards, glow 2s 1.8s ease-in-out infinite; }
.scene-excel.is-active .confirm { animation: ex-in .6s 1.6s var(--ease) forwards; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(var(--fg-rgb), .12); } }

/* ------------------------------------------------------------------ features bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 30px; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px; min-height: 340px; isolation: isolate; transition: border-color .4s;
}
.card::before { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--fg-rgb), .07), transparent 60%);
}
.card::after { /* spotlight border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--fg-rgb), .45), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.card-wide .card-copy { flex: 0 0 38%; }
.card h3 { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15.5px; font-weight: 300; color: var(--ash); }
.viz { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }

.nif-read { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--void); border: 1px solid var(--line-2); }
.nif-read b { font: 400 16px/1 var(--mono); letter-spacing: .04em; }
.nif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nif-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--graphite); font-size: 14px; color: var(--ash); transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--ease); }
.nif-list li b { font: 400 12.5px/1.4 var(--mono); }
.nif-list li.hit { background: rgba(0, 179, 221, .14); color: var(--cloud); box-shadow: inset 3px 0 0 var(--cyan); transform: translateX(6px); }

.eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font: 400 clamp(17px, 1.6vw, 22px)/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.eq .op { color: var(--fog); }
.eq span { transition: color .3s; }
.eq-res { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: rgba(0, 179, 221, .12); border-left: 3px solid var(--cyan); transition: background .4s, border-color .4s; }
.eq-res b { font: 500 15px/1 var(--mono); color: var(--cyan); }
.eq-res.bad { background: rgba(255, 107, 107, .12); border-left-color: var(--red); }
.eq-res.bad b { color: var(--red); }
.eq-res.bad .dot { background: var(--red); box-shadow: 0 0 12px rgba(255, 107, 107, .8); }

.badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 6px 11px; border-radius: 999px; font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cloud); background: rgba(242, 184, 75, .16); }
.badge .dot { width: 6px; height: 6px; }
.badge-ok { background: rgba(0, 179, 221, .16); }
.viz-motivo .badge .dot { background: var(--amber); }
.viz-motivo .badge.low { background: rgba(255, 107, 107, .16); }
.viz-motivo .badge.low .dot { background: var(--red); }
.typed { margin: 0; font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.2; color: var(--cloud); min-height: 2.4em; }
.caret { display: inline-block; width: 2px; height: .9em; vertical-align: -.1em; margin-left: 2px; background: var(--iris); animation: blink .8s steps(1) infinite; }

.viz-lotes { position: relative; min-height: 150px; }
.lote { position: absolute; left: 0; right: 0; padding: 14px 16px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; transition: transform .8s var(--ease), opacity .8s; }
.lote b { font-weight: 500; font-size: 14px; } .lote span { color: var(--ash); font: 400 11px/1.4 var(--mono); }
.lote .badge { margin-left: auto; color: var(--cloud); }
.l3 { top: 0; transform: scale(.88); opacity: .45; } .l2 { top: 18px; transform: scale(.94); opacity: .7; } .l1 { top: 40px; background: var(--l1-bg); box-shadow: 0 20px 40px -20px var(--sh-strong); }
.card:hover .l3 { transform: translateY(-10px) scale(.88); } .card:hover .l2 { transform: translateY(-4px) scale(.94); } .card:hover .l1 { transform: translateY(8px); }

.viz-traza { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; }
.node { flex: none; padding: 10px 12px; border-radius: 10px; background: var(--graphite); border: 1px solid var(--line-2); font: 400 11.5px/1.2 var(--mono); white-space: nowrap; }
.node-key { background: var(--pure); color: var(--void); font-weight: 500; }
.wire { flex: 1; height: 1px; background: rgba(var(--fg-rgb), .15); position: relative; overflow: hidden; min-width: 14px; }
.wire i { position: absolute; top: -1px; left: -40%; width: 40%; height: 3px; background: linear-gradient(90deg, transparent, var(--iris), transparent); animation: wire 2.2s linear infinite; }
.wire:last-child i, .wire + .node-key + .wire i { animation-delay: 1.1s; }
@keyframes wire { to { left: 100%; } }

.xgrid { border-radius: 10px; overflow: hidden; border: 1px solid rgba(var(--fg-rgb), .1); font-size: 12px; }
.xrow { display: grid; grid-template-columns: 1fr 1.7fr 1fr 1fr 1fr; background: #f6f6f4; color: #1b1b1b; animation: ex-in .5s var(--ease) both; }
.xrow span { padding: 8px 10px; border-right: 1px solid #dcdcd8; border-bottom: 1px solid #dcdcd8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.xrow span:nth-child(4), .xrow span:nth-child(5) { text-align: right; font-family: var(--mono); font-size: 11px; }
.xhead { background: #1f3864; color: #fff; font-weight: 600; font-size: 10.5px; animation: none; }
.xhead span:nth-child(5) { background: #808080; }
.xrow.mid { background: #fff7d6; }
.xrow.low { background: #ffc7ce; }
.xrow.out { animation: x-out .4s var(--ease) forwards; }
@keyframes x-out { to { opacity: 0; transform: translateY(-6px); } }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.log li { padding: 10px 12px; border-radius: 10px; background: var(--graphite); animation: ex-in .5s var(--ease) both; }
.log time { font: 400 10.5px/1 var(--mono); color: var(--fog); margin-right: 8px; }
.log b { font-weight: 500; }
.log .diff { display: block; margin-top: 4px; font: 400 11px/1.4 var(--mono); color: var(--ash); }
.log .diff s { color: var(--red); text-decoration-thickness: 1px; } .log .diff ins { color: var(--cyan); text-decoration: none; }

/* ------------------------------------------------------------------ security */
.security { background: var(--abyss); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sec-list li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.sec-list li:last-child { border-bottom: 1px solid var(--line); }
.sec-list b { font-weight: 500; font-size: 16px; }
.sec-list span { color: var(--ash); font-weight: 300; font-size: 15.5px; }
.rules { --mx: 50%; --my: 50%; position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; padding: 40px; overflow: hidden; isolation: isolate; }
.rules::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(132, 125, 255, .1), transparent 60%); }
.rules-kicker { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; }
.rules-kicker em { color: var(--ash); }
.rules-text { color: var(--ash); font-weight: 300; margin: 0 0 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(var(--fg-rgb), .03); border: 1px solid var(--line); font-size: 14.5px; opacity: .25; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .6s var(--ease), border-color .5s; }
.checks li.on { opacity: 1; transform: none; }
.ck { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 11px/1 var(--mono); background: rgba(0, 179, 221, .18); color: var(--cyan); }
.checks li.warn .ck { background: rgba(242, 184, 75, .2); color: var(--amber); }
.checks li.warn.on { border-color: rgba(242, 184, 75, .4); }

/* ------------------------------------------------------------------ who + timeline */
.who-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.who .lead + .lead { margin-top: 20px; }
.timeline { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.timeline ol { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.timeline ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--cyan), var(--iris) 50%, var(--line-2) 75%); }
.timeline li { position: relative; padding: 0 0 28px 36px; display: grid; gap: 4px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { font-weight: 500; }
.timeline li span:last-child { color: var(--ash); font-weight: 300; font-size: 15px; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--obsidian); }
.done .tl-dot { background: var(--cyan); border-color: var(--cyan); }
.now .tl-dot { background: var(--iris); border-color: var(--iris); box-shadow: 0 0 0 0 rgba(132, 125, 255, .6); animation: ping 2.4s infinite; }
.now b::after { content: "Ahora"; margin-left: 10px; font: 400 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: rgba(132, 125, 255, .2); vertical-align: 2px; }

/* ------------------------------------------------------------------ CTA */
.cta-card {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--panel); overflow: hidden; isolation: isolate;
}
.cta-card::before { /* animated hairline border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), rgba(var(--fg-rgb), .08), rgba(132, 125, 255, .7), rgba(0, 179, 221, .6), rgba(var(--fg-rgb), .08) 40%, rgba(var(--fg-rgb), .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px circle at var(--mx) var(--my), rgba(132, 125, 255, .09), transparent 60%); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.cta-title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 0 0 24px; font-variation-settings: "opsz" 72; }
.cta-alt { margin-top: 28px; color: var(--ash); font-size: 15px; }
.cta-alt a, .nw { white-space: nowrap; }
.form { display: grid; gap: 16px; }
.field label, .field > span:first-child { display: block; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: var(--void); border: 1px solid rgba(var(--fg-rgb), .12); border-radius: 8px; color: var(--cloud);
  font: 400 16px/1.2 var(--sans); padding: 14px 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: rgba(var(--fg-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--fg-rgb), .08); }
.field.has-error input { border-color: var(--red); }
.field-error { display: block; font-size: 13px; color: var(--err-text); min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ash); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pure); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 14px; color: var(--ash); min-height: 1.4em; }
.form-done { text-align: left; align-self: center; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(0, 179, 221, .16); color: var(--cyan); margin-bottom: 24px; animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------------ footer */
.footer { padding: 40px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-word {
  margin: 0 0 24px; font-family: var(--display); font-weight: 300; font-size: clamp(88px, 21vw, 340px); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb), .18); text-align: center; user-select: none; font-variation-settings: "opsz" 72;
  background: linear-gradient(180deg, rgba(var(--fg-rgb), .1), transparent 85%); -webkit-background-clip: text; background-clip: text;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ash); }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--pure); }
.powered { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------------ legal / simple pages */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; padding: 160px 0 96px; }
.page-simple h1 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 0 0 28px; }
.page-simple .note { display: inline-block; font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--note-text); padding: 8px 12px; border: 1px solid rgba(242, 184, 75, .4); border-radius: 8px; margin-bottom: 28px; }
.page-simple p, .page-simple li { color: var(--ash); font-weight: 300; max-width: 64ch; }
.page-simple h2 { font-family: var(--display); font-weight: 300; font-size: 28px; margin: 40px 0 12px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .security-grid, .who-grid { grid-template-columns: 1fr; }
  .chip-a { left: 2%; top: 22%; } .chip-b { right: 4%; top: -18px; }
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-step { opacity: 1; cursor: default; }
  .how-step::before, .how-step.is-active::before { transform: scaleY(1); }
  .how-btn { cursor: default; }
  .how-visual { display: grid; height: auto; gap: 16px; background: none; border: 0; box-shadow: none; overflow: visible; }
  .how-progress { display: none; }
  .scene { position: relative; inset: auto; opacity: 1; transform: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
  .scene-extract { flex-direction: column; align-items: stretch; }
  .cta-card { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .sec-list li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-in { gap: 12px; }
  .hero { padding-top: 128px; }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .card { min-height: 0; }
  .chip { font-size: 10.5px; padding: 8px 11px; }
  .chip-a, .chip-c { display: none; }
  .chip-b { right: 4%; top: -16px; }
  .stage { margin-top: 56px; }
  .sheet { font-size: 10px; }
  .sheet-row { grid-template-columns: 78px 1fr 60px 46px; }
  .sheet-row span { padding: 8px 7px; }
  .sheet-row span:nth-child(2) { display: none; }
  .viz-traza { flex-direction: column; align-items: stretch; gap: 0; }
  .viz-traza .wire { height: 18px; width: 1px; min-width: 0; align-self: center; flex: none; }
  .viz-traza .wire i { width: 3px; height: 40%; left: -1px; top: -40%; animation-name: wire-v; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@keyframes wire-v { to { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .intro, .reveal, .hero-title .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .stage-tilt { transform: none !important; }
  .lightup .w { color: var(--cloud); }
  .marquee-row { animation: none; }
  body::after { animation: none; }
}

/* ------------------------------------------------------------------ link to the step-by-step guide */
.how-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 56px; }
.how-more-note { font: 400 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

/* ------------------------------------------------------------------ theme buttons (dark / light) */
.theme-switch { display: inline-flex; flex: none; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.theme-switch button { width: 32px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ash); cursor: pointer; transition: background .2s, color .2s; }
.theme-switch button:hover { color: var(--pure); }
.theme-switch button[aria-pressed="true"] { background: rgba(var(--fg-rgb), .1); color: var(--pure); }
.theme-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

html[data-theme="light"] .inv { background: #fff; }
