@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"), url("/fonts/fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FAFAF9; --paper-2: #F3F1EC; --ink: #1C1917; --muted: #6B6560; --line: #E7E4DF;
  --teal: #0F766E; --teal-d: #0C625B; --teal-l: #7FD3C8; --deep: #0D2E2B; --deep-2: #123B37;
  --s1: #D7EEEA; --s1f: #134E48; --s2: #F7E3D2; --s2f: #7A3C12; --s3: #DDEFD9; --s3f: #24572A; --s4: #E4E1F5; --s4f: #3E3480;
  --s5: #F4ECCB; --s5f: #69520D; --s6: #F8DDE0; --s6f: #85253A; --s7: #DCE8F7; --s7f: #1F4C80; --s8: #E9E4DC; --s8f: #4C4135;
  --display: "Fraunces", Georgia, serif; --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--teal); color: #fff; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1200px, 100% - 64px); } }

/* Type */
.display { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 50; letter-spacing: -0.03em; font-size: clamp(44px, 7.2vw, 96px); line-height: .98; }
.display em, .h2 em { font-style: italic; font-weight: 420; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--teal); }
.h2 { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 120, "SOFT" 50; letter-spacing: -0.025em; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; max-width: 18ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #4A4540; max-width: 34em; margin-top: 28px; }
.body { color: var(--muted); margin-top: 20px; max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background-color .15s, box-shadow .2s, transform .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 1px 2px rgb(15 118 110 / 30%), 0 10px 24px -10px rgb(15 118 110 / 70%); }
.btn-primary:hover { background: var(--teal-d); box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 1px 2px rgb(15 118 110 / 30%), 0 14px 30px -10px rgb(15 118 110 / 80%); }
.btn-ghost { border: 1px solid rgb(15 118 110 / 25%); color: var(--teal); background: rgb(255 255 255 / 70%); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); background: #fff; }
.btn-light { background: #FAFAF9; color: var(--deep); }
.btn-light:hover { background: #fff; box-shadow: 0 12px 30px -12px rgb(0 0 0 / 50%); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(250 250 249 / 86%); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); }
.logo-sign { width: 42px; height: 33px; }
.logo-word { font-family: var(--display); font-weight: 640; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; letter-spacing: -0.028em; font-size: 26px; color: var(--deep); line-height: 1; }
.logo-sm .logo-sign { width: 34px; height: 26px; } .logo-sm .logo-word { font-size: 21px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #4A4540; }
.site-nav a:hover { color: var(--teal); background: rgb(15 118 110 / 7%); }
.site-nav a[aria-current] { color: var(--teal); background: rgb(15 118 110 / 9%); font-weight: 600; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 132px 0 96px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { will-change: transform; }
section[id] { scroll-margin-top: 72px; }
.layer-bg, .layer-paper { position: absolute; inset: -10% 0; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 78% 40%, rgb(15 118 110 / 14%), transparent 70%), radial-gradient(45% 45% at 10% 90%, rgb(247 227 210 / 55%), transparent 70%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.paper-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(28 25 23 / 4.5%) 1px, transparent 1px), linear-gradient(to bottom, rgb(28 25 23 / 4.5%) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 70% 45%, #000 20%, transparent 80%); }
.hero-sign { position: absolute; width: 720px; height: 552px; right: -160px; bottom: 6%; color: rgb(15 118 110 / 5%); }
.sheets { position: absolute; right: max(24px, calc((100% - 1200px) / 2 + 270px)); top: 12%; width: 1px; height: 1px; }
.sheets span { position: absolute; left: -90px; top: 0; width: 180px; height: 240px; transform-origin: 50% 160%; transform: rotate(calc(var(--r) * (1 - var(--p, 0) * .82))) translateY(calc(var(--p, 0) * 26px)); }
.sheets i { position: absolute; inset: 0; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #fff, #F6F4EF); border: 1px solid rgb(28 25 23 / 7%); box-shadow: 0 30px 60px -30px rgb(13 46 43 / 30%); opacity: .92; animation: sheet-in 1.6s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
.sheets i::after { content: ""; position: absolute; inset: 28px 22px auto; height: 90px; background: repeating-linear-gradient(180deg, rgb(15 118 110 / 18%) 0 2px, transparent 2px 18px); }
.sheets span:nth-child(3) i::before { content: ""; position: absolute; left: 22px; right: 22px; bottom: 34px; height: 46px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--s1) 0 22%, transparent 22% 26%, var(--s2) 26% 48%, transparent 48% 52%, var(--s4) 52% 74%, transparent 74% 78%, var(--s3) 78% 100%); opacity: calc(var(--p, 0) * 1.4); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.phase { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #8A4B0B; background: #FDF6E9; border: 1px solid #F3DDB4; margin-bottom: 28px; }
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: #D97706; box-shadow: 0 0 0 4px rgb(217 119 6 / 18%); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(217 119 6 / 6%); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); max-width: 34em; padding-left: 14px; border-left: 2px solid var(--line); }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(18px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgb(28 25 23 / 22%); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(10px); opacity: .3; } }

/* Product card (real HTML, not video) */
.product-card { background: #FFFEFC; border: 1px solid rgb(28 25 23 / 8%); border-radius: 18px; box-shadow: 0 1px 2px rgb(28 25 23 / 5%), 0 40px 80px -40px rgb(13 46 43 / 40%), 0 0 0 8px rgb(255 255 255 / 50%); overflow: hidden; }
.hero-product { animation: rise 1.1s var(--ease) .25s both; transform: rotate(-1.2deg); }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 12.5px; }
.pc-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #DDD8D0; }
.pc-bar b { margin-left: 10px; font-weight: 600; }
.pc-bar em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11.5px; }
.scene-card .pc-bar::after { content: "datos ficticios"; margin-left: auto; color: var(--muted); font-size: 11.5px; }
.tt { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 5px; padding: 14px; font-size: 11.5px; }
.tt-h { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 2px 0 6px; }
.tt-t { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: center; }
.c { position: relative; min-height: 46px; border-radius: 7px; padding: 8px; font-weight: 600; display: flex; align-items: flex-end; line-height: 1.2; overflow: hidden; }
.s1 { background: var(--s1); color: var(--s1f); } .s2 { background: var(--s2); color: var(--s2f); } .s3 { background: var(--s3); color: var(--s3f); } .s4 { background: var(--s4); color: var(--s4f); }
.s5 { background: var(--s5); color: var(--s5f); } .s6 { background: var(--s6); color: var(--s6f); } .s7 { background: var(--s7); color: var(--s7f); } .s8 { background: var(--s8); color: var(--s8f); }
.c.brk { grid-column: span 5; min-height: 20px; padding: 0; justify-content: center; align-items: center; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: repeating-linear-gradient(90deg, var(--paper-2) 0 6px, transparent 6px 10px); }
.c.rd { padding-top: 24px; }
.c.rd i { position: absolute; inset: 0 0 auto; height: 16px; font-style: normal; font-size: 9.5px; padding: 1px 7px; border-bottom: 1px dashed currentColor; background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 60%) 0 4px, rgb(255 255 255 / 25%) 4px 8px); white-space: nowrap; }
.c.split { padding: 0; gap: 2px; background: #FFFEFC; }
.c.split span { flex: 1; display: grid; place-items: center; align-self: stretch; border-radius: 7px; font-size: 10.5px; letter-spacing: .05em; }
.tt .c { transition: filter .2s, box-shadow .2s; }
.tt .split span { transition: filter .2s, box-shadow .2s; }
.tt[data-focus] .c:not(.is-focus):not(.brk):not(.split), .tt[data-focus] .split span:not(.is-focus) { filter: saturate(.25) opacity(.42); }
.tt[data-focus] .c.is-focus, .tt[data-focus] .split span.is-focus { box-shadow: inset 0 0 0 2px currentColor; }
.pc-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: #EDF7F0; color: #166534; border-color: #BFE3CB; }
.tag.warn { background: #FDF6E9; color: #8A4B0B; border-color: #F1D9A8; }
.tag.bad { background: #FDF0EE; color: #912018; border-color: #F4C7C1; }

/* Sections */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section-paper { background: var(--paper-2); }
.section-ink { background: radial-gradient(70% 60% at 0% 0%, #164A45, transparent 60%), var(--deep); color: #FAFAF9; overflow: hidden; }
.section-ink .eyebrow { color: var(--teal-l); }
.section-ink .h2 em { color: var(--teal-l); }
.entities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.entity { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.entity:last-child { border-right: 0; margin-right: 0; }
.entity .n { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--teal); font-variation-settings: "opsz" 24; }
.entity h3 { font-size: 19px; font-weight: 650; margin: 14px 0 10px; letter-spacing: -0.01em; }
.entity p { font-size: 14.5px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin-top: 72px; display: grid; gap: 0; counter-reset: s; }
.steps { position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 106px; top: 40px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 40px; background: rgb(250 250 249 / 10%); }
.steps::after { height: calc((100% - 80px) * var(--fill, 1)); background: linear-gradient(180deg, var(--teal-l), #A8E6DD); box-shadow: 0 0 14px rgb(127 211 200 / 50%); }
.step-n { position: relative; z-index: 1; transition: color .4s, text-shadow .4s; }
.js .steps .step:not(.is-lit) .step-n { color: rgb(127 211 200 / 35%); }
.steps .step.is-lit .step-n { text-shadow: 0 0 24px rgb(127 211 200 / 35%); }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid rgb(250 250 249 / 12%); align-items: start; }
.step-n { font-family: var(--display); font-size: 64px; line-height: .9; font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--teal-l); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step p { color: rgb(250 250 249 / 68%); margin-top: 8px; max-width: 46em; }
.step-future h3 { color: rgb(250 250 249 / 82%); }
.step-future p { color: rgb(250 250 249 / 62%); }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px dashed rgb(127 211 200 / 50%); color: var(--teal-l); }

.scene { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 9vw, 120px); }
.scene-rev .scene-text { order: 2; }
.scene-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(15 118 110 / 9%); color: var(--teal); font-family: var(--display); font-style: italic; font-size: 20px; margin-bottom: 24px; }
.scene h3 { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 96, "SOFT" 50; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.scene-text p { color: var(--muted); margin-top: 16px; font-size: 16.5px; max-width: 30em; }
.scene-card { transform: rotate(.6deg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.scene-rev .scene-card { transform: rotate(-.6deg); }
.scene-card:hover, .scene-rev .scene-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 1px 2px rgb(28 25 23 / 5%), 0 50px 90px -40px rgb(13 46 43 / 45%), 0 0 0 8px rgb(255 255 255 / 50%); }
.imp { padding: 18px; display: grid; gap: 10px; }
.imp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.imp-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); display: grid; }
.imp-stats strong { font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--ink); line-height: 1.1; font-variation-settings: "opsz" 96; }
.imp-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.imp-row.err { background: #FDF7F6; border-color: #F4C7C1; }
.imp-row.warn { background: #FEFAF2; border-color: #F1D9A8; }
.imp-row .tag { flex-shrink: 0; min-width: 76px; justify-content: center; }
.load { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.load th, .load td { padding: 12px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.load thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.load th:first-child { text-align: left; font-weight: 600; }
.load tbody tr:last-child > * { border-bottom: 0; }
.load td:nth-child(3) { color: var(--muted); }
.load td:last-child { font-weight: 700; color: var(--teal); white-space: nowrap; }
.bar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, var(--teal) calc(var(--v) * 100%), #E7E4DF 0); }
.grids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.gcol { display: grid; gap: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gcol b { font-size: 12px; padding-bottom: 4px; }
.gcol span { padding: 10px; border-radius: 8px; background: var(--s1); color: var(--s1f); font-weight: 600; }
.gcol:nth-child(2) span { background: var(--s4); color: var(--s4f); }
.gcol:nth-child(3) span { background: var(--s2); color: var(--s2f); }
.gcol .gb { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 6px, #ECE9E3 6px 12px) !important; color: var(--muted) !important; font-weight: 500; }
.reading { padding: 18px; display: grid; gap: 12px; }
.rd-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.rd-track { display: flex; gap: 3px; height: 46px; }
.rd-track span { display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; }
.rd-read { width: var(--w); flex-shrink: 0; background: repeating-linear-gradient(-45deg, rgb(15 118 110 / 16%) 0 6px, rgb(15 118 110 / 8%) 6px 12px); color: var(--teal-d); border: 1px dashed rgb(15 118 110 / 40%); }
.rd-class { flex: 1; background: var(--s3); color: var(--s3f); }
.rd-row:nth-child(2) .rd-class { background: var(--s4); color: var(--s4f); }
.rd-class.full { background: var(--s2); color: var(--s2f); }
.rd-note { font-size: 12px; color: #8A4B0B; background: #FDF6E9; border: 1px solid #F1D9A8; border-radius: 8px; padding: 6px 10px; justify-self: start; }

.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat; transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--teal); }
.accordion details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 40em; }

.cta { padding: 0 0 clamp(64px, 8vw, 120px); }
.cta-inner { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(64px, 9vw, 120px) 24px; border-radius: 28px; background: radial-gradient(60% 80% at 50% 0%, #1A5A53, transparent 70%), var(--deep); color: #FAFAF9; }
.cta-sign { position: absolute; z-index: -1; left: 50%; bottom: -120px; width: 560px; height: 430px; margin-left: -280px; color: rgb(127 211 200 / 8%); }
.cta .h2 { margin: 0 auto; }
.cta p { color: rgb(250 250 249 / 70%); margin: 18px 0 36px; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-inner nav { margin-left: auto; display: flex; gap: 20px; }
.footer-inner nav a:hover { color: var(--teal); }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .entities .reveal:nth-child(2) { transition-delay: .06s; } .js .entities .reveal:nth-child(3) { transition-delay: .12s; } .js .entities .reveal:nth-child(4) { transition-delay: .18s; } .js .entities .reveal:nth-child(5) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1080px) {
  .entities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity { border-right: 0; margin-right: 0; padding-right: 24px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .layer-product { max-width: 640px; }
  .sheets { right: -40px; top: 8%; }
}
@media (max-width: 860px) {
  .site-nav { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: rgb(250 250 249 / 97%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .header-cta { margin-left: auto; }
  .scene, .two-col { grid-template-columns: minmax(0, 1fr); }
  .scene-rev .scene-text { order: 0; }
  .scene-card, .scene-rev .scene-card, .hero-product { transform: none; }
}
@media (max-width: 560px) {
  .header-inner { gap: 10px; height: 64px; }
  .site-nav { inset: 64px 0 auto; }
  .logo-word { font-size: 22px; } .logo-sign { width: 34px; height: 27px; }
  .header-cta { padding: 0 12px; font-size: 13px; }
  .hero { padding: 104px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .entities { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .steps::before, .steps::after { left: 58px; }
  .step-n { font-size: 44px; }
  .tt { grid-template-columns: 36px repeat(5, minmax(0, 1fr)); gap: 3px; padding: 10px; font-size: 9.5px; }
  .c { min-height: 38px; padding: 5px; font-size: 9.5px; word-break: break-word; }
  .c.rd { padding-top: 20px; } .c.rd i { font-size: 8px; padding: 1px 4px; }
  .grids { grid-template-columns: minmax(0, 1fr); }
  .imp-row { flex-direction: column; gap: 8px; }
  .imp-stats strong { font-size: 22px; }
  .load th, .load td { padding: 10px; }
  .bar { display: none; }
  .rd-row { grid-template-columns: 64px minmax(0, 1fr); }
  .accordion summary { font-size: 17px; }
  .accordion details p { padding-right: 0; }
  .footer-inner nav { margin-left: 0; }
  .sheets, .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .layer { transform: none !important; }
  .sheets { --p: 0 !important; }
  .js .steps .step:not(.is-lit) .step-n { color: var(--teal-l); }
}

/* Footer legal row */
.footer-inner nav { flex-wrap: wrap; }
.footer-inner .footer-legal { flex-basis: 100%; margin-left: 0; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* Login link + demo booking CTA */
.header-login { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--deep); border: 1px solid var(--line); background: rgb(255 255 255 / 70%); transition: border-color .15s, color .15s, background-color .15s; white-space: nowrap; }
.header-login:hover { color: var(--teal); border-color: rgb(15 118 110 / 35%); background: #fff; }
.header-login svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.site-nav .nav-login { display: none; }
.cta .cta-alt { margin: 22px 0 0; font-size: 14px; color: rgb(250 250 249 / 62%); }
.cta .cta-alt a { color: #FAFAF9; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(127 211 200 / 60%); }
.cta .cta-alt a:hover { text-decoration-color: currentColor; }
.cta .h2 em { color: var(--teal-l); }
@media (max-width: 860px) {
  .header-login { display: none; }
  .site-nav .nav-login { display: block; color: var(--teal); font-weight: 600; }
}
.site-nav a { white-space: nowrap; }
/* Medium widths: the login link shrinks to its icon so the nav stays on one line. */
@media (max-width: 1080px) and (min-width: 861px) {
  .header-login:not(.booking-login) { width: 40px; padding: 0; justify-content: center; }
  .header-login:not(.booking-login) .hl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { gap: 16px; }
}
