/*
  EarnSure web — one stylesheet for every page.

  Colors are the EarnSure iOS design-system tokens (EarnSureDesignSystem/Tokens/ColorToken.swift):
  light values as designed, dark values from the approved derived palette (D6, S43, S44).
  Type is the app's bundled Hanken Grotesk and IBM Plex Mono (SIL OFL 1.1, licenses in
  assets/fonts/), self-hosted so the site makes no third-party requests.

  Sections: fonts, tokens, base, layout (header, footer), type, legal-page components (cards,
  checks, link lists, table of contents), then the marketing system (buttons, release status,
  app illustrations, home sections, guides). Inline style attributes are blocked by the CSP, so
  every visual variant is a class here.
*/

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f5f3ec;
  --card: #fffefa;
  --control: #ece9e0;
  --ink: #1b1c19;
  --ink-secondary: #5e5d56;
  --ink-helper: #6b6962;
  --hairline: #e4e0d4;
  --divider: #eeeae0;
  --stroke: #d6d1c3;
  --stroke-strong: #cfcabc;
  --money-green: #2f9e6a;
  --money-green-deep: #1e6f49;
  --money-green-tint: #e3f0e7;
  --clock-action-fill: #22794f;
  --on-ink: #f5f3ec;
  --on-ink-secondary: #b9b6ac;
  --on-ink-accent: #8ee0b4;
  --warning: #c98a2a;
  --warning-tint: #f5e9d3;
  --warning-text: #7a4c0b;
  --verdict-warning-fill: #b57a20;
  --on-warning: #ffffff;
  --device-bezel: #1b1c19;
  --shadow-color: 27 28 25;
  --destructive: #b4442f;
  /* The app's Increase Contrast fieldBorder, used everywhere on the web so form controls meet
     WCAG 1.4.11's 3:1 against paper and cards. */
  --field-border: #8e8c83;

  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-large: 24px;
  --gutter: 20px;
  --measure: 42rem;
  --wide: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141512;
    --card: #1e1f1b;
    --control: #2a2b26;
    --ink: #eeece4;
    --ink-secondary: #aba99f;
    --ink-helper: #a6a49b;
    --hairline: #2f302b;
    --divider: #282924;
    --stroke: #3e3f39;
    --stroke-strong: #4b4c45;
    --money-green-deep: #6ccf9c;
    --money-green-tint: #1c3327;
    --on-ink: #141512;
    --on-ink-secondary: #4f4e48;
    --on-ink-accent: #1e6f49;
    --warning: #d9a045;
    --warning-tint: #3a2d17;
    --warning-text: #e8b866;
    --verdict-warning-fill: #d9a045;
    --on-warning: #241a08;
    --device-bezel: #0b0c0a;
    --shadow-color: 0 0 0;
    --destructive: #e0705a;
    --field-border: #74756d;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-secondary: #4a4943;
    --ink-helper: #67655d;
    --hairline: #b9b6ac;
    --divider: #cfcabc;
    --stroke: #8e8c83;
    --money-green-deep: #175a3b;
    --warning-text: #5a3708;
    --verdict-warning-fill: #a66d17;
    --destructive: #963523;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ink-secondary: #c4c2b9;
      --ink-helper: #c4c2b9;
      --hairline: #5c5b54;
      --divider: #4b4c45;
      --stroke: #6a6b63;
      --money-green-deep: #8ee0b4;
      --warning-text: #f2cd8a;
      --verdict-warning-fill: #d9a045;
    }
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--money-green-deep);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
/* Long email addresses wrap instead of widening the page at large text sizes. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
a:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
}

/* Layout */

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

.wrap--wide {
  max-width: calc(var(--wide) + 2 * var(--gutter));
}

.site-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.site-nav li {
  margin: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a:hover {
  text-decoration: underline;
}
.header-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
/* Phones: the links sit on their own row under the brand. */
@media (max-width: 719px) {
  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }
  .site-nav ul {
    gap: 0 18px;
  }
}
@media (min-width: 1040px) {
  .header-status {
    display: inline-flex;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  min-height: 44px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
}
.brand-mark--large {
  width: 56px;
  height: 56px;
}

main {
  padding: 24px 0 48px;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 48px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-bottom: 28px;
}
.footer-brand p {
  margin: 8px 0 0;
  max-width: 18rem;
}
.footer-heading {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 4px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin: 0;
}
.site-footer nav a {
  display: inline-block;
  padding: 10px 0;
  line-height: 1.35;
  color: var(--ink-secondary);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer a[aria-current="page"] {
  color: var(--ink);
}
.site-footer .footer-note {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

/* Type */

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 8px;
}
.eyebrow--green {
  color: var(--money-green-deep);
}

h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 40px 0 8px;
  scroll-margin-top: 16px;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 24px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

li {
  margin: 0 0 6px;
}
li::marker {
  color: var(--ink-secondary);
}

.lead {
  font-size: 1.1875rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

/* Cards, as in the app's grouped lists */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.card > :last-child {
  margin-bottom: 0;
}
.card h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  position: relative;
  padding: 10px 0 10px 34px;
  margin: 0;
  border-top: 1px solid var(--divider);
}
.checks li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--money-green-tint);
  color: var(--money-green-deep);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.checks li:first-child::before {
  top: 3px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.link-list li {
  margin: 0;
  border-top: 1px solid var(--divider);
}
.link-list li:first-child {
  border-top: 0;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-list a::after {
  content: "›";
  color: var(--ink-secondary);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
.link-list a:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.link-list .detail {
  display: block;
  color: var(--ink-secondary);
  font-weight: 400;
  font-size: 0.9375rem;
}

/* Table of contents */

.toc {
  margin: 24px 0 8px;
}
.toc ol {
  padding-left: 1.4em;
  margin: 0;
}
.toc li {
  margin: 0 0 4px;
}

/* Hero (home) */

.hero {
  padding: 32px 0 8px;
}
.hero .brand-mark--large {
  margin-bottom: 20px;
}
.hero h1 {
  max-width: 18ch;
}

/* Draft inputs that must be supplied before publication. Remove with the inputs. */

.input-needed {
  background: var(--warning-tint);
  color: var(--warning-text);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.875em;
  font-weight: 500;
}
.draft-banner {
  background: var(--warning-tint);
  color: var(--warning-text);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  padding: 10px 0;
}
.draft-banner p {
  margin: 0;
}

/* ------------------------------------------------------------------------------------------
   Marketing system: home, guides and shared components.
   ------------------------------------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-home main {
  padding: 0;
}

/* Small shared pieces */

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--money-green);
  box-shadow: 0 0 0 3px var(--money-green-tint);
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
}

.mono-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-helper);
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.badge--pro {
  background: var(--ink);
  color: var(--on-ink);
}
.badge--free {
  background: var(--money-green-tint);
  color: var(--money-green-deep);
}
.badge--edited {
  background: var(--warning-tint);
  color: var(--warning-text);
}
.badge--cause {
  background: var(--warning-tint);
  color: var(--warning-text);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
button:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 3px;
}
.button:hover {
  border-color: var(--ink-secondary);
  text-decoration: none;
}
.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.button--primary:hover {
  border-color: var(--ink);
  text-decoration: underline;
}

.text-link {
  font-weight: 600;
}
.text-link::after {
  content: " →";
}

/* Release status. Replaced by the App Store link once a public listing is verified
   (see README → "Release call to action"). */

.release {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.release-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.release-note {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  scroll-margin-top: 8px;
}
.section--band {
  background: var(--card);
  border-block: 1px solid var(--hairline);
}
.section-head {
  max-width: 44rem;
  margin: 0 0 clamp(36px, 5vw, 60px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-title {
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section-lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* Hero */

.home-hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.display {
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 14ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display span {
  display: block;
}
.display .emphasis {
  color: var(--money-green-deep);
}
.hero-lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  color: var(--ink-secondary);
  max-width: 34rem;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 12px;
}
.hero-actions .release {
  display: contents;
}
.hero-actions .release-note {
  flex-basis: 100%;
  order: 3;
}
.hero-facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}
.hero-facts li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: "✓";
  color: var(--money-green-deep);
  font-weight: 800;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
}
.hero-visual .float-card {
  position: relative;
  margin-top: -2.75rem;
}

/* Illustrations of the app's UI. They are drawn with the app's own tokens and copy, use sample
   figures, and are labelled as illustrations: they are not screenshots. */

.illustration {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.illustration-caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-helper);
  text-align: center;
}

.device {
  width: min(100%, 21.5rem);
  padding: 10px;
  border-radius: 3.1rem;
  background: var(--device-bezel);
  box-shadow:
    0 0 0 1px var(--stroke),
    0 40px 80px -40px rgb(var(--shadow-color) / 0.55);
}
.device-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 36rem;
  padding: 3.25rem 1.25rem 3.75rem;
  border-radius: 2.5rem;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  text-align: left;
}
.device-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 34%;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--device-bezel);
  transform: translateX(-50%);
}

.app-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-greeting {
  font-weight: 600;
  font-size: 1rem;
}
.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
}
.job-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--money-green);
}
.job-pill::after {
  content: "▾";
  color: var(--ink-helper);
  font-size: 0.75rem;
}

.app-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0.5rem;
}
.money-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(3.25rem, 2.6rem + 2vw, 4.25rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.money-hero--card {
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
}
.money-hero .minor {
  font-size: 0.46em;
  color: var(--ink-helper);
}
.app-sub {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}
.app-sub .mono {
  color: var(--ink);
}

.app-rows {
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.app-rows div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.app-rows dt {
  color: var(--ink-secondary);
}
.app-rows dd {
  margin: 0;
  font-weight: 600;
}
.app-rows dd.mono {
  font-weight: 500;
  font-size: 0.875rem;
}
.app-rows .quiet {
  color: var(--ink-helper);
  font-weight: 400;
}

.round-action {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 9.5rem;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0.75rem 0 0;
  border-radius: 50%;
  background: var(--clock-action-fill);
  color: #fff;
  text-align: center;
  box-shadow:
    0 0 0 0.625rem var(--money-green-tint),
    0 18px 34px -14px rgb(31 111 73 / 0.7);
}
.round-action strong {
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.round-action small {
  font-size: 0.75rem;
}
.app-text-action {
  margin: 0.25rem 0 0;
  color: var(--money-green-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
}

.float-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 21rem);
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 48px -28px rgb(var(--shadow-color) / 0.45);
  text-align: left;
}
.float-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-secondary);
}
.float-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
}

.verdict-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--money-green);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 0 6px var(--money-green-tint);
}
.verdict-glyph--warning {
  background: var(--verdict-warning-fill);
  color: var(--on-warning);
  box-shadow: 0 0 0 8px var(--warning-tint);
}
.verdict-glyph--large {
  width: 3.75rem;
  height: 3.75rem;
  font-size: 1.75rem;
}

/* A soft surface the app cards sit on, like the canvas of the design files. */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 4vw, 44px);
  border-radius: var(--radius-large);
  background: var(--control);
}
.app-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 24rem);
}
.app-card {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9375rem;
  text-align: left;
}
.app-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px 16px 10px;
}
.app-card-title {
  font-weight: 700;
  font-size: 1.0625rem;
}
.app-card-body {
  padding: 0 16px 16px;
}

.ledger {
  margin: 0;
}
.ledger div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--divider);
}
.ledger div:first-child {
  border-top: 0;
}
.ledger dt {
  color: var(--ink-secondary);
}
.ledger dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
}
.ledger .total {
  border-top: 1px solid var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.ledger .total dt {
  color: var(--ink);
}
.ledger--top {
  border-top: 1px solid var(--divider);
}
.value-green {
  color: var(--money-green-deep);
}
.value-warning {
  color: var(--warning-text);
}

/* Shift timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 4px 16px 12px;
}
.timeline li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  padding: 8px 0 8px 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--money-green);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1.7rem;
  bottom: -0.5rem;
  width: 2px;
  background: var(--stroke);
}
.timeline li:last-child::after {
  display: none;
}
.timeline .break::before {
  background: var(--warning);
}
.timeline time {
  min-width: 3.25rem;
  font-family: var(--mono);
  font-weight: 500;
}
.timeline .quiet {
  color: var(--ink-secondary);
}

/* Week bars (heights are classes: inline styles are blocked by the CSP) */

.week-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 7.5rem auto;
  column-gap: 8px;
  row-gap: 8px;
  padding: 4px 16px 16px;
}
.week-bars .bar {
  align-self: end;
  border-radius: 6px 6px 3px 3px;
  background: var(--stroke-strong);
}
.week-bars .bar.is-today {
  background: var(--money-green-deep);
}
.week-bars .day {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  color: var(--ink-helper);
  text-align: center;
  text-transform: uppercase;
}
.h-0 {
  height: 4px;
  background: var(--control) !important;
}
.h-775 {
  height: 96.875%;
}
.h-8 {
  height: 100%;
}

/* Settings-style rows */

.settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--divider);
}
.settings-list li:first-child {
  border-top: 0;
}
.settings-list li::after {
  content: "›";
  flex: none;
  color: var(--ink-helper);
  font-size: 1.25rem;
  line-height: 1;
}
.settings-list .row-title {
  display: block;
  font-weight: 600;
}
.settings-list .row-detail {
  display: block;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.rounding-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
}
.rounding-example > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rounding-example .time {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.25rem;
}
.rounding-example .arrow {
  color: var(--ink-helper);
}
.app-note {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--ink-secondary);
  font-size: 0.8125rem;
}

/* Paycheck comparison */

.verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 6px;
  text-align: center;
}
.verdict-amount {
  margin-top: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.verdict-message {
  color: var(--ink-secondary);
}
.cause-card {
  border: 1.5px solid var(--warning);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px 16px;
}
.cause-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.cause-title {
  font-weight: 700;
  font-size: 1.0625rem;
}
.cause-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.cause-values dt {
  color: var(--ink-helper);
  font-size: 0.8125rem;
}
.cause-values dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.25rem;
}
.cause-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}
.cause-card p .mono {
  color: var(--ink);
}
.match-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 16px;
}
.match-line .value-green {
  font-weight: 600;
}

/* History */

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--control);
  color: var(--ink-secondary);
  font-size: 0.875rem;
}
.search-field::before {
  content: "⌕";
  font-size: 1rem;
  line-height: 1;
}
.shift-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shift-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid var(--divider);
}
.shift-list .shift-day {
  font-weight: 600;
}
.shift-list .shift-times {
  grid-column: 1;
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
}
.shift-list .shift-hours {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-weight: 500;
}
.shift-list .shift-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--warning-tint);
  color: var(--warning-text);
  font-size: 0.8125rem;
}

/* Pro */

.pro-panel {
  width: min(100%, 24rem);
  padding: 22px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--on-ink);
  text-align: left;
}
.pro-panel .mono-label {
  color: var(--on-ink-accent);
}
.pro-panel-title {
  display: block;
  margin: 6px 0 14px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pro-panel ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.pro-panel li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
}
.pro-panel li::before {
  content: "✓";
  color: var(--on-ink-accent);
  font-weight: 800;
}
.pro-panel .pro-term {
  padding-top: 14px;
  border-top: 1px solid var(--on-ink-secondary);
  font-weight: 700;
}
.pro-panel .pro-term span {
  display: block;
  color: var(--on-ink-secondary);
  font-weight: 400;
  font-size: 0.875rem;
}
.file-chips {
  display: grid;
  gap: 10px;
  width: min(100%, 24rem);
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card);
  font-size: 0.875rem;
}
.file-chip .file-kind {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--money-green-tint);
  color: var(--money-green-deep);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
}
.file-chip strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}
.file-chip > span:last-child {
  color: var(--ink-secondary);
}
.file-chip strong {
  color: var(--ink);
}

/* Problem list ("Why EarnSure exists") */

.problem-grid {
  display: grid;
  gap: 40px 72px;
}
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.problem-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.problem-list .num {
  padding-top: 0.25rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--money-green-deep);
}
.problem-list h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
}
.problem-list p {
  margin: 0;
  color: var(--ink-secondary);
}
.problem-aside {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--money-green);
  background: var(--money-green-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}

/* Features */

.feature {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.feature:last-of-type {
  padding-bottom: 0;
}
.feature-copy {
  min-width: 0;
  max-width: 34rem;
}
.feature-title {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 14px;
  text-wrap: balance;
}
.feature-copy > p:not(.eyebrow) {
  color: var(--ink-secondary);
  font-size: 1.0625rem;
}
.points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.points li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 32px;
}
.points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--money-green-tint);
  color: var(--money-green-deep);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.feature-foot {
  margin: 18px 0 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

/* How it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--paper);
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--clock-action-fill);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.steps p {
  margin: 0;
  color: var(--ink-secondary);
}

/* Privacy */

.split {
  display: grid;
  gap: 40px 72px;
  align-items: start;
}
.promise {
  margin: 0;
  padding: 8px 22px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
  list-style: none;
}
.promise li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 2px 14px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--divider);
}
.promise li:first-child {
  border-top: 0;
}
.promise li::before {
  content: "✓";
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--money-green-tint);
  color: var(--money-green-deep);
  font-weight: 800;
}
.promise strong {
  font-size: 1.0625rem;
}
.promise span {
  color: var(--ink-secondary);
}
.fine-print {
  margin: 20px 0 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

/* Pricing */

.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--paper);
}
.plan--pro {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.plan-name {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.plan-price {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.125rem;
}
.plan-detail {
  margin: 0 0 22px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}
.plan--pro .plan-detail {
  color: var(--on-ink-secondary);
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--divider);
}
.plan--pro ul {
  border-top-color: var(--on-ink-secondary);
}
.plan li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 28px;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--money-green-deep);
  font-weight: 800;
}
.plan--pro li::before {
  color: var(--on-ink-accent);
}
.plan .plan-includes {
  padding-left: 0;
  font-weight: 700;
}
.plan .plan-includes::before {
  content: none;
}
.pricing-note {
  margin: 24px 0 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  max-width: 48rem;
}

/* FAQ */

.faq-layout {
  display: grid;
  gap: 0 72px;
  align-items: start;
}
.faq {
  max-width: 50rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
}
.faq details {
  border-top: 1px solid var(--divider);
}
.faq details:first-child {
  border-top: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--control);
  color: var(--ink);
  font-weight: 600;
}
.faq details[open] summary::after {
  content: "−";
}
.faq summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.faq summary:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: -3px;
  border-radius: 20px;
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-secondary);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Guide cards */

.guide-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.guide-card:hover {
  border-color: var(--ink-secondary);
  text-decoration: none;
}
.guide-card:hover .guide-card-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.guide-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.guide-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-weight: 400;
}
.guide-card .text-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--money-green-deep);
}

/* Final call to action */

.closing {
  text-align: center;
}
.closing .brand-mark--large {
  display: block;
  margin: 0 auto 24px;
}
.closing .section-title {
  margin-inline: auto;
  max-width: 18ch;
}
.closing .section-lead {
  margin: 0 auto 32px;
  max-width: 34rem;
}
.closing .release {
  align-items: center;
}
.closing .release-status {
  align-self: center;
}

/* Guides (articles) */

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}
.breadcrumbs li {
  margin: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--ink-helper);
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink-secondary);
}
.article h2 {
  margin-top: 48px;
}
.article .lead {
  margin-bottom: 24px;
}
.summary-box {
  margin: 24px 0 32px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
}
.summary-box h2 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}
.summary-box ul {
  margin: 0;
  padding-left: 1.2em;
}
.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--money-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--money-green-tint);
}
.callout--note {
  border-left-color: var(--warning);
  background: var(--warning-tint);
}
.callout > :last-child {
  margin-bottom: 0;
}
.table-wrap:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}
.table-wrap {
  container-type: inline-size;
  margin: 20px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
/* The caption stays in view and wraps when a wide table scrolls sideways. */
.data-table caption {
  position: sticky;
  left: 0;
  max-width: 100cqi;
  box-sizing: border-box;
  padding: 12px 16px 4px;
  text-align: left;
  font-weight: 700;
}
.data-table th,
.data-table td {
  padding: 10px 16px;
  border-top: 1px solid var(--divider);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.data-table td.num,
.data-table th.num {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
}
.data-table tfoot th,
.data-table tfoot td {
  border-top: 1px solid var(--ink);
  font-weight: 700;
}
.steps-list {
  padding-left: 1.4em;
}
.steps-list > li {
  margin-bottom: 14px;
}
.formula {
  display: block;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--control);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.sources {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.sources h2 {
  margin-top: 0;
  font-size: 1.125rem;
}
.sources a {
  overflow-wrap: anywhere;
}
.article-cta {
  margin: 48px 0 0;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
}
.article-cta h2 {
  margin-top: 0;
}
.related {
  margin-top: 40px;
}

/* Calculators: shared form controls, error states and result panels. */

.calc-head {
  margin-bottom: 32px;
}
.calc-layout {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.calc-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--card);
}
.calc-card-title {
  margin: 0 0 18px;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.calc-noscript {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warning-tint);
  color: var(--warning-text);
}

.calc-group {
  margin: 0 0 8px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--divider);
  min-width: 0;
}
.calc-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.calc-group > legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.calc-group > legend + * {
  clear: both;
}

.field {
  margin: 0 0 18px;
  min-width: 0;
}
.field--nested {
  margin: 14px 0 0;
}
.field-label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}
.field-hint {
  margin: 0 0 8px;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}
.field-error {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--destructive);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--destructive);
  color: var(--card);
  font-size: 0.75rem;
  font-weight: 800;
}
.field-error[hidden] {
  display: none;
}

.input-affix {
  display: flex;
  align-items: stretch;
  max-width: 20rem;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--paper);
}
.input-affix--short {
  max-width: 14rem;
}
.input-affix:focus-within {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}
.input-affix .text-input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.input-affix .text-input:focus-visible {
  outline: none;
}
.affix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
}
.affix:first-child {
  padding-right: 0;
}
.affix:last-child {
  padding-left: 0;
}
.text-input,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.select-input {
  max-width: 20rem;
  font-family: var(--sans);
  font-weight: 600;
}
.text-input:focus-visible,
.select-input:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}
.text-input[aria-invalid="true"],
.input-affix:has(.text-input[aria-invalid="true"]) {
  border-color: var(--destructive);
  box-shadow: 0 0 0 1px var(--destructive);
}
/* Inside an affix the wrapper carries the error border; the input itself stays borderless. */
.input-affix .text-input[aria-invalid="true"] {
  border-color: transparent;
  box-shadow: none;
}

.segmented-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.segmented {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--control);
}
.segmented input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segmented label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 4.5rem;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 10px;
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-weight: 500;
  cursor: pointer;
}
.segmented input:checked + label {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(var(--shadow-color) / 0.18), 0 0 0 1px var(--field-border);
}
.segmented input:checked + label::before {
  content: "✓";
  color: var(--money-green-deep);
}
.segmented input:focus-visible + label {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--clock-action-fill);
}
.check input:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}
.check label {
  font-weight: 700;
  min-height: 28px;
}
.check + .field-hint {
  margin: 6px 0 0 36px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: 0 12px;
}
.day-field .field-label {
  font-size: 0.9375rem;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.calc-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}
.calc-status:empty {
  margin: 0;
  min-height: 0;
}

.error-summary {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 2px solid var(--destructive);
  border-radius: 14px;
  background: var(--card);
}
.error-summary:focus-visible {
  outline: 3px solid var(--money-green);
  outline-offset: 2px;
}
.error-summary-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  color: var(--destructive);
}
.error-summary ul {
  margin: 0;
  padding-left: 1.2em;
}
.error-summary li {
  margin: 4px 0;
}
.error-summary a {
  color: var(--destructive);
}

.calc-result .mono-label {
  display: block;
  margin-bottom: 4px;
}
.calc-result .calc-card-title {
  margin-bottom: 6px;
}
.result-total {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.result-caption {
  margin: 8px 0 0;
  color: var(--ink-secondary);
}
.result-stale {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--warning-tint);
  color: var(--warning-text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.result-list {
  margin: 22px 0 0;
  border-top: 1px solid var(--divider);
}
.result-list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.result-list div[hidden] {
  display: none;
}
.result-list dt {
  color: var(--ink-secondary);
}
.result-list dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
}
.result-list .result-list-total {
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}
.result-list .result-list-total dt {
  color: var(--ink);
}
.result-subtitle {
  margin: 26px 0 8px;
  font-size: 1.0625rem;
}
.calc-result .table-wrap {
  margin: 0;
  background: var(--paper);
}
.calc-lines td.num {
  vertical-align: top;
}
.line-how {
  display: block;
  margin-top: 2px;
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
}
.calc-days th,
.calc-days td {
  white-space: nowrap;
}
.calc-form .calc-group:last-of-type {
  margin-bottom: 0;
}
.assumptions {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--money-green-tint);
}
.assumptions .result-subtitle {
  margin-top: 0;
}
.assumptions ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
  font-size: 0.9375rem;
}
.assumptions li {
  margin: 0 0 6px;
}
.assumptions p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.calc-article {
  padding-bottom: 24px;
}
.calc-article > h2:first-child {
  margin-top: 0;
}
.faq--article {
  margin: 16px 0 24px;
}
.article-cta .release {
  margin-top: 16px;
}

/* Calculator index */

.calc-cards {
  margin-bottom: clamp(48px, 7vw, 88px);
}

/* Wider layouts */

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .feature--flip .feature-copy {
    order: 2;
  }
  .problem-grid,
  .split,
  .faq-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 960px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }
  .hero-visual {
    justify-items: end;
  }
  .hero-visual .float-card {
    justify-self: start;
  }
}

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

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  main {
    padding-top: 40px;
  }
}

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

@media print {
  :root {
    --paper: #fff;
    --card: #fff;
  }
  .site-header,
  .site-footer nav,
  .skip,
  .toc,
  .illustration,
  .release {
    display: none;
  }
  a {
    color: inherit;
  }
}
