/* UnitWise — landing page
   Built from Figma frame "01 — Clear comparison" (1440 wide, 80px gutters, 1280 content). */

:root {
  /* Colour */
  --ink: #111315;
  --ink-table: #161824;
  --muted: #50555a;
  --muted-2: #52585d;
  --muted-3: #555b60;
  --muted-table: #656876;
  --muted-on-dark: #c9cdcf;
  --line: #c8cccf;
  --line-nav: #cfd1d2;
  --line-footer: #d6d8dd;
  --line-table: #e5e6eb;
  --line-row: #ececf0;
  --line-dark: #646761;
  --surface: #ffffff;
  --surface-grey: #f2f3f4;
  --accent: #ffda35;
  --accent-soft: #fff7c7;
  --warn-bg: #fff0ed;
  --warn-ink: #a72c1c;

  /* Brand (from the UnitWise mark) */
  --navy: #171943;
  --navy-soft: #c9cbe6;
  --blue: #514bff;
  --lavender: #afa5ff;
  --lavender-soft: #ecebff;
  --lavender-tint: #efedff;
  --coral: #ff572b;
  --coral-ink: #b83a14;
  --coral-soft: #ffece5;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Layout */
  --content: 1280px;
  --gutter: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid #514bff; outline-offset: 3px; }

.container {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.h2 {
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.08;
  text-wrap: balance;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lead {
  font-size: 18px;
  line-height: 1.35;
  color: var(--muted-2);
}

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  max-width: 100%;
  height: 54px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { background: #2b2e6b; }
.button:active { transform: translateY(1px); }
.button--wide { width: 288px; height: 56px; }

.text-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */

/* A rounded bar that floats over the page and stays at the top while scrolling */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none; /* the see-through strip above the bar never blocks clicks */
}

.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line-nav);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 8px 24px rgba(17, 19, 21, .07), 0 1px 2px rgba(17, 19, 21, .05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.brand__logo { width: 40px; height: 40px; }

.nav__links {
  display: flex;
  gap: 62px;
  margin-top: 4px;
  margin-right: 7px;
}
.nav__links a {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 4px;
}
.nav__links a:hover { text-decoration: underline; }
.nav__links { align-items: center; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.currency-picker { flex: none; }
/* "Currency" label: read out on wide screens, shown inside the phone menu */
.currency-picker__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Menu button: only on small screens, and only when the script is running */
.nav__toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--ink); }
.nav__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav.is-open .nav__toggle-bars { background: transparent; }
.nav.is-open .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { transition: none; }
}
.currency-picker select {
  appearance: none;
  width: auto;
  min-width: 78px;
  min-height: 32px;
  margin-top: -6px;
  margin-bottom: -6px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111315' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
  font: 500 15px/1.2 var(--font-sans);
  cursor: pointer;
}
.currency-picker select:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */

/* Faint lavender dot grid that strengthens towards the right */
.hero {
  background:
    linear-gradient(to right, rgba(253, 252, 255, .5), rgba(253, 252, 255, 0)),
    radial-gradient(circle at 17px 19px, rgba(117, 107, 168, .2) .8px, transparent 1.2px) 0 0 / 32px 32px,
    #fdfcff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  column-gap: 64px;
  align-items: end;
  padding: 74px 0 130px;
}

.eyebrow--hero {
  font-size: 16px;
  line-height: 1.2;
  color: var(--muted);
}

.hero__title {
  margin-top: 28px;
  text-wrap: balance;
  max-width: 650px;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.14;
}

.hero__lead {
  max-width: 460px;
  margin-bottom: 28px;
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.hero__intro .button { margin-top: 0; }

.hero__samples {
  display: block;
  width: fit-content;
  margin-top: 21px;
}


/* Saving card */
.saving {
  min-height: 250px;
  padding: 22px 24px 35px;
  background: var(--accent);
  color: var(--ink);
  line-height: 1.2;
}
.saving__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.saving__amount {
  margin-top: 17px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 78px;
  line-height: 1.2;
}
.saving__rows {
  margin-top: 13px;
  display: grid;
  gap: 17px;
  font-size: 15px;
}
.saving__rows div {
  display: grid;
  grid-template-columns: 267px auto;
}
.saving__rows dd { font-variant-numeric: tabular-nums; }

/* Comparison table */
.compare {
  margin-top: 35px;
  padding: 22px 22px 17px;
  border: 1px solid var(--line-nav);
  background: var(--surface);
  color: var(--ink-table);
  overflow: hidden;
}
.compare__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.compare__table {
  width: calc(100% + 10px);
  margin-top: 35px;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.2;
}
.compare__table col.num { width: 103.7px; }
.compare__table th,
.compare__table td {
  padding: 16px 0 15px;
  text-align: right;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid var(--line-row);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.compare__table thead th {
  padding: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-table);
  border-bottom-color: var(--line-table);
  vertical-align: bottom;
}
.compare__table thead th:first-child { font-size: 13px; }
.compare__table th:first-child {
  text-align: left;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare__table tbody th:first-child { padding-bottom: 16px; }
.compare__table tr.is-strong th { font-weight: 700; }
/* hanging indent: a wrapped product name lines up with its first line, not under the emoji */
.compare__table tbody th:has(> .emoji) { padding-left: 24px; text-indent: -24px; }
.compare__table .emoji {
  display: inline-block;
  width: 24px;
  text-indent: 0;
  font-size: 16px;
  line-height: 1;
  vertical-align: -1px;
}
.compare__table tbody tr { transition: background-color .15s ease; }
.compare__table tbody tr:hover { background: #fafafb; }
.best {
  display: inline-block;
  min-width: 85.5px;
  margin: -6px -5px -6px 0;
  padding: 6px 5px 6px 0;
  border-radius: 4px;
  background: var(--accent);
  font-weight: 700;
}
.compare__foot {
  margin-top: 31px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted-table);
}


/* ---------- Hero: what makes it different (picture cards) ---------- */

.hero__grid { padding-bottom: 64px; }
.usps { padding-bottom: 112px; }
.usps__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
.usp__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.usp__title {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.usp__desc {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
}

/* 1 · files as they arrive */
.usp__visual--files { background: var(--lavender-soft); }
.doc {
  position: absolute;
  width: 62%;
  padding: 14px 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 19, 21, .10), 0 1px 2px rgba(17, 19, 21, .08);
  display: grid;
  gap: 7px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.doc i { display: block; height: 6px; border-radius: 3px; background: var(--line-row); }
.doc i:nth-of-type(2) { width: 80%; }
.doc i:nth-of-type(3) { width: 60%; }
.doc__tag {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.doc__tag--xl { background: #1f7a45; }
.doc__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.doc--1 { top: 9%; left: 8%; transform: rotate(-7deg); }
.doc--2 { top: 37%; left: 26%; transform: rotate(4deg); z-index: 1; }
.doc--3 { top: 66%; left: 12%; transform: rotate(-3deg); z-index: 2; }
.usp:hover .doc--1 { transform: rotate(-10deg) translate(-4px, -6px); }
.usp:hover .doc--2 { transform: rotate(6deg) translate(4px, -2px); }
.usp:hover .doc--3 { transform: rotate(-1deg) translate(-2px, 4px); }

/* 2 · per unit */
.usp__visual--units {
  background: var(--accent);
  align-content: center;
  gap: 12px;
  padding: 0 9%;
}
.unit {
  width: 100%;
  padding: 12px 16px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}
.unit--best { background: var(--surface); box-shadow: 0 10px 24px rgba(17, 19, 21, .12); }
.unit__pack {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #4a3f0a;
  font-variant-numeric: tabular-nums;
}
.unit__per {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.unit__price { font-size: clamp(40px, 4vw, 52px); }
.unit--best .unit__per::after {
  content: "Cheapest";
  float: right;
  margin-top: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font: 700 11px/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* 3 · cheapest per product */
.usp__visual--best {
  background: var(--navy);
  color: #fff;
  align-content: center;
  gap: 12px;
  padding: 0 9%;
}
.winners__label {
  justify-self: start;
  color: var(--lavender);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.winners { list-style: none; width: 100%; display: grid; gap: 8px; }
.winners li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
  white-space: nowrap;
}
.winners b {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .doc { transition: none; }
}

/* ---------- Sections ---------- */

.section { padding: 112px 0; background: var(--surface); }

.eyebrow--yellow { color: var(--accent); }

/* 02 Worked example — navy, with the two packs side by side with the maths */
.example { background: var(--navy); color: #fff; }
.example__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro packs" "stat packs";
  column-gap: 80px;
  align-items: center;
}
.example__intro { grid-area: intro; align-self: end; }
.packs { grid-area: packs; }
.stat { grid-area: stat; align-self: start; justify-self: start; }
.example__title { margin-top: 20px; max-width: 540px; }
.example__text {
  max-width: 480px;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy-soft);
}

.stat {
  display: inline-grid;
  max-width: 440px;
  margin-top: 40px;
  padding: 22px 26px 24px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--navy);
}
.stat__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat__amount { margin-top: 6px; font-size: 64px; line-height: 1; white-space: nowrap; }
.stat__text { margin-top: 8px; font-size: 15px; line-height: 1.4; }

.packs { display: grid; gap: 20px; }
.pack {
  position: relative;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
}
.pack--best {
  border-color: #fff;
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 24px 48px rgba(6, 7, 30, .35);
}
/* one little carton per litre in the pack */
.pack__units { display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.pack__units i {
  width: 16px;
  height: 30px;
  border-radius: 6px 6px 4px 4px;
  background: var(--lavender);
}
.pack--best .pack__units i { background: var(--accent); box-shadow: inset 0 0 0 1px #e8c21a; }
.pack__sum {
  margin-top: 18px;
  font-size: 18px;
  color: var(--navy-soft);
  font-variant-numeric: tabular-nums;
}
.pack--best .pack__sum { color: var(--muted); }
.pack__result { margin-top: 2px; font-size: 56px; line-height: 1.05; white-space: nowrap; }
.pack__eq { color: var(--lavender); }
.pack--best .pack__eq { color: var(--coral); }
.pack__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* 03 How it works — soft lavender, three white step cards */
.how { background: var(--lavender-tint); }
.how { padding-top: 56px; }
.how__title { max-width: 780px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 25, 67, .06), 0 14px 36px rgba(23, 25, 67, .07);
}
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 34px;
  line-height: 1;
}
.step--1 .step__num { background: var(--lavender); color: var(--navy); }
.step--2 .step__num { background: var(--accent); color: var(--navy); }
.step--3 .step__num { background: var(--coral); color: #fff; }
.step__title {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.step__desc {
  flex: 1;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}
.step__preview {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 16px;
  background: var(--lavender-tint);
  font-size: 14px;
  line-height: 1.3;
}
.step--2 .step__preview { background: var(--accent-soft); }
.step--3 .step__preview { background: var(--coral-soft); }
.mini-file,
.map-row,
.result-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
}
.mini-file { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.map-row__arrow { color: var(--muted); }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.result-row b {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 04 Files, privacy and checks — a grid of coloured tiles */
.files { padding: 60px 0 48px; }
.files__title { max-width: 780px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.tile { padding: 32px; border-radius: 24px; }
.tile--formats {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lavender-soft);
}
.tile--private { grid-column: span 5; background: var(--navy); color: #fff; }
.tile--flags {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: var(--coral-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(23, 25, 67, .08);
}
.chips li:nth-child(1) { background: var(--navy); color: #fff; }
.chips li:nth-child(2) { background: #1f7a45; color: #fff; }
.chips li:last-child { background: var(--lavender); }

.tile__text { margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--navy); }
.tile--private .tile__text { margin-top: 20px; color: var(--navy-soft); }
.tile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px;
  color: var(--navy-soft);
}
.tile__stats b { display: block; font-size: 44px; line-height: 1; color: var(--accent); }

.tile__label {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--coral-ink);
}
.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flags li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.flags__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
}
.flags__icon svg { display: block; }

.files__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}
.files__note svg { flex: none; color: var(--blue); }

/* 05 Questions — soft lavender, an accordion of white cards */
.faq { background: var(--lavender-tint); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 80px;
  align-items: start;
}
.faq__intro { position: sticky; top: 120px; }
.faq__text { max-width: 400px; margin-top: 20px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.faq__guides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 16px;
  max-width: 400px;
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.faq__guides:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 25, 67, .2); }
.faq__guides-label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.faq__guides-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.faq__guides-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.faq__list { display: grid; gap: 12px; }
.faq__item {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 25, 67, .06);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 20px 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 18px; }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lavender-soft);
  transition: background-color .15s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--navy); }
.faq__item[open] .faq__icon::before { background: var(--accent); }
.faq__item[open] .faq__icon::after { background: var(--accent); transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  max-width: 600px;
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .faq__guides, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }
}

/* 06 Final call to action — brand yellow, a round photo with the UnitWise mark */
.cta { padding: 40px 0; overflow: hidden; background: var(--accent); color: var(--navy); }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 64px;
  align-items: start;
}
.cta__title {
  max-width: 820px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
  text-wrap: balance;
}
.cta__lead { max-width: 560px; margin-top: 24px; font-size: 20px; line-height: 1.45; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}
.cta__art { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.cta__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.cta__mark {
  position: absolute;
  top: -2px;
  right: -36px;
  width: 120px;
  height: 120px;
  padding: 16px;
  border-radius: 25.6px;
  background: var(--navy);
  transform: rotate(-6deg);
  box-shadow: 0 12px 24px rgba(23, 25, 67, .25);
}
.footer__inner { border-top: 0; }
.tool .footer__inner { border-top: 1px solid var(--line-footer); }

/* ---------- Shared with the compare tool ---------- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
}
.check {
  min-height: 252px;
  padding: 20px 22px 11px;
}
.check__title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}
.check__meta {
  margin-top: 17px;
  font-size: 14px;
  color: var(--muted-2);
}
.check__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 12px;
  font-size: 15px;
}
.check__prices .tab { margin-left: 6px; font-variant-numeric: tabular-nums; }
.warning {
  margin-top: 19px;
  padding: 14px 12px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.check__prices + .warning { margin-top: 18px; }
.check__desc {
  margin-top: 21px;
  font-size: 14px;
  color: var(--muted-2);
}
.check__prices ~ .check__desc { margin-top: 17px; }

/* Footer */
.footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding: 37px 0 28px;
  border-top: 1px solid var(--line-footer);
}
.footer__brand {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.footer__copy {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 400;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted-3);
  text-align: right;
}

/* ---------- Responsive ---------- */

/* Narrower side margins below desktop */
@media (max-width: 1279px) {
  :root { --gutter: 40px; }
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .hero__title { max-width: 720px; }

  .example__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "packs" "stat"; row-gap: 40px; }
  .example__intro { max-width: 640px; }
  .stat { margin-top: 0; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack__result { font-size: 48px; }

  .cta__grid { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: center; }
  .cta__mark { right: -24px; width: 92px; height: 92px; padding: 12px; border-radius: 20px; }
}

/* Below tablet width the hero cards become a swipeable row that runs to the screen edge */
@media (max-width: 900px) {
  .nav__links { gap: 28px; margin-right: 0; }
  .pair { grid-template-columns: 1fr; }

  .usps { width: 100%; padding-bottom: 96px; }
  .usps__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .usps__track::-webkit-scrollbar { display: none; }
  .usp { scroll-snap-align: start; }

  .section { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .tile--formats, .tile--private { grid-column: 1 / -1; }
  .tile--flags { grid-template-columns: 1fr; gap: 16px; }
  .faq__grid { grid-template-columns: 1fr; row-gap: 36px; }
  .faq__intro { position: static; }
  .cta__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .cta__art { justify-self: center; max-width: 320px; }
  .cta__mark { right: -20px; width: 84px; height: 84px; padding: 11px; border-radius: 18px; }
}

/* Logo and links no longer fit on one line: put the links on their own row */
@media (max-width: 760px) {
  .nav__inner { height: auto; padding: 12px 14px 12px 16px; flex-wrap: wrap; row-gap: 10px; }
  .nav__links { margin-top: 0; }

  /* With the script running, the links fold into a menu that opens inside the bar */
  .js .nav__inner { min-height: 64px; padding: 9px 9px 9px 16px; row-gap: 0; }
  .js .nav__toggle { display: inline-flex; }
  .js .nav__links { display: none; }
  .js .nav.is-open .nav__links {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 8px 0 2px;
    border-top: 1px solid var(--line-row);
  }
  .js .nav__links a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line-row);
    font-size: 17px;
  }
  .js .nav__links a:hover { text-decoration: none; background: #fafafb; }
  .js .currency-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px 4px;
  }
  .js .currency-picker__label {
    position: static;
    width: auto; height: auto;
    margin: 0;
    overflow: visible; clip: auto;
    font-size: 17px;
    font-weight: 500;
  }
  .js .currency-picker select { margin: 0; min-height: 40px; font-size: 16px; }

  .packs { grid-template-columns: 1fr; }
  .flags { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .nav { padding-top: 8px; }
  .nav .container { width: calc(100% - 16px); }
  .nav__inner { padding: 10px 10px 10px 12px; row-gap: 8px; border-radius: 14px; }
  .js .nav__inner { min-height: 60px; padding: 7px 7px 7px 12px; row-gap: 0; }
  .brand { font-size: 20px; }
  .brand__logo { width: 32px; height: 32px; }
  .nav__links { gap: 14px; margin-top: 0; }
  .nav__links a { font-size: 14px; }
  .currency-picker select { font-size: 14px; min-width: 72px; }

  .hero__grid { padding-top: 40px; row-gap: 24px; padding-bottom: 48px; }
  .hero__title { margin-top: 20px; }
  .hero__lead { margin-bottom: 24px; font-size: 18px; }
  .hero__intro .button { width: 100%; }
  .usps { padding-bottom: 64px; }
  .usps__track { grid-auto-columns: 80%; gap: 14px; }
  .usp__title { margin-top: 18px; font-size: 22px; }
  .usp__desc { font-size: 16px; }

  .section { padding: 64px 0; }
  .h2 { font-size: 40px; }
  .example__text { font-size: 17px; }
  .stat { display: grid; padding: 20px 22px; }
  .stat__amount { font-size: 52px; }
  .pack { padding: 22px 20px 20px; }
  .pack__badge { top: 18px; right: 16px; }
  .pack__result { font-size: 44px; }
  .steps, .bento { margin-top: 36px; }
  .step { padding: 22px; }
  .tile { padding: 24px 22px; }
  .tile__text { font-size: 16px; }
  .tile__stats b { font-size: 36px; }
  .tile__label { font-size: 28px; }
  .cta__lead { font-size: 18px; }
  .cta__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .cta__actions .button { width: 100%; }
  .faq__item summary { padding: 18px 18px 18px 20px; font-size: 17px; }
  .faq__item p { padding: 0 20px 20px; }
  .faq__text { font-size: 17px; }
  .cta__grid { row-gap: 40px; }
  .cta__art { max-width: 280px; }
  .cta__mark { top: -6px; right: -14px; width: 76px; height: 76px; padding: 10px; border-radius: 17px; }

  /* Compare tool */
  .saving { min-height: 0; padding: 18px 18px 24px; }
  .saving__amount { font-size: 60px; }
  .saving__rows div { grid-template-columns: 1fr auto; gap: 12px; }

  .compare { padding: 18px 14px 14px; }
  .compare__table { width: 100%; }
  .compare__table col.num { width: 64px; }
  .compare__table th, .compare__table td { font-size: 14px; }
  .compare__table thead th { font-size: 11px; white-space: normal; }
  .compare__table th:first-child { white-space: normal; font-size: 12px; padding-right: 6px; }
  .best { min-width: 0; margin: -5px -4px -5px 0; padding: 5px 4px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__tagline { text-align: left; }
}
