/* Grupo ENX — original identity (light gray ground, ENX gray + green, FF Clan) carried into a
   3D digital-twin layout: sticky WebGL stage on the home page, contained twin heroes on product pages. */

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121517;
  --bg-alt: #171b1e;
  --surface: rgba(28, 32, 36, .9);
  --surface-solid: #1c2024;
  --line: #2b3137;
  --line-soft: #222729;
  --gray: #d9dde1;        /* headings on dark */
  --fg: #c9ced3;
  --muted: #8f979e;
  --brand: #95b734;       /* ENX green */
  --brand-hi: #a7c94a;
  --accent: #b5d35c;      /* green for small text on dark ground */
  --brand-tint: #2a3419;
  --on-brand: #11170a;
  --band-bg: #0c0e10;
  --band-fg: #ffffff;
  --band-muted: #b9c0c6;
  --twin-line: #6b737b;
  --twin-fill: #272c31;
  --twin-glass: #3a4249;
  --twin-ground: #191d20;
  --twin-glow: #1f2428;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);

  --f-display: "Exo 2", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Exo 2", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-xs: .75rem; --s-sm: .875rem; --s-md: 1rem; --s-lg: 1.2rem;
  --s-xl: clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem);
  --s-2xl: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem);
  --radius: 6px;
  --maxw: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f5; --bg-alt: #ffffff; --surface: rgba(255, 255, 255, .9); --surface-solid: #ffffff;
  --line: #dcdfe3; --line-soft: #e8eaed; --gray: #757980; --fg: #44474d; --muted: #6f737a;
  --brand: #95b734; --brand-hi: #86a52c; --accent: #6c8a1e; --brand-tint: #e9f0d5; --on-brand: #ffffff;
  --band-bg: #3f444b; --band-fg: #ffffff; --band-muted: #d7dadd;
  --twin-line: #7d848b; --twin-fill: #fafbfb; --twin-glass: #d6dde3; --twin-ground: #e3e6e9; --twin-glow: #ffffff;
  --shadow: 0 18px 44px rgba(60, 66, 74, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--s-md)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: var(--gray); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sel { user-select: all; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface-solid); padding: .5rem 1rem; }
.skip:focus { left: 16px; }

.eyebrow { font: 500 var(--s-xs)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.25rem; border-radius: var(--radius);
  font: 500 var(--s-sm)/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-sm { min-height: 38px; padding: 0 1rem; }
.btn-solid { background: var(--brand); color: var(--on-brand); }
.btn-solid:hover { background: var(--brand-hi); }
.btn-ghost { border-color: var(--line); color: var(--gray); background: var(--surface-solid); }
.btn-ghost:hover { border-color: var(--brand); color: var(--accent); }

/* ---- Header ---- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { max-width: var(--maxw); margin-inline: auto; height: 72px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; width: 150px; height: auto; }
.menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: .35rem; padding: .6rem .8rem; border: 0; background: none; cursor: pointer;
  font: 400 var(--s-sm)/1 var(--f-body); color: var(--gray); text-decoration: none; border-radius: var(--radius);
}
.menu > li > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu > li > a:hover, .menu > li > button:hover, .menu > li:focus-within > button { color: var(--accent); }
.drop {
  position: absolute; top: 100%; left: 50%; min-width: 300px; list-style: none; margin: 0; padding: .5rem;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu > li:hover .drop, .menu > li:focus-within .drop, .menu > li.open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: grid; gap: .15rem; padding: .65rem .75rem; border-radius: 4px; text-decoration: none; }
.drop a:hover { background: var(--bg); }
.drop b { font-weight: 500; color: var(--gray); font-size: var(--s-sm); }
.drop span { font-size: var(--s-xs); color: var(--muted); line-height: 1.4; }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); padding: 2px; cursor: pointer; font: 500 var(--s-xs)/1 var(--f-body); }
.lang span { padding: .4rem .5rem; color: var(--muted); border-radius: 4px; }
html[lang="es"] .lang [data-l="es"], html[lang="en"] .lang [data-l="en"] { background: var(--brand); color: var(--on-brand); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); cursor: pointer; place-items: center; }
.burger i, .burger i::before, .burger i::after { display: block; width: 18px; height: 1.5px; background: var(--gray); position: relative; content: ""; }
.burger i::before { position: absolute; top: -6px; } .burger i::after { position: absolute; top: 6px; }
.menu-cta { display: none; }
@media (max-width: 980px) {
  .burger { display: grid; }
  .nav.open .burger i { background: transparent; }
  .nav.open .burger i::before { top: 0; transform: rotate(45deg); }
  .nav.open .burger i::after { top: 0; transform: rotate(-45deg); }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    max-height: calc(100vh - 72px - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem var(--gutter-r) 1.5rem var(--gutter-l); background: var(--surface-solid);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .menu { display: flex; }
  .menu > li { border-bottom: 1px solid var(--line-soft); }
  .menu > li > a, .menu > li > button { padding: 1rem 0; font-size: var(--s-md); width: 100%; justify-content: space-between; border-radius: 0; color: var(--gray); }
  .menu > li > button::after { width: 8px; height: 8px; transition: transform .2s; }
  .menu > li.open > button::after { transform: rotate(225deg) translateY(-2px); }
  .menu > li.open > button { color: var(--accent); }
  .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 0 0 .75rem; display: none; background: none; }
  .menu > li.open .drop { display: block; }
  .menu > li:hover .drop, .menu > li:focus-within .drop { transform: none; }
  .drop a { padding: .6rem .75rem .6rem 1rem; border-left: 2px solid var(--line); border-radius: 0; }
  .drop a:hover { background: none; border-color: var(--brand); }
  .menu-cta { display: block; border-bottom: 0 !important; padding-top: 1rem; }
  .menu-cta .btn { width: 100%; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
}

/* ---- Home: digital twin stage ---- */
.twin { position: relative; }
.twin-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 64% 55%, var(--twin-glow), transparent 70%), var(--bg);
}
.twin-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 20%, transparent 75%);
}
.twin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; touch-action: pan-y; }
.twin-canvas.dragging { cursor: grabbing; }
.twin-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.twin-tag {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .55rem; border-radius: 3px; color: var(--gray);
  background: var(--surface); border: 1px solid var(--line);
  opacity: 0; transition: opacity .6s, color .6s, border-color .6s;
}
.twin-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--twin-line); transition: background .6s; }
.twin-tag.on { opacity: 1; }
.twin-tag.active { color: var(--fg); border-color: var(--brand); }
.twin-tag.active i { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.twin-hud {
  position: absolute; z-index: 3; bottom: 18px; right: var(--gutter-r);
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end;
  font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hud-live { display: inline-flex; align-items: center; gap: .4rem; }
.hud-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s infinite; }
.hud-zone { color: var(--gray); }
@keyframes pulse { 50% { opacity: .25; } }
@media (hover: none) { .hud-hint { display: none; } }

.twin-scroll { position: relative; z-index: 4; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.twin-scroll a, .twin-scroll button, .panel-card, .hero .wrap > * { pointer-events: auto; }
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 110px 56px;
  background: linear-gradient(90deg, var(--bg) 0, color-mix(in srgb, var(--bg) 75%, transparent) 36%, transparent 60%);
}
.hero .wrap { width: 100%; display: grid; gap: 1.3rem; }
.hero h1 { font-size: var(--s-2xl); max-width: 19ch; }
.hero .lede { max-width: 54ch; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.stats { margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: 760px; }
.stats div { padding: .9rem 1rem .2rem 0; display: flex; flex-direction: column-reverse; gap: .2rem; }
.stats dd { margin: 0; font: 600 1.7rem/1 var(--f-display); color: var(--gray); font-variant-numeric: tabular-nums; }
.stats dd b { color: var(--brand); font-weight: 500; }
.stats dt { font-size: var(--s-xs); color: var(--muted); line-height: 1.35; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.panel-card {
  width: min(450px, 100%); display: grid; gap: .9rem; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.panel-logo { height: 34px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.zone-code { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-kind { font-weight: 500; color: var(--gray); font-size: var(--s-lg); line-height: 1.3; }
.panel-card > p.body { color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .75rem; line-height: 1; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-solid); }
.telemetry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; background: var(--surface-solid); }
.telemetry div { padding: .6rem .7rem; display: grid; gap: .3rem; min-width: 0; }
.telemetry div + div { border-left: 1px solid var(--line); }
.telemetry span { font-size: .68rem; line-height: 1.25; color: var(--muted); }
.telemetry b { font: 500 var(--s-md)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--gray); overflow-wrap: anywhere; }
.panel-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.panel-links a:not(.btn) { font-weight: 500; font-size: var(--s-sm); color: var(--accent); text-decoration: none; }
.panel-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.ext::after { content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .3em; vertical-align: 0; background: currentColor; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") center / contain no-repeat; }
.i-chev { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.08em; }
.twin-tail { height: 25vh; }
@media (max-width: 760px) {
  .panel { align-items: flex-end; padding-block: 0 4vh; }
  .panel-card { padding: 1.2rem; gap: .7rem; }
  .hero { padding-block: 100px 40px; background: linear-gradient(0deg, var(--bg) 45%, color-mix(in srgb, var(--bg) 60%, transparent) 72%, transparent 90%); }
}

/* ---- Content sections ---- */
.content { position: relative; z-index: 5; background: var(--bg); }
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec + .sec { border-top: 1px solid var(--line-soft); }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: grid; gap: .9rem; margin-bottom: clamp(32px, 5vw, 52px); max-width: 780px; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.sec h2 { font-size: var(--s-xl); }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* product cards on home */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.prod {
  display: grid; grid-template-rows: 48px auto 1fr auto; gap: .9rem; padding: 1.5rem; text-decoration: none;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.prod:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.prod img { height: 40px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; align-self: center; }
.prod h3 { font-size: var(--s-lg); }
.prod p { color: var(--muted); font-size: var(--s-sm); }
.prod .go { font-size: var(--s-sm); font-weight: 500; color: var(--accent); }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 1.4rem 1.4rem 0 0; display: grid; gap: .6rem; align-content: start; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--brand); border-radius: 50%; }
.step-n { font: 500 var(--s-xs)/1 var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.steps h3 { font-size: var(--s-lg); }
.steps p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); padding-left: 1.4rem; gap: 1.6rem; }
  .steps li { padding: 0; }
  .steps li::before { top: .3rem; left: calc(-1.4rem - 5px); }
}

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.post { display: grid; grid-template-rows: auto 1fr; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s; }
.post:hover { border-color: var(--brand); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post div { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .45rem; align-content: start; }
.post small { font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post h3 { font-size: var(--s-md); line-height: 1.35; }
.more { margin-top: 1.6rem; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text { display: grid; gap: 1.1rem; }
.about-text > p:not(.eyebrow) { color: var(--muted); max-width: 58ch; }
.about-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.lineup { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.lineup li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.lineup img { height: 26px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; }
.lineup span { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .lineup li { grid-template-columns: 1fr; gap: .4rem; } }

/* ---- Product pages ---- */
.p-hero { padding-block: calc(72px + clamp(32px, 5vw, 64px)) 0; position: relative; overflow: hidden; }
.p-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.p-hero-text { display: grid; gap: 1.2rem; padding-bottom: clamp(32px, 5vw, 72px); }
.p-hero-text .p-logo { height: 46px; width: auto; max-width: 260px; object-fit: contain; object-position: left center; }
.p-hero h1 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.7rem); }
.p-hero .lede { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 54ch; }
.p-stage { position: relative; height: clamp(340px, 42vw, 560px); }
.p-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 70%);
}
.p-stage .twin-hud { right: 0; bottom: 8px; }
@media (max-width: 860px) { .p-hero-in { grid-template-columns: 1fr; } .p-hero-text { padding-bottom: 0; } }

.subnav { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--bg-alt) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line-soft); }
.subnav .wrap { display: flex; gap: 1.6rem; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav-logo { flex-shrink: 0; margin-right: 1.2rem; display: flex; opacity: .95; }
.subnav-logo img { height: 22px; width: auto; max-width: 150px; object-fit: contain; }
.subnav a { padding: .9rem 0; font-size: var(--s-sm); color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--accent); border-color: var(--brand); }

.feats {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.feats li { padding: 1.2rem 1rem; display: grid; gap: .6rem; align-content: start; font-size: var(--s-sm); color: var(--gray); line-height: 1.35; background: var(--surface-solid); }
.feats svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.modules { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.mod-tabs { display: grid; gap: .25rem; }
.mod-tabs button {
  text-align: left; padding: .8rem 1rem; border: 1px solid transparent; border-radius: var(--radius); background: none; cursor: pointer;
  font: 400 var(--s-md)/1.3 var(--f-body); color: var(--muted); display: flex; align-items: center; gap: .7rem;
}
.mod-tabs button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--twin-line); flex-shrink: 0; }
.mod-tabs button:hover { color: var(--gray); }
.mod-tabs button[aria-selected="true"] { background: var(--surface-solid); border-color: var(--line); color: var(--gray); font-weight: 500; }
.mod-tabs button[aria-selected="true"]::before { background: var(--brand); border-color: var(--brand); }
.mod-view { display: grid; gap: 1rem; min-width: 0; }
.mod-view figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow); }
.mod-view img { display: block; width: 100%; aspect-ratio: 1100 / 638; object-fit: cover; object-position: top left; }
.mod-view h3 { font-size: var(--s-lg); }
.mod-view p { color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) {
  .modules { grid-template-columns: 1fr; }
  .mod-tabs { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .3rem; scrollbar-width: thin; }
  .mod-tabs button { white-space: nowrap; border-color: var(--line); background: var(--surface-solid); padding: .6rem .8rem; font-size: var(--s-sm); }
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 1.4rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .6rem; align-content: start; }
.card h3 { font-size: var(--s-lg); }
.card p { color: var(--muted); font-size: var(--s-sm); }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--s-sm); display: grid; gap: .2rem; }
.card ul li::marker { color: var(--brand); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards-4 { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quote { margin: 0; padding: 1.5rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 1rem; align-content: space-between; }
.quote p { color: var(--fg); font-size: var(--s-sm); line-height: 1.6; }
.quote p::before { content: "“"; display: block; font: 500 2.4rem/0.8 var(--f-display); color: var(--brand); margin-bottom: .4rem; }
.quote figcaption { font-weight: 500; color: var(--gray); font-size: var(--s-sm); }
@media (max-width: 960px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

.cta-band { background: var(--band-bg); color: var(--band-fg); }
.cta-band .wrap { display: flex; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: var(--band-fg); font-size: var(--s-xl); max-width: 26ch; }
.cta-band p { color: var(--band-muted); margin-top: .5rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn-ghost { background: transparent; color: var(--band-fg); border-color: var(--band-muted); }
.cta-band .btn-ghost:hover { border-color: var(--band-fg); color: var(--band-fg); }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.contact-info { display: grid; gap: 1.1rem; align-content: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.offices { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.offices li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.office-c { font-weight: 500; color: var(--gray); }
.address { font-size: var(--s-sm); color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: clamp(20px, 3vw, 32px); background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: .4rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--s-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; min-height: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #c4553f; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick label { cursor: pointer; text-transform: none; letter-spacing: 0; margin: 0; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-block; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--s-sm); line-height: 1; color: var(--gray); transition: all .15s; }
.pick input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: var(--s-sm); color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c4553f; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); position: relative; z-index: 5; }
.foot-in { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: 56px 32px; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand img { width: 150px; }
.foot-brand p { font-size: var(--s-sm); color: var(--muted); max-width: 30ch; }
.foot-col { display: grid; gap: .55rem; align-content: start; }
.foot-col h3 { font-size: var(--s-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.foot-col a { text-decoration: none; font-size: var(--s-sm); color: var(--gray); }
.foot-col a:hover { color: var(--accent); }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line-soft); font-size: var(--s-xs); color: var(--muted); }
@media (max-width: 900px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.card > svg { width: 28px; height: 28px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-stage { overflow: hidden; }
@media (max-width: 760px) { .twin .twin-tag:not(.active) { opacity: 0 !important; pointer-events: none; } }
@media (max-width: 980px) {
  .menu > li.menu-cta > a { display: inline-flex; justify-content: center; padding: 0 1.25rem; min-height: 46px; background: var(--brand); color: var(--on-brand); font-weight: 500; border-radius: var(--radius); }
}

/* ---- launch page pieces ---- */
.badge { display: inline-block; padding: .25rem .5rem; margin-right: .4rem; border-radius: 3px; background: var(--brand); color: var(--on-brand); font-size: .68rem; letter-spacing: .12em; }
.launch-strip { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.launch-strip li { font-size: var(--s-xs); letter-spacing: .04em; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-solid); color: var(--gray); display: inline-flex; align-items: center; gap: .45rem; }
.launch-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.note { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--brand); background: var(--surface-solid); color: var(--fg); font-size: var(--s-md); line-height: 1.6; }
.tag { display: inline-block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.plans .card { border-top: 2px solid var(--brand); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .steps-3 { grid-template-columns: 1fr; } }
.quotes-3 { margin-top: clamp(28px, 4vw, 44px); }

/* ---- product hero: browser mockup + floating cards ---- */
.p-hero-product { background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 100%); border-bottom: 1px solid var(--line-soft); }
.p-hero-product .p-hero-in { align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.p-hero-product .p-hero-text { padding-bottom: 0; }
.hero-device { position: relative; min-width: 0; }
.browser { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(50, 58, 66, .18), 0 2px 6px rgba(50, 58, 66, .08); }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar i:first-child { background: var(--brand); }
.browser-bar span { margin-left: .6rem; flex: 1; font: 400 .66rem/1 var(--f-mono); color: var(--muted); background: var(--surface-solid); border: 1px solid var(--line-soft); border-radius: 4px; padding: .3rem .6rem; }
.browser img { display: block; width: 100%; height: auto; }
.hero-float { position: absolute; display: grid; gap: .15rem; padding: .75rem .9rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 240px; }
.hero-float span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero-float b { font-weight: 500; color: var(--gray); font-size: var(--s-sm); line-height: 1.3; }
.hero-float small { font-size: .66rem; color: var(--muted); }
.hero-float-a { right: -14px; top: 28px; }
.hero-float-b { left: -18px; bottom: 26px; border-left: 3px solid var(--brand); }
@media (max-width: 1100px) { .hero-float-a { right: 0; } .hero-float-b { left: 0; } }
@media (max-width: 860px) { .hero-float { position: static; max-width: none; } .hero-device { display: grid; gap: .6rem; } .hero-float-a { order: 2; } .hero-float-b { order: 3; } }

/* ---- module band: dark full-bleed, vertical module list, laptop mockup ---- */
.band { background: var(--band-bg); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 16px); color: var(--band-fg); }
.band .sec-head h2 { color: var(--band-fg); }
.band .sec-head p:not(.eyebrow) { color: var(--band-muted); }
.band .eyebrow { color: var(--brand); }
.band-panel { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--surface-solid); color: var(--fg); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.band-panel .mod-tabs { display: grid; gap: .15rem; padding: 1.4rem 0 1.4rem 1.2rem; align-content: start; background: var(--bg); border-right: 1px solid var(--line-soft); }
.band-panel .mod-tabs button { font-size: 1.05rem; font-weight: 500; color: var(--gray); padding: .75rem 1rem; border-radius: 4px 0 0 4px; border: 0; }
.band-panel .mod-tabs button::before { display: none; }
.band-panel .mod-tabs button[aria-selected="true"] { background: var(--brand-tint); color: var(--accent); box-shadow: inset 3px 0 0 var(--brand); }
.band-panel .mod-view { padding: clamp(20px, 3vw, 40px); gap: 0; }
.band-panel [role="tabpanel"] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.band-panel [role="tabpanel"][hidden] { display: none; }
.mod-text { display: grid; gap: .9rem; justify-items: start; }
.mod-text h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.mod-text p { color: var(--muted); }
.device { min-width: 0; }
.device-screen { border: 10px solid #2b2d31; border-bottom-width: 14px; border-radius: 12px 12px 4px 4px; background: #2b2d31; overflow: hidden; box-shadow: 0 24px 50px rgba(40, 46, 52, .25); }
.device-screen img { display: block; width: 100%; height: auto; }
.device-base { height: 14px; margin: 0 -5%; background: linear-gradient(var(--line), var(--twin-line)); border-radius: 0 0 14px 14px; }
@media (max-width: 1000px) { .band-panel [role="tabpanel"] { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .band-panel { grid-template-columns: 1fr; }
  .band-panel .mod-tabs { display: flex; overflow-x: auto; padding: .8rem; gap: .4rem; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .band-panel .mod-tabs button { white-space: nowrap; font-size: var(--s-sm); padding: .6rem .8rem; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); }
  .band-panel .mod-tabs button[aria-selected="true"] { box-shadow: none; border-color: var(--brand); }
}

/* ---- SaaS: per-user vs per-company comparison ---- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.compare-col { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-solid); display: grid; gap: .8rem; align-content: start; }
.compare-col h3 { font-size: var(--s-md); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--s-sm); color: var(--muted); }
.compare-col li { display: flex; gap: .6rem; align-items: flex-start; }
.compare-col li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: .1rem; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.compare-no { background: var(--bg); }
.compare-no h3 { color: var(--muted); }
.compare-no li::before { background-color: var(--line); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 2l6 6M8 2l-6 6' stroke='%23757980' stroke-width='1.6' stroke-linecap='round'/></svg>"); }
.compare-yes { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.compare-yes h3 { color: var(--accent); }
.compare-yes li { color: var(--fg); }
.compare-yes li::before { background-color: var(--brand); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 5.2l2.2 2.2L8 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---- blog ---- */
.blog-head { padding-bottom: 0; }
.blog-head .sec-head { margin-bottom: 1.4rem; }
.blog-head h1 { font-size: var(--s-xl); }
.cats { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: clamp(24px, 4vw, 40px); }
.cats a { font-size: var(--s-sm); padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--gray); background: var(--surface-solid); }
.cats a span { color: var(--muted); font-size: var(--s-xs); margin-left: .2rem; }
.cats a:hover, .cats a[aria-current="page"] { border-color: var(--brand); color: var(--accent); }
.cats a[aria-current="page"] { background: var(--brand-tint); }
.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post p { font-size: var(--s-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-nocover { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg), var(--line-soft)); }
.blog-foot { margin-top: 2rem; font-size: var(--s-sm); color: var(--muted); }
.blog-foot a { color: var(--accent); text-decoration: none; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-wrap { max-width: 860px; }
.post-head { padding-bottom: clamp(24px, 3vw, 36px); }
.post-head .eyebrow a { text-decoration: none; color: inherit; }
.post-head .eyebrow a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem); margin-top: 1rem; }
.post-summary { margin-top: 1rem; font-size: var(--s-lg); color: var(--muted); line-height: 1.5; }
.post-meta { margin-top: 1rem; font-size: var(--s-sm); color: var(--muted); }
.post-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-body { font-size: 1.06rem; line-height: 1.75; color: var(--fg); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 2em; line-height: 1.2; }
.post-body h2 { font-size: var(--s-xl); }
.post-body h3 { font-size: 1.35rem; }
.post-body h4 { font-size: 1.1rem; }
.post-body p, .post-body li { max-width: 72ch; }
.post-body a { color: var(--accent); text-underline-offset: 3px; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 1.6em 0; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li + li { margin-top: .35em; }
.post-body li::marker { color: var(--brand); }
.post-body blockquote { margin: 1.6em 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--brand); color: var(--muted); font-size: 1.1rem; }
.post-body pre { overflow-x: auto; padding: 1rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); font: 400 .85rem/1.5 var(--f-mono); }
.post-body code { font: 400 .9em var(--f-mono); background: var(--bg-alt); padding: .1em .3em; border-radius: 3px; }
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: var(--s-sm); display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.post-body th { background: var(--bg-alt); color: var(--gray); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-tags { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.post-tags li { font-size: var(--s-xs); padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav-link { display: grid; gap: .3rem; text-decoration: none; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); }
.post-nav-link:hover { border-color: var(--brand); }
.post-nav-link small { font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-nav-link span { font-weight: 500; color: var(--gray); font-size: var(--s-sm); }
.post-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { grid-column: auto; text-align: left; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { display: grid; gap: .4rem; max-width: 520px; margin-bottom: 1.2rem; }
.search input { width: 100%; font: inherit; color: var(--fg); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1.1rem; min-height: 46px; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.search-status { font-size: var(--s-sm); color: var(--muted); min-height: 1.2em; }

/* ---- about page ---- */
.about-hero { padding-block: calc(72px + clamp(28px, 4vw, 56px)) clamp(28px, 4vw, 48px); }
.about-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.about-hero h1 { font-size: var(--s-2xl); }
.about-hero .lede { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 54ch; margin-top: 1rem; }
.about-hero-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-hero figcaption { font-size: var(--s-xs); color: var(--muted); padding: .6rem .9rem; background: var(--surface-solid); border-top: 1px solid var(--line-soft); }
@media (max-width: 860px) { .about-hero .wrap { grid-template-columns: 1fr; } }
.stats-band { background: var(--band-bg); color: var(--band-fg); }
.stats-band .stats { border-top: 0; max-width: none; margin: 0; padding-block: clamp(24px, 3vw, 36px); }
.stats-band .stats dd { color: var(--band-fg); } .stats-band .stats dd b { color: var(--brand); } .stats-band .stats dt { color: var(--band-muted); }

.scroller-nav { display: flex; gap: .5rem; justify-content: flex-end; margin: -2.2rem 0 1rem; }
.scroller-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); color: var(--gray); cursor: pointer; display: grid; place-items: center; padding: 0; }
.scroller-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scroller-btn:disabled { opacity: .35; cursor: default; }
.scroller-btn:hover { border-color: var(--brand); color: var(--accent); }
.timeline {
  list-style: none; margin: 0; padding: 1.4rem 0 1rem; display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-left: 0;
}
.tl-item {
  flex: 0 0 min(320px, 78vw); scroll-snap-align: start; position: relative;
  display: grid; grid-template-rows: auto auto 1fr; gap: .9rem; padding-top: 1.4rem;
}
.tl-item::before { content: ""; position: absolute; top: 0; left: 0; right: -1.25rem; height: 2px; background: var(--line); }
.tl-item:last-child::before { right: 0; }
.tl-item::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg-alt); }
.tl-year { font: 600 1.6rem/1 var(--f-display); color: var(--gray); font-variant-numeric: tabular-nums; }
.tl-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); }
.tl-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tl-item > .tl-year { grid-row: 1; }
.tl-item > .tl-img { grid-row: 2; }
.tl-item > .tl-text { grid-row: 3; }
.tl-item.no-img > .tl-text { grid-row: 2 / span 2; }
.tl-text { display: grid; gap: .5rem; align-content: start; }
.tl-text h3 { font-size: 1.1rem; }
.tl-text p { color: var(--muted); font-size: var(--s-sm); }
.tl-text a { color: var(--accent); font-size: var(--s-sm); font-weight: 500; text-decoration: none; }
.tl-text a:hover { text-decoration: underline; }

.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.founder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1.4rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); }
.founder img, .founder .founder-ph { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.founder .founder-ph { display: grid; place-items: center; background: var(--bg); color: var(--gray); font: 500 2rem/1 var(--f-display); }
.founder h3 { font-size: var(--s-lg); }
.founder small { display: block; color: var(--accent); font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; margin: .2rem 0 .6rem; }
.founder p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .founder { grid-template-columns: 1fr; } }

.vision { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.vision .card { border-top: 2px solid var(--brand); }
@media (max-width: 1000px) { .vision { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vision { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .offices-grid { grid-template-columns: 1fr; } }

/* ---- theme toggle + dark-mode asset swaps ---- */
.theme { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); cursor: pointer; display: grid; place-items: center; color: var(--gray); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
:root:not([data-theme="light"]) .theme .i-sun { display: block; }
:root:not([data-theme="light"]) .theme .i-moon { display: none; }
:root:not([data-theme="light"]) img[src*="/komodin-logo.png"] { content: url("/assets/img/komodin-logo-dark.png"); }
:root:not([data-theme="light"]) img[src*="/arpia-logo.png"] { content: url("/assets/img/arpia-logo-dark.png"); }
:root:not([data-theme="light"]) .post-cover img, :root:not([data-theme="light"]) .post-body img, :root:not([data-theme="light"]) .gallery img, :root:not([data-theme="light"]) .tl-img img { filter: brightness(.92); }

.band .card { background: var(--surface-solid); border-color: var(--line); }
.band .card h3 { color: var(--gray); }
.band-foot { margin-top: 1.4rem; }
.band-foot a { color: var(--brand); font-weight: 500; text-decoration: none; }
.band-foot a:hover { text-decoration: underline; }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.values li { background: var(--surface-solid); padding: 1.2rem 1.1rem; display: grid; gap: .4rem; align-content: start; }
.values b { font-weight: 600; color: var(--gray); font-size: 1.05rem; }
.values span { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---- floating language selector (bottom-left) ---- */
.lang-float {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: .15rem; padding: 4px 6px 4px 10px; border-radius: 999px;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
  font: 500 var(--s-xs)/1 var(--f-body);
}
.lang-float svg { width: 16px; height: 16px; margin-right: .35rem; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.lang-float span { padding: .4rem .55rem; border-radius: 999px; color: var(--muted); }
html[lang="es"] .lang-float [data-l="es"], html[lang="en"] .lang-float [data-l="en"] { background: var(--brand); color: var(--on-brand); }
.lang-float:hover { border-color: var(--brand); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.shots figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-solid); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { padding: .7rem .9rem; font-size: var(--s-xs); color: var(--muted); border-top: 1px solid var(--line-soft); }
.shots-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots-3 img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
@media (max-width: 760px) { .shots, .shots-3 { grid-template-columns: 1fr; } }

.about-hero-video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-solid); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: var(--s-xs); color: var(--muted); padding: .6rem .9rem; border-top: 1px solid var(--line-soft); }
.values li svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .2rem; }

.field-error { display: none; font-size: var(--s-xs); color: #e07a68; }
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: #c4553f; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---- large displays: scale the whole layout up (sizes are rem/clamp-based) ---- */
@media (min-width: 1800px) { html { font-size: 18px; } :root { --maxw: 1440px; } }
@media (min-width: 2300px) { html { font-size: 21px; } :root { --maxw: 1800px; } .nav-in { height: 84px; } .logo img { width: 180px; } }
@media (min-width: 3200px) { html { font-size: 27px; } :root { --maxw: 2400px; } .nav-in { height: 104px; } .logo img { width: 230px; } .subnav { top: calc(104px + env(safe-area-inset-top, 0px)); } .menu { top: calc(104px + env(safe-area-inset-top, 0px)); } }

.post-video { margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.post-video video, .post-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.subnav-logo small { font: 600 .62rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-left: .5rem; align-self: center; }

/* ---- Criterio: brain twin, principles, product cards ---- */
.twin-brain .twin-stage { background: radial-gradient(ellipse 58% 52% at 64% 46%, var(--twin-glow), transparent 70%), var(--bg); }
.twin-brain .panel-card h2.panel-kind { font-size: var(--s-lg); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: none; }
.principles li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem; padding: 1.3rem 1.3rem 1.3rem 1.1rem; background: var(--surface-solid); }
.principles li > span { font: 500 .78rem/1.7 var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.principles h3 { font-size: 1.08rem; line-height: 1.3; }
.principles p { color: var(--muted); font-size: var(--s-sm); margin-top: .35rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles li { padding: 1.1rem 1rem; } }
.card-product .card-logo { height: 26px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: .2rem; }
.card-product > a { color: var(--accent); font-weight: 500; font-size: var(--s-sm); text-decoration: none; }
.card-product > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band .compare { margin-bottom: clamp(28px, 4vw, 44px); }
.band .steps { border-top-color: rgba(255, 255, 255, .18); }
.band .steps h3 { color: var(--band-fg); }
.band .steps p { color: var(--band-muted); }

/* ---- Campaign landing: lean header/footer, symptoms, FAQ ---- */
.lp-nav .nav-tools { margin-left: auto; }
.symptoms .card { border-top: 2px solid var(--brand); }
.mod-text p b { color: var(--gray); font-weight: 600; }
.faq { display: grid; gap: .5rem; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); padding: 0 1.1rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--gray); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; font-size: var(--s-sm); line-height: 1.55; }
.faq details a { color: var(--accent); }
.lp-foot .foot-base { flex-direction: column; align-items: flex-start; gap: .4rem; font-size: var(--s-xs); color: var(--muted); }
.lp-foot a { color: var(--gray); text-decoration: none; }
.lp-foot a:hover { color: var(--accent); }
.band .band-panel + .cards { margin-top: 1rem; }
.shots-3 figure:first-child { grid-column: 1 / -1; }

/* ---- slider: one capture at a time ---- */
.slider { margin-top: 1.4rem; }
.slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track figure { flex: 0 0 100%; scroll-snap-align: start; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-solid); }
.slider-track img { display: block; width: 100%; height: auto; }
.slider-track figcaption { padding: .8rem 1rem; font-size: var(--s-sm); color: var(--muted); border-top: 1px solid var(--line-soft); line-height: 1.5; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; }
.slider-dots { display: flex; gap: .55rem; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.slider-dots button[aria-selected="true"] { background: var(--brand); }
.card .card-link { color: var(--accent); font-weight: 500; font-size: var(--s-sm); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

/* ---- lightbox for product captures ---- */
.zoomable { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 96vh; width: auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; gap: 0; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lightbox img { display: block; max-width: min(96vw, 1600px); max-height: calc(96vh - 64px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { padding: .8rem 1rem; font-size: var(--s-sm); color: var(--muted); border-top: 1px solid var(--line-soft); }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); color: var(--gray); cursor: pointer; display: grid; place-items: center; }
.lightbox-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---- breadcrumbs (product subpages) ---- */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: calc(72px + 14px) var(--gutter-r) 0 var(--gutter-l); font-size: var(--s-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }
.crumbs + .p-hero { padding-top: clamp(20px, 3vw, 40px); }
.crumbs + .p-hero.p-hero-product .p-hero-in { padding-bottom: clamp(32px, 5vw, 64px); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: flow; }
.flow li { padding: 1.2rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .5rem; align-content: start; }
.flow li::before { counter-increment: flow; content: "0" counter(flow); font: 500 var(--s-xs)/1 var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.flow h3 { font-size: var(--s-md); }
.flow p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---- InterFuerza-branded landings: logo blue (#2F84F1) as the accent, product logo in the nav ---- */
:root[data-brand="interfuerza"] { --brand: #2f84f1; --brand-hi: #1f6fd6; --accent: #6aa9ff; --brand-tint: #15233a; --on-brand: #ffffff; }
:root[data-brand="interfuerza"][data-theme="light"] { --brand: #2f84f1; --brand-hi: #1f6fd6; --accent: #1f6fd6; --brand-tint: #e3eefc; --on-brand: #ffffff; }
:root[data-brand="interfuerza"] .logo-ifx img { width: 170px; height: auto; }
