/* CloudyERP prototype — narrative sections */

section { position: relative; }
.journey, .platform, .industries, .demo { padding-block: var(--section-y); }
.journey { background: linear-gradient(180deg, var(--bg-1), var(--bg-0) 30%, var(--bg-0) 70%, var(--bg-1)); }

/* ===================== JOURNEY ===================== */
.journey__layout { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.journey__steps { grid-column: 1; grid-row: 1; }
.journey__sticky { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 1.25rem; }

.journey__rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding-bottom: 14px; }
.journey__rail [role="tab"] {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 54px;
  padding: .4rem .2rem; text-align: start; color: var(--text-3); font-size: .95rem; font-weight: 500;
  transition: color var(--dur-2);
}
.journey__rail [role="tab"]:hover { color: var(--text-2); }
.journey__rail [role="tab"][aria-selected="true"] { color: var(--text-1); }
.journey__n { font-family: var(--font-num); font-size: .75rem; color: var(--text-3); letter-spacing: .04em; }
.journey__rail [aria-selected="true"] .journey__n { color: var(--blue-300); }
.journey__progress { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.journey__progress i { position: absolute; inset-block: 0; right: 0; width: calc((var(--step, 0) + 1) * 25%); background: linear-gradient(270deg, var(--blue-300), var(--blue-500)); transition: width .7s var(--ease-out); }

.journey__stage {
  position: relative; min-height: 500px; border-radius: var(--r-xl); padding: clamp(1rem, 2.4vw, 2rem);
  background:
    radial-gradient(120% 80% at 80% 0%, rgb(47 123 255 / .12), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--bg-2));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.journey__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(140 170 230 / .12) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 1.5rem; align-items: start; }
.scene.is-entering { animation: sceneIn .7s var(--ease-out) both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.scene__signals { display: grid; gap: .9rem; padding-top: .5rem; font-size: .88rem; color: var(--text-2); line-height: 1.6; }
.scene__signals li { display: grid; grid-template-columns: 10px 1fr; gap: .6rem; align-items: start; }
.sig { width: 8px; height: 8px; border-radius: 50%; margin-top: .45em; }
.sig--blue { background: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-tint); }
.sig--warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-tint); }
.sig--ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }

.receipt, .sheet {
  border-radius: var(--r-lg); background: rgb(6 11 26 / .75); border: 1px solid var(--line-2);
  padding: 1.25rem; font-size: .88rem; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
}
.receipt {
  max-width: 420px; background: linear-gradient(180deg, #f4f6fb, #e7ebf5); color: #172038; border: 0; position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: 1.6rem;
  /* torn-paper bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px 7px repeat-x;
}
.receipt__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .8rem; border-bottom: 1px dashed #b8c1d6; }
.receipt__head small { display: block; color: #5b6784; font-size: .78rem; }
.receipt__head b { font-family: var(--font-num); font-size: 1.4rem; font-weight: 600; }
.receipt .pill--ok { color: #0e7a55; background: #d4f5e7; border-color: #a8e6cc; }
.receipt__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .8rem 0; }
.receipt__meta dt { font-size: var(--fs-micro); color: #5b6784; }
.receipt__meta dd { margin: 0; font-weight: 600; font-size: .85rem; }
.receipt__lines th { text-align: start; font-size: var(--fs-micro); color: #5b6784; font-weight: 500; padding-bottom: .3rem; }
.receipt__lines td { padding: .35rem 0; border-top: 1px solid #d3d9e7; }
.receipt__lines th:not(:first-child), .receipt__lines td:not(:first-child) { text-align: end; }
.receipt__sum { display: grid; gap: .2rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed #b8c1d6; }
.receipt__sum div { display: flex; justify-content: space-between; color: #3a4562; }
.receipt__sum .is-grand { color: #0b1430; font-size: 1.05rem; font-weight: 600; margin-top: .25rem; }

.sheet { display: grid; gap: 1rem; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.sheet__head b { font-weight: 600; color: var(--text-1); }
.sheet__table th { text-align: start; color: var(--text-3); font-weight: 500; font-size: .76rem; padding: 0 .25rem .45rem; }
.sheet__table td { padding: .5rem .25rem; border-top: 1px solid var(--line-1); color: var(--text-1); }
.sheet__table th:not(:first-child), .sheet__table td:not(:first-child) { text-align: end; white-space: nowrap; }
.sheet__table td small { display: block; color: var(--text-3); font-size: var(--fs-micro); }
.sheet__table .neg { color: var(--bad); }
.sheet__table .grp td { color: var(--blue-300); font-size: .76rem; padding-top: .8rem; border-top: 0; }
.sheet__table tfoot td { border-top: 1px solid var(--line-3); font-weight: 600; color: var(--ok); }
.sheet__table tfoot td:first-child { color: var(--text-2); }
.levels { display: grid; gap: .7rem; }
.level { display: grid; grid-template-columns: 90px 1fr auto; gap: .8rem; align-items: center; font-size: .82rem; color: var(--text-2); }
.level__bar { margin: 0; }
.level b { font-weight: 500; color: var(--text-2); font-size: .8rem; }
.warn { color: var(--warn) !important; }
.ok { color: var(--ok) !important; }
.margin-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.margin-strip div { border: 1px solid var(--line-1); border-radius: var(--r-md); padding: .6rem .8rem; }
.margin-strip small { display: block; color: var(--text-3); font-size: .74rem; }
.margin-strip b { font-size: 1.15rem; font-weight: 600; }
.margin-strip em { font-style: normal; color: var(--ok); font-size: .85rem; }
.margin-strip .is-hl { border-color: rgb(63 214 156 / .35); background: var(--ok-tint); }

.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--warn-tint); border: 1px solid rgb(242 187 85 / .28); }
.alert b { color: var(--text-1); font-weight: 600; }
.alert p { color: var(--text-2); font-size: .84rem; }
.alert .chip__icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgb(242 187 85 / .16); color: var(--warn); }
.alert .chip__icon svg { width: 18px; height: 18px; }
.compare { display: grid; gap: .55rem; }
.compare__row { display: grid; grid-template-columns: 64px 1fr 48px; gap: .8rem; align-items: center; font-size: .84rem; color: var(--text-2); }
.compare__row b { text-align: end; font-weight: 500; color: var(--text-1); }
.compare__bar { height: 8px; border-radius: 8px; background: var(--surface-3); position: relative; overflow: hidden; }
.compare__bar i { position: absolute; inset-block: 0; right: 0; width: calc(var(--v) * 100%); background: var(--blue-500); border-radius: inherit; }
.compare__row:first-child .compare__bar i { background: var(--warn); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.option { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .7rem .9rem; }
.option b { display: block; color: var(--text-1); font-weight: 600; font-size: .9rem; }
.option small { color: var(--text-3); font-size: .74rem; }
.option.is-pref { border-color: var(--blue-400); background: var(--blue-tint); }

.journey__pager { display: none; align-items: center; justify-content: space-between; gap: 1rem; }
.journey__count { color: var(--text-3); font-size: .9rem; }
.journey__count b { color: var(--text-1); }

.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding-block: 2rem; opacity: .32; transition: opacity .6s var(--ease-out); }
.step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 4.5rem; }
.step:last-child { min-height: 64vh; }
.step.is-active { opacity: 1; }
.step__n { font-family: var(--font-num); font-size: .85rem; color: var(--blue-300); }
.step h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: var(--lh-h2); }
.step p { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.95; max-width: 30em; }

@media (max-width: 1080px) {
  .journey__layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .journey__sticky { display: contents; }
  .journey__rail { order: 1; }
  .journey__steps { order: 2; grid-column: auto; grid-row: auto; }
  .journey__stage { order: 3; min-height: 0; }
  .journey__pager { order: 4; display: flex; }
  .step { display: none; min-height: 0 !important; padding: 0 !important; opacity: 1; }
  .step.is-active { display: flex; }
  .step h3 { font-size: 1.6rem; }
}
@media (max-width: 680px) {
  .journey__rail { gap: .25rem; }
  .journey__rail [role="tab"] { font-size: .8rem; line-height: 1.35; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .receipt, .sheet { padding: 1rem; font-size: .82rem; }
  .receipt__meta { grid-template-columns: repeat(2, 1fr); }
  .options { grid-template-columns: 1fr; }
  .margin-strip b { font-size: 1rem; }
  .level { grid-template-columns: 74px 1fr auto; gap: .5rem; }
}

/* ===================== PLATFORM ===================== */
.platform { background: var(--bg-1); }
.mods { display: grid; gap: 2rem; }
.mods__tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; padding: .35rem;
  border-radius: 999px; background: rgb(255 255 255 / .025); border: 1px solid var(--line-1);
  max-width: 820px;
}
.mods__tabs [role="tab"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  border-radius: 999px; color: var(--text-2); font-weight: 500; transition: background var(--dur-2), color var(--dur-2);
}
.mods__tabs [role="tab"] svg { width: 18px; height: 18px; }
.mods__tabs [role="tab"]:hover { color: var(--text-1); background: rgb(255 255 255 / .03); }
.mods__tabs [role="tab"][aria-selected="true"] { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px -12px rgb(47 123 255 / .9); }
.mods__tabs [role="tab"]:focus-visible { border-radius: 999px; }

.mods__panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: 440px; }
.mods__panel:focus-visible { border-radius: var(--r-lg); }
.mods__panel.is-entering .mods__copy { animation: a-fade .7s var(--ease-out) both; }
.mods__panel.is-entering .ui { animation: uiIn .9s var(--ease-out) both; }
@keyframes uiIn { from { opacity: 0; transform: perspective(1400px) translate3d(-24px, 10px, -40px) rotateY(-6deg); } }
@keyframes a-fade { from { opacity: 0; transform: translateY(14px); } }
.mods__copy { display: grid; gap: 1.2rem; justify-items: start; }
.mods__copy h3 { font-size: var(--fs-h3); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.mods__copy p { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.85; }

.mods__visual { position: relative; }
.mods__visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: var(--r-xl);
  background: radial-gradient(70% 60% at 60% 40%, rgb(47 123 255 / .2), transparent 70%); z-index: 0; pointer-events: none;
}
.ui {
  position: relative; z-index: 1; border-radius: var(--r-lg); padding: 1.1rem;
  background: linear-gradient(180deg, #0f1a38, #0a1229); box-shadow: var(--shadow-2);
  font-size: .82rem; color: var(--text-2); line-height: 1.5;
}
.ui-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.ui-h b { color: var(--text-1); font-weight: 600; font-size: .92rem; }
.ui-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line-1); color: var(--text-1); }
.ui-row--muted { color: var(--text-3); }
.ui-row--total { border-bottom: 0; font-size: 1.05rem; font-weight: 600; }
.ui-btn { display: block; text-align: center; padding: .7rem; border-radius: 12px; background: var(--blue-500); color: #fff; font-weight: 600; }

/* POS module */
.ui--pos { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
.ui-pos__cats { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ui-pos__cats span { padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .76rem; }
.ui-pos__cats .is-on { background: var(--surface-3); color: var(--text-1); border-color: transparent; }
.ui-pos__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ui-pos__items span { display: grid; gap: .1rem; padding: .8rem .7rem; border-radius: 12px; background: rgb(255 255 255 / .03); border: 1px solid var(--line-1); min-height: 74px; align-content: end; }
.ui-pos__items b { color: var(--text-1); font-weight: 500; font-size: .84rem; }
.ui-pos__items small { color: var(--text-3); font-size: .74rem; }
.ui-pos__items .is-hit { border-color: var(--blue-400); background: var(--blue-tint); }
.ui-pos__cart { display: grid; gap: .1rem; align-content: start; padding: .9rem; border-radius: 14px; background: rgb(0 0 0 / .2); border: 1px solid var(--line-1); }
.ui-pos__cart-h { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.ui-pos__cart-h b { color: var(--text-1); }
.ui-pos__cart-h small { color: var(--text-3); }
.ui-pos__pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: .7rem 0 .5rem; }
.ui-pos__pay span { text-align: center; padding: .3rem; border-radius: 8px; border: 1px solid var(--line-2); font-size: .74rem; }
.ui-pos__pay .is-on { border-color: var(--blue-400); color: var(--blue-200); background: var(--blue-tint); }

/* Inventory module */
.matrix { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; }
.matrix__row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2px; }
.matrix__row > span { padding: .55rem .6rem; background: rgb(255 255 255 / .025); }
.matrix__row--h > span { color: var(--text-3); font-size: .74rem; background: transparent; }
.matrix__row > span:first-child { color: var(--text-1); }
.matrix .c { text-align: center; color: var(--text-1); }
.matrix .c--warn { background: var(--warn-tint); color: var(--warn); }
.matrix .c--hi { background: var(--blue-tint); color: var(--blue-200); }
.movements { display: grid; gap: .35rem; margin-top: 1rem; }
.mv { display: grid; grid-template-columns: 74px 1fr auto; gap: .7rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--line-1); }
.mv b { color: var(--text-1); font-weight: 500; }
.mv__t { font-size: .72rem; text-align: center; padding: .1rem 0; border-radius: 6px; }
.mv__t--out { color: var(--bad); background: rgb(255 123 123 / .1); }
.mv__t--in { color: var(--ok); background: var(--ok-tint); }
.mv__t--tr { color: var(--blue-200); background: var(--blue-tint); }

/* Finance module */
.pl { display: grid; gap: .5rem; }
.pl__row { display: grid; grid-template-columns: 110px 1fr 80px; gap: .8rem; align-items: center; }
.pl__row b { text-align: end; color: var(--text-1); font-weight: 500; }
.pl__row.is-sub, .pl__row.is-net { padding-top: .5rem; border-top: 1px solid var(--line-2); }
.pl__row.is-net b { color: var(--ok); font-weight: 600; }
.pl__bar { position: relative; height: 10px; border-radius: 3px; }
.pl__bar i { position: absolute; inset-block: 0; right: 0; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--blue-500); }
.pl__bar--neg i { background: rgb(255 123 123 / .55); }
.pl__bar--sub i { background: var(--blue-300); }
.pl__bar--net i { background: var(--ok); }
.jv-list { display: grid; gap: .3rem; margin-top: 1.1rem; }
.jv { display: grid; grid-template-columns: 72px 1fr 70px 96px; gap: .6rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; background: rgb(255 255 255 / .02); border: 1px solid var(--line-1); }
.jv span:first-child { font-family: var(--font-num); color: var(--blue-300); font-size: .76rem; }
.jv b { color: var(--text-1); font-weight: 500; text-align: end; }
.jv em { font-style: normal; font-size: .72rem; text-align: center; padding: .1rem .3rem; border-radius: 6px; }
.jv em.ok { background: var(--ok-tint); }
.jv em.wait { color: var(--warn); background: var(--warn-tint); }

/* Branches module */
.br-map { position: relative; height: 230px; border-radius: 14px; background:
  radial-gradient(circle at 50% 50%, rgb(47 123 255 / .14), transparent 60%),
  repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgb(140 170 230 / .07) 38px 39px);
  border: 1px solid var(--line-1); overflow: hidden; }
.br-map__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.br-map__links path { stroke: rgb(140 184 255 / .35); stroke-width: 1.2; fill: none; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; animation: dash 12s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }
.br-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; padding: .35rem .7rem; border-radius: 10px; background: #0d1838; border: 1px solid var(--line-2); white-space: nowrap; }
.br-node b { color: var(--text-1); font-weight: 600; font-size: .8rem; }
.br-node small { color: var(--text-3); font-size: .72rem; font-family: var(--font-num); }
.br-node--hq { border-color: var(--blue-400); background: #10255a; }
.br-node--hq small { color: var(--blue-200); }
.br-node--warn { border-color: rgb(242 187 85 / .5); }
.br-table { display: grid; gap: 2px; margin-top: .9rem; }
.br-table > div { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; background: rgb(255 255 255 / .02); }
.br-table > div:first-child { background: none; color: var(--text-3); font-size: .74rem; }
.br-table > div:not(:first-child) span:first-child { color: var(--text-1); }

/* Workforce module */
.roster { position: relative; display: grid; gap: .45rem; padding-bottom: .5rem; }
.roster__scale { display: flex; justify-content: space-between; margin-inline-start: 122px; color: var(--text-3); font-size: .72rem; font-family: var(--font-num); }
.roster__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.who { display: flex; align-items: center; gap: .45rem; color: var(--text-1); font-size: .8rem; white-space: nowrap; }
.who i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--blue-200); font-size: .72rem; }
.roster__track { position: relative; height: 32px; border-radius: 8px; background: rgb(255 255 255 / .025); }
.roster__track b {
  position: absolute; inset-block: 3px; right: calc(var(--s) * 100%); width: calc((var(--e) - var(--s)) * 100%);
  display: flex; align-items: center; padding-inline: .6rem; border-radius: 6px; font-size: .74rem; font-weight: 500; white-space: nowrap; overflow: hidden;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2);
}
.roster__track b.is-live { background: var(--blue-tint-2); color: var(--blue-200); border-color: var(--blue-400); }
.roster { padding-bottom: 1.4rem; }
.roster__now { position: absolute; top: 26px; bottom: 1.1rem; right: calc(122px + var(--n) * (100% - 122px)); width: 1px; background: var(--warn); }
.roster__now em { position: absolute; bottom: -1.2rem; transform: translateX(50%); font-style: normal; font-size: .72rem; color: var(--warn); white-space: nowrap; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .9rem; }
.att div { border: 1px solid var(--line-1); border-radius: 12px; padding: .55rem .75rem; }
.att small { display: block; color: var(--text-3); font-size: .72rem; }
.att b { color: var(--text-1); font-weight: 600; font-size: 1.05rem; }

@media (max-width: 1080px) {
  .mods__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
@media (max-width: 680px) {
  .mods__tabs { border-radius: 18px; gap: .2rem; padding: .3rem; }
  .mods__tabs [role="tab"] { flex-direction: column; gap: .15rem; min-height: 60px; border-radius: 14px; font-size: var(--fs-tag); }
  .mods__tabs [role="tab"]:focus-visible { border-radius: 14px; }
  .ui { padding: .85rem; font-size: .76rem; }
  .ui--pos { grid-template-columns: minmax(0, 1fr); }
  .ui-pos__items span { min-height: 58px; padding: .55rem; }
  .matrix__row > span { padding: .45rem .3rem; font-size: .72rem; }
  .matrix__row { grid-template-columns: 1.25fr repeat(4, 1fr); }
  .pl__row { grid-template-columns: 88px 1fr 70px; gap: .5rem; }
  .jv { grid-template-columns: 62px 1fr 56px; }
  .jv em { grid-column: 2 / -1; justify-self: start; }
  .br-map { height: 190px; }
  .br-table > div { font-size: .74rem; }
  .roster__scale { margin-inline-start: 88px; }
  .roster__row { grid-template-columns: 78px 1fr; gap: 10px; }
  .who { font-size: .72rem; }
  .who i { display: none; }
  .roster__now { right: calc(88px + var(--n) * (100% - 88px)); }
  .roster__track b { font-size: .72rem; padding-inline: .35rem; }
}

/* ===================== FOUNDATIONS ===================== */
.foundations { padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-block: 1px solid var(--line-1); background: var(--bg-0); }
.foundations__title { font-size: 1rem; font-family: var(--font-body); font-weight: 500; color: var(--text-3); margin-bottom: 1.75rem; }
.foundations__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.foundations__list li { display: grid; gap: .35rem; padding-inline: 1.5rem; border-inline-start: 1px solid var(--line-2); }
.foundations__list li:first-child { padding-inline-start: 0; border: 0; }
.foundations__list b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--text-1); }
.foundations__list span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 900px) {
  .foundations__list { grid-template-columns: 1fr 1fr; gap: 1.75rem 0; }
  .foundations__list li:nth-child(3) { padding-inline-start: 0; border: 0; }
}
@media (max-width: 520px) {
  .foundations__list { grid-template-columns: 1fr; }
  .foundations__list li { padding: 0 0 0; border: 0; padding-top: 1.25rem; border-top: 1px solid var(--line-1); }
  .foundations__list li:first-child { padding-top: 0; border-top: 0; }
}

/* ===================== INDUSTRIES ===================== */
.industries { background: radial-gradient(80% 50% at 50% 0%, rgb(47 123 255 / .07), transparent 70%), var(--bg-1); }
.ind { display: grid; gap: 2.25rem; }
.ind__tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.ind__tabs [role="tab"] {
  min-height: 44px; padding: .4rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--text-2); font-weight: 500; transition: all var(--dur-2);
}
.ind__tabs [role="tab"]:hover { border-color: var(--line-3); color: var(--text-1); }
.ind__tabs [role="tab"][aria-selected="true"] { background: var(--text-1); color: var(--text-inv); border-color: var(--text-1); }
.ind__tabs [role="tab"]:focus-visible { border-radius: 999px; }
.ind__panel { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); padding: clamp(1.25rem, 3vw, 2.75rem); }
.ind__panel:focus-visible { border-radius: var(--r-xl); }
.ind__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.ind__intro h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.ind__intro p { color: var(--text-2); max-width: 46em; }
.ind__mods { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.ind__mods span { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--blue-tint); color: var(--blue-200); font-size: .8rem; white-space: nowrap; }
.ind__mods svg { width: 14px; height: 14px; }
.day { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.day::before { content: ""; position: absolute; inset-inline: 0; top: 7px; height: 1px; background: linear-gradient(270deg, var(--blue-400), var(--line-2)); }
.moment { position: relative; display: grid; gap: .45rem; padding-top: 2rem; align-content: start; }
.moment::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--blue-400); }
.moment time { font-family: var(--font-num); color: var(--blue-300); font-size: .9rem; font-weight: 500; }
.moment b { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--text-1); line-height: 1.45; }
.moment p { color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.moment small { color: var(--text-3); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.ind__panel.is-entering .moment { animation: a-fade .6s var(--ease-out) both; }
.ind__panel.is-entering .moment:nth-child(2) { animation-delay: .07s; }
.ind__panel.is-entering .moment:nth-child(3) { animation-delay: .14s; }
.ind__panel.is-entering .moment:nth-child(4) { animation-delay: .21s; }
.ind__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-1); color: var(--text-3); font-size: .85rem; }
@media (max-width: 900px) {
  .ind__intro { grid-template-columns: 1fr; }
  .ind__mods { justify-content: flex-start; }
  .day { grid-template-columns: 1fr; gap: 1.5rem; padding-inline-start: 2rem; }
  .day::before { inset-inline: auto; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue-400), var(--line-2)); }
  .moment { padding-top: 0; }
  .moment::before { inset-inline-start: -2rem; top: .3rem; }
}

/* ===================== DEMO ===================== */
.demo { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); border-top: 1px solid var(--line-1); }
.demo__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.demo__copy { display: grid; gap: 1.25rem; }
.demo__copy h2 { font-size: var(--fs-h2); }
.demo__steps { display: grid; gap: 1rem; margin-top: 1rem; counter-reset: s; }
.demo__steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: .9rem; }
.demo__steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-3); color: var(--blue-300); font-family: var(--font-num); }
.demo__steps b { color: var(--text-1); font-weight: 600; }
.demo__steps span { color: var(--text-3); font-size: .92rem; }

.demo-form {
  display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); box-shadow: var(--shadow-2);
}
.form-proto { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--r-md); background: var(--warn-tint); color: var(--text-1); font-size: .86rem; line-height: 1.7; }
.form-proto .proto-strip__tag { margin-top: .2rem; }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--text-1); padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: .6rem .9rem; border-radius: 12px;
  background: rgb(3 6 14 / .6); border: 1px solid var(--line-2); color: var(--text-1);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field input::placeholder { color: var(--text-3); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: 18px 22px, 23px 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 2.5rem; }
.field select option { background: #0c1530; }
.field input:hover, .field select:hover { border-color: var(--line-3); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgb(47 123 255 / .3); border-radius: 12px; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field label small { color: var(--text-3); font-weight: 400; font-size: var(--fs-meta); }
.field__err { min-height: 0; color: var(--bad); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.field__err:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.checks span { display: inline-flex; align-items: center; min-height: var(--tap); padding: .3rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .92rem; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.checks input:checked + span { background: var(--blue-tint-2); border-color: var(--blue-400); color: var(--text-1); }
.checks input:focus-visible + span { box-shadow: var(--focus); }
.checks input[aria-invalid="true"]:not(:checked) + span { border-color: var(--bad); }
/* W10: the home form now ends in a local summary the visitor copies; it is never sent */
.form-result { display: grid; gap: .75rem; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid rgb(242 187 85 / .4); background: var(--warn-tint); color: var(--text-1); font-size: .95rem; line-height: 1.8; }
.form-result b { color: var(--warn); }
.form-result:focus-visible { border-radius: var(--r-md); }
.form-result__text { margin: 0; padding: .8rem .9rem; border-radius: 10px; background: rgb(3 6 14 / .55); border: 1px solid var(--line-2); color: var(--text-1); font-family: var(--font-body); font-size: .9rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.form-result__status { color: var(--text-2); font-size: var(--fs-meta); }
.form-result__status:empty { display: none; }
@media (max-width: 900px) { .demo__layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--line-1); background: var(--bg-0); padding-block: 2rem; font-size: .85rem; color: var(--text-3); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand--sm .brand__word { font-size: 1.05rem; }
.level b small { display: block; font-size: .72rem; color: var(--text-3); font-weight: 400; line-height: 1.3; }
.level b { text-align: end; line-height: 1.35; }
