/* Borrowing Power website. Tokens from the Chillcrest Design System (Night): navy is home,
   colour comes from the mark and wordmark, Inter throughout. Layout: one column, 68rem wide at most. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0b1a30;
  --surface: #12243f;
  --line: #22385a;
  --ink: #f4f6fa;
  --ink-secondary: #b8c6d8;
  --brand: #f0508f;
  --brand-hover: #f472a5;
  --dot: #3cc8f0;
  --on-brand: #081627;
  --field: #6b84a6;
  --error: #ffb4ab;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 48px;
  --space-5: 96px;
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-pill: 999px;
  --max: 68rem;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-2) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem var(--space-3);
}

/* The logo: the mark and the fixed wordmark artwork, always on one line. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.logo .mark {
  width: 1.75rem;
  height: 1.75rem;
}

.logo .wordmark {
  height: 1.5rem;
  width: auto;
}

.logo .mark {
  flex-shrink: 0;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--brand);
}

.site-header .header-action {
  display: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: var(--on-brand);
}

.button-quiet {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.button-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.reassure {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

/* Layout */

main {
  flex: 1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.narrow {
  max-width: 42rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

.display {
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.title {
  font-size: clamp(1.75rem, 6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin: var(--space-3) 0 0;
  max-width: 34rem;
  color: var(--ink-secondary);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.4;
}

.section-lede {
  margin: var(--space-2) 0 0;
  max-width: 38rem;
  color: var(--ink-secondary);
}

/* Hero: words on the left, the mark on the right; stacks on a phone. */

.hero {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.hero-mark {
  width: min(11rem, 45vw);
  height: auto;
  order: -1;
}

/* Signature motion: the point of power travels once round the ring and settles at two o'clock. */
.hero-mark .orbit {
  transform-origin: 32px 32px;
  animation: find 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes find {
  from {
    transform: rotate(-420deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark .orbit {
    animation: none;
  }
}

/* Link cards */

.card-grid {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p {
  margin: var(--space-1) 0 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.card ul {
  display: grid;
  gap: 0.15rem;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.card li a {
  display: inline-block;
  padding: 0.2rem 0;
}

.card .more {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 0.2rem 0;
  font-weight: 700;
  font-size: 1rem;
}

/* State chips: one small button per state and territory. */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.card .chips {
  display: flex;
  gap: var(--space-1);
}

.card li a.chip,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--field);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.card li a.chip:hover,
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}

/* Forms */

.form {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: var(--space-2);
}

label,
legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.optional {
  color: var(--ink-secondary);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--field);
  border-radius: var(--radius-control);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

fieldset legend {
  margin-bottom: var(--space-1);
  padding: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.consent input {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--brand);
}

.small-print {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color: var(--error);
}

.form-message.preview {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--ink-secondary);
  border-radius: var(--radius-control);
  color: var(--ink-secondary);
  font-weight: 400;
}

.success {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.success h2 {
  font-size: 1.5rem;
}

.success p {
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
}

/* Fact pages: stamp duty and guides */

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede strong {
  color: var(--ink);
  font-weight: 800;
}

.checked {
  margin: var(--space-3) 0 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 1rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--field);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

/* The chosen option is shown by a tick as well as by colour. */
.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.choice input:checked + span::before {
  content: "";
  width: 0.4rem;
  height: 0.7rem;
  margin-top: -0.15rem;
  border: solid var(--on-brand);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.result {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.result p {
  margin: 0;
}

.result-label {
  color: var(--ink-secondary);
  font-size: 1rem;
}

.result-figure {
  font-size: clamp(2.25rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.result-rows {
  display: grid;
  gap: 0.25rem;
  margin: var(--space-2) 0 0;
  font-size: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.result-row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result .result-note {
  margin-top: var(--space-2);
  font-size: 1rem;
}

.result .small-print {
  margin-top: var(--space-2);
}

.table-wrap {
  margin-top: var(--space-3);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.75rem var(--space-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
  font-weight: 700;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap + .small-print,
.small-print + .small-print,
.section-lede + .small-print {
  margin-top: var(--space-2);
}

.facts,
.sources {
  display: grid;
  gap: 0.6rem;
  margin: var(--space-3) 0 0;
  padding-left: 1.25rem;
  color: var(--ink-secondary);
}

.facts strong {
  color: var(--ink);
}

.sources {
  font-size: 1rem;
}

.sources a {
  display: inline-block;
  padding: 0.15rem 0;
}

.sources-title {
  margin-top: var(--space-4);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.qa-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.qa h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.qa p {
  margin: var(--space-1) 0 0;
  color: var(--ink-secondary);
}

.narrow .chips {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.chip[aria-current="page"],
.chip[aria-current="page"]:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Reviews: quoted word for word, as plain text. No widget, no script. */

.reviews {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}

.review {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.review blockquote {
  margin: 0;
}

.review blockquote p {
  margin: 0;
}

.review figcaption {
  margin-top: var(--space-2);
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

/* Review notes: visible only while the site is being built. None may remain at go-live. */
.to-confirm {
  margin: var(--space-3) 0 0;
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--ink-secondary);
  border-radius: var(--radius-control);
  color: var(--ink-secondary);
  font-size: 1rem;
}

/* Tools first: the calculator and the enquiry form sit in one card at the top of their pages. */

.tool {
  padding-top: var(--space-4);
}

.calc-card {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.calc-card .form {
  margin-top: 0;
}

.calc-card .chips {
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}

.calc-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.calc-card .result {
  margin-top: 0;
  padding: var(--space-3) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

/* With the script running the answer updates as you type, so the button isn't needed. */
.js .calc-go {
  display: none;
}

.button-wide {
  width: 100%;
}

.center {
  text-align: center;
}

.provenance {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.tick {
  display: inline-block;
  width: 0.4rem;
  height: 0.75rem;
  margin: 0 0.7rem 0.05rem 0.3rem;
  border: solid var(--ink-secondary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.good-to-know,
.power-card {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.good-to-know h2,
.power-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.good-to-know p,
.power-card p {
  margin: var(--space-1) 0 0;
  color: var(--ink-secondary);
}

.good-to-know .more,
.power-card .more {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 0.2rem 0;
  font-weight: 700;
  font-size: 1rem;
}

.power-card {
  margin-top: 0;
}

.power-card .power-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--space-2);
  color: var(--brand);
  font-weight: 700;
}

.power-card h3 {
  font-size: clamp(1.4rem, 5vw, 1.75rem);
}

.power-card .power-strong {
  color: var(--ink);
  font-weight: 700;
}

.prefer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem var(--space-2);
  margin: var(--space-3) 0 0;
  font-weight: 700;
}

.prefer a {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

input::placeholder,
textarea::placeholder {
  color: #9db0c8;
}

/* Fold-away detail */

.folds {
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.folds details {
  border-bottom: 1px solid var(--line);
}

.folds summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 3.5rem;
  padding: var(--space-2) 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.folds summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border: solid var(--ink-secondary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.folds details[open] summary::after {
  transform: rotate(-135deg);
}

.folds details > :not(summary) {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.folds h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.folds p {
  color: var(--ink-secondary);
}

.folds .facts,
.folds .sources {
  margin-top: 0;
}

.folds .table-wrap {
  margin-top: 0;
}

.promise-small {
  margin: var(--space-3) 0 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Compact menu on phones. Without the script every link simply shows. */

.menu-toggle {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--field);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.js .site-nav:not(.open) {
  display: none;
}

/* Closing tagline */

.closing {
  text-align: center;
}

.closing .tease {
  margin: 0 0 var(--space-2);
  color: var(--ink-secondary);
  font-size: 1.125rem;
}

.closing .promise {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
  display: grid;
  gap: var(--space-3);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--ink-secondary);
}

.footer-inner .logo {
  justify-self: start;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-call {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.footer-call a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-inner p {
  margin: 0;
  max-width: 46rem;
}

.legal {
  display: grid;
  gap: var(--space-1);
}

@media (min-width: 40rem) {
  :root {
    --gutter: var(--space-3);
  }

  .site-header .header-action {
    display: inline-flex;
  }

  .logo .wordmark {
    height: 1.875rem;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 56rem) {
  .site-nav,
  .js .site-nav:not(.open) {
    display: block;
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }

  .section {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .hero {
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .hero-mark {
    width: 17rem;
    order: 0;
  }
}

[data-method-field] {
  margin-top: var(--space-2);
}

.folds h4 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 1rem;
  font-weight: 700;
}

.tool .to-confirm {
  margin-top: var(--space-2);
}

.hub-chips {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

tbody th a {
  display: inline-block;
  padding: 0.15rem 0;
}

/* Guide pages */

.guide-body {
  display: grid;
  gap: var(--space-3);
}

.point h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.point p {
  margin: var(--space-1) 0 0;
  color: var(--ink-secondary);
}

.point .facts {
  margin-top: var(--space-2);
}

.card h3 a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

.card h3 a:hover {
  color: var(--brand-hover);
}

/* Legal pages */

.prose ul {
  display: grid;
  gap: 0.4rem;
  margin: var(--space-1) 0 0;
  padding-left: 1.25rem;
  color: var(--ink-secondary);
}

.prose .point p + p,
.prose .point ul + p {
  margin-top: var(--space-2);
}

.prose strong {
  color: var(--ink);
}

/* Home: why lenders differ */

.differ-close {
  margin: var(--space-3) 0 0;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (min-width: 64rem) {
  .differ {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Why, How and the borrowing range */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.25rem;
}

.steps p {
  margin: 0;
}

.range-next {
  margin-top: 2.5rem;
}

.differ-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.steps {
  margin-top: 1.5rem;
}

/* ---- Discovery, library and broker pathway (27 November) ---- */

/* Space with intent: sections sit closer, and the divider only appears between big blocks. */
.section {
  padding-top: clamp(1.75rem, 4.5vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4.5vw, 2.75rem);
}

.section.narrow + .section.narrow {
  border-top: 0;
  padding-top: 0.5rem;
}

.promise-hero {
  font-size: clamp(2.75rem, 12vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Pathways: big tappable questions, not boxes of text. */
.paths {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.paths a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  align-items: center;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.paths a::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 3px solid var(--brand);
  border-top: 3px solid var(--brand);
  transform: rotate(45deg);
}

.paths strong {
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.paths span {
  grid-column: 1;
  opacity: 0.8;
}

.paths a:hover strong,
.paths a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 56rem) {
  .paths {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .paths a::after {
    transition: transform 0.2s ease;
  }

  .paths a:hover::after,
  .paths a:focus-visible::after {
    transform: translateX(0.3rem) rotate(45deg);
  }
}

.start-label {
  margin: 1.75rem 0 0.5rem;
  font-weight: 700;
}

/* Library: editorial rows. */
.library {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.library > li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.library h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.library h3 a {
  display: inline-block;
  padding: 0.15rem 0;
}

.library p {
  margin: 0;
}

.library .meta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.lib-search {
  display: grid;
  gap: 0.4rem;
  margin: 1.25rem 0 0.25rem;
}

.lib-search label {
  font-weight: 700;
}

.lib-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
}

.lib-count {
  min-height: 1.5rem;
  margin: 0.25rem 0 0.75rem;
}

.lib-group[hidden] {
  display: none;
}

/* Where general information hands over to a broker. */
.broker-path {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.broker-path h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.broker-path p {
  margin: 0 0 1rem;
}

.broker-path .small-print {
  margin: 1rem 0 0;
}

#compare-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0 0 0.6rem;
}

.row-note {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

.row-note:empty {
  display: none;
}

.section > .chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Third iteration: say less, show more ---- */
.key {
  color: var(--brand);
}

.calc-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.hero-calc {
  width: 100%;
  max-width: 26rem;
  justify-self: end;
}

.hero-ask {
  margin: 1rem 0 0;
  font-weight: 700;
}

.moment {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.moment .display {
  font-size: clamp(1.9rem, 7.5vw, 3rem);
  margin: 0 0 0.75rem;
}

.moment-field {
  max-width: 18rem;
  margin: 0 0 1rem;
}

.moment-number p {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 24rem;
}

.moment-number .big {
  font-size: clamp(2.75rem, 13vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.moment-number strong {
  color: var(--ink);
}

@media (min-width: 56rem) {
  .moment {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .moment.flip > :first-child {
    order: 2;
  }
}

.closing-invite .display {
  font-size: clamp(2rem, 8vw, 3.25rem);
  margin: 0 0 1.5rem;
}


/* ---- Family layout (27 November): one family across all four sites ---- */

/* Signature line: small spaced capitals, under the hero buttons and in the footer. */
.signature {
  margin: var(--space-3) 0 0;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}

.site-footer .signature {
  margin: var(--space-2) 0;
}

/* Hero mark: small above the headline on phones. On wide screens the calculator takes its place. */
.hero .hero-mark {
  display: block;
  width: 6.5rem;
  height: auto;
  margin: 0 0 var(--space-3);
  order: 0;
}

@media (min-width: 56rem) {
  .hero .hero-mark {
    display: none;
  }
}

/* Rhythm: plain navy, then a raised band. Lines live only inside sections. */
main > .section,
main > .section + .section,
main > .section.narrow + .section.narrow {
  border-top: 0;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

main > .section:nth-of-type(even) {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

main > .section:nth-of-type(even) .card,
main > .section:nth-of-type(even) .calc-card,
main > .section:nth-of-type(even) .power-card,
main > .section:nth-of-type(even) .broker-path,
main > .section:nth-of-type(even) .lib-search input {
  background: var(--ground);
}


/* ---- Fourth iteration (Andy, 28 November 2026): a sibling, not a distant cousin ---- */

/* Hero: words left, the big ring right, like Coach Brokerage and SaveSave. */
.hero.hero-ring {
  min-height: min(78vh, 44rem);
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.hero-ring .promise-hero {
  font-size: clamp(3rem, 11vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-ring .lede {
  max-width: 30rem;
}

.hero .hero-ring-mark,
.hero.hero-ring .hero-mark {
  display: block;
  order: -1;
  width: min(9rem, 40vw);
  margin: 0;
}

@media (min-width: 56rem) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    gap: 0.25rem 1.1rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .site-header .header-action {
    flex-shrink: 0;
  }

  .hero.hero-ring {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .hero.hero-ring .hero-mark {
    order: 0;
    width: clamp(16rem, 30vw, 24rem);
    justify-self: end;
  }
}

.section-display {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* What's your next move? Cards, not pills. */
.move-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 48rem) {
  .move-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.move-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 7.5rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

main > .section:nth-of-type(odd) .move-card {
  background: var(--surface);
}

.move-card strong {
  margin-top: auto;
  font-size: 1.1rem;
  line-height: 1.25;
}

.move-card span {
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.move-card:hover {
  border-color: var(--brand);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .move-card:hover {
    transform: translateY(-2px);
  }
}

.move-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand);
}

.move-note {
  margin: 1.25rem 0 0;
  color: var(--ink-secondary);
}

/* Borrowing Power's own moments: one line, big, between the working sections. */
main > .section.line-moment {
  padding-top: clamp(2.25rem, 6vw, 4rem);
  padding-bottom: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
}

.line-moment .line {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Let's work it out: two cards side by side. */
.work-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 48rem) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.work-grid .calc-card .more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* Little numbers. Big differences. Sliders you can play with. */
.slider-card {
  margin-top: 1.75rem;
  max-width: 44rem;
  display: grid;
  gap: 1.25rem;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
}

.slider-head output {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
}

input[type="range"] {
  width: 100%;
  margin: 0.6rem 0 0;
  accent-color: var(--brand);
  height: 2rem;
}

.slider-term {
  border: 0;
  margin: 0;
  padding: 0;
}

.slider-term legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.slider-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.slider-results .result-label {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.slider-results .result-figure {
  margin: 0.2rem 0 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Same home. Different state. */
.duty-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.duty-bars a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.duty-state {
  font-weight: 700;
}

.duty-bar {
  display: block;
  width: 100%;
  height: 0.75rem;
  overflow: hidden;
  border-radius: 3px;
}

.duty-bar rect {
  fill: var(--brand);
}

.duty-amount {
  text-align: right;
  color: var(--ink-secondary);
}

.duty-bars a:hover .duty-amount,
.duty-bars a:focus-visible .duty-amount {
  color: var(--ink);
}

/* A little more power, three at a time. */
.power-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 56rem) {
  .power-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .power-grid .power-card h3 {
    font-size: 1.3rem;
  }
}

/* Real people. Real support. */
.people {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .people {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

.people-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.people-points li {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  color: var(--ink-secondary);
}

.people-points strong {
  color: var(--ink);
}

/* The teaser: a little more intrigue, nothing revealed. */
.closing-invite .section-lede {
  margin-top: 0.5rem;
}

.tease-line {
  margin: 1.5rem 0 1.25rem;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Advanced settings fold away (borrowing range). */
.advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-secondary);
  padding: 0.4rem 0;
}

.advanced[open] summary {
  margin-bottom: 0.5rem;
}

/* Footer in the family structure: logo and links on one row on wide screens. */
.footer-top {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 56rem) {
  .footer-top {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .footer-top .footer-links {
    justify-content: flex-end;
  }
}

/* Privacy policy and terms, from content/legal (29 November 2026) */
.legal-doc h2 {
  margin: var(--space-3) 0 var(--space-1);
}

.legal-doc p,
.legal-doc ul {
  margin: 0 0 var(--space-1);
}

/* Andy, proofing 30 November 2026 */
.before-apply { max-width: 36rem; font-weight: 500; margin-top: 0.75rem; }

/* The Chillcrest family strip, in every footer (Andy, 1 December 2026). PowerFull is not shown. */
.family { margin: 1.5rem 0 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family .family-h { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-secondary); }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.family li { flex: 1 1 14rem; display: flex; }
.family a { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45rem; padding: 0.9rem 1.1rem; min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--ground); color: var(--ink-secondary); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.family a:hover, .family a:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.family img { display: block; height: 1.6rem; width: auto; max-width: 100%; }
.family span { font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .family a { transition: none; } .family a:hover { transform: none; } }
