/*
  duefree.co.uk: the one stylesheet.

  Rules for this file:
  - Every colour is a custom property on :root. Use the tokens; never write a raw colour below.
  - Mint is for actions. Gold appears only near Plus. Violet appears only near Duefree AI.
    Money direction (gain / loss) never uses the accent.
  - No inline styles anywhere on the site: the Content-Security-Policy in /_headers allows
    stylesheets from 'self' only, so a style="" attribute or a <style> block is ignored.
  - When this file changes, bump the ?v= on every <link> to it: /assets/* is cached for a year.
*/

/* ---- Fonts (self-hosted, OFL 1.1; licences beside the files) ------------------------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces, darkest first (the app's AppColors) */
  --ink: #060D17;
  --ink-raised: #0B1626;
  --deep-blue: #0E2740;
  --surface: #13253C;
  --surface-hi: #1A3049;
  --hairline: #213A52;
  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-fill-hi: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* Text */
  --text-hi: #ECF3F9;
  --text-body: #B7C6D5;
  --text-muted: #8C9DB0;

  /* The accent: mint, for actions */
  --mint: #2FE0C2;
  --mint-from: #36E6CF;
  --mint-to: #0A7E8C;
  --mint-deep: #0B8C80;
  --mint-soft: #9FF2E2;
  --mint-glow: rgba(47, 224, 194, 0.16);
  --mint-wash: rgba(47, 224, 194, 0.1);
  --mint-line: rgba(47, 224, 194, 0.35);
  --on-mint: #04211D;

  /* Plus gold: only near Plus */
  --gold: #E8C468;
  --gold-from: #F0D080;
  --gold-to: #A8842C;
  --gold-wash: rgba(232, 196, 104, 0.1);
  --gold-line: rgba(232, 196, 104, 0.4);
  --on-gold: #2A1F05;

  /* Duefree AI violet: only near Duefree AI */
  --ai: #A394FF;
  --ai-deep: #5B47E0;
  --ai-soft: #D2CAFF;
  --ai-from: #B8A6FF;
  --ai-mid: #6C5CF6;
  --ai-to: #35BFE8;
  --ai-wash: rgba(163, 148, 255, 0.1);
  --ai-line: rgba(163, 148, 255, 0.4);
  --ai-panel-from: #1D1A4A;
  --ai-panel-to: #12163A;

  /* Money direction, never the accent */
  --gain: #3DDC97;
  --loss: #FF6B6B;

  /* The five premium-theme accents (Plus) */
  --theme-azure: #4DA8FF;
  --theme-violet: #B48CFF;
  --theme-sunset: #FF9F6B;
  --theme-rose: #FF7BAC;
  --theme-gold: #E8C468;

  /* Avatars in the home page's bill sketch (the accent stays for "you") */
  --avatar-a: #FF9F6B;
  --avatar-b: #4DA8FF;
  --avatar-c: #FF7BAC;
  --on-avatar: #0B1626;

  /* Shadows */
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --white-rim: rgba(255, 255, 255, 0.1);

  /* The light background the press page's light logos are shown on */
  --paper: #FFFFFF;

  /* Print */
  --print-paper: #FFFFFF;
  --print-ink: #000000;

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: 16px;
  --content: 1080px;
  --measure: 65ch;

  /* The seam (lib/shared/components/seam_shape.dart and the Split card) */
  --radius-outer: 24px;
  --radius-seam: 6px;
  --seam-gap: 8px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

/* ---- Base ---------------------------------------------------------------------------- */

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* The one glow: top right, in the accent, like the app's AppBackground. The box stays
   inside the page, so the glow can never cause sideways scrolling. */
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 900px;
  height: 560px;
  background: radial-gradient(circle 260px at calc(100% - 50px) 40px, var(--mint-glow), transparent);
  pointer-events: none;
}

@media (min-width: 900px) {
  body::before {
    height: 760px;
    background: radial-gradient(circle 420px at calc(100% - 90px) 60px, var(--mint-glow), transparent);
  }
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

p,
ul,
ol,
dl {
  margin: 0;
}

p,
li,
dd {
  max-width: var(--measure);
}

p + p { margin-top: 1em; }

strong { color: var(--text-hi); font-weight: 700; }

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--mint-soft); }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--mint-deep);
  color: var(--text-hi);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Skip link ----------------------------------------------------------------------- */

.skip {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: var(--gutter);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus,
.skip:focus-visible {
  top: 12px;
  color: var(--on-mint);
  outline-color: var(--text-hi);
}

/* ---- Layout -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 4rem + 4vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 2rem + 3vw, 72px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 1.2rem + 2vw, 48px);
}

.section__head p {
  margin-top: 16px;
  font-size: 1.125rem;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--gold {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: var(--on-gold);
  letter-spacing: 0.12em;
}
.eyebrow--ai { color: var(--ai); }

/* The name is never set in capitals (DUEFREE is for the trade mark only), so an eyebrow
   that carries it keeps its own case. */
.eyebrow--name {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---- The logo: the horizontal lockup, one element everywhere -------------------------- */

/* .logo__img is /assets/brand/duefree-lockup-horizontal-dark-transparent.svg, the same file
   the press page offers (drawn by branding/build_web.py from branding/build_brand.py). Its
   artboard carries the lockup's clear space, half the mark's height on every side, so the
   image is twice the mark's height and a margin of minus half the mark lines the artwork
   itself up with the page edge. Size the logo with --logo-mark only, and never below 16px. */
.logo {
  --logo-mark: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-hi);
  text-decoration: none;
}

/* 22px, with the narrow nav below 460px, keeps the logo and the three nav links on one row
   from 390px up. */
@media (min-width: 460px) {
  .logo { --logo-mark: 24px; }
}

@media (min-width: 640px) {
  .logo { --logo-mark: 28px; }
}

.logo:hover { color: var(--text-hi); }

.logo__img {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: calc(var(--logo-mark) * 2);
  margin: calc(var(--logo-mark) / -2);
}

/* ---- Header -------------------------------------------------------------------------- */

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 18px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--glass-fill-hi);
  color: var(--text-hi);
}

.site-nav a[aria-current="page"] {
  color: var(--text-hi);
  background: var(--glass-fill-hi);
}

@media (max-width: 459px) {
  .site-nav a { padding: 8px 9px; font-size: 0.875rem; }
}

/* ---- Buttons and small things -------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint-from), var(--mint-to) 140%);
  color: var(--on-mint);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px var(--mint-glow);
}

.button:hover {
  color: var(--on-mint);
  background: linear-gradient(135deg, var(--mint-soft), var(--mint-from));
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button--quiet {
  background: var(--glass-fill-hi);
  color: var(--text-hi);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.button--quiet:hover {
  background: var(--mint-wash);
  color: var(--text-hi);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-wash);
  box-shadow: inset 0 0 0 1px var(--mint-line);
  color: var(--mint-soft);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.ticks {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--mint);
  border-bottom: 2.5px solid var(--mint);
  transform: rotate(-45deg);
}

/* ---- The seam ------------------------------------------------------------------------
   Two rounded pieces cut by an 8 px gap that leans 6% of the width, rising left to right,
   as on the app's Split card and Profile pass. Stacked (a horizontal cut) on narrow
   screens; side by side (a vertical cut, like the Split card) from 800 px when the seam
   has the --split modifier. The pieces are clipped with clip-path, so text inside each
   one is padded clear of the cut.
---------------------------------------------------------------------------------------- */

.seam {
  --lean: 20px;
  --pad: 24px;
  container-type: inline-size;
}

@supports (width: 1cqw) {
  .seam { --lean: 6cqw; }
  .seam__piece { --lean: 6cqw; }
}

.seam__piece {
  position: relative;
  padding: var(--pad);
}

.seam__piece--a {
  border-radius: var(--radius-outer) var(--radius-outer) var(--radius-seam) var(--radius-seam);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--lean)), 0 100%);
  padding-bottom: calc(var(--pad) + var(--lean));
}

.seam__piece--b {
  margin-top: calc(var(--seam-gap) - var(--lean));
  border-radius: var(--radius-seam) var(--radius-seam) var(--radius-outer) var(--radius-outer);
  clip-path: polygon(0 var(--lean), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--pad) + var(--lean));
}

@media (min-width: 640px) {
  .seam { --pad: 36px; }
}

@media (min-width: 800px) {
  .seam--split {
    --top: 52%;
    --bot: 46%;
    --half: calc(var(--seam-gap) / 2);
    --seam-pad: 28px;
    display: grid;
  }

  .seam--split > .seam__piece {
    grid-area: 1 / 1;
    margin: 0;
    border-radius: var(--radius-outer);
    padding: var(--pad);
  }

  .seam--split > .seam__piece--a {
    clip-path: polygon(0 0, calc(var(--top) - var(--half)) 0, calc(var(--bot) - var(--half)) 100%, 0 100%);
    padding-right: calc(100% - var(--bot) + var(--half) + var(--seam-pad));
  }

  .seam--split > .seam__piece--b {
    clip-path: polygon(calc(var(--top) + var(--half)) 0, 100% 0, 100% 100%, calc(var(--bot) + var(--half)) 100%);
    padding-left: calc(var(--top) + var(--half) + var(--seam-pad));
  }
}

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

.hero {
  padding-block: 8px clamp(48px, 2rem + 4vw, 88px);
}

.hero .seam__piece--a {
  background:
    radial-gradient(120% 80% at 0% 0%, var(--mint-wash), transparent 60%),
    linear-gradient(165deg, var(--surface-hi), var(--ink-raised) 80%);
}

.hero .seam__piece--b {
  height: 380px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 0%, var(--mint-from), transparent 70%),
    linear-gradient(200deg, var(--mint-deep), var(--deep-blue) 75%);
}

.lede {
  margin-top: 20px;
  color: var(--text-body);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero__text .facts { margin-top: 24px; }

.launch {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 30px;
}

.launch__status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-weight: 700;
  line-height: 1.4;
}

.launch__status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--mint-wash);
}

.launch__note {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero__visual .shot {
  position: absolute;
  top: calc(var(--lean) + 36px);
  left: 50%;
  width: min(280px, 78%);
  transform: translateX(-50%);
}

@media (min-width: 800px) {
  .seam--hero {
    --top: 64%;
    --bot: 58%;
  }

  .hero .seam__piece--a {
    padding: clamp(40px, 1rem + 3.5vw, 64px);
    padding-right: calc(100% - var(--bot) + var(--half) + var(--seam-pad));
  }

  .hero .seam__piece--b {
    height: auto;
    min-height: 560px;
  }

  .hero__visual .shot {
    top: 56px;
    left: calc(var(--top) + (100% - var(--top)) / 2 - 8px);
    width: min(300px, calc((100% - var(--top)) - 72px));
  }
}

/* ---- Screenshots --------------------------------------------------------------------- */

.shot {
  height: auto;
  border-radius: 30px;
  box-shadow:
    0 0 0 1px var(--white-rim),
    0 30px 60px -18px var(--shadow),
    0 12px 24px -12px var(--shadow-soft);
}

.shot-frame {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 780 / 1320;
  overflow: hidden;
  border-radius: 30px;
  box-shadow:
    0 0 0 1px var(--white-rim),
    0 30px 60px -18px var(--shadow),
    0 12px 24px -12px var(--shadow-soft);
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.shot-frame + figcaption,
.figure figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.figure { margin: 0; }

/* ---- Cards --------------------------------------------------------------------------- */

.card {
  padding: clamp(22px, 1rem + 1.2vw, 32px);
  border-radius: var(--radius-outer);
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.card h3 { margin-bottom: 14px; }

.card p { color: var(--text-body); }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--mint-wash);
  box-shadow: inset 0 0 0 1px var(--mint-line);
  color: var(--mint);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

/* ---- What Duefree does --------------------------------------------------------------- */

.split-intro {
  display: grid;
  gap: clamp(36px, 2rem + 3vw, 72px);
  align-items: center;
}

.cards-2 {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .split-intro { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ---- Steps --------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  max-width: none;
  counter-increment: step;
}

.steps .card::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mint-from), var(--mint-to));
  color: var(--on-mint);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

/* ---- How it works: an example bill -------------------------------------------------- */

/* The steps beside a bill drawn in HTML. From 960px the steps stack in the left column and
   the bill sits on the right, like the Stats screenshot above them. */
.how-grid {
  display: grid;
  gap: clamp(36px, 2rem + 3vw, 72px);
  align-items: center;
}

@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .how-grid .steps { grid-template-columns: 1fr; }
}

.bill-sketch {
  display: grid;
  gap: 14px;
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow:
    0 0 0 1px var(--white-rim),
    0 30px 60px -18px var(--shadow),
    0 12px 24px -12px var(--shadow-soft);
}

.bill-sketch__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bill-sketch__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--glass-fill-hi);
  color: var(--avatar-a);
}

.bill-sketch__icon svg {
  width: 24px;
  height: 24px;
}

.bill-sketch__title {
  display: block;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.bill-sketch__sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.bill-sketch__total {
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bill-sketch__rows {
  display: grid;
  padding: 0;
  list-style: none;
}

.bill-sketch__rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  padding-block: 10px;
  border-top: 1px solid var(--hairline);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--on-avatar);
  font-size: 0.875rem;
  font-weight: 700;
}

.avatar--a { background: var(--avatar-a); }
.avatar--b { background: var(--avatar-b); }
.avatar--c { background: var(--avatar-c); }
.avatar--you { background: var(--mint); color: var(--on-mint); }

.bill-sketch__who {
  flex: 1;
  min-width: 0;
  color: var(--text-hi);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.bill-sketch__who small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.bill-sketch__amt {
  color: var(--text-hi);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bill-sketch__foot {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mint-wash);
  color: var(--mint-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

/* ---- The record and the money (a seam card) ------------------------------------------ */

.ledger {
  margin-top: 24px;
}

.ledger .seam__piece--a {
  background:
    radial-gradient(110% 120% at 0% 0%, var(--mint-wash), transparent 70%),
    linear-gradient(160deg, var(--surface-hi), var(--surface));
}

.ledger .seam__piece--b {
  background: linear-gradient(200deg, var(--deep-blue), var(--ink-raised));
}

.ledger h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
}

.ledger p {
  margin-top: 10px;
}

.ledger__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ledger .seam__piece--a .ledger__label { color: var(--mint); }
.ledger .seam__piece--b .ledger__label { color: var(--text-muted); }

/* ---- Pillars ------------------------------------------------------------------------- */

.pillars {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ---- What Duefree never does --------------------------------------------------------- */

.never {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 1rem + 2.5vw, 48px);
  border-radius: var(--radius-outer);
  background: linear-gradient(160deg, var(--surface), var(--ink-raised));
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

@media (min-width: 900px) {
  .never { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.never h2 { margin-bottom: 14px; }

.never__list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.never__list li {
  max-width: none;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--text-hi);
  font-weight: 700;
}

.never__list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

/* ---- Plus ---------------------------------------------------------------------------- */

.plus {
  position: relative;
}

.plus__grid {
  display: grid;
  gap: clamp(36px, 2rem + 3vw, 64px);
  align-items: center;
}

@media (min-width: 960px) {
  .plus__grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

.plus__features {
  display: grid;
  gap: 16px;
}

.feature {
  padding: clamp(22px, 1rem + 1.2vw, 30px);
  border-radius: var(--radius-outer);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature--ai {
  background: linear-gradient(160deg, var(--ai-panel-from), var(--ai-panel-to));
  box-shadow: inset 0 0 0 1px var(--ai-line);
}

.feature--ai h3 { color: var(--ai-soft); }

.feature--themes {
  background: linear-gradient(160deg, var(--surface), var(--ink-raised));
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.feature--themes h3 { color: var(--gold); }

.feature__note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ai-wash);
  color: var(--ai-soft);
  font-size: 0.9375rem;
}

.orb {
  display: inline-block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--ai-soft), transparent 45%),
    radial-gradient(circle at 70% 75%, var(--ai-to), transparent 55%),
    linear-gradient(135deg, var(--ai-from), var(--ai-mid));
  box-shadow: 0 0 18px -2px var(--ai-line);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.swatches li {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--white-rim);
}

.swatch--azure { background: var(--theme-azure); }
.swatch--violet { background: var(--theme-violet); }
.swatch--sunset { background: var(--theme-sunset); }
.swatch--rose { background: var(--theme-rose); }
.swatch--gold { background: var(--theme-gold); }

.plus__billing {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.plus__free {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/*
  The Duefree AI slot. Until a screenshot of the AI screen is captured, this figure holds
  an HTML sketch of the brief. To use a real screenshot, replace the
  .ai-sketch element with:
    <img class="shot" src="/assets/screen-ai.webp" width="780" height="1688" alt="...">
*/
.ai-slot {
  width: min(320px, 100%);
  margin: 0 auto;
}

.ai-sketch {
  display: grid;
  gap: 14px;
  padding: 26px 18px 18px;
  border-radius: 30px;
  background:
    radial-gradient(90% 50% at 100% 0%, var(--ai-wash), transparent 70%),
    var(--ink);
  box-shadow:
    0 0 0 1px var(--white-rim),
    0 30px 60px -18px var(--shadow),
    0 12px 24px -12px var(--shadow-soft);
}

.ai-sketch__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-sketch__head .orb {
  width: 38px;
  height: 38px;
}

.ai-sketch__title {
  display: block;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.ai-sketch__sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.ai-sketch__label {
  color: var(--ai-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-sketch__card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--ai-panel-from), var(--ai-panel-to));
  box-shadow: inset 0 0 0 1px var(--ai-line);
}

.ai-sketch__card--plain {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.ai-sketch__figure {
  display: block;
  margin-top: 6px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.ai-sketch__gain {
  display: block;
  margin-top: 6px;
  color: var(--gain);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.ai-sketch__line {
  display: block;
  margin-top: 4px;
  color: var(--text-hi);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.ai-sketch__meta {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.ai-sketch__bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 6px;
  background: var(--deep-blue);
  overflow: hidden;
}

.ai-sketch__bar::before {
  content: "";
  display: block;
  width: 55%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ai-mid), var(--ai-from));
}

.ai-sketch__ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ai-sketch__ask::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-from), var(--ai-mid));
}

/* ---- Privacy ------------------------------------------------------------------------- */

.privacy-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .privacy-list { grid-template-columns: 1fr 1fr; }
}

.privacy-list li {
  max-width: none;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.privacy-list strong {
  display: block;
  margin-bottom: 4px;
}

.privacy__more {
  margin-top: 28px;
}

/* ---- Launch band --------------------------------------------------------------------- */

.launch-band .seam__piece--a {
  background:
    radial-gradient(100% 140% at 100% 0%, var(--mint-wash), transparent 70%),
    linear-gradient(165deg, var(--surface-hi), var(--ink-raised));
}

.launch-band .seam__piece--b {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, var(--mint-from), var(--mint-to) 140%);
  color: var(--on-mint);
}

.launch-band .seam__piece--b p + p { margin-top: 0; }

.launch-band .seam__piece--b .launch-band__small {
  font-size: 0.875rem;
  font-weight: 600;
}

.launch-band h2 { max-width: 18ch; }

.launch-band .seam__piece--a p { margin-top: 14px; }

.launch-band .seam__piece--b p {
  color: var(--on-mint);
  font-weight: 600;
}

.launch-band .button--ink {
  background: var(--ink);
  color: var(--text-hi);
  box-shadow: none;
}

.launch-band .button--ink:hover {
  background: var(--deep-blue);
  color: var(--text-hi);
}

.launch-band .button--ink:focus-visible {
  outline-color: var(--ink);
}

.launch-band .seam__piece--b a:not(.button) { color: var(--on-mint); }

/* ---- Inner pages (support, press, 404) ----------------------------------------------- */

.page-head {
  padding-block: clamp(24px, 1rem + 3vw, 64px) clamp(28px, 1rem + 2vw, 48px);
}

.page-head h1 { max-width: 20ch; }

.page-head p {
  margin-top: 18px;
  font-size: 1.125rem;
}

.doc {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .doc {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .doc .toc {
    position: sticky;
    top: 24px;
  }

  .doc .toc ol { grid-template-columns: 1fr; }
}

.toc {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.toc h2 {
  margin-bottom: 12px;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  display: grid;
  gap: 6px 24px;
  padding-left: 1.25em;
}

@media (min-width: 760px) {
  .toc ol { grid-template-columns: 1fr 1fr; }
}

.toc li::marker { color: var(--text-muted); }

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 64px;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  scroll-margin-top: 24px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 32px;
  margin-bottom: 8px;
  scroll-margin-top: 24px;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li { margin-top: 6px; }

.prose li::marker { color: var(--mint); }

.callout {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--mint-wash);
  box-shadow: inset 0 0 0 1px var(--mint-line);
  color: var(--text-hi);
}

.callout--ai {
  background: var(--ai-wash);
  box-shadow: inset 0 0 0 1px var(--ai-line);
}

.callout--gold {
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.store-steps {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .store-steps { grid-template-columns: 1fr 1fr; }
}

.store-steps .card h3 { margin-top: 0; margin-bottom: 6px; }

.store-steps .card ol { margin-top: 8px; }

.facts-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

.facts-list > div {
  display: grid;
  gap: 2px 24px;
  padding: 16px 22px;
  border-top: 1px solid var(--hairline);
}

.facts-list > div:first-child { border-top: 0; }

@media (min-width: 640px) {
  .facts-list > div { grid-template-columns: 180px minmax(0, 1fr); }
}

.facts-list dt {
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.facts-list dd {
  margin: 0;
  color: var(--text-hi);
}

.boilerplate {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--text-hi);
}

.boilerplate p { margin-top: 0; }

/* Press: the logo downloads. Each preview is shown on the background its file is for. */
.brand-kit {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.prose .brand-kit { padding-left: 0; }
.prose .brand-kit li + li { margin-top: 0; }

@media (min-width: 640px) {
  .brand-kit { grid-template-columns: 1fr 1fr; }
}

.brand-kit__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--glass-fill);
}

.brand-kit__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  padding: 12px;
  background: var(--ink-raised);
}

.brand-kit__preview--light { background: var(--paper); }

.brand-kit__preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.brand-kit__preview--roomy { padding: 24px; }

.brand-kit__icon {
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--glass-border);
}

.brand-kit__body { padding: 14px 18px 18px; }

.prose .brand-kit__body p { margin-top: 0; }

.brand-kit__name {
  color: var(--text-hi);
  font-weight: 700;
}

.prose .brand-kit__body .brand-kit__note {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.prose .brand-kit__body .brand-kit__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.brand-kit__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-fill-hi);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--text-hi);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-kit__links a:hover {
  background: var(--mint-wash);
  color: var(--mint-soft);
}

.notfound {
  padding-block: clamp(32px, 2rem + 6vw, 120px);
}

.notfound .seam { max-width: 640px; }

.notfound .seam__piece--a {
  background: linear-gradient(165deg, var(--surface-hi), var(--ink-raised));
}

.notfound .seam__piece--b {
  background: linear-gradient(200deg, var(--deep-blue), var(--ink-raised));
}

.notfound .seam__piece--a p { margin-top: 14px; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Footer -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(24px, 1rem + 3vw, 48px);
  padding-block: 48px 40px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, var(--ink-raised), var(--ink));
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.4fr; }
}

.site-footer__brand p {
  margin-top: 12px;
  color: var(--text-body);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-hi);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint);
  text-decoration: underline;
}

.site-footer a[aria-current="page"] {
  color: var(--mint);
}

.site-footer__contact span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.site-footer__contact a {
  overflow-wrap: anywhere;
}

.site-footer__legal {
  max-width: none;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---- Motion ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .button,
  .site-nav a,
  .site-footer a {
    transition: background-color 160ms ease, color 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print --------------------------------------------------------------------------- */

@media print {
  body::before,
  .skip,
  .site-nav { display: none; }

  /* Light text on white paper would vanish, so the text tokens print in ink. */
  :root {
    --text-hi: var(--print-ink);
    --text-body: var(--print-ink);
    --text-muted: #444444;
  }

  html,
  body {
    background: var(--print-paper);
    color: var(--print-ink);
  }

  /* The white-wordmark lockup prints as the lockup made for light backgrounds. */
  .logo__img { content: url("/assets/brand/duefree-lockup-horizontal-light-transparent.svg"); }
}
