/* Self-hosted variable faces, latin + latin-ext only. Google Fonts is never
   requested at runtime: the woff2 files sit next to this file in /assets/fonts/. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* badcreditloanscanada.ca — navy, steel and azure, taken from the logo pack.

   Fallback faces are sized to the web fonts so a late swap does not shift text.
   Measured in Chrome on the same string: Archivo 600 / 700 vs Arial Bold =
   95.97% / 98.93%, IBM Plex Sans 400 vs Arial = 100.82%, 600 vs Arial Bold = 98.45%. */
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 95.97%;
}
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 98.93%;
}
@font-face {
  font-family: "Plex Fallback";
  font-weight: 400;
  src: local("Arial"), local("ArialMT");
  size-adjust: 100.82%;
}
@font-face {
  font-family: "Plex Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 98.45%;
}

:root {
  --navy-900: #06152F;
  --navy-800: #0B2447;
  --navy-700: #143263;
  --navy-600: #1C4485;
  --azure-600: #1B5FCB;
  --azure-700: #14499E;
  --azure-800: #0F3B80;
  --sky-400: #6FA3DB;
  --sky-200: #B9D3EF;
  --sky-100: #DCE9F8;
  --ice: #EEF4FB;
  --sheet: #FFFFFF;
  --graphite: #16202E;
  --prose: #384659;
  --faint: #5A6A80;
  --edge: #D3E0EF;
  --edge-soft: #E4EDF7;
  --edge-dark: rgba(185, 211, 239, 0.22);
  --on-navy: #E9F1FB;
  --on-navy-quiet: #A7BFDE;
  --good-wash: #E3F2EA;
  --good-ink: #10603F;
  --bad-wash: #FBE7E4;
  --bad-ink: #7A2317;
  --star: #B8791A;
  --focus: #0F3B80;

  --display: "Archivo", "Archivo Fallback", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Plex Fallback", "Segoe UI", system-ui, sans-serif;

  --bay: 75rem;
  --read: 71rem;   /* article copy runs to the same edge as the tables: asked for 17.09.2026 */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --rhythm: clamp(3rem, 6vw, 5.25rem);
  --r-chip: 4px;
  --r-card: 10px;
  --r-panel: 18px;
  --r-pill: 999px;
  --lift: 0 1px 2px rgba(6, 21, 47, 0.06), 0 12px 30px rgba(6, 21, 47, 0.08);
  --lift-hi: 0 2px 4px rgba(6, 21, 47, 0.08), 0 22px 46px rgba(6, 21, 47, 0.14);
  --swing: cubic-bezier(0.25, 0.75, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--prose);
  font: 400 1.0625rem/1.72 var(--text);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--graphite);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.021em;
}

h1 {
  font-size: clamp(2.05rem, 1.45rem + 2.5vw, 3.05rem);
}

h2 {
  font-size: clamp(1.5rem, 1.24rem + 1.05vw, 2rem);
}

h3 {
  font-size: clamp(1.14rem, 1.06rem + 0.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.15em;
}

a {
  color: var(--azure-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--azure-800);
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  border: 0;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------- utilities */

.bay {
  width: 100%;
  max-width: var(--bay);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.7rem 1.1rem;
  background: var(--navy-800);
  color: var(--on-navy);
  border-radius: 0 0 var(--r-card) 0;
  text-decoration: none;
}

.jump:focus {
  left: 0;
}

.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ico {
  flex: none;
  color: var(--sky-400);
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 0.98rem/1.1 var(--display);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--swing), color 0.18s var(--swing),
    border-color 0.18s var(--swing), transform 0.18s var(--swing);
}

.act svg {
  transition: transform 0.18s var(--swing);
}

.act:hover svg {
  transform: translateX(3px);
}

.act--primary {
  background: var(--azure-600);
  color: #fff;
}

.act--primary:hover {
  background: var(--azure-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 21, 47, 0.22);
}

.act--primary:active {
  background: var(--azure-800);
}

.act--line {
  border-color: var(--edge);
  background: var(--sheet);
  color: var(--navy-700);
}

.act--line:hover {
  border-color: var(--sky-400);
  color: var(--navy-800);
  transform: translateY(-1px);
}

.act--plain {
  padding-inline: 0.4rem;
  color: var(--azure-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.act--plain:hover {
  color: var(--azure-800);
}

.act--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.04rem;
}

.act[disabled],
.act:disabled {
  background: var(--edge);
  border-color: var(--edge);
  color: var(--faint);
  cursor: not-allowed;
}

/* the two dark bands invert the quiet button; the rule stays scoped to them */
.launch .act--plain,
.handoff .act--plain {
  color: var(--sky-200);
}

.launch .act--plain:hover,
.handoff .act--plain:hover {
  color: #fff;
}

/* ------------------------------------------------------------------ header */

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sheet);
  border-bottom: 1px solid var(--edge-soft);
}

.mast__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.ident {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.ident__mark {
  width: auto;
  height: 2.4rem;
}

.ident__img {
  display: none;
  width: auto;
  height: clamp(2.1rem, 1.5rem + 1.6vw, 2.6rem);
}

/* the apply button lives in the bar at every width: emblem, button, burger */
.mast__cta {
  margin-left: auto;
  padding: 0.58rem 1rem;
  font-size: 0.9rem;
}

.mast__cta svg {
  display: none;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--navy-800);
  font: 600 0.9rem/1 var(--display);
  cursor: pointer;
}

.hamburger__lines,
.hamburger__lines::before,
.hamburger__lines::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hamburger__lines {
  position: relative;
}

.hamburger__lines::before,
.hamburger__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger__lines::before {
  top: -6px;
}

.hamburger__lines::after {
  top: 6px;
}

.menu {
  display: none;
}

.menu.is-open {
  display: block;
  position: absolute;
  inset: 4.5rem 0 auto;
  padding: 0.75rem var(--gutter) 1.4rem;
  background: var(--sheet);
  border-bottom: 1px solid var(--edge);
  box-shadow: var(--lift);
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__list > li + li {
  border-top: 1px solid var(--edge-soft);
}

.menu__list a,
.menu__toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  background: none;
  color: var(--navy-800);
  font: 600 1rem/1.3 var(--display);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu__list a[aria-current="page"],
.menu__toggle.is-here {
  color: var(--azure-700);
}

.menu__list a:hover,
.menu__toggle:hover {
  color: var(--azure-700);
}

.hamburger:hover {
  border-color: var(--sky-400);
  color: var(--azure-800);
}

.menu__chev {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.menu__toggle[aria-expanded="true"] .menu__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.menu__drop {
  margin: 0 0 0.6rem;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 2px solid var(--sky-200);
}

.menu__drop a {
  padding: 0.55rem 0;
  font-weight: 400;
  color: var(--prose);
}

@media (min-width: 64rem) {
  .hamburger {
    display: none;
  }

  .ident__mark {
    display: none;
  }

  .ident__img {
    display: block;
  }

  .mast__cta {
    order: 3;
    margin-left: 0.75rem;
    padding: 0.78rem 1.3rem;
    font-size: 0.98rem;
  }

  .mast__cta svg {
    display: inline;
  }

  .menu {
    order: 2;
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }

  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .menu__list > li + li {
    border-top: 0;
  }

  .menu__list a,
  .menu__toggle {
    width: auto;
    padding: 0.35rem 0;
    font-size: 0.97rem;
  }

  .menu__nest {
    position: relative;
  }

  .menu__drop {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: -1rem;
    z-index: 30;
    min-width: 16rem;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--sheet);
    border: 1px solid var(--edge);
    border-left: 1px solid var(--edge);
    border-radius: var(--r-card);
    box-shadow: var(--lift);
  }

  .menu__drop a {
    padding: 0.55rem 1.1rem;
  }

  .menu__drop a:hover {
    background: var(--sky-100);
  }

}

/* ------------------------------------------------------------- breadcrumbs */

.path {
  background: var(--sheet);
  border-bottom: 1px solid var(--edge-soft);
}

.path__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: 0;
  padding-block: 0.7rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--faint);
}

.path__list li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--sky-400);
}

/* -------------------------------------------------------------------- hero */

.launch {
  background: linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 58%, var(--navy-700) 100%);
  color: var(--on-navy);
}

.launch__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
}

.launch h1 {
  grid-column: 1 / -1;
  color: #fff;
}

.launch__lede {
  margin-top: 1.1rem;
  max-width: 62ch;
  font-size: 1.09rem;
  color: var(--on-navy);
}

.launch__lede p:last-child {
  margin-bottom: 0;
}

.launch__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin: 1.6rem 0 0;
}

/* on phones both hero actions sit in the middle */
@media (max-width: 47.99rem) {
  .launch__acts {
    justify-content: center;
  }
}

/* Three columns on one baseline, rising to the right, with the wording under
   each one and no links in it. Asked for 17.09.2026: on the category pages the
   intro is shorter than the figures beside it and left a hole under it. Every
   line repeats what the site already says: we are not a lender, partner lenders
   decide on income. */
.climb {
  display: grid;
  justify-items: start;
  margin-top: 1.5rem;
  /* the buttons sit a little lower where the steps are */
  margin-bottom: 1.6rem;
}

@media (max-width: 63.99rem) {
  .climb {
    margin-bottom: 0.4rem;
  }
}

.climb__goal {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  color: var(--sky-400);
  font: 700 0.78rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.climb__rise {
  flex: none;
}

.climb__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  align-items: end;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the riser goes in the first row, the wording under it in the second */
.climb__step {
  display: contents;
}

.climb__riser {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--sky-400), var(--azure-600));
}

/* display: contents means the two parts of a step are placed on the grid
   themselves, so each one is told its column: riser on row 1, wording on row 2 */
.climb__step:nth-child(1) .climb__riser,
.climb__step:nth-child(1) .climb__side {
  grid-column: 1;
}

.climb__step:nth-child(2) .climb__riser,
.climb__step:nth-child(2) .climb__side {
  grid-column: 2;
}

.climb__step:nth-child(3) .climb__riser,
.climb__step:nth-child(3) .climb__side {
  grid-column: 3;
}

.climb__riser {
  grid-row: 1;
}

.climb__side {
  grid-row: 2;
}

.climb__step:nth-child(1) .climb__riser {
  height: 1.4rem;
}

.climb__step:nth-child(2) .climb__riser {
  height: 2.5rem;
}

.climb__step:nth-child(3) .climb__riser {
  height: 3.6rem;
}

.climb__side {
  display: grid;
  gap: 0.1rem;
  align-content: start;
}

.climb__head {
  font: 700 0.95rem/1.2 var(--display);
  color: #fff;
}

.climb__text {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--on-navy);
}

@media (max-width: 30rem) {
  .climb__list {
    column-gap: 0.5rem;
  }

  .climb__head {
    font-size: 0.88rem;
  }

  .climb__text {
    font-size: 0.8rem;
  }
}

.launch--plain .launch__inner {
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}

.tally {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

/* puzzle: one tall piece, two small ones beside it, one wide piece under them */
.tally__item {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge-dark);
  border-radius: var(--r-card);
}

.tally__item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--r-panel) var(--r-card) var(--r-card) var(--r-panel);
}

.tally__item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  border-top-right-radius: var(--r-panel);
}

.tally__item:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.tally__item:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: var(--r-panel);
  border-bottom-right-radius: var(--r-panel);
}

.tally__item:nth-child(4) dd {
  margin: 0;
}

.tally dt {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-quiet);
}

.tally dd {
  margin: 0.3rem 0 0;
  font: 700 clamp(1.1rem, 1rem + 0.55vw, 1.4rem)/1.2 var(--display);
  color: #fff;
}

@media (min-width: 64rem) {
  .launch__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    align-items: stretch;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  /* On the category pages the intro is shorter than the figures beside it, which
     left a hole under the buttons. The buttons now sit at the bottom of the row. */
  .launch__text {
    display: flex;
    flex-direction: column;
  }

  .launch__acts {
    margin-top: auto;
  }

  .tally {
    align-self: start;
  }
}

/* ------------------------------------------------------- repayment calculator */

.reckon {
  background: var(--ice);
}

.reckon__inner {
  padding-block: var(--rhythm);
}

.reckon__head {
  max-width: 52rem;
}

.reckon__title {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
}

.reckon__lede {
  margin: 0.7rem 0 0;
  color: var(--faint);
}

.reckon__body {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: var(--sheet);
  border: 1px solid var(--edge);
  border-radius: var(--r-panel);
  box-shadow: var(--lift);
}

.reckon__row + .reckon__row {
  margin-top: 1.1rem;
}

.reckon__label {
  margin: 0 0 0.5rem;
  font: 600 0.8rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.reckon__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reckon__chip {
  padding: 0.55rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--navy-800);
  font: 600 0.95rem/1.2 var(--display);
  cursor: pointer;
  transition: background-color 0.18s var(--swing), border-color 0.18s var(--swing),
    color 0.18s var(--swing);
}

.reckon__chip:hover {
  border-color: var(--sky-400);
  color: var(--azure-700);
}

.reckon__chip[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.reckon__out {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--edge);
}

.reckon__out > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.reckon__out dt {
  color: var(--faint);
}

.reckon__out dd {
  margin: 0;
  font: 600 1.05rem/1.2 var(--display);
  color: var(--graphite);
}

.reckon__out .is-key dd {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  color: var(--azure-700);
}

.reckon__act {
  margin: 1.4rem 0 0;
  text-align: center;
}

.reckon__note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

@media (min-width: 52rem) {
  .reckon__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .reckon__out {
    padding-top: 0;
    padding-left: 2.5rem;
    border-top: 0;
    border-left: 1px solid var(--edge);
  }
}

/* ----------------------------------------------------------------- article */

.reading {
  display: flex;
  justify-content: center;
  padding-block: var(--rhythm);
  background: var(--sheet);
}

.longread {
  width: 100%;
  max-width: var(--read);
}

.part + .part {
  margin-top: clamp(2rem, 4vw, 2.9rem);
}

.part h2 {
  margin-bottom: 0.85rem;
  padding-top: 1.1rem;
  border-top: 3px solid var(--sky-200);
}

.part h3 {
  margin: 1.8rem 0 0.6rem;
}

.longread ul,
.longread ol {
  margin: 0 0 1.3rem;
  padding-left: 1.3rem;
}

.longread li {
  margin-bottom: 0.55rem;
}

.longread ul {
  list-style: none;
  padding-left: 0;
}

.longread ul > li {
  position: relative;
  padding-left: 1.6rem;
}

.longread ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--azure-600);
  border-radius: var(--r-chip);
}

.longread ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.longread ol > li {
  position: relative;
  counter-increment: step;
  padding-left: 2.6rem;
  min-height: 1.9rem;
}

.longread ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--r-pill);
  font: 700 0.9rem/1 var(--display);
}

.stepact {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* tables keep table semantics; only the wrapper scrolls */
.plate {
  margin: 1.4rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  background: var(--sheet);
}

.plate table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.plate th,
.plate td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--edge-soft);
}

.plate thead th {
  position: sticky;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  font: 600 0.88rem/1.35 var(--display);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plate tbody th {
  font-weight: 600;
  color: var(--graphite);
}

.plate tbody tr:nth-child(even) {
  background: var(--ice);
}

.plate tbody tr:last-child th,
.plate tbody tr:last-child td {
  border-bottom: 0;
}

.shot {
  margin: 0 0 1.1rem;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--lift);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .shot {
    width: 18rem;
    margin: 0.4rem 0 1rem 1.6rem;
    float: right;
    shape-outside: inset(0 round var(--r-card));
  }

  .shot--b {
    margin: 0.4rem 1.6rem 1rem 0;
    float: left;
  }
}

@media (min-width: 64rem) {
  .shot {
    width: 21rem;
  }
}

/* --------------------------------------------------------------------- FAQ */

.faqs {
  margin-top: 1.2rem;
  border-top: 1px solid var(--edge);
}

.faqs__item {
  border-bottom: 1px solid var(--edge);
}

.faqs__item summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
}

.faqs__item summary::-webkit-details-marker {
  display: none;
}

.faqs__item summary:hover .faqs__q,
.faqs__item[open] .faqs__q {
  color: var(--azure-700);
}

.faqs__item summary:hover .faqs__sign {
  border-color: var(--sky-400);
  background: var(--sky-100);
}

.faqs__item summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-chip);
}

.faqs__q {
  flex: 1;
  font: 600 1.04rem/1.45 var(--display);
  color: var(--graphite);
}

.faqs__sign {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
}

.faqs__sign::before,
.faqs__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.65rem;
  height: 2px;
  background: var(--azure-700);
  transform: translate(-50%, -50%);
  transition: opacity 0.18s var(--swing);
}

.faqs__sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faqs__item[open] .faqs__sign::after {
  opacity: 0;
}

.faqs__a {
  padding-bottom: 1rem;
}

.faqs__a p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- reviews */

.voices {
  background: var(--ice);
  border-top: 1px solid var(--edge-soft);
}

.voices__inner {
  padding-block: var(--rhythm);
}

.voices__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.voices__title {
  font-size: clamp(1.35rem, 1.15rem + 0.85vw, 1.8rem);
}

.voices__nav {
  display: flex;
  gap: 0.5rem;
}

.voices__arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--navy-700);
  cursor: pointer;
}

.voices__arrow:hover:not(:disabled) {
  border-color: var(--sky-400);
  color: var(--azure-700);
}

.voices__arrow:disabled {
  color: var(--faint);
  opacity: 0.45;
  cursor: default;
}

.voices__rail {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.voices__rail::-webkit-scrollbar {
  display: none;
}

.voices__card {
  display: flex;
  flex: 0 0 min(20rem, 82%);
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 1.25rem 1.3rem;
  background: var(--sheet);
  border: 1px solid var(--edge);
  border-radius: var(--r-panel);
  scroll-snap-align: start;
}

.voices__card::before {
  display: none;
}

.voices__stars {
  margin: 0;
  color: var(--star);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.voices__quote {
  margin: 0;
  flex: 1;
}

.voices__quote p {
  margin: 0;
  color: var(--prose);
}

.voices__who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--edge-soft);
}

.voices__name {
  font: 600 0.98rem/1.3 var(--display);
  color: var(--graphite);
}

.voices__city {
  font-size: 0.86rem;
  color: var(--faint);
}

.voices__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.voices__dots button {
  width: 1.9rem;
  height: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--sky-200);
  cursor: pointer;
}

.voices__dots button[aria-current="true"] {
  background: var(--azure-600);
}

@media (min-width: 48rem) {
  .voices__card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 64rem) {
  .voices__card {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

/* ------------------------------------------------------------- closing CTA */

.handoff {
  background: var(--ice);
}

.handoff__inner {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

.handoff__card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(-3.5rem, -6vw, -2.5rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: linear-gradient(104deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: var(--r-panel);
  box-shadow: var(--lift-hi);
  color: var(--on-navy);
}

.handoff__title {
  color: #fff;
  max-width: 24ch;
}

.handoff__copy {
  margin: 0.8rem 0 0;
  max-width: 62ch;
}

.handoff__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin: 0;
}

/* the card hangs over the footer, so the footer starts lower */
.endbar {
  padding-top: clamp(3.5rem, 7vw, 4.75rem);
}

@media (min-width: 58rem) {
  .handoff__card {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: center;
    gap: 2.5rem;
  }

  .handoff__acts {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* -------------------------------------------------------- contact and form */

.deskgrid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-block: var(--rhythm);
  background: var(--sheet);
}

.touch__list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  overflow: hidden;
}

.touch__item {
  padding: 1rem 1.15rem;
  background: var(--sheet);
}

.touch__item dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.82rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.touch__item dd {
  margin: 0.4rem 0 0;
  color: var(--graphite);
}

.touch__map {
  margin-top: 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  overflow: hidden;
  line-height: 0;
}

.touch__map iframe {
  width: 100%;
  height: clamp(15rem, 34vw, 20rem);
}

.request {
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  background: var(--ice);
  border: 1px solid var(--edge);
  border-radius: var(--r-panel);
}

.request__title {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
}

.request__status {
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
  color: var(--faint);
  font-size: 0.93rem;
}

.request__fields {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}

.request__grid {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font: 600 0.9rem/1.3 var(--display);
  color: var(--graphite);
}

.field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  background: var(--sheet);
  color: var(--graphite);
  font: 400 1rem/1.4 var(--text);
}

.field input::placeholder {
  color: var(--faint);
}

.field input:focus-visible {
  border-color: var(--azure-600);
}

.consent {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--prose);
}

.consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--azure-600);
}

/* the user asked for a centred submit, in the modal and on the contact page */
.request__send {
  display: flex;
  justify-content: center;
  margin: 1.3rem auto 0;
}

.request__fields[disabled] .field input,
.request__fields[disabled] .consent {
  opacity: 0.6;
}

.flash {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-card);
  font-size: 0.95rem;
}

.flash--good {
  background: var(--good-wash);
  color: var(--good-ink);
}

.flash--bad {
  background: var(--bad-wash);
  color: var(--bad-ink);
}

@media (min-width: 40rem) {
  .request__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .deskgrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

/* ------------------------------------------------------------------- modal */

.askbox {
  width: min(42rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: transparent;
}

.askbox::backdrop {
  background: rgba(6, 21, 47, 0.62);
}

.askbox__panel {
  position: relative;
  background: var(--sheet);
  border-radius: var(--r-panel);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.askbox__shut {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--navy-700);
  cursor: pointer;
}

.askbox__shut:hover {
  border-color: var(--sky-400);
  color: var(--azure-700);
}

.askbox .request {
  border: 0;
  background: transparent;
  padding: 0;
}

.askbox .request__title {
  padding-right: 2.6rem;
}

/* ----------------------------------------------------------- 404 / received */

.stray {
  max-width: 40rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.stray__code {
  margin: 0 0 0.4rem;
  font: 700 clamp(3rem, 8vw, 4.5rem)/1 var(--display);
  color: var(--sky-200);
  letter-spacing: -0.03em;
}

.stray__lede {
  margin: 0.8rem auto 0;
  max-width: 44ch;
  color: var(--faint);
}

.stray__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
}

.stray .flash {
  text-align: left;
}

/* ------------------------------------------------------------------ footer */

.endbar {
  background: var(--navy-900);
  color: var(--on-navy-quiet);
  font-size: 0.95rem;
}

.endbar a {
  color: var(--on-navy);
  text-decoration: none;
}

.endbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.endbar__reach {
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--edge-dark);
}

.endbar__facts {
  display: grid;
  gap: 1.1rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.endbar__facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.7rem;
  align-items: center;
  padding-inline: 0;
}

.endbar__ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(185, 211, 239, 0.12);
  border-radius: var(--r-pill);
}

.endbar__ico .ico {
  color: var(--sky-200);
}

.endbar__facts .endbar__label {
  margin: 0;
  font: 600 0.72rem/1.2 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sky-400);
}

.endbar__facts li > a,
.endbar__facts li > span:last-child {
  grid-column: 2;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .endbar__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .endbar__facts li + li {
    padding-left: 1.75rem;
    border-left: 1px solid var(--edge-dark);
  }
}

.endbar__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.endbar__about p {
  margin: 1rem 0 0;
  max-width: 44ch;
}

/* The dark-background lockup melts into the navy footer: composited on it, the
   blue of the mark sits at 1.6:1 and its darkest parts at 1.0:1. The footer
   shows the light lockup on a white plate instead. */
.ident--foot {
  margin: 0;
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-card);
  background: #fff;
}

.endbar__logo {
  width: auto;
  height: 2.4rem;
}

.endbar__label {
  margin: 0 0 0.7rem;
  font: 600 0.82rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-400);
}

.endbar__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.endbar__fine {
  padding-block: 1.3rem;
  border-top: 1px solid var(--edge-dark);
  font-size: 0.84rem;
  line-height: 1.6;
}

.endbar__fine p {
  margin: 0 0 0.6rem;
  max-width: 100ch;
}

.endbar__mark {
  margin: 0;
  color: var(--sky-400);
}

@media (min-width: 48rem) {
  .endbar__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .endbar__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .voices__rail {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
