/* B2B Web Systems: components for the inner pages. Loaded after site.css (tokens, header, buttons, cards live there). */

/* ---------- Page opening ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--ink-3);
  opacity: 0.55;
}
.crumbs a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}
.crumbs [aria-current] {
  color: var(--ink-2);
}

.phero {
  position: relative;
  /* the tilted card behind the visual must not widen the page on phones */
  overflow-x: clip;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(17 33 26 / 0.1) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(55% 80% at 78% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(55% 80% at 78% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.phero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .phero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
  .phero-grid--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}
.phero-copy {
  display: grid;
  justify-items: start;
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
}
.display--page {
  font-size: clamp(2.45rem, 1.15rem + 4.3vw, 4.3rem);
}
.lead--wide {
  max-width: 44ch;
}
.phero-grid--solo .lead--wide {
  max-width: 52ch;
}
.phero-copy .cta-row {
  margin-top: 0.35rem;
}
.phero-copy .cta-row .fine {
  color: var(--ink-2);
}

/* the visual beside the heading: soft evergreen card behind, like the home demo */
.phero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 40rem;
  justify-self: center;
}
.phero-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -12% -16% -8% -12%;
  background: radial-gradient(closest-side, rgb(206 250 119 / 0.55), rgb(206 250 119 / 0));
}
.phero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.8rem -0.5rem -0.8rem 0.8rem;
  border-radius: calc(var(--r-xl) + 2px);
  background: var(--evergreen);
  transform: rotate(1.6deg);
  transform-origin: 70% 90%;
}
@media (min-width: 640px) {
  .phero-visual::after {
    inset: 1rem -0.8rem -0.9rem 1rem;
    transform: rotate(2.2deg);
  }
}

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.sec--tight {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.sec--flush {
  padding-top: 0;
}
.sec--paper {
  background: var(--paper);
}
.sec--dark {
  overflow: clip;
  background: var(--forest);
  color: var(--cream);
}
.sec--dark::before {
  content: "";
  position: absolute;
  width: 56rem;
  height: 56rem;
  right: -22rem;
  top: -26rem;
  background: radial-gradient(closest-side, rgb(206 250 119 / 0.14), rgb(206 250 119 / 0));
  pointer-events: none;
}
.sec--dark .wrap {
  position: relative;
}
.sec--dark .eyebrow {
  color: var(--lime);
}
.sec--dark .stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.sec--dark .fine {
  margin-top: 1.5rem;
  color: rgb(246 246 240 / 0.62);
}
.sec--dark .link {
  color: var(--lime);
  text-decoration-color: rgb(206 250 119 / 0.4);
}
.sec--dark .link:hover {
  text-decoration-color: var(--lime);
}
.sec-head {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.title--s {
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem);
}
.sec-lead {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.sec--dark .sec-lead {
  color: rgb(246 246 240 / 0.78);
}
.sec-lead + .sec-lead {
  margin-top: 1rem;
}
.note {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.split > .sec-head {
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .split--visual {
    align-items: center;
  }
}
.cta-row.cta-row {
  margin-top: 1.25rem;
}
.split .cta-row,
.sec > .wrap > .cta-row {
  margin-top: 1.25rem;
}

/* ---------- Lists and small marks ---------- */
.tag {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label {
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.checks {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.checks .i {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.22rem;
  color: var(--evergreen);
}
.sec--dark .checks li {
  color: rgb(246 246 240 / 0.85);
}
.sec--dark .checks .i {
  color: var(--lime);
}
.checks strong {
  color: var(--ink);
  font-weight: 600;
}
.pains {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 620px) {
  .pains {
    grid-template-columns: repeat(2, 1fr);
  }
  .pains--one {
    grid-template-columns: 1fr;
  }
}
.pains li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.7);
}
.pains-n {
  flex: none;
  padding-top: 0.22rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--evergreen);
}
.pains p {
  font-size: 1rem;
  line-height: 1.5;
}
.pains--one + .note {
  margin-top: 1.25rem;
}
.changes {
  display: grid;
  gap: 1.5rem 2.25rem;
}
@media (min-width: 800px) {
  .changes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.changes li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.changes-n {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--evergreen);
}
.changes h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.changes p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.start .label {
  margin-top: 1.5rem;
}

/* ---------- Frames (screenshots) ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid rgb(17 33 26 / 0.08);
  box-shadow: var(--shadow-lg);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.frame figcaption {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.frame--dark {
  border-color: rgb(246 246 240 / 0.12);
  background: var(--forest-950);
}
.frame--dark figcaption {
  border-top-color: rgb(246 246 240 / 0.1);
  background: var(--forest-600);
  color: rgb(246 246 240 / 0.74);
}
.frame--card {
  box-shadow: var(--shadow-md);
}
.frame--phone {
  max-width: 14rem;
  margin-inline: auto;
  border-radius: 1.75rem;
  border-width: 3px;
  border-color: var(--forest);
}
.frame--tall img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
}
.duo {
  position: relative;
  padding-bottom: 2.25rem;
}
.duo-phone {
  position: absolute;
  right: -0.35rem;
  bottom: 0;
  width: clamp(5.75rem, 26%, 9rem);
  box-shadow: var(--shadow-lg);
}

/* ---------- Cards, strips and callouts ---------- */
.callout {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--forest);
  color: var(--cream);
}
@media (min-width: 800px) {
  .callout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }
}
.callout .eyebrow {
  color: var(--lime);
}
.callout h3 {
  margin: 0.7rem 0 0.5rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.callout p:not(.eyebrow) {
  max-width: 62ch;
  color: rgb(246 246 240 / 0.78);
}
.callout .link {
  color: var(--lime);
  text-decoration-color: rgb(206 250 119 / 0.4);
}
.callout-line {
  max-width: 68ch;
  padding: 1.15rem 1.4rem;
  border: 1px solid rgb(32 75 62 / 0.16);
  border-radius: var(--r-md);
  background: rgb(206 250 119 / 0.3);
  color: var(--ink);
}
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: rgb(255 255 255 / 0.6);
}
.strip .title--s {
  margin-top: 0.7rem;
  max-width: 24ch;
}
.strip .sec-lead {
  margin-top: 0.6rem;
}
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.also ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
}
.also a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--evergreen);
}
.also a .i {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}
.also a:hover .i {
  transform: translateX(3px);
}
.card--guide {
  gap: 0.7rem;
}
.card--guide h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* hero facts card (big numbers) */
.facts {
  padding: 0.5rem 1.6rem;
  border-radius: var(--r-xl);
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}
.facts li {
  display: grid;
  gap: 0.15rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgb(246 246 240 / 0.14);
}
.facts li:last-child {
  border-bottom: 0;
}
.facts b {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--lime);
}
.facts span {
  font-size: 0.9375rem;
  color: rgb(246 246 240 / 0.78);
}

/* ---------- FAQ (native details) ---------- */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311211a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.sec--paper .faq summary::after {
  background-color: var(--white);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--lime);
}
.faq summary:hover {
  color: var(--evergreen);
}
.faq-a {
  max-width: 60ch;
  padding: 0 3rem 1.35rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Tabs: radios inside labels, shown with :has() ---------- */
.tabs {
  display: grid;
  gap: 1.25rem;
}
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tabs-bar label {
  position: relative;
  display: block;
  cursor: pointer;
}
.tabs-bar input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tabs-bar span {
  display: block;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
  font-size: 0.9375rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.tabs-bar b {
  font-weight: 500;
}
.tabs-bar small {
  display: none;
}
.tabs-bar label:hover span {
  background: var(--white);
}
.tabs-bar input:checked + span {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}
.tabs-bar input:focus-visible + span {
  outline: 2px solid var(--evergreen);
  outline-offset: 2px;
}
@supports selector(:has(*)) {
  .tab-panel {
    display: none;
  }
  .tabs:has(.tabs-bar label:nth-child(1) input:checked) .tab-panel:nth-child(1),
  .tabs:has(.tabs-bar label:nth-child(2) input:checked) .tab-panel:nth-child(2),
  .tabs:has(.tabs-bar label:nth-child(3) input:checked) .tab-panel:nth-child(3),
  .tabs:has(.tabs-bar label:nth-child(4) input:checked) .tab-panel:nth-child(4),
  .tabs:has(.tabs-bar label:nth-child(5) input:checked) .tab-panel:nth-child(5),
  .tabs:has(.tabs-bar label:nth-child(6) input:checked) .tab-panel:nth-child(6),
  .tabs:has(.tabs-bar label:nth-child(7) input:checked) .tab-panel:nth-child(7),
  .tabs:has(.tabs-bar label:nth-child(8) input:checked) .tab-panel:nth-child(8) {
    display: block;
    animation: tab-in 0.5s var(--ease);
  }
}
@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* when :has() is unavailable the panels simply stack, so show a divider */
.tab-panel + .tab-panel {
  margin-top: 1.5rem;
}
@supports selector(:has(*)) {
  .tab-panel + .tab-panel {
    margin-top: 0;
  }
}

/* journey: four steps, each with a small illustrative card */
.tabs--journey .tabs-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  counter-reset: jstep;
}
@media (min-width: 900px) {
  .tabs--journey .tabs-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tabs--journey .tabs-bar label {
  counter-increment: jstep;
}
.tabs--journey .tabs-bar span {
  display: grid;
  gap: 0.15rem;
  height: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
}
.tabs--journey .tabs-bar span::before {
  content: "0" counter(jstep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--evergreen);
}
.tabs--journey .tabs-bar b {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tabs--journey .tabs-bar small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-3);
}
.tabs--journey .tabs-bar input:checked + span::before {
  color: var(--lime);
}
.tabs--journey .tabs-bar input:checked + span small {
  color: rgb(246 246 240 / 0.74);
}
.journey-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 800px) {
  .journey-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: 3rem;
  }
}
.journey-body {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.mini {
  width: 100%;
  max-width: 24rem;
  justify-self: end;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}
.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.mini-head b {
  font-weight: 600;
  color: var(--ink);
}
.mini-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.mini-rows dt {
  color: var(--ink-3);
}
.mini-rows dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
.mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.mini-foot em {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-style: normal;
  font-weight: 500;
}

/* ---------- System page ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (min-width: 640px) {
  .modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .modules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.modules li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.7);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}
.modules .ico {
  width: 2.35rem;
  height: 2.35rem;
  background: var(--lime-soft);
  color: var(--forest);
}
.modules li:last-child .ico {
  background: var(--lime);
}

/* ---------- Work ---------- */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
  }
}
.feature-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
}
.sec--dark .title--s {
  max-width: 16ch;
}
.projects {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.project {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 900px) {
  .project {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
  }
  .project:nth-child(even) .frame {
    order: 2;
  }
}
.project-body {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}
.project h3 {
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.project p {
  color: var(--ink-2);
}
.project .fine {
  color: var(--ink-3);
}
.film-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.film-strip li {
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.film-strip img {
  display: block;
  width: auto;
  height: clamp(5.25rem, 11vw, 8rem);
}
.facts + .fine {
  margin-top: 1rem;
}
.beforeafter {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .beforeafter {
    grid-template-columns: 1fr 1fr;
  }
}
.ba {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.55);
}
.ba ul {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.ba--after {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}
.ba--after .label {
  color: var(--lime);
}
.timeline {
  display: grid;
  gap: 0;
}
@media (min-width: 800px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.timeline li {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 2px solid var(--line-strong);
}
@media (min-width: 800px) {
  .timeline li {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--line-strong);
  }
}
.timeline b {
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--evergreen);
}
.timeline span {
  color: var(--ink-3);
}
.timeline strong {
  font-size: 1.125rem;
  font-weight: 600;
}
.timeline--detail span {
  max-width: 34ch;
  line-height: 1.5;
}

/* ---------- Process ---------- */
.stages {
  display: grid;
}
.stage {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line-strong);
}
.stage:last-child {
  border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 3rem;
  }
}
.stage-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.stage-n {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--evergreen);
}
.stage-name {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.stage-body h3 {
  max-width: 28ch;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage-body > p {
  max-width: 56ch;
  margin-top: 0.6rem;
  color: var(--ink-2);
}
.stage-rows {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
@media (min-width: 760px) {
  .stage-rows {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }
}
.stage-rows div {
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--paper);
}
.stage-rows dt {
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stage-rows dd {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.flow {
  display: grid;
  gap: 0.7rem;
  counter-reset: flow;
}
@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.9rem;
  }
}
.flow li {
  counter-increment: flow;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--evergreen);
}
.flow b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.flow span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ---------- Trust ---------- */
.flowmap {
  display: grid;
}
.flowmap li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.75);
}
.flowmap li + li {
  margin-top: 1.1rem;
}
.flowmap li + li::before {
  content: "";
  position: absolute;
  left: 2.35rem;
  top: -1.1rem;
  width: 1px;
  height: 1.1rem;
  background: var(--line-strong);
}
.flowmap b {
  display: block;
  font-weight: 600;
}
.flowmap small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.flowmap .is-core {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}
.flowmap .is-core small {
  color: rgb(246 246 240 / 0.78);
}
.flowmap .is-core .ico {
  background: var(--lime);
  color: var(--forest);
}
.matrix {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .matrix {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
}
.matrix-side {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}
.matrix-side .label:not(:first-child) {
  margin-top: 0.6rem;
}
.roles {
  display: grid;
  gap: 0.5rem;
}
.roles label {
  position: relative;
  display: block;
  cursor: pointer;
}
.roles input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.roles span {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.75);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.roles b {
  font-weight: 600;
}
.roles small {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.roles label:hover span {
  background: var(--white);
}
.roles input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}
.roles input:checked + span small {
  color: rgb(246 246 240 / 0.74);
}
.roles input:focus-visible + span {
  outline: 2px solid var(--evergreen);
  outline-offset: 2px;
}
.scope {
  justify-self: start;
}
.matrix-main {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.mx-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.mx-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.125rem;
}
.mx-scope {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.mx-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .mx-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  /* "No access" needs room on a phone */
  .mx-cells {
    grid-template-columns: 1fr;
  }
}
.mx-cells li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--cream);
  font-size: 0.9375rem;
}
.lvl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.lvl i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-3);
}
.mx-cells [data-level="full"] .lvl i {
  background: var(--evergreen);
}
.mx-cells [data-level="edit"] .lvl i {
  background: #2e9d6b;
}
.mx-cells [data-level="view"] .lvl i {
  background: #9fb4a8;
}
.mx-cells [data-level="none"] {
  color: var(--ink-3);
}
.mx-cells [data-level="none"] .lvl i {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.mx-assist {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  background: rgb(206 250 119 / 0.34);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.mx-assist .i {
  margin-top: 0.15rem;
  color: var(--evergreen);
}
@supports selector(:has(*)) {
  .mx-panel {
    display: none;
  }
  .matrix:has(.roles label:nth-child(1) input:checked) .mx-panel:nth-child(1),
  .matrix:has(.roles label:nth-child(2) input:checked) .mx-panel:nth-child(2),
  .matrix:has(.roles label:nth-child(3) input:checked) .mx-panel:nth-child(3),
  .matrix:has(.roles label:nth-child(4) input:checked) .mx-panel:nth-child(4),
  .matrix:has(.roles label:nth-child(5) input:checked) .mx-panel:nth-child(5) {
    display: grid;
    animation: tab-in 0.45s var(--ease);
  }
  .matrix:has(.scope input[value="all"]:checked) .sn-own {
    display: none;
  }
  .matrix:not(:has(.scope input[value="all"]:checked)) .sn-all {
    display: none;
  }
}
.duo-cards {
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 900px) {
  .duo-cards {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }
}
.record {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.record-rows div {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
@media (min-width: 560px) {
  .record-rows div {
    grid-template-columns: 9rem 1fr;
  }
}
.record-rows dt {
  color: var(--ink-3);
}
.record-rows dd {
  margin: 0;
  font-weight: 500;
}
.record .fine {
  margin-top: 0.25rem;
}
.rules li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-strong);
}
.rules li:first-child {
  padding-top: 0;
  border-top: 0;
}
.rules h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.rules p {
  margin-top: 0.35rem;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.55;
}
.status {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r-xl);
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(246 246 240 / 0.7);
}
.status-head em {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--lime);
}
.status-head i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
}
.status dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgb(246 246 240 / 0.14);
}
.status dt {
  color: rgb(246 246 240 / 0.7);
}
.status dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
.status .fine {
  color: rgb(246 246 240 / 0.6);
}

/* ---------- About ---------- */
.person {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgb(17 33 26 / 0.08);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.person-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.person-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.person-av--s {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
}
.person-top b {
  display: block;
  font-size: 1.1875rem;
}
.person-top small {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.person-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.person-rows dt {
  color: var(--ink-3);
}
.person-rows dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* ---------- Contact ---------- */
.contact-grid {
  align-items: start;
}
@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}
.mini-steps {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.mini-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.mini-steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--forest);
  font-size: 0.8125rem;
  font-weight: 600;
}
.mini-steps strong {
  display: block;
  font-weight: 600;
}
.mini-steps span {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.prefer {
  color: var(--ink-2);
}
.prefer a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.form-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgb(17 33 26 / 0.08);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}
.field label span {
  font-weight: 400;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background-color: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  background-color: var(--white);
  border-color: var(--evergreen);
  outline: 2px solid var(--evergreen);
  outline-offset: 1px;
}

/* Dropdowns. Desktop: a light custom list that pages.js builds over the native <select> (the select stays
   in the form, hidden). Touch screens and no-JS keep the native select, drawn with the same closed look. */
.field {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f6b64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23204b3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--chev);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.9rem;
  cursor: pointer;
}
.dd {
  position: relative;
}
.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background-color: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dd-btn::after {
  content: '';
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--chev) center / contain no-repeat;
  transition: transform 0.2s var(--ease);
}
.dd-btn:hover {
  border-color: var(--ink-3);
}
.dd-btn:focus-visible {
  outline: 2px solid var(--evergreen);
  outline-offset: 1px;
}
.dd-btn:focus-visible,
.dd-btn[aria-expanded='true'] {
  background-color: var(--white);
  border-color: var(--evergreen);
}
.dd-btn[aria-expanded='true']::after {
  transform: rotate(180deg);
}
.dd-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-val.is-placeholder {
  color: var(--ink-3);
}
.dd-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(19rem, 60vh);
  padding: 0.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--shadow-md);
  animation: dd-in 0.14s var(--ease);
}
.dd-list[hidden] {
  display: none;
}
.dd--up .dd-list {
  top: auto;
  bottom: calc(100% + 6px);
}
.dd-group + .dd-group,
.dd-group + .dd-opt {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
}
.dd-gh {
  padding: 0.5rem 0.7rem 0.25rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
}
.dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  line-height: 1.35;
  cursor: pointer;
}
.dd-opt.is-active {
  background: rgb(17 33 26 / 0.06);
}
.dd-opt.is-placeholder {
  color: var(--ink-3);
}
.dd-opt[aria-selected='true'] {
  font-weight: 600;
}
.dd-opt[aria-selected='true']::after {
  content: '';
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--tick) center / contain no-repeat;
}
@keyframes dd-in {
  from {
    opacity: 0;
  }
}

/* "Another industry" asks which one. Shown by CSS alone, so there is no flash; without :has() it is always shown. */
.field--other {
  display: none;
}
.form:has(option[data-other]:checked) .field--other {
  display: grid;
  animation: dd-in 0.18s var(--ease);
}
@supports not selector(:has(*)) {
  .field--other {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dd-list,
  .form:has(option[data-other]:checked) .field--other {
    animation: none;
  }
  .dd-btn::after {
    transition: none;
  }
}
.hint-s {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.form .btn {
  justify-self: start;
}
.form-done {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: rgb(206 250 119 / 0.34);
}
.form-done[hidden] {
  display: none;
}
.form-done-t {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}
.form-done-t .i {
  margin-top: 0.2rem;
  color: var(--evergreen);
}
.form-done .fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Reading pages: privacy and guides ---------- */
.prose {
  max-width: 46rem;
}
.prose h2 {
  margin: 2.75rem 0 0.8rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--header) + 1rem);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1rem;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0;
  padding-left: 1.4rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li::marker {
  color: var(--evergreen);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.prose thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prose tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 639px) {
  .prose table,
  .prose thead,
  .prose tbody,
  .prose tr,
  .prose th,
  .prose td {
    display: block;
  }
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .prose tbody tr {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .prose tbody th,
  .prose td {
    padding: 0.25rem 0;
    border: 0;
  }
  .prose td:nth-of-type(1)::before,
  .prose td:nth-of-type(2)::before {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .prose td:nth-of-type(1)::before {
    content: "Off-the-shelf";
  }
  .prose td:nth-of-type(2)::before {
    content: "Custom system";
  }
}
.article-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1000px) {
  .article-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: 4rem;
  }
}
.article-side {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}
@media (min-width: 1000px) {
  .article-side {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
  }
}
.idea {
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: rgb(206 250 119 / 0.34);
}
.idea p:not(.label) {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.toc {
  display: none;
}
@media (min-width: 1000px) {
  .toc {
    display: block;
  }
}
.toc ol {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.7rem;
}
.toc a {
  display: flex;
  gap: 0.8rem;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color 0.2s;
}
.toc a span {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
  color: var(--evergreen);
}
.toc a:hover {
  color: var(--ink);
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.byline b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.decision,
.stat-callout {
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.decision figcaption,
.stat-callout .label {
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prose .decision h3,
.prose .stat-callout h3 {
  margin-top: 0.6rem;
}
.decision dl {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
.decision dl div {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: var(--white);
}
@media (min-width: 560px) {
  .decision dl div {
    grid-template-columns: 5rem 1fr;
  }
}
.decision dt {
  font-weight: 600;
  color: var(--evergreen);
}
.decision dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.stat-big {
  margin-top: 0.4rem;
  font-size: 1.125rem;
  color: var(--ink-2);
}
.stat-big b {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--evergreen);
}
.guide-end {
  display: grid;
  justify-items: start;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}
.guide-end p {
  color: var(--ink);
  font-weight: 500;
}
.guide-end .pill {
  gap: 0.5rem;
}
.guide-end .pill .i {
  width: 1rem;
  height: 1rem;
}
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.6);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.next:hover {
  background: var(--white);
  transform: translateY(-2px);
}
.next .label {
  display: block;
  margin-bottom: 0.3rem;
}
.next strong {
  flex: 1;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.next .i {
  flex: none;
  color: var(--evergreen);
}

/* ---------- Creative: films, player, prices ---------- */
.films {
  --gap: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--gap);
}
/* flex-grow follows the aspect ratio, so films in one row share a height */
.film {
  --r: 0.5625;
  flex: var(--r) 1 calc(var(--r) * 22rem);
  min-width: 0;
}
@media (max-width: 700px) {
  .film {
    flex-basis: calc(var(--r) * 13rem);
  }
}
.film--wide {
  --r: 1.7778;
}
.films::after {
  content: "";
  flex: 20 1 0;
  height: 0;
  margin-top: calc(var(--gap) * -1);
}
.film-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--forest);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.film--wide .film-media,
.film-hero .film-media {
  aspect-ratio: 16 / 9;
}
.film--tall .film-media {
  aspect-ratio: 9 / 16;
}
.film-media img,
.film-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-media video {
  opacity: 0;
  transition: opacity 0.45s;
}
.film-media.is-previewing video {
  opacity: 1;
}
.film-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgb(8 19 14 / 0.5));
  pointer-events: none;
}
.film-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  box-shadow: 0 14px 30px -12px rgb(8 19 14 / 0.7);
  transition: transform 0.4s var(--ease);
}
.film-play .i {
  width: 1.3rem;
  height: 1.3rem;
  margin-left: 0.15rem;
  fill: currentColor;
  stroke-width: 1.5;
}
.film-media:hover .film-play,
.film-media:focus-visible .film-play {
  transform: scale(1.1);
}
.film-media:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}
.film-time {
  position: absolute;
  z-index: 2;
  left: 0.8rem;
  bottom: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgb(8 19 14 / 0.62);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.film-meta {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.2rem 0;
}
.film-meta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.film-meta p:not(.tag) {
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.film-hero {
  position: relative;
}
.film-hero .film-media {
  box-shadow: var(--shadow-lg);
}
.film-hero .film-time {
  display: none;
}
/* the title sits on the picture, over its dark gradient */
.film-hero-cap {
  position: absolute;
  z-index: 3;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.95rem;
  display: grid;
  gap: 0.15rem;
  color: var(--cream);
  pointer-events: none;
}
.film-hero-cap .tag {
  color: rgb(246 246 240 / 0.78);
}
.film-hero-cap b {
  font-size: 1.125rem;
  font-weight: 600;
}
.player {
  width: min(calc(100vw - 2rem), 70rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--forest-950);
  color: var(--cream);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.player[data-tall] {
  width: min(calc(100vw - 2rem), calc((100dvh - 7rem) * 0.5625));
}
.player::backdrop {
  background: rgb(8 19 14 / 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 0.75rem 1.2rem;
}
.player-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.player-opts {
  display: flex;
  gap: 0.4rem;
}
.player-opts button {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgb(246 246 240 / 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--cream);
  transition: background-color 0.2s, color 0.2s;
}
.player-opts button[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--forest);
}
.player-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgb(246 246 240 / 0.3);
  border-radius: 50%;
  color: var(--cream);
}
.player-close:hover {
  background: rgb(246 246 240 / 0.12);
}
.player :focus-visible {
  outline-color: var(--lime);
}
.player-video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 6rem);
  background: #000;
  aspect-ratio: var(--film-ratio, 16 / 9);
  object-fit: contain;
}
.tiers {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
}
.tier.is-reco {
  border-color: var(--evergreen);
  box-shadow: 0 0 0 1px var(--evergreen), var(--shadow-md);
}
.tier-flag {
  justify-self: start;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tier-len {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.tier .checks {
  margin: 0.4rem 0 0.8rem;
}
.tier .link {
  align-self: end;
}
.extras {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.extras summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.extras summary::-webkit-details-marker {
  display: none;
}
.extras summary small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-3);
  text-align: right;
}
.extras summary::after {
  content: "";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311211a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.extras[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--lime);
}
.extras dl div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.extras dt small {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
