/* Self-hosted from Google Fonts (OFL): Newsreader 600-700 for headings (the wordmark
   of the logo is a serif), Albert Sans 400-700 for text. latin + latin-ext only.
   font-display: optional + preload: the web font is used if it is there for the first frame,
   otherwise the page stays on the fallback, so nothing moves (CLS 0). The fallbacks are metric-matched:
   size-adjust = web width / fallback width of the same line, measured in Chrome on 08.10.2026:
   Newsreader 600 / Georgia (as the fallback renders it) = 1.005 over the 7 H1s; Albert Sans 400 / Arial = 1.022. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
  src: url("../fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
  src: url("../fonts/newsreader-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: "Albert Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("../fonts/albert-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("../fonts/albert-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: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 100.5%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Albert Fallback";
  src: local("Arial");
  size-adjust: 102.2%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* smallbusinessloancanada.ca
   Palette from the logo pack (measured, 08.10.2026): background of the dark master
   #201029, "Small" #34233f, "Business" #aa97b3, "LoanCanada" #d2b8a8. The header is
   dark because the lavender and champagne of the wordmark give 2.8:1 and 1.9:1 on
   white (design-rules §3). Mobile first; breakpoints 40 / 48 / 62 / 64 rem. */

:root {
  --aubergine: #201029;
  --aubergine-lift: #2e1b3b;
  --plum: #34233f;
  --violet: #5a3b76;
  --violet-deep: #46295f;
  --violet-text: #5f3f7d;
  --lavender: #aa97b3;
  --lavender-pale: #e8e0ef;
  --mist: #f6f2f9;
  --champagne: #d2b8a8;
  --champagne-pale: #f7efe9;
  --champagne-deep: #8a5d43;
  --ink: #261c2d;
  --ink-soft: #57495f;
  --on-dark: #f1eaf5;
  --on-dark-soft: #cfc2d8;
  --rule: #e3dae9;
  --paper: #fffefd;
  --gain: #276749;
  --gain-pale: #eef6f1;
  --loss: #9a2f45;
  --loss-pale: #fbf0f2;
  --gold: #b8892e;
  --radius-s: 7px;
  --radius-m: 14px;
  --radius-l: 24px;
  --lift: 0 14px 34px rgba(32, 16, 41, 0.12);
  --font-head: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --font-body: "Albert Sans", "Albert Fallback", Arial, sans-serif;
  --h1-k: 39;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-text); text-underline-offset: 0.18em; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--plum); line-height: 1.2; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
dialog { color: inherit; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.shell { width: min(100% - 2rem, 76rem); margin-inline: auto; }

.skipper {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem;
  background: var(--champagne); color: var(--aubergine); border-radius: var(--radius-s); font-weight: 700;
}
.skipper:focus { top: 0.75rem; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn__icon { flex: none; }
.btn--solid { background: var(--violet); color: #fff; }
.btn--solid:hover { background: var(--violet-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--violet-text); border-color: var(--violet); }
.btn--ghost:hover { background: var(--mist); color: var(--violet-deep); }
.btn--onDark { background: var(--champagne); color: var(--aubergine); }
.btn--onDark:hover { background: #e4cfc1; color: var(--aubergine); }
.btn--line { background: #fff; color: var(--plum); border-color: var(--lavender); }
.btn--line:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------------------- header */

.crest { position: sticky; top: 0; z-index: 40; background: var(--aubergine); color: var(--on-dark); box-shadow: 0 1px 0 rgba(170, 151, 179, 0.25); }
.crest__bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 0.75rem; min-height: 4.25rem; position: relative;
}
.crest__brand { display: inline-flex; align-items: center; gap: 0.55rem; justify-self: start; text-decoration: none; }
.crest__mark { width: 49px; height: 44px; }
.crest__word { display: none; width: 128px; height: 30px; }
.crest__apply {
  justify-self: center; display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.45rem 1.1rem;
  border-radius: 999px; background: var(--champagne); color: var(--aubergine); font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.crest__apply:hover { background: #e4cfc1; color: var(--aubergine); }
.crest__burger {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 1px solid rgba(210, 184, 168, 0.55);
  background: transparent; color: var(--on-dark); cursor: pointer;
}
.crest__burger[aria-expanded="true"] { background: var(--aubergine-lift); }

.crest__nav {
  display: none; position: absolute; top: 100%; left: -1rem; right: -1rem;
  background: var(--aubergine-lift); border-top: 1px solid rgba(210, 184, 168, 0.4);
  box-shadow: 0 18px 30px rgba(10, 4, 14, 0.45); padding: 0.5rem 1rem 1rem;
}
.crest__nav.is-open { display: block; }
.navlist { list-style: none; display: grid; gap: 0.15rem; }
.navlist__link,
.navlist__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 0.5rem;
  padding: 0.7rem 0.4rem; color: var(--on-dark); text-decoration: none; font-weight: 600;
  background: none; border: 0; border-bottom: 1px solid rgba(207, 194, 216, 0.16); cursor: pointer; text-align: left;
}
.navlist__link[aria-current="page"],
.navlist__toggle.is-here { color: var(--champagne); }
.navlist__link:hover,
.navlist__toggle:hover { color: var(--champagne); }
.navlist__caret { transition: transform 0.2s ease; }
.navlist__toggle[aria-expanded="true"] .navlist__caret { transform: rotate(45deg); }
.navlist__sub { list-style: none; display: grid; gap: 0.1rem; margin: 0.25rem 0 0.5rem 0.6rem; padding-left: 0.8rem; border-left: 2px solid rgba(210, 184, 168, 0.45); }
.navlist__sub[hidden] { display: none; }
.navlist__sublink { display: block; padding: 0.5rem 0.3rem; color: var(--on-dark-soft); text-decoration: none; }
.navlist__sublink:hover,
.navlist__sublink[aria-current="page"] { color: var(--champagne); }

@media (min-width: 48rem) {
  .crest__word { display: block; }
}

@media (min-width: 62rem) {
  .crest__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .crest__burger { display: none; }
  .crest__nav {
    display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0;
    justify-self: end; grid-column: 2; grid-row: 1;
  }
  .crest__apply { grid-column: 3; justify-self: end; }
  .navlist { display: flex; align-items: center; gap: 0.35rem; }
  .navlist__item { position: relative; }
  .navlist__link,
  .navlist__toggle { border: 0; padding: 0.5rem 0.75rem; border-radius: 999px; width: auto; }
  .navlist__link:hover,
  .navlist__toggle:hover,
  .navlist__toggle[aria-expanded="true"] { background: rgba(170, 151, 179, 0.16); }
  .navlist__sub {
    position: absolute; top: calc(100% + 0.6rem); left: 0; min-width: 16.5rem; margin: 0;
    padding: 0.5rem; background: var(--aubergine-lift); border: 1px solid rgba(210, 184, 168, 0.5);
    border-radius: var(--radius-m); box-shadow: 0 20px 40px rgba(10, 4, 14, 0.4);
  }
  .navlist__sublink { padding: 0.55rem 0.75rem; border-radius: var(--radius-s); }
  .navlist__sublink:hover { background: rgba(170, 151, 179, 0.16); }
}

/* --------------------------------------------------------------- breadcrumb */

.trail { padding-top: 1.1rem; }
.trail__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.trail__list li + li::before { content: "/"; margin-right: 0.35rem; color: var(--lavender); }
.trail__list a { color: var(--ink-soft); }

/* --------------------------------------------------------------------- hero */

.frontis { background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); padding: 1.5rem 0 2.25rem; }
.trail + .stage > .frontis:first-child { padding-top: 0.9rem; }
.frontis__inner { container-type: inline-size; }
.frontis__title { font-size: 1.85rem; text-align: center; letter-spacing: -0.01em; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.frontis__body { display: flex; flex-direction: column; gap: 1.25rem; }
.frontis__copy { order: -1; }
.frontis__shot { margin: 0; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--lift); background: var(--lavender-pale); }
.frontis__shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.lead { font-size: 1.12rem; text-align: justify; hyphens: auto; color: var(--ink); }
/* phone and tablet: the buttons are centred like every other CTA line (request of 08.10.2026) */
.frontis__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.25rem 0 0; }

.factgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 2rem 0 0; }
.fact {
  margin: 0; padding: 0.95rem 1rem 1rem; background: #fff; border-radius: var(--radius-m);
  border: 1px solid var(--rule); border-top: 4px solid var(--champagne);
}
.fact__value { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--plum); line-height: 1.15; }
.fact__label { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); }

@media (min-width: 40rem) {
  .frontis__body { display: flow-root; }
  .frontis__shot { float: left; width: 46%; margin: 0.3rem 1.75rem 1rem 0; }
}
@media (min-width: 48rem) {
  /* one line from 1024 px for every H1 of the site; the floor is low enough for the longest (Truck) */
  .frontis__title { font-size: max(1.6rem, min(2.9rem, 100cqi / var(--h1-k))); line-height: 1.12; margin-bottom: 1.75rem; }
}
@media (min-width: 62rem) {
  .factgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .frontis { padding: 2rem 0 3rem; }
  .frontis__body { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 2.75rem; align-items: center; }
  .frontis__shot { float: none; width: auto; margin: 0; }
  .frontis__shot img { aspect-ratio: 16 / 10; }
  .lead { font-size: 1.18rem; }
  .frontis__copy { order: 0; }
  .frontis__acts { justify-content: flex-start; }
}

/* --------------------------------------------------------------- estimator */

.estimator { background: var(--champagne-pale); padding: 2.75rem 0; border-block: 1px solid #ecdcd1; }
.estimator__head { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.estimator__title { display: flex; align-items: center; gap: 0.7rem; font-size: 1.65rem; }
.estimator__glyph { flex: none; color: var(--champagne-deep); }
.estimator__intro { margin: 0; color: var(--ink-soft); max-width: 60rem; }
.estimator__grid { background: #fff; border-radius: var(--radius-l); box-shadow: var(--lift); overflow: hidden; }
.estimator__inputs { padding: 1.4rem 1.25rem 1.5rem; }
.estimator__inputs fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1.75rem; }
.estimator__note { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }

.dial { display: grid; gap: 0.35rem; min-width: 0; }
.dial__label { font-weight: 700; font-size: 0.95rem; color: var(--plum); }
.dial__box { display: flex; align-items: center; border: 1.5px solid #cbbcd6; border-radius: var(--radius-s); background: #fff; padding: 0 0.75rem; }
.dial__box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90, 59, 118, 0.18); }
.dial__unit { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.dial__box input { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; padding: 0.65rem 0.4rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.dial__box input:focus { outline: none; }
.dial__slide { width: 100%; accent-color: var(--violet); margin: 0.2rem 0 0; }
.dial__hint { font-size: 0.85rem; color: var(--ink-soft); }
.draws { display: grid; gap: 1rem; }
.draw { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: var(--radius-m); background: var(--mist); }
.flip { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--plum); align-self: end; padding-bottom: 0.4rem; }
.flip input { width: 1.25rem; height: 1.25rem; accent-color: var(--violet); flex: none; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { padding: 0; margin-bottom: 0.35rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid #cbbcd6; font-weight: 700; color: var(--plum); }
.chip input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

.readout {
  display: grid; gap: 1.1rem; padding: 1.5rem 1.25rem 1.6rem;
  background: linear-gradient(120deg, var(--aubergine) 0%, #33204a 100%); color: var(--on-dark);
}
.readout__kicker { margin: 0; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--champagne); font-weight: 700; }
.readout__big { margin: 0; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.readout__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.25rem; margin: 0; }
.readout__row { margin: 0; border-left: 2px solid rgba(210, 184, 168, 0.55); padding-left: 0.75rem; }
.readout__row dt { font-size: 0.85rem; line-height: 1.35; color: var(--on-dark-soft); }
.readout__row dd { margin: 0.15rem 0 0; font-weight: 700; font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout__row dd.is-over { color: #ffb4c0; }
.readout__row dd.is-ok { color: #a9e4c4; }
.readout__flag { margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-s); background: rgba(255, 180, 192, 0.14); border: 1px solid rgba(255, 180, 192, 0.5); color: #ffd6dd; font-weight: 600; }
.readout__flag.is-ok { background: rgba(169, 228, 196, 0.12); border-color: rgba(169, 228, 196, 0.45); color: #c9f0da; }
.readout__checks,
.readout__programs { list-style: none; display: grid; gap: 0.5rem; }
.readout__checks li,
.readout__programs li { padding: 0.6rem 0.8rem; border-radius: var(--radius-s); background: rgba(241, 234, 245, 0.08); border-left: 3px solid var(--lavender); }
.readout__programs li.is-fit,
.readout__checks li.is-ok { border-left-color: #8fd8b0; }
.readout__programs li.is-off,
.readout__checks li.is-over { border-left-color: #ff9fb0; }
.readout__programs strong { color: #fff; }
.readout__programs span,
.readout__checks span { display: block; font-size: 0.9rem; color: var(--on-dark-soft); }
.terms { display: grid; gap: 0.55rem; }
.terms__row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; }
.terms__label { font-weight: 700; color: var(--on-dark-soft); font-size: 0.9rem; }
.terms__track { height: 0.7rem; border-radius: 999px; background: rgba(241, 234, 245, 0.14); overflow: hidden; }
.terms__fill { display: block; height: 100%; width: 0; background: var(--lavender); border-radius: inherit; transition: width 0.25s ease; }
.terms__row.is-picked .terms__fill { background: var(--champagne); }
.terms__value { font-size: 0.88rem; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout .btn { justify-self: center; }

@media (min-width: 40rem) {
  .estimator__inputs fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draws { grid-column: 1 / -1; }
  .chips { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .estimator { padding: 3.5rem 0; }
  .estimator__inputs { padding: 1.9rem 2.1rem 2rem; }
  .estimator__inputs fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-estimator="csbfp"] .estimator__inputs fieldset,
  [data-estimator="programs"] .estimator__inputs fieldset,
  [data-estimator="mca"] .estimator__inputs fieldset { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .readout { grid-template-columns: minmax(12rem, auto) minmax(0, 1fr) auto; align-items: center; column-gap: 2.25rem; padding: 1.7rem 2.1rem; }
  .readout__kicker { grid-column: 1; grid-row: 1; align-self: end; }
  .readout__big { grid-column: 1; grid-row: 2; align-self: start; }
  .readout__rows { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .readout > .btn { grid-column: 3; grid-row: 1 / span 2; justify-self: start; }
  .readout__flag,
  .readout__checks,
  .readout__programs,
  .terms { grid-column: 1 / span 2; }
  [data-estimator="programs"] .readout__programs { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-estimator="csbfp"] .readout__checks { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------- article */

.prose { padding: 2.75rem 0 1.5rem; }
.prose__part { display: flow-root; padding-bottom: 1.4rem; }
.prose__part + .prose__part { border-top: 1px solid var(--rule); padding-top: 2rem; }
.prose__h2 { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 1.6rem; margin: 0 0 1.1rem; clear: both; }
.prose__glyph {
  flex: none; width: 2.75rem; height: 2.75rem; padding: 0.55rem; border-radius: 50%;
  background: var(--mist); color: var(--violet); border: 1px solid var(--lavender-pale);
}
.prose__h2 span { padding-top: 0.35rem; }
.prose__h3 { font-size: 1.28rem; margin: 1.5rem 0 0.7rem; clear: both; }
.prose p,
.prose li { text-align: justify; hyphens: auto; }
.prose p { margin-bottom: 1rem; }

.inset { margin: 0.35rem 0 1.25rem; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--lift); }
.inset img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.ticks,
.stepline,
.balance,
.tablewrap,
.kinds,
.qa { clear: both; }

.ticks ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; margin: 0.25rem 0 1.3rem; }
.ticks li {
  position: relative; padding: 0.85rem 1rem 0.85rem 2.85rem; border-radius: var(--radius-m);
  background: var(--mist); border: 1px solid var(--lavender-pale);
}
.ticks li::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--violet) no-repeat center / 0.7rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.stepline ol { list-style: none; counter-reset: step; margin: 0.25rem 0 1.3rem; display: grid; gap: 0; }
.stepline li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.3rem; min-height: 2.6rem; }
.stepline li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--aubergine); color: var(--champagne);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.stepline li::after { content: ""; position: absolute; left: 1.1rem; top: 2.3rem; bottom: 0.15rem; width: 2px; background: var(--champagne); }
.stepline li:last-child::after { display: none; }
.stepline li:last-child { padding-bottom: 0.2rem; }

.balance { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0.25rem 0 1.3rem; }
.balance__side { border-radius: var(--radius-m); padding: 1.1rem 1.2rem 1.2rem; }
.balance__side--plus { background: var(--gain-pale); border: 1px solid #cfe5d8; }
.balance__side--minus { background: var(--loss-pale); border: 1px solid #efd3da; }
.balance__name { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin: 0 0 0.6rem; }
.balance__side--plus .balance__name { color: var(--gain); }
.balance__side--minus .balance__name { color: var(--loss); }
.balance ul { list-style: none; display: grid; gap: 0.55rem; }
.balance li { position: relative; padding-left: 1.2rem; }
.balance li::before { content: ""; position: absolute; left: 0; top: 0.68rem; width: 0.5rem; height: 0.5rem; border-radius: 2px; }
.balance__side--plus li::before { background: var(--gain); }
.balance__side--minus li::before { background: var(--loss); }

.tablewrap { overflow-x: auto; margin: 0.4rem 0 1.4rem; border-radius: var(--radius-m); border: 1px solid var(--rule); }
.tablewrap:focus-visible { outline-offset: 3px; }
.tablewrap table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: 0.98rem; }
.tablewrap th,
.tablewrap td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.tablewrap thead th { background: var(--plum); color: #fff; font-weight: 700; }
.tablewrap tbody th { font-weight: 700; color: var(--plum); }
.tablewrap tbody tr:nth-child(even) { background: var(--mist); }
.tablewrap tbody tr + tr { border-top: 1px solid var(--rule); }

.kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; margin: 0.25rem 0 1.2rem; }
.kind { padding: 1.15rem 1.2rem 1.1rem; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--lavender); display: flex; flex-direction: column; }
.kind__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.prose .kind p { text-align: left; hyphens: manual; }
.kind p:last-child { margin-bottom: 0; }
.pointer { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; margin-top: auto; }
.prose .pointer { text-align: left; }
.pointer__icon { flex: none; color: var(--violet); }

.qa { display: grid; gap: 0.6rem; }
.qa__item { border: 1px solid var(--rule); border-radius: var(--radius-m); background: #fff; }
.qa__item[open] { border-color: var(--lavender); background: var(--mist); }
.qa__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__q { font-size: 1.12rem; }
.qa__mark { flex: none; color: var(--violet); transition: transform 0.2s ease; }
.qa__item[open] .qa__mark { transform: rotate(45deg); }
.qa__a { padding: 0 1.15rem 0.4rem; }

@media (min-width: 44rem) {
  .inset { width: min(44%, 26rem); }
  .inset--slim { width: min(36%, 21rem); }
  .inset--right { float: right; margin-left: 1.75rem; }
  .inset--left { float: left; margin-right: 1.75rem; }
  .ticks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .prose { padding-top: 3.5rem; }
  .prose__h2 { font-size: 1.85rem; }
  .kinds--6,
  .kinds--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kinds--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- 3 steps */

.route { background: var(--aubergine); color: var(--on-dark); padding: 3rem 0; }
.route__h { color: #fff; font-size: 1.7rem; text-align: center; margin-bottom: 2rem; }
.route__stops { list-style: none; display: grid; gap: 1rem; counter-reset: none; }
.route__stop {
  position: relative; padding: 1.4rem 1.3rem 1.3rem 1.3rem; border-radius: var(--radius-l);
  background: var(--aubergine-lift); border: 1px solid rgba(210, 184, 168, 0.28);
}
.route__num {
  position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  color: rgba(210, 184, 168, 0.55); font-weight: 700;
}
.route__glyph { color: var(--champagne); margin-bottom: 0.75rem; }
.route__title { color: #fff; font-size: 1.25rem; margin-bottom: 0.45rem; padding-right: 2.5rem; }
.route__text { margin: 0; color: var(--on-dark-soft); }
.route__acts { display: flex; justify-content: center; margin: 1.9rem 0 0; }
.route .btn--solid { background: var(--champagne); color: var(--aubergine); }
.route .btn--solid:hover { background: #e4cfc1; color: var(--aubergine); }
@media (min-width: 48rem) {
  .route__stops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- reviews */

.voices { background: var(--mist); padding: 3rem 0 2.75rem; }
.voices__head { display: grid; gap: 0.6rem; justify-items: start; margin-bottom: 1.4rem; }
.voices__write { display: flex; justify-content: center; margin: 1.5rem 0 0; }
.voices__title { font-size: 1.7rem; }
.voices__sum { margin: 0; color: var(--ink-soft); font-weight: 600; }
.voices__frame { position: relative; }
.voices__rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px; scroll-padding-inline: 4px; scrollbar-width: none;
}
.voices__rail::-webkit-scrollbar { display: none; }
.voice {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.25rem 1.3rem 1.35rem;
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--lavender-pale); box-shadow: 0 6px 18px rgba(32, 16, 41, 0.06);
}
.voice__top { display: flex; align-items: center; gap: 0.75rem; }
.voice__avatar {
  flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: var(--champagne); font-weight: 700; font-family: var(--font-head); font-size: 1.05rem;
}
.voice__who { margin: 0; display: grid; line-height: 1.3; }
.voice__name { font-weight: 700; color: var(--plum); }
.voice__city { font-size: 0.9rem; color: var(--ink-soft); }
.voice__stars { display: inline-flex; gap: 0.1rem; color: var(--gold); }
.voice__star { fill: currentColor; stroke: none; }
.voice__star--off { color: #d9d0df; }
.voice__text { margin: 0; text-align: left; }
.voices__nav { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1.1rem; }
.voices__step {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--lavender); background: #fff;
  color: var(--plum); display: grid; place-items: center; cursor: pointer;
}
.voices__step:disabled { opacity: 0.45; cursor: default; }
.voices__dots { display: flex; gap: 0.1rem; }
/* the visible dot is small, the button is a 24 px target (WCAG 2.5.8) */
.voices__dot { position: relative; width: 1.5rem; height: 1.5rem; border: 0; padding: 0; background: transparent; cursor: pointer; }
.voices__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.65rem; height: 0.65rem; transform: translate(-50%, -50%); border-radius: 999px; background: #cdbfd8; }
.voices__dot[aria-current="true"]::before { width: 1.3rem; background: var(--violet); }
@media (min-width: 40rem) {
  .voices__rail { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (min-width: 64rem) {
  .voices__rail { grid-auto-columns: calc((100% - 2rem) / 3); }
}

/* ------------------------------------------------------------- closing block */

.finale { padding: 3.25rem 0; background: var(--paper); border-top: 1px solid var(--rule); }
.finale__inner { display: grid; gap: 2rem; }
.finale__title { font-size: 1.85rem; margin-bottom: 0.8rem; }
.finale__copy { color: var(--ink-soft); font-size: 1.08rem; }
.finale__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem; margin: 1.4rem 0 0; }
.cta-link { font-weight: 700; }
.finale__perks { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.perk { padding: 1.15rem 1.2rem; border-radius: var(--radius-m); background: var(--champagne-pale); border: 1px solid #efdfd4; }
.perk__glyph { color: var(--champagne-deep); margin-bottom: 0.45rem; }
.perk__title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.perk__text { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 40rem) {
  .finale__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .finale__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; }
  .finale__acts { justify-content: flex-start; }
}

/* -------------------------------------------------------------------- footer */

.basement { background: var(--aubergine); color: var(--on-dark-soft); padding: 2.75rem 0 1.5rem; font-size: 0.97rem; }
.basement a { color: var(--on-dark); text-decoration: none; }
.basement a:hover { color: var(--champagne); text-decoration: underline; }
.basement__top { display: grid; gap: 2rem; }
.basement__about p { margin: 1rem 0 0; max-width: 34rem; }
.basement__logo { display: inline-block; }
.basement__logo img { width: 210px; height: auto; }
.basement__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.basement__col ul { list-style: none; display: grid; gap: 0.45rem; }
.basement__label { margin: 0 0 0.7rem; color: var(--champagne); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }
.basement__reach { grid-column: 1 / -1; }
.basement__reach p { margin: 0 0 0.6rem; }
.basement__line { display: inline-flex; gap: 0.5rem; align-items: flex-start; overflow-wrap: anywhere; min-width: 0; }
.basement__glyph { flex: none; margin-top: 0.2rem; color: var(--champagne); }
.basement__fine { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(207, 194, 216, 0.2); font-size: 0.88rem; }
.basement__fine p { margin-bottom: 0.7rem; }
.basement__copy { color: var(--on-dark); }
@media (min-width: 48rem) {
  .basement__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .basement__reach { grid-column: auto; }
}
@media (min-width: 64rem) {
  .basement__top { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.75fr); gap: 2.75rem; }
  .basement__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.75fr) minmax(0, 1.6fr); }
}

/* ------------------------------------------------------------------- popups */

/* centred modal, as on the other sites of the portfolio: the native <dialog> centres itself,
   the page behind is dimmed, a long form scrolls inside the box */
.popup {
  width: min(100% - 1.5rem, 34rem); max-width: none; max-height: calc(100% - 1.5rem); margin: auto; padding: 0;
  border: 0; border-radius: var(--radius-l); background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 70px rgba(10, 4, 14, 0.45); overflow: auto; overscroll-behavior: contain;
}
.popup[open] { animation: popup-in 0.18s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.popup::backdrop { background: rgba(32, 16, 41, 0.62); }
.popup__panel { position: relative; padding: 1.6rem 1.4rem 1.6rem; border-top: 5px solid var(--champagne); }
.popup__close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--rule); background: #fff; color: var(--plum); display: grid; place-items: center; cursor: pointer;
}
.popup__close:hover { border-color: var(--violet); color: var(--violet-deep); }
@media (min-width: 40rem) {
  .popup__panel { padding: 2rem 2.1rem 2rem; }
}

.applyform__title,
.reviewform__title { font-size: 1.55rem; margin: 0 2.75rem 0.6rem 0; }
.applyform__intro,
.reviewform__intro { color: var(--ink-soft); }
.applyform__status,
.reviewform__status { min-height: 1.2rem; margin: 0 0 0.75rem; font-weight: 600; color: var(--violet-deep); }
.applyform__status:empty,
.reviewform__status:empty { margin: 0; min-height: 0; }
.applyform__fields,
.reviewform__fields { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.applyform__grid { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.3rem; align-content: start; }
.field label { font-weight: 700; color: var(--plum); font-size: 0.95rem; }
.field input,
.field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid #cbbcd6; border-radius: var(--radius-s); background: #fff;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90, 59, 118, 0.18); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--loss); }
.field__hint { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.agree { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.5; }
.agree input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex: none; accent-color: var(--violet); }
.notice { padding: 0.8rem 1rem; border-radius: var(--radius-s); margin-bottom: 1rem; font-weight: 600; }
.notice--good { background: var(--gain-pale); color: var(--gain); border: 1px solid #bfe0cc; }
.notice--bad { background: var(--loss-pale); color: var(--loss); border: 1px solid #ecc6cf; }
fieldset[disabled] input,
fieldset[disabled] textarea { background: #f4f1f6; cursor: not-allowed; }

.rate { border: 0; padding: 0; margin: 0; }
.rate legend { font-weight: 700; color: var(--plum); font-size: 0.95rem; padding: 0; margin-bottom: 0.3rem; }
.rate__set { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.rate__set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__set label { cursor: pointer; color: #cdbfd8; padding: 0.15rem; }
.rate__star { fill: currentColor; stroke: none; }
.rate__set input:checked ~ label,
.rate__set label:hover,
.rate__set label:hover ~ label { color: var(--gold); }
.rate__set input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 1px; border-radius: 4px; }

@media (min-width: 30rem) {
  .applyform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- contact */

.reachout { padding: 1.5rem 0 3rem; }
.reachout__title { font-size: 2.2rem; text-align: center; margin-bottom: 1.75rem; }
.reachout__grid { display: grid; gap: 2rem; }
.reachout__info { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.reachout__lede { margin: 0; font-size: 1.1rem; }
.reachout__lines { list-style: none; display: grid; gap: 1rem 1.5rem; }
.reachout__lines li { display: flex; gap: 0.8rem; align-items: flex-start; }
.reachout__lines p { margin: 0; overflow-wrap: anywhere; }
.reachout__glyph { flex: none; color: var(--violet); margin-top: 0.15rem; }
.reachout__k { font-weight: 700; color: var(--plum); }
.reachout__note { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.reachout__map { width: 100%; min-height: 13rem; flex: 1 1 auto; border: 0; border-radius: var(--radius-m); background: var(--mist); }
.reachout__form { padding: 1.5rem 1.3rem; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--rule); box-shadow: var(--lift); }
@media (min-width: 40rem) {
  .reachout__lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reachout__wide { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .reachout__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 2.75rem; }
  .reachout__form { padding: 2rem; }
}

/* --------------------------------------------------------------- legal, 404 */

.legal { padding: 1.25rem 0 3rem; }
.legal__title { font-size: 2.2rem; text-align: center; margin-bottom: 0.4rem; }
.legal__date { text-align: center; color: var(--ink-soft); margin-bottom: 2rem; }
.legal__text { overflow-wrap: anywhere; }
.legal__text h2 { font-size: 1.45rem; margin: 2rem 0 0.8rem; }
.legal__text h3 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; }
.legal__text ul { padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: 0.4rem; }

.lost { padding: 3rem 0 4rem; text-align: center; }
.lost__code { font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--lavender); margin: 0 0 0.5rem; font-weight: 700; }
.lost__title { font-size: 2.2rem; margin-bottom: 1rem; }
.lost__text { max-width: 36rem; margin: 0 auto 1.5rem; text-align: left; }
.lost__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.lost .notice { max-width: 36rem; margin: 0 auto 1.5rem; text-align: left; }

/* Below the first screen the browser lays a block out only when it comes near the
   viewport. Justified text with hyphens: auto (client decision of 01.10.2026) is
   costly to lay out on a phone: with this, mobile Lighthouse went from 82-92 to 93-95
   in the same run (08.10.2026). "auto" keeps the last real size for the scrollbar. */
/* only on light blocks: an accessibility checker cannot see the background of a skipped
   dark block (steps, footer) and would compare light text with the white page */
.prose__part, .voices, .finale { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* paint containment clips at the box edge; leave room for the picture shadows */
.prose__part { overflow-clip-margin: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
