/* The site's own pages: landing, help, terms, privacy, 404. Tokens follow src/ui/app.css; the bars use the brand look. */

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/site-fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/site-fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/site-fonts/ibm-plex-sans-700.woff2") format("woff2");
}

:root {
  --ground: #e9edf2;
  --surface: #ffffff;
  --line: #cbd2dc;
  --ink: #101828;
  --text-2: #344054;
  --accent: #3a4ff0;
  --g1: #2f5bea;
  --g2: #5b3df0;
  --gradient-diag: linear-gradient(135deg, var(--g1), var(--g2));
  --on-gradient: #ffffff;
  --focus: #3a4ff0;
  /* The brand bars stay dark in both themes. */
  --brand: #0f1b2d;
  --brand-ink: #c9d2e0;
  --brand-strong: #ffffff;
  --brand-line: rgb(255 255 255 / 0.16);
  --brand-glow: radial-gradient(900px 600px at 100% 100%, rgb(91 61 240 / 0.55), transparent 60%),
    radial-gradient(700px 500px at 85% 0%, rgb(47 91 234 / 0.45), transparent 60%);
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

/* Dark: chosen in the app's Settings, or the device asks for it and nothing was chosen. */
:root[data-theme="light"] {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #080c16;
    --surface: #151e31;
    --line: #2e3a52;
    --ink: #e8ecf2;
    --text-2: #b4bcc8;
    --accent: #949fff;
    --focus: #949fff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #080c16;
  --surface: #151e31;
  --line: #2e3a52;
  --ink: #e8ecf2;
  --text-2: #b4bcc8;
  --accent: #949fff;
  --focus: #949fff;
  color-scheme: dark;
}

/* site-boot.js sets this as it sends a returning person to the app, so the landing page doesn't flash on the way. */
.fb-checking body {
  visibility: hidden;
}

* {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}
main {
  flex: 1;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.site-top :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--brand-strong);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: 8px;
}

/* Top bar and footer: the brand background with its glows. */
.site-top,
.site-foot {
  background: var(--brand-glow), var(--brand);
  color: var(--brand-ink);
}
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1080px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-links a,
.foot-links a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
}
.top-links a:hover,
.foot-links a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}
.top-links .btn-open {
  padding: 6px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  background: var(--gradient-diag);
  color: var(--on-gradient);
}
.top-links .btn-open:hover {
  color: var(--on-gradient);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 24px max(16px, calc((100% - 1080px) / 2));
  font-size: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.copyright {
  margin: 0 0 0 auto;
}

/* Same badges as the app's side menu. */
.store-badges {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
}
.store-badge svg {
  flex: none;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-strong);
  white-space: nowrap;
}
.store-soon {
  font-size: 11px;
  white-space: nowrap;
}

/* Reading pages (help, terms, privacy, 404): a card on the page background, its text about 80 characters a line. */
.page {
  max-width: 620px;
  margin: 40px auto 64px;
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.page > :first-child {
  margin-top: 0;
}
.page-wide {
  max-width: 1080px;
}
.page-wide > p {
  max-width: 60ch;
}
.page h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
}
.page h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}
.page p,
.page li {
  color: var(--text-2);
}
.link-list {
  padding-left: 20px;
}

/* Help topics, terms and privacy: the date under the H1. */
.page .updated {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.summary {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--highlight);
}
.page .summary {
  color: var(--ink);
}

/* Help topics: the breadcrumb, and the topic list (beside the article on computers, after it on phones). */
.crumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.help-layout {
  max-width: 1080px;
  margin: 40px auto 64px;
  padding: 0 16px;
}
.help-layout .page {
  margin: 0;
}
.help-topics {
  margin-top: 16px;
  padding: 20px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.help-topics-title {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 14px;
}
.help-topics ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-topics a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
}
.help-topics a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.help-topics a[aria-current="page"] {
  background: var(--highlight);
  color: var(--accent);
  font-weight: 600;
}
.wide-only {
  display: none;
}
@media (min-width: 860px) {
  .help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 620px);
    gap: 32px;
    justify-content: center;
    align-items: start;
  }
  .help-layout .page {
    grid-column: 2;
    grid-row: 1;
  }
  .help-topics {
    position: sticky;
    top: 24px;
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }
  .wide-only {
    display: inline;
  }
  .narrow-only {
    display: none;
  }
}

/* The help home: a grid of topic cards. */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.topic-card a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}
.topic-card strong {
  color: var(--ink);
  font-size: 16px;
}
.topic-card a:hover {
  border-color: var(--accent);
}
.topic-card a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

/* The 404 page: one main action and a Help link. */
.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

/* Terms and privacy: who runs it, and the list of sections near the top. */
.legal .business {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.legal li + li {
  margin-top: 4px;
}
.toc {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.page .toc-title {
  margin: 0 0 4px;
  font-size: 16px;
}
.toc ul {
  margin: 0;
  padding-left: 20px;
}
.page h2[id] {
  scroll-margin-top: 16px;
}
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--gradient-diag);
  color: var(--on-gradient);
  font-weight: 600;
  text-decoration: none;
}
.btn-primary:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .copyright {
    margin-left: 0;
  }
  .page {
    margin: 16px 12px 48px;
    padding: 24px 20px;
  }
  .help-layout {
    margin: 16px auto 48px;
    padding: 0 12px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Landing page (/) ---------- */

/* Card, highlight and landing tokens. Category tags follow the app's income, spending, accent and invested hues; every pair passes AA. */
:root {
  --muted: #556070;
  --line-strong: #7a8497;
  --track: #e1e6ec;
  --shadow-pop: 0 24px 48px rgb(15 27 45 / 0.28), 0 2px 6px rgb(15 27 45 / 0.12);
  --shadow-soft: 0 1px 2px rgb(15 27 45 / 0.06), 0 4px 12px rgb(15 27 45 / 0.06);
  --shadow-shot: 0 16px 36px rgb(15 27 45 / 0.16), 0 2px 6px rgb(15 27 45 / 0.08);
  --highlight: #eef0fe;
  --tag-groceries: #067647;
  --tag-groceries-bg: #e6f4ec;
  --tag-dining: #b54708;
  --tag-dining-bg: #fdf0e6;
  --tag-transport: #3a4ff0;
  --tag-transport-bg: #eef0fe;
  --tag-bills: #5925dc;
  --tag-bills-bg: #f1ecfe;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --muted: #8f99aa;
    --line-strong: #5f6e89;
    --track: #253049;
    --shadow-pop: 0 24px 48px rgb(0 0 0 / 0.5);
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-shot: 0 16px 36px rgb(0 0 0 / 0.5);
    --highlight: #1f2552;
    --tag-groceries: #6fd3a0;
    --tag-groceries-bg: #10291f;
    --tag-dining: #f5b37a;
    --tag-dining-bg: #33220f;
    --tag-transport: #aab2ff;
    --tag-transport-bg: #1f2552;
    --tag-bills: #c4b5fd;
    --tag-bills-bg: #2a1f52;
  }
}
:root[data-theme="dark"] {
  --muted: #8f99aa;
  --line-strong: #5f6e89;
  --track: #253049;
  --shadow-pop: 0 24px 48px rgb(0 0 0 / 0.5);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-shot: 0 16px 36px rgb(0 0 0 / 0.5);
  --highlight: #1f2552;
  --tag-groceries: #6fd3a0;
  --tag-groceries-bg: #10291f;
  --tag-dining: #f5b37a;
  --tag-dining-bg: #33220f;
  --tag-transport: #aab2ff;
  --tag-transport-bg: #1f2552;
  --tag-bills: #c4b5fd;
  --tag-bills-bg: #2a1f52;
}

/* The page has its own phone apps section, so the footer leaves its badges out here. */
body:has(.hero) .site-foot .store-badges {
  display: none;
}

/* On the landing page the top bar sits on the hero, so the glow runs behind both with no seam. */
body:has(.hero) .site-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  background: transparent;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 152px 16px 200px;
  background: var(--brand-glow), var(--brand);
  color: var(--brand-ink);
  text-align: center;
}
.hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  max-width: 34ch;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: balance;
}
.btn-hero {
  margin-top: 36px;
  padding: 14px 28px;
  border-radius: 6px;
  background: var(--brand-strong);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.btn-hero:hover {
  background: #dfe5ff;
}
.btn-hero:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 4px;
}
.promise {
  margin: 20px 0 0;
  font-size: 14px;
}

/* The app picture straddles the hero's bottom edge. */
.glimpse-wrap {
  position: relative;
  margin-top: -152px;
  padding: 0 16px;
}
.glimpse {
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.glimpse-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.glimpse-month {
  font-weight: 700;
}
.glimpse-total {
  color: var(--muted);
}
.glimpse-list {
  margin: 0;
  padding: 4px 18px;
  list-style: none;
}
.glimpse-list li {
  display: grid;
  grid-template-columns: 1fr auto 72px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.glimpse-list li + li {
  border-top: 1px solid var(--line);
}
.g-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-groceries {
  background: var(--tag-groceries-bg);
  color: var(--tag-groceries);
}
.tag-dining {
  background: var(--tag-dining-bg);
  color: var(--tag-dining);
}
.tag-transport {
  background: var(--tag-transport-bg);
  color: var(--tag-transport);
}
.tag-bills {
  background: var(--tag-bills-bg);
  color: var(--tag-bills);
}
.glimpse-budget {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.glimpse-budget-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 14px;
}
.glimpse-budget-row span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.budget-track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.budget-fill {
  width: 69%;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-diag);
}
/* The page's one moment of motion: the budget fills once on load. */
@media (prefers-reduced-motion: no-preference) {
  .budget-fill {
    animation: budget-fill 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }
}
@keyframes budget-fill {
  from {
    width: 0;
  }
}

/* The sections under the hero: open bands that alternate between the page background and the surface colour.
   Each section has its own layout (numbered steps with pictures, a split, a centred band, cards, questions that open),
   so the page never reads as one stack of the same blocks. */
.band {
  padding: 88px 0;
}
.band-first {
  padding-top: 112px;
}
.band-alt {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.band h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.band h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  text-wrap: balance;
}
.band p {
  max-width: 56ch;
  margin: 0;
  color: var(--text-2);
}

/* A section's heading: a small label above the title, and sometimes a larger intro line under it. */
.section-head {
  margin-bottom: 48px;
}
.section-head.centred {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.band .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.band .intro {
  max-width: 34ch;
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}
.band .section-more {
  margin-top: 40px;
  font-weight: 600;
}

/* A line icon in the accent colour on a soft tile, on the same line as its title; the description goes below. */
.item-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.feature-icon,
.yours-icon {
  flex: none;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 10px;
  background: var(--highlight);
  color: var(--accent);
}

/* How it works: a real sequence, so it's numbered. Each step shows a picture of the app doing it. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-diag);
  color: var(--on-gradient);
  font-size: 20px;
  font-weight: 700;
}
.step-text {
  min-height: 44px;
  padding-left: 60px;
}
.band-how h3 {
  margin: 8px 0 8px;
  font-size: 21px;
}
/* The picture is the app's own screen, cropped: rounded corners and a soft shadow, no frame line. */
.band-how .shot {
  max-width: 402px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-shot);
}
.shot img {
  width: 100%;
  height: auto;
  vertical-align: top;
}
/* Each theme shows its own picture: the device's setting, or the one chosen in the app's Settings. */
.shot-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light {
    display: none;
  }
  :root:not([data-theme="light"]) .shot-dark {
    display: block;
  }
}
:root[data-theme="dark"] .shot-light {
  display: none;
}
:root[data-theme="dark"] .shot-dark {
  display: block;
}

/* What it does: the intro on one side, the features on the other. Budgets and bills show a small picture. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.band-does .section-head {
  position: sticky;
  top: 32px;
  margin-bottom: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground);
  font-size: 14px;
  line-height: 1.4;
}
.mini-budget + .mini-budget {
  margin-top: 14px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.mini-name {
  color: var(--ink);
  font-weight: 600;
}
.mini-amt {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini .budget-track {
  height: 8px;
}
.mini-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-diag);
}
.mini-fill-groceries {
  width: 69%;
}
.mini-fill-dining {
  width: 64%;
}
.mini-bill {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 8px 0;
}
.mini-bill:first-child {
  padding-top: 0;
}
.mini-bill:last-child {
  padding-bottom: 0;
}
.mini-bill + .mini-bill {
  border-top: 1px solid var(--line);
}
.mini-date {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.mini-bill .mini-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Your data stays yours: a centred band led by one larger shield, then the three points in a row. */
.yours-mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: var(--gradient-diag);
  color: var(--on-gradient);
  box-shadow: var(--shadow-shot);
}
.yours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.yours .item-title {
  justify-content: center;
}
.yours p {
  max-width: 34ch;
  margin-inline: auto;
}
.band-yours .section-more {
  margin-inline: auto;
  text-align: center;
}

/* Pricing: two cards of equal height, centred, each with its price, what's included and a button at the bottom. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
/* Premium stands out a little: an accent edge and a soft tint. */
.plan-premium {
  border-color: var(--accent);
  background: var(--highlight);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-soft);
}
.band-price h3 {
  font-size: 18px;
}
.band .plan-price {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.band .plan-note {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 600;
}
/* The check: a soft circle with a tick drawn in the accent colour. */
.plan-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--highlight);
}
.plan-premium .plan-list li::before {
  background: var(--surface);
}
.plan-list li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  width: 5px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-btn {
  display: block;
  margin-top: auto;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.plan-btn:hover {
  text-decoration: underline;
}
.plan-btn-main {
  border-color: transparent;
  background: var(--gradient-diag);
  color: var(--on-gradient);
}

/* Questions: each opens with a tap or click (no script), two columns on computers. */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}
.faq details {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A chevron that turns when the answer opens. */
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after {
    transition: transform 0.2s ease;
  }
}
.faq details p {
  padding: 0 20px 20px;
}
.band-faq .section-head {
  margin-bottom: 36px;
}

/* Apps: centred, with the badges under the line. */
.band-apps {
  padding: 72px 0;
}
.apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.band-apps h2 {
  margin-bottom: 12px;
}
.band-apps .apps-badges {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
/* The footer badges, on the page's own colours. */
.apps-badges .store-badge {
  padding: 10px 14px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
}
.apps-badges .store-name {
  color: var(--ink);
}

@media (min-width: 861px) {
  .glimpse {
    max-width: 560px;
    font-size: 16px;
  }
}
/* Tablets: each step becomes a row, its words beside its picture; the features go under their intro. */
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .steps li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
    gap: 40px;
  }
  .band-how .shot {
    margin-top: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .band-does .section-head {
    position: static;
  }
}
@media (max-width: 860px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .yours {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plans {
    grid-template-columns: minmax(0, 440px);
  }
}
@media (max-width: 600px) {
  .steps li {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 112px 16px 184px;
  }
  .lede {
    font-size: 17px;
  }
  .band {
    padding: 64px 0;
  }
  .band-first {
    padding-top: 80px;
  }
  .band-apps {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .plan {
    padding: 24px;
  }
  .glimpse {
    font-size: 14px;
  }
  .glimpse-list li {
    grid-template-columns: 1fr auto 62px;
    gap: 8px;
  }
}

/* Pages opened inside the iPhone app (public/in-app.js sets .in-app): no way to open the web app, no pricing,
   no Premium page, since the app doesn't point people to another way to pay. */
.in-app .btn-open,
.in-app a[href="/app"],
.in-app .store-badges,
.in-app .band-price,
.in-app .band-apps,
.in-app .web-only {
  display: none;
}
/* Its own rule: Safari before 15.4 doesn't know :has(), and an unknown selector drops the whole rule it is in. */
.in-app li:has(> a[href="/help/premium"]) {
  display: none;
}
.in-app .premium-page > :not(.in-app-note) {
  display: none;
}
.in-app-note {
  display: none;
}
.in-app .in-app-note {
  display: block;
}
