/* Luttrell Staffing x Salesforce microsite
   Palette and type pulled from luttrellstaffing.com:
   navy #0F1941, red #9D1B20, indigo #323366, Poppins, square corners,
   light-weight uppercase headlines, red buttons that flip to navy on hover. */

:root {
  --navy: #0f1941;
  --navy-hover: #0e1841;
  --red: #9d1b20;
  --red-bright: #b82127;
  --indigo: #323366;
  --ink: #121211;
  --charcoal: #262624;
  --slate: #54595f;
  --gray: #7a7a7a;
  --line: #e7e7e7;
  --paper: #ffffff;
  --mist: #f4f4f6; /* derived: a quiet neutral between white and the brand light gray */
  --navy-tint: #5b5e9b; /* derived from indigo, used only for chart segments */
  --red-tint: #c9686c; /* derived from red, used only for chart segments */
  --nav-h: 72px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.on-dark .eyebrow,
.hero .eyebrow {
  color: #fff;
  opacity: 0.85;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-lead {
  max-width: 760px;
  color: var(--slate);
  font-size: 17px;
  margin-top: 16px;
}

.on-dark .section-title,
.on-dark h3 {
  color: #fff;
}

.on-dark .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
}

.on-dark .btn:hover,
.on-dark .btn:focus-visible,
.hero .btn:hover,
.hero .btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}

.on-dark :focus-visible,
.hero :focus-visible {
  outline-color: #fff;
}

/* ---------- Navigation ---------- */
#topnav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img.lt-logo {
  height: 46px;
  width: auto;
}

.brand .sf-logo {
  height: 30px;
  width: auto;
}

.brand-x {
  width: 1px;
  height: 30px;
  background: var(--line);
}

#navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}

#navlinks a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

#navlinks a:hover,
#navlinks a.active {
  border-bottom-color: var(--red);
}

#navlinks a.nav-roi {
  background: var(--red);
  color: #fff;
  margin: 0 6px;
  border-bottom-color: transparent;
}

#navlinks a.nav-roi:hover,
#navlinks a.nav-roi.active {
  background: var(--navy-hover);
}

#navtoggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

#navtoggle span,
#navtoggle span::before,
#navtoggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
  content: '';
}

#navtoggle span::before {
  position: absolute;
  top: -6px;
  left: 0;
}

#navtoggle span::after {
  position: absolute;
  top: 6px;
  left: 0;
}

#progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  z-index: 501;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 680px;
  padding: calc(var(--nav-h) + 90px) 0 150px;
  color: #fff;
  background: url('hero.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 65, 0.7);
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  color: #fff;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(28px, 4.3vw, 56px);
  line-height: 1.14;
  max-width: none;
}

.hero h1 strong {
  font-weight: 600;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  max-width: 660px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 26px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- KPI tiles ---------- */
.kpis {
  position: relative;
  margin-top: -78px;
  z-index: 2;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kpi {
  background: #fff;
  border-top: 4px solid var(--red);
  padding: 24px 24px 22px;
  box-shadow: 0 10px 30px rgba(15, 25, 65, 0.14);
}

.kpi .num {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}

.kpi .lbl {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.4;
}

.kpi-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
}

/* ---------- Generic sections ---------- */
section {
  padding: 96px 0;
}

.alt {
  background: var(--mist);
}

.on-dark {
  background: var(--navy);
  color: #fff;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
}

.pillar .idx {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red);
}

.pillar h3 {
  font-size: 24px;
  margin: 10px 0 18px;
}

.heard {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heard li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
  background: var(--mist);
  border-left: 3px solid var(--red);
  padding: 5px 10px;
}

.pillar p {
  color: var(--slate);
  font-size: 15.5px;
  margin: 0;
}

.pillars-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.pillars-cta span {
  color: var(--slate);
}

/* ---------- Calculator ---------- */
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.calc-banner {
  margin-top: 28px;
  background: #fff;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--slate);
}

.calc-banner strong {
  color: var(--navy);
}

/* One column: a sticky results bar, the team inputs, then collapsible rows. */
.calc {
  margin-top: 32px;
}

.sumbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 25, 65, 0.22);
}

.sumbar .stat {
  padding: 14px 20px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
}

.sumbar .stat:first-child {
  border-left: 0;
}

.sumbar .stat .v {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.sumbar .stat.lead .v {
  font-size: 30px;
}

.sumbar .stat .l {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Your team: four shared inputs in one strip */
.team-strip {
  margin-top: 16px;
  padding: 16px 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.ts-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ts-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.ts-intro .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--slate);
  padding: 3px 9px;
}

.ts-intro h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.ts-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}

.ts-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 26px;
}

.ts-fields .field .top {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: 6px;
}

.ts-fields .field .control {
  grid-template-columns: 1fr 104px;
  gap: 12px;
}

.ts-fields .numbox {
  height: 36px;
}

.linkbtn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 0;
}

.linkbtn:hover,
.linkbtn:focus-visible {
  color: var(--red);
}

.linkbtn.solid {
  padding: 9px 12px;
  border: 1px solid var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.linkbtn.solid:hover,
.linkbtn.solid:focus-visible {
  background: var(--navy);
  color: #fff;
}

/* Section header above the rows */
.acc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
}

.acc-head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.acc-head p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--slate);
}

.accs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 10px;
}

/* Collapsible rows */
details.acc {
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

details.acc[open] {
  border-color: #c9cbd6;
  box-shadow: 0 10px 24px rgba(15, 25, 65, 0.08);
}

details.acc > summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1fr) 190px 20px;
  gap: 22px;
  align-items: center;
  padding: 11px 22px;
  cursor: pointer;
  list-style: none;
}

details.acc > summary::-webkit-details-marker {
  display: none;
}

details.acc > summary:hover {
  background: #fafafc;
}

details.acc > summary:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: -3px;
}

details.acc .ttl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

details.acc .cap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

details.acc .cap .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
}

details.acc .nm {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

details.acc .meter {
  height: 8px;
  background: var(--line);
}

details.acc .meter:empty {
  background: transparent;
}

details.acc .meter i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.25s;
}

details.acc .val {
  text-align: right;
}

details.acc .val b {
  display: block;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

details.acc .val small {
  font-size: 12px;
  color: var(--gray);
}

details.acc .chev {
  justify-self: center;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.2s, margin 0.2s;
}

details.acc[open] > summary .chev {
  margin-top: 5px;
  transform: rotate(-135deg);
}

.acc-body {
  padding: 2px 22px 22px;
  border-top: 1px solid var(--line);
}

.acc-body .blurb {
  margin: 14px 0 12px;
  max-width: 780px;
  font-size: 14px;
  color: var(--slate);
}

.formula {
  padding: 10px 14px;
  background: var(--mist);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.formula b {
  color: var(--navy);
  font-weight: 600;
}

.fields {
  display: grid;
  gap: 18px 36px;
  padding-top: 18px;
}

.fields.n2,
.fields.n4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields.n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  background: var(--mist);
  padding: 2px 8px;
  white-space: nowrap;
}

.tag.luttrell {
  color: #fff;
  background: var(--navy);
}

.field .control {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
}

.field .hint {
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 6px;
}

.rangewrap {
  position: relative;
  padding-top: 2px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  margin: 0;
  cursor: pointer;
  --pct: 50%;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--navy) var(--pct), var(--line) var(--pct));
}

input[type='range']::-moz-range-track {
  height: 6px;
  background: var(--line);
}

input[type='range']::-moz-range-progress {
  height: 6px;
  background: var(--navy);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 22px;
  margin-top: -8px;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--red);
  border-radius: 0;
}

input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 18px;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--red);
  border-radius: 0;
}

.bench {
  position: absolute;
  top: -4px;
  width: 0;
  height: 30px;
  border-left: 2px dashed var(--indigo);
  pointer-events: none;
}

.bench-label {
  font-size: 12px;
  color: var(--indigo);
  margin-top: 2px;
}

.numbox {
  display: flex;
  align-items: center;
  border: 1px solid #c9c9c9;
  background: #fff;
  height: 40px;
  padding: 0 10px;
  gap: 4px;
}

.numbox:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(15, 25, 65, 0.15);
}

.numbox input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.numbox input::-webkit-outer-spin-button,
.numbox input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.numbox .u {
  font-size: 13px;
  color: var(--gray);
  flex-shrink: 0;
}

/* Investment row */
.sched {
  padding: 4px 0 6px;
  display: grid;
  gap: 14px;
}

.sched-row {
  display: grid;
  grid-template-columns: 150px repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.sched-row.head {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.sched-row .rl {
  font-size: 13.5px;
  font-weight: 500;
}

.sched-row .rl small {
  display: block;
  font-weight: 400;
  color: var(--gray);
  font-size: 12px;
}

.sched .numbox {
  height: 36px;
  padding: 0 6px;
}

.sched .numbox input {
  font-size: 13px;
}

.sched .numbox .u {
  font-size: 12px;
}

.inv-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray);
}

.stepper {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) 110px;
  gap: 24px;
  align-items: center;
  padding: 16px 0 14px;
}

.stepper .lbl {
  font-size: 14px;
  font-weight: 500;
}

.stepper .lbl small {
  display: block;
  font-weight: 400;
  color: var(--gray);
  font-size: 12.5px;
}

.stack {
  display: flex;
  height: 12px;
  background: var(--line);
}

.stack span {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: width 0.25s;
}

.chart {
  max-width: 560px;
  margin: 10px auto 22px;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 6px;
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 12px;
}

/* Year table */
.table-scroll {
  overflow-x: auto;
}

table.years {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 14px;
}

table.years th,
table.years td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.years th:first-child,
table.years td:first-child {
  text-align: left;
  font-weight: 500;
}

table.years thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-bottom: 0;
}

table.years tr.sub td {
  color: var(--slate);
  font-size: 13px;
}

table.years tr.sub td:first-child {
  padding-left: 26px;
  font-weight: 400;
}

table.years tr.total td {
  font-weight: 600;
  color: var(--navy);
  background: var(--mist);
}

table.years td.pos {
  color: var(--navy);
  font-weight: 600;
}

table.years td.neg {
  color: var(--red);
  font-weight: 600;
}

table.years td.tot {
  font-weight: 600;
  color: var(--navy);
}

.table-note {
  font-size: 13px;
  color: var(--gray);
  margin: 14px 0 0;
}

/* ---------- About these numbers (discreet button + dialog) ---------- */
.calc-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.noticebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--gray);
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.2s;
}

.noticebtn .i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10.5px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.noticebtn:hover,
.noticebtn:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.noticebtn.light {
  display: inline;
  padding: 0;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.noticebtn.light:hover,
.noticebtn.light:focus-visible {
  color: #fff;
}

html.modal-open {
  overflow: hidden;
}

dialog.notice {
  width: min(900px, calc(100% - 32px));
  max-height: min(88vh, 920px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

dialog.notice[open] {
  display: flex;
  flex-direction: column;
}

dialog.notice::backdrop {
  background: rgba(15, 25, 65, 0.66);
}

.nd-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  background: var(--navy);
  color: #fff;
}

.nd-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nd-close {
  flex: none;
  width: 38px;
  height: 38px;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nd-close:hover,
.nd-close:focus-visible {
  background: #fff;
  color: var(--navy);
}

.nd-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 26px 30px;
}

.nd-body section {
  padding: 22px 0 0;
}

.nd-body h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.nd-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--slate);
}

.nd-body b {
  font-weight: 600;
  color: var(--ink);
}

.nd-formulas {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--slate);
}

.nd-formulas li {
  margin-bottom: 8px;
}

.nd-group {
  margin-top: 16px;
}

.nd-group h4 {
  margin: 0;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mist);
}

.nd-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr) minmax(0, 2.1fr);
  gap: 6px 18px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.nd-row .a {
  font-weight: 500;
  color: var(--ink);
}

.nd-row .b {
  font-weight: 600;
  color: var(--navy);
}

.nd-row .c {
  color: var(--slate);
}

.nd-body .nd-legal {
  margin-top: 24px;
  padding: 18px 20px 6px;
  background: var(--mist);
  border-left: 4px solid var(--navy);
}

.nd-legal p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

@media (max-width: 640px) {
  dialog.notice {
    width: calc(100% - 20px);
    max-height: 92vh;
  }
  .nd-head {
    padding: 14px 16px;
  }
  .nd-head h2 {
    font-size: 16px;
  }
  .nd-body {
    padding: 4px 16px 24px;
  }
  .nd-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nd-row .c {
    grid-column: 1 / -1;
  }
  .nd-body .nd-legal {
    padding: 16px 14px 4px;
  }
  .calc-foot {
    justify-content: flex-start;
  }
}

/* ---------- Demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}

.poster {
  position: relative;
  display: block;
  text-decoration: none;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 690;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.25s;
}

.poster:hover img {
  opacity: 1;
}

.poster .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.poster:hover .play {
  background: #fff;
}

.poster .play::after {
  content: '';
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 8px;
}

.poster:hover .play::after {
  border-left-color: var(--red);
}

.poster .cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 26px 20px 14px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.demo-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.demo-cta .helper {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
}

/* Challenge finder: chips plus one detail panel */
.finder h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover,
.chip:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  outline: none;
}

.chip.active,
.chip.active:hover,
.chip.active:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.finder-panel {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  min-height: 254px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.finder-panel .hint {
  margin: auto 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}

.finder-panel .pt {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.finder-panel .moment {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}

.finder-panel .times {
  display: flex;
  gap: 6px;
}

.finder-panel .ps {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.finder-panel.in {
  animation: panel-in 0.22s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Full outline, collapsed until opened */
details.outline {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

details.outline summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

details.outline summary::-webkit-details-marker {
  display: none;
}

details.outline summary small {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

details.outline summary::after {
  content: '+';
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
}

details.outline[open] summary::after {
  content: '\2212';
}

details.outline summary:hover,
details.outline summary:focus-visible {
  color: #fff;
  outline: none;
}

details.outline summary:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}

.outline-list {
  columns: 2;
  column-gap: 44px;
  padding-bottom: 14px;
}

.outline-list li {
  break-inside: avoid;
}

.ts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}

.ts {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 1px 6px;
  text-align: center;
  height: fit-content;
  font-size: 13px;
}

/* ---------- Contact ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 26px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--red), 0 8px 22px rgba(15, 25, 65, 0.18);
}

.person h3 {
  font-size: 22px;
  margin-top: 22px;
}

.role {
  margin: 10px 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 5px 12px;
}

.person .org {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 20px;
}

.person .btn {
  margin-top: auto;
  width: 100%;
  font-size: 13px;
  padding: 13px 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-foot {
  margin-top: 44px;
  text-align: center;
}

.contact-foot p {
  color: var(--slate);
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
footer {
  background: #0b1232;
  color: rgba(255, 255, 255, 0.78);
  padding: 44px 0 40px;
  font-size: 13.5px;
}

footer .row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

footer .logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

footer .logos .panel-logo {
  background: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

footer .logos img.lt {
  height: 34px;
  width: auto;
}

footer .logos img.sf {
  height: 34px;
  width: auto;
}

footer .fine {
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .finder-panel.in {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ts-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sumbar .stat {
    padding: 12px 14px 10px;
  }
  .sumbar .stat.lead .v {
    font-size: 26px;
  }
  .sumbar .stat .v {
    font-size: 19px;
  }
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }
  #navtoggle {
    display: block;
  }
  #navlinks {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    display: none;
    box-shadow: 0 12px 24px rgba(15, 25, 65, 0.12);
  }
  #navlinks.open {
    display: flex;
  }
  #navlinks a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
  }
  #navlinks a.nav-roi {
    margin: 10px 0 0;
    text-align: center;
  }
  .brand img.lt-logo {
    height: 38px;
  }
  .brand .sf-logo {
    height: 24px;
  }
  .brand {
    gap: 12px;
  }
  .pillars,
  .team {
    grid-template-columns: 1fr;
  }
  .outline-list {
    columns: 1;
  }
  .sumbar {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .sumbar .stat.opt {
    display: none;
  }
  .fields.n3,
  .fields.n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stepper {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .stepper .rangewrap {
    grid-column: 1 / -1;
    order: 3;
  }
  section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
  #topnav {
    padding: 0 16px;
  }
  .hero {
    min-height: 0;
    padding-bottom: 120px;
  }
  .kpi-grid {
    gap: 12px;
  }
  .kpi {
    padding: 18px 16px;
  }
  .sumbar .stat {
    padding: 10px 12px 8px;
  }
  .sumbar .stat .v {
    font-size: 17px;
  }
  .sumbar .stat.lead .v {
    font-size: 21px;
  }
  .sumbar .stat .l {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .sumbar .stat .l .x {
    display: none;
  }
  .team-strip {
    padding: 16px 16px 18px;
  }
  .fields.n2,
  .fields.n3,
  .fields.n4 {
    grid-template-columns: minmax(0, 1fr);
  }
  /* "Your team" on a phone: a compact 2 x 2 of number boxes, no sliders. */
  .ts-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 14px;
  }
  .ts-fields .rangewrap {
    display: none;
  }
  .ts-fields .field .control {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-intro p {
    display: none;
  }
  .acc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  details.acc > summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    grid-template-areas: 'ttl val chev' 'meter meter meter';
    gap: 8px 12px;
    padding: 12px 14px;
  }
  details.acc .ttl {
    grid-area: ttl;
  }
  details.acc .meter {
    grid-area: meter;
  }
  details.acc .meter:empty {
    display: none;
  }
  details.acc .val {
    grid-area: val;
  }
  details.acc .chev {
    grid-area: chev;
  }
  details.acc .nm {
    font-size: 15px;
  }
  details.acc .val b {
    font-size: 18px;
  }
  details.acc .val small {
    display: none;
  }
  .acc-body {
    padding: 2px 14px 18px;
  }
  .field .control {
    grid-template-columns: 1fr 104px;
    gap: 12px;
  }
  .sched {
    overflow-x: auto;
  }
  .sched-row {
    min-width: 520px;
  }
  .finder-panel {
    padding: 18px 16px;
    min-height: 230px;
  }
  .finder-panel .moment {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  details.outline summary small {
    display: none;
  }
  .brand-x {
    display: none;
  }
}
