/* Industry pages (fintech, healthcare, ...): one template on top of the home (rediseno-v5).
   Layout of each block lives here; each page's own screens and phones live in its pantallas.css.
   Moved from fintech/css on 2026-11-16 when the second industry page was made; rules unchanged. */

/* ================= HERO: the home's entrance, with a live console of the industry ================= */
.fx-hero .hero-in { width: min(780px, 56vw); }
.fx-hero .hero-lead { max-width: 46ch; }
.fx-hero .hero-title .ln > span { text-wrap: balance; }
.fx-hero .nobr { white-space: nowrap; } /* words that must stay together when a title line wraps on a phone */ /* phones: "Development / That Ships", never a lone word */
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: clamp(14px, 2.4svh, 22px); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; }
.crumbs [aria-current] { color: #fff; }

.ledger { font-family: var(--f-text); container-type: inline-size; }
.lg-rows {
  height: clamp(180px, 26svh, 250px); overflow: hidden; padding: 4px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.lg-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.lg-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); }
.lg-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-what { display: grid; min-width: 0; line-height: 1.3; }
.lg-what b { font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-what small { font-size: 12px; color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-amt { font: 500 12.5px var(--f-code); color: #e6e8ec; font-variant-numeric: tabular-nums; }
.lg-st { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lg-st.is-ok { background: rgba(43,182,115,.14); color: #5fd6a0; }
.lg-st.is-hold { background: var(--orange-soft); color: #ff9e68; }
.lg-st.is-info { background: rgba(1,96,231,.2); color: #8fb6ff; }
.lg-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid var(--line-d); font-size: 11.5px; color: var(--mute-d); }
.lg-foot b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
/* a narrow console keeps the name and the status; the amount goes first */
@container (max-width: 400px) { .lg-row { grid-template-columns: 30px minmax(0, 1fr) auto; } .lg-amt { display: none; } }
@media (max-width: 1000px) {
  .fx-hero .hero-in { width: 100%; }
  .lg-rows { height: 230px; }
}

/* ================= OUR SOLUTIONS: the solutions, one live screen over an engineer at work ================= */
.sol { padding-block: clamp(80px, 11vw, 160px); }
.sol-in {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--side);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start;
}
.sol-list { border-top: 1px solid var(--line-l); }
.sol-i { position: relative; border-bottom: 1px solid var(--line-l); }
.sol-b {
  display: block; width: 100%; text-align: left; padding: 17px 36px 17px 0;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.3; letter-spacing: -.015em;
  color: color-mix(in srgb, var(--ink) 58%, transparent); transition: color .3s;
}
.sol-b:hover, .sol-i.is-on .sol-b { color: var(--ink); }
.sol-b::after { content: ""; position: absolute; right: 4px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-l); transition: background-color .3s, box-shadow .3s; }
.sol-i.is-on .sol-b::after { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.sol-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.sol-more > p { overflow: hidden; color: var(--mute-l); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.sol-i.is-on .sol-more { grid-template-rows: 1fr; }
.sol-i.is-on .sol-more > p { padding-bottom: 20px; }
.sol-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0; transition: opacity .3s; }
.sol-i.is-on .sol-bar { opacity: 1; }
.sol-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }

.sol-stage {
  position: sticky; top: calc(var(--nav-h) + 24px);
  aspect-ratio: 16 / 12; border-radius: 22px; overflow: hidden; background: #111;
  container-type: inline-size;
}
.sol-media { position: absolute; inset: 0; }
.sol-media video { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.sol-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12) 60%, rgba(0,0,0,0)), linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,0) 50%); }

/* the screens sit over the desk, the person stays visible on the right */
.sol-stage { --fw: .64; --fh: .66; }
.scr {
  position: absolute; left: 5%; bottom: 6%;
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: rgba(12,12,14,.72); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985);
  transition: opacity .45s, transform .7s var(--ease-out), visibility 0s .45s;
}
.scr.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .1s, transform .8s var(--ease-out) .1s, visibility 0s; }
.scr .win-bar { height: 34px; padding: 0 14px; border-bottom-color: rgba(255,255,255,.09); }
.scr .win-bar span { font-size: 12px; }
.scr-in { position: relative; flex: 1; min-height: 0; }

@media (max-width: 1100px) {
  .sol-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sol-stage { --fw: .86; --fh: .72; }
  .scr { left: 7%; }
}
/* phones and tablets: an accordion; the open solution carries the screen inside it */
@media (max-width: 860px) {
  .sol-in { grid-template-columns: 1fr; }
  .sol-stage { position: relative; top: auto; margin: 4px 0 22px; aspect-ratio: 4 / 3.4; }
  .sol-stage { --fw: .92; --fh: .76; }
  .scr { left: 4%; bottom: 5%; }
  .sol-bar { display: none; }
}

/* ================= TYPES OF SOLUTIONS: each product on the device it is used on (phone or laptop), on a rail you can swipe or step through ================= */
.types { padding-block: clamp(80px, 11vw, 150px); overflow: hidden; }
.types-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 1px var(--line-l); transition: background-color .25s, color .25s, opacity .25s; }
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail {
  --pw: clamp(184px, min(15.5vw, 32svh), 236px); /* phone width: the phone and its name fit one screen */
  --pad: max(var(--side), calc((100vw - var(--max)) / 2 + var(--side)));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; padding: 12px 0 16px;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.rail.is-drag { scroll-snap-type: none; cursor: grabbing; }
.rail.is-drag .pc { pointer-events: none; }
.rail-row { display: flex; gap: clamp(16px, 1.8vw, 28px); width: max-content; padding-inline: var(--pad); }
.pc { width: var(--pw); scroll-snap-align: start; }
.pc h3 { margin-top: 18px; font-family: var(--f-display); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -.012em; max-width: 22ch; }
.ph {
  position: relative; height: calc(var(--pw) * 18.6 / 9); border-radius: 34px; padding: 9px; /* a set height, not aspect-ratio: Safari let the content stretch it */
  background: #121316; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 50px -28px rgba(0,0,0,.45);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.pc:hover .ph { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 44px 60px -30px rgba(0,0,0,.5); }
.ph::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 15px; width: 34%; height: 17px; margin-left: -17%; border-radius: 999px; background: #121316; }
.ph-top { position: absolute; z-index: 2; left: 26px; top: 15px; font-size: 10.5px; font-weight: 600; color: #1a1a1a; }
.ph-scr {
  position: relative; height: 100%; border-radius: 26px; overflow: hidden;
  background: #fff; color: var(--ink); padding: 44px 14px 14px;
  display: flex; flex-direction: column; gap: 9px; font-size: 11px; line-height: 1.3;
}
.ph-scr em { font-style: normal; color: var(--mute-l); }
@media (max-width: 860px) {
  .rail { --pw: 200px; }
}

/* ================= BEST PRACTICES: the five practices as the checks on a pull request ================= */
.prac { min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--black); color: #fff; }
.prac-media { position: absolute; inset: 0; will-change: transform; }
.prac-media video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.prac-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.2) 75%), linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 40%); }
.prac-in {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 12vw, 150px) var(--side);
}
/* heading and checks share the dark left of the shot, so the engineer stays in view on the right */
.prac-copy { margin-bottom: clamp(20px, 3.4svh, 32px); }
.prac-copy .sh-t { max-width: 20ch; }
.checks {
  max-width: 580px;
  border-radius: 18px; overflow: hidden;
  background: rgba(14,14,16,.66); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 40px 80px -30px rgba(0,0,0,.8);
}
.checks-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13px; color: var(--mute-d); }
.checks-st { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; background: rgba(43,182,115,.14); color: #5fd6a0; transition: background-color .3s, color .3s; }
.checks-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.checks-st.is-run { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.checks-st.is-run::before { animation: pulse 1.2s infinite; }
.checks-list { padding: 4px 20px; }
.chk { border-bottom: 1px solid rgba(255,255,255,.08); }
.chk:last-child { border-bottom: 0; }
.chk-h { font: inherit; }
.chk-b { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 0; text-align: left; font-size: clamp(15px, 1.15vw, 16.5px); font-weight: 500; letter-spacing: -.008em; color: rgba(255,255,255,.62); transition: color .3s; }
button.chk-b:hover, .chk.is-open .chk-b { color: #fff; }
.chk.is-done .chk-b { color: rgba(255,255,255,.9); }
.chk-ic { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.chk.is-run .chk-ic { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.chk.is-run .chk-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; border-top-color: #fff; animation: spin .8s linear infinite; }
.chk.is-done .chk-ic { background: var(--run); box-shadow: none; }
.chk.is-done .chk-ic::after { content: ""; position: absolute; left: 6.5px; top: 4.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.chk-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.chk-more > p { overflow: hidden; padding-left: 34px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.7); max-width: 54ch; }
.chk.is-open .chk-more { grid-template-rows: 1fr; }
.chk.is-open .chk-more > p { padding-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .prac { min-height: 0; }
  .prac-shade { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.45)); }
}

/* ================= WHY / FAQ / CLOSE: the home's blocks, small fixes for this page ================= */
/* the live headings end without a full stop ("Our expertise", "FAQs"), so their line below sits on its own */
.fx .sh-t .sh-more { display: block; margin-top: .3em; }
.why .sh-a .sh-t { max-width: 34ch; }
.faq .faq-list { border-top: 1px solid var(--line-l); }
.faq-side .sh-t { max-width: 20ch; }
.close .btn { margin-bottom: clamp(28px, 5svh, 48px); }

/* ================= the frame of the solution screens and the phones (shared) ================= */
/* solution screens are drawn at 520 × 360 and scaled to the stage (--k, set by industria.js) */
.sol-stage { --k: .9; }
.scr { width: 520px; height: 360px; transform-origin: left bottom; scale: var(--k); }
@media (max-width: 1100px) { .sol-stage { --k: .8; } }
@media (max-width: 860px) { .sol-stage { --k: .62; } }

.scr-in { padding: 18px 20px; font-size: 13px; }
.scr b { font-weight: 500; }
.scr .mono, .scr small, .scr em { font-style: normal; }
.ok-dot { color: #5fd6a0; }

/* phone screens */
.ph-scr b { font-weight: 600; }
.ph-scr > b { font-size: 21px; letter-spacing: -.03em; line-height: 1.05; }


/* a check that lights up green: on .tick itself or on its parent (.is-on) */
.tick { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); transition: background-color .3s, box-shadow .3s; }
.is-on > .tick, .tick.is-on { background: var(--run); box-shadow: none; }
.is-on > .tick::after, .tick.is-on::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4.5px; height: 8.5px; border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }

/* ================= laptop cards on the rail (back-office and web products) ================= */
/* The laptop stands on the same floor as the phones: its top margin is the phone's height minus its own. */
.pc-desk { --dw: calc(var(--pw) * 2.3); width: var(--dw); }
@media (max-width: 860px) { .pc-desk { --dw: min(calc(var(--pw) * 2.3), calc(100vw - 2 * var(--side) - 28px)); } }
.dk {
  position: relative; padding: 8px; border-radius: 16px; background: #121316;
  margin-top: calc(var(--pw) * 18.6 / 9 - (var(--dw) - 16px) / 1.6 - 28px); margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 50px -28px rgba(0,0,0,.45);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.dk::after { content: ""; position: absolute; left: -3%; right: -3%; top: 100%; height: 12px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #d4d7dc, #b4b9c1); box-shadow: 0 10px 18px -12px rgba(0,0,0,.4); }
.pc:hover .dk { transform: translateY(-8px); }
.dk-scr { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #fff; }
/* each screen is drawn at 520 × 325 and scaled to the laptop (--dk-k, set by industria.js) */
.dk-app { position: absolute; left: 0; top: 0; width: 520px; height: 325px; transform-origin: 0 0; scale: var(--dk-k, .86); display: flex; flex-direction: column; background: #fff; color: var(--ink); font-size: 11.5px; line-height: 1.3; }
.dk-app em { font-style: normal; color: #6b7280; }
.dk-app b { font-weight: 600; }
.dk-app .mono { font-family: var(--f-code); font-size: 10.5px; }
.dk-bar { flex: none; height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #f3f4f6; border-bottom: 1px solid #e6e8eb; }
.dk-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d5d8dd; }
.dk-bar span { margin-left: 8px; font-size: 10.5px; font-weight: 500; color: #6b7280; }
.dk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.dk-side { display: grid; align-content: start; justify-items: center; gap: 10px; padding-top: 12px; background: #f8f9fa; border-right: 1px solid #eceef1; }
.dk-side i { width: 16px; height: 16px; border-radius: 5px; background: #e3e6ea; }
.dk-side i.is-on { background: var(--blue); }
.dk-main { min-width: 0; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.dk-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dk-h > b { font-size: 13px; }
.dk-kpis { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.dk-kpi { padding: 8px 10px; border-radius: 8px; background: #f4f5f7; }
.dk-kpi em { display: block; font-size: 9.5px; }
.dk-kpi b { font-size: 15px; letter-spacing: -.02em; }
.dk-tbl { display: grid; }
.dk-tr { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef0f2; }
.dk-tr > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-th { padding-top: 0; font-size: 9.5px; color: #8a9099; }
.dk-pill { justify-self: start; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: #eef0f3; color: #5d636d; }
.dk-pill.is-ok { background: #e5f6ee; color: #1f9a5f; }
.dk-pill.is-run { background: #e8f0fe; color: var(--blue); }
.dk-pill.is-warn { background: #fff4e5; color: #b45309; }
.dk-pill.is-no { background: #fdeceb; color: #c2410c; }
.dk-btn { display: inline-block; padding: 5px 10px; border-radius: 7px; font-size: 10px; font-weight: 600; background: var(--ink); color: #fff; }
.dk-btn.is-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #e3e6ea; }
.dk-card { padding: 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px #eceef1; }
.dk-ck { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; }
.dk-ck i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--run); }
.dk-ck i::after { content: ""; position: absolute; left: 4.6px; top: 2.6px; width: 3.5px; height: 6.5px; border: solid #fff; border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.dk-app.is-dark { background: #0d0e11; color: #e6e8ec; }
.dk-app.is-dark .dk-bar { background: #17181c; border-bottom-color: #23252a; }
.dk-app.is-dark .dk-bar i { background: #3a3b40; }
.dk-app.is-dark em { color: #8b9099; }

/* ================= the Industries menu with every industry page, in the old menu's three columns ================= */
.nav-panel-industries { left: -280px; }
.nav-cols-ind { column-gap: 44px; }
.nav-cols-ind > div { display: grid; gap: 4px; align-content: start; }
@media (max-width: 1080px) {
  .nav-cols-ind { display: block; columns: 2; column-gap: 20px; }
  .nav-cols-ind > div { display: contents; }
}

/* long live titles take four lines: a step smaller so the entrance still fits a short window */
.fx-hero.is-long .hero-title { font-size: calc(var(--t-hero) * .84); }
