/* Money Tracker — public site stylesheet.
 *
 * Design source: design/landing/v1 (Main, HomeMobile, LegalPage, Support, AccountDelete, Components).
 * shadcn/ui zinc tokens with a coral primary; teal and violet are decorative accents only.
 *
 * Site rule (CHECKLIST.md, "018 landing and legal"): no third-party anything. No imported stylesheet,
 * no external asset reference of any kind, no webfont, no analytics, no cookie. The font stack is the
 * system stack; every icon and every decorative shape is inline SVG in the page itself.
 *
 * There is no build step: this file is served as-is by nginx, exactly as every .html next to it.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light dark;

  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --section: #fafafa;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --body-foreground: #3f3f46;
  --border: #e4e4e7;
  --border-subtle: #f4f4f5;
  --ring: #ef5661;

  --primary: #ef5661;
  --primary-hover: #d9434e;
  --primary-foreground: #ffffff;

  --inverse: #09090b;
  --inverse-foreground: #fafafa;
  --inverse-muted: #a1a1aa;

  --hero: #fff4f2;
  --shape-coral: #fda4ab;
  --shape-teal: #14b8a6;
  --shape-violet: #a78bfa;

  --accent-teal: #14b8a6;
  --teal-bg: #f0fdfa;
  --teal-border: #99f6e4;
  --teal-chip: #ccfbf1;
  --teal-foreground: #0f766e;

  --violet-bg: #f5f3ff;
  --violet-foreground: #7c3aed;

  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-foreground: #92400e;
  --amber-strong: #78350f;
  --amber-icon: #b45309;

  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  --rose-foreground: #9f1239;
  --rose-strong: #be123c;

  --green-bg: #ecfdf5;
  --income: #059669;
  --expense: #e11d48;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(9, 9, 11, 0.12);
  --shadow-lg: 0 20px 50px rgba(9, 9, 11, 0.10), 0 1px 2px rgba(0, 0, 0, 0.05);

  --radius: 10px;
  --radius-sm: 8px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1152px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #18181b;
    --card-foreground: #fafafa;
    --section: #111113;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --body-foreground: #d4d4d8;
    --border: #27272a;
    --border-subtle: #202023;
    --ring: #f87171;

    --primary: #f87171;
    --primary-hover: #fca5a5;
    --primary-foreground: #1a0b0b;

    --inverse: #18181b;
    --inverse-foreground: #fafafa;
    --inverse-muted: #a1a1aa;

    --hero: #2a1a1a;
    --shape-coral: #7f3438;
    --shape-teal: #2dd4bf;
    --shape-violet: #a78bfa;

    --accent-teal: #2dd4bf;
    --teal-bg: #10231f;
    --teal-border: #134e4a;
    --teal-chip: #134e4a;
    --teal-foreground: #5eead4;

    --violet-bg: #1e1b2e;
    --violet-foreground: #c4b5fd;

    --amber-bg: #241c0c;
    --amber-border: #4d3c12;
    --amber-foreground: #fcd34d;
    --amber-strong: #fde68a;
    --amber-icon: #fbbf24;

    --rose-bg: #2a1317;
    --rose-border: #4c1d24;
    --rose-foreground: #fda4af;
    --rose-strong: #fb7185;

    --green-bg: #0e2119;
    --income: #34d399;
    --expense: #fb7185;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

a:focus-visible,
summary:focus-visible,
button:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

img, svg { max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--muted);
  color: var(--foreground);
  padding: 1px 6px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-foreground); }

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--muted); color: var(--foreground); }

.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }

.btn-inverse { background: var(--inverse-foreground); color: var(--inverse); }
.btn-inverse:hover { background: var(--inverse-foreground); color: var(--inverse); opacity: 0.9; }

.btn-block { width: 100%; }
/* A plan that cannot be bought yet: drawn as a button so the four cards line up, but not a link. */
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; pointer-events: none; }

/* ----------------------------------------------------------------- card */

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-flat { box-shadow: none; }
.card-body { padding: 28px; }
.card-title { font-size: 18px; font-weight: 600; margin: 0; }

/* ---------------------------------------------------------------- badge */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge-outline { background: var(--card); border-color: var(--rose-border); color: var(--rose-strong); }
.badge-neutral { background: var(--muted); color: var(--foreground); }
.badge-teal { background: var(--teal-chip); color: var(--teal-foreground); }
.badge-draft { background: var(--rose-bg); border-color: var(--rose-border); color: var(--rose-strong); }

/* ---------------------------------------------------------------- alert */

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.alert svg { flex: none; margin-top: 1px; }
.alert-title { font-size: 14px; font-weight: 600; }
.alert-text { font-size: 14px; line-height: 1.55; margin: 0; }

.alert-warning { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber-foreground); }
.alert-warning svg { color: var(--amber-icon); }
.alert-warning .alert-title { color: var(--amber-strong); }

.alert-destructive { background: var(--rose-bg); border-color: var(--rose-border); color: var(--rose-foreground); }
.alert-destructive svg { color: var(--rose-strong); }
.alert-destructive .alert-title { color: var(--rose-strong); }

.alert-info { background: var(--teal-bg); border-color: var(--teal-border); color: var(--teal-foreground); }
.alert-info svg { color: var(--teal-foreground); }
.alert-info .alert-title { color: var(--teal-foreground); }
.alert-info a { color: inherit; font-weight: 600; }

/* ---------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.table th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: left;
  padding: 10px 16px;
  background: var(--section);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ icon tile */

.tile {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tile-sm { width: 38px; height: 38px; }
.tile-coral { background: var(--rose-bg); color: var(--primary); }
.tile-teal { background: var(--teal-bg); color: var(--teal-foreground); }
.tile-violet { background: var(--violet-bg); color: var(--violet-foreground); }
.tile-amber { background: var(--amber-bg); color: var(--amber-icon); }
.tile-green { background: var(--green-bg); color: var(--income); }
.tile-rose { background: var(--rose-bg); color: var(--expense); }

.step-n {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: var(--teal-chip);
  color: var(--teal-foreground);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.site-header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); }
.brand:hover { color: var(--foreground); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-mark-sm { width: 24px; height: 24px; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-foreground); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--foreground); }
.nav-links a[aria-current="page"] { color: var(--foreground); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
}
.nav-lang:hover { color: var(--foreground); background: var(--muted); }

.nav-menu { display: none; position: relative; }
.nav-menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  cursor: pointer;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.nav-menu[open] > summary { background: var(--muted); }
.nav-menu > summary .icon-close { display: none; }
.nav-menu[open] > summary .icon-open { display: none; }
.nav-menu[open] > summary .icon-close { display: block; }

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: calc(100vw - 8px);
  max-width: 320px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
}
.nav-menu-panel a:hover { background: var(--muted); color: var(--foreground); }
.nav-menu-panel .btn { margin-top: 6px; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu { display: block; }
  .site-header .container { min-height: 56px; padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
}

/* --------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--border); margin-top: 96px; }
.site-footer a { color: var(--muted-foreground); font-size: 14px; }
.site-footer a:hover { color: var(--foreground); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--foreground); }
.footer-about { display: flex; flex-direction: column; gap: 12px; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.footer-about .footer-fineprint { font-size: 13px; color: var(--muted-foreground); }
.footer-lang { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

.footer-compact {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-compact .footer-fineprint { font-size: 13px; color: var(--muted-foreground); margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }

@media (max-width: 899px) {
  .site-footer { margin-top: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
  .footer-about { grid-column: 1 / -1; }
  .site-footer .container { padding-left: 20px; padding-right: 20px; }
  .footer-compact { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 0; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-about a { min-height: 0; }
}

/* ---------------------------------------------------------- page header */

.page-header { background: var(--section); border-bottom: 1px solid var(--border); }
.page-header .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.page-header h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-foreground);
}
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb [aria-current="page"] { color: var(--foreground); }
.page-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-meta .version { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.page-lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body-foreground); max-width: 640px; }

@media (max-width: 899px) {
  .page-header .container { padding: 28px 20px; }
  .page-header h1 { font-size: 30px; }
}

/* --------------------------------------------------------- content slots */

.page-main { padding-top: 48px; padding-bottom: 80px; }
.alert-wrap { padding-top: 32px; }

@media (max-width: 899px) {
  .page-main { padding-top: 32px; padding-bottom: 48px; }
  .alert-wrap { padding-top: 20px; }
}

/* ----------------------------------------------------------- prose/body */

.prose { max-width: 720px; overflow-wrap: break-word; }
.prose code { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  scroll-margin-top: 24px;
}
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--body-foreground); margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; color: var(--body-foreground); font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose ol {
  list-style: none;
  padding-left: 0;
  counter-reset: prose-step;
}
.prose ol > li {
  counter-increment: prose-step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.prose ol > li::before {
  content: counter(prose-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--rose-bg);
  color: var(--rose-strong);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--foreground); }
.prose .table { font-size: 15px; }
.prose .version { color: var(--muted-foreground); font-size: 14px; }
.prose .note { color: var(--muted-foreground); font-size: 14px; }
.prose section { margin-top: 8px; }

.prose .table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  margin: 0 0 20px;
}
.prose .table-wrap table { margin: 0; }
.prose th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: left;
  padding: 10px 14px;
  background: var(--section);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.55;
}
.prose tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------- side nav */

.layout-side {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}
.layout-side-right { grid-template-columns: minmax(0, 1fr) 340px; }

.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 12px 10px;
}
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc li > a {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.4;
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
}
.toc li > a:hover, .toc li > a:focus-visible {
  color: var(--foreground);
  font-weight: 600;
  border-left-color: var(--primary);
}
.toc-card {
  margin: 20px 12px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-card-title { font-size: 13px; font-weight: 600; }
.toc-card a { font-size: 14px; color: var(--muted-foreground); padding: 3px 0; }
.toc-card a:hover { color: var(--foreground); }

.side-cards { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 24px; }
.side-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.side-card-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.side-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted-foreground); }
.side-card .card-link { font-size: 14px; font-weight: 600; }

@media (max-width: 1023px) {
  .layout-side, .layout-side-right { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .toc { position: static; order: 2; border-top: 1px solid var(--border); padding-top: 24px; }
  .prose { order: 1; }
  .side-cards { position: static; }
  .toc li > a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 899px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .prose h2 { font-size: 20px; margin: 32px 0 10px; }
  .prose p, .prose ul, .prose ol { font-size: 15px; }
  /* Wide legal tables scroll inside themselves rather than widening the page. */
  .prose table { display: block; width: fit-content; max-width: 100%; overflow-x: auto; }
}

/* ------------------------------------------------------------ home hero */

.hero { background: var(--hero); position: relative; overflow: hidden; }
.hero .container {
  padding-top: 96px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body-foreground); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-fineprint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0;
}
.hero-fineprint svg { color: var(--accent-teal); flex: none; }

.shape { position: absolute; pointer-events: none; }
.shape-1 { top: -70px; left: -60px; }
.shape-2 { top: 120px; left: 46%; }
.shape-3 { top: 60px; right: 120px; }
.shape-4 { bottom: 40px; right: 40%; }
.shape-5 { bottom: -120px; right: -100px; }

/* ----------------------------------------------------- product preview */

.preview-wrap { position: relative; width: 100%; max-width: 400px; margin: 0 auto; }
.preview {
  width: 100%;
  min-width: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-head {
  flex-wrap: wrap;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-label { font-size: 12px; color: var(--muted-foreground); }
.preview-total { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.period {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 4px;
  flex: none;
}
.period-arrow { padding: 4px 6px; color: var(--muted-foreground); display: flex; }
.period-value {
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  border-radius: 6px;
  padding: 5px 10px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.preview-day {
  padding: 8px 20px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-foreground);
}
.preview-day b { font-weight: 600; }
.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.preview-row:last-of-type { border-bottom: 0; }
.preview-row-main { flex: 1; min-width: 0; }
.preview-row-title { font-size: 14px; font-weight: 500; }
.preview-row-sub { font-size: 12px; color: var(--muted-foreground); }
.preview-amount { font-size: 14px; font-weight: 600; }
.amount-out { color: var(--expense); }
.amount-in { color: var(--income); }
.preview-foot {
  padding: 14px 20px;
  background: var(--section);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-foot-label { flex: 1; font-size: 12px; color: var(--muted-foreground); }
.progress { width: min(150px, 42%); height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; flex: none; }
.progress > span { display: block; height: 8px; background: var(--primary); }
.preview-float {
  position: absolute;
  right: -18px;
  bottom: -44px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.preview-float-title { font-size: 13px; font-weight: 600; }
.preview-float-sub { font-size: 12px; color: var(--muted-foreground); }

/* -------------------------------------------------------- home sections */

.section { padding-top: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head p { margin: 0; font-size: 16px; color: var(--muted-foreground); max-width: 560px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; list-style: none; padding: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; list-style: none; padding: 0; }

.feature { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature h3 { margin: 0; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body-foreground); }

.import-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--teal-bg);
  border-color: var(--teal-border);
  box-shadow: none;
  position: relative;
}
.import-copy { padding: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; position: relative; }
.import-copy .section-eyebrow { color: var(--teal-foreground); }
.import-copy h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.import-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body-foreground); }
.import-link { font-size: 15px; font-weight: 600; color: var(--teal-foreground); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.import-link:hover { color: var(--teal-foreground); text-decoration: underline; }
.import-steps { padding: 48px; display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; }
.import-step { padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.import-step b { font-weight: 600; }
.import-step span { color: var(--muted-foreground); }

.plan { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-code { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price span { font-size: 14px; color: var(--muted-foreground); }
.plan-features { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--body-foreground); margin: 0; padding: 0; list-style: none; }
.plan-features li { display: flex; gap: 8px; align-items: center; margin: 0; }
.plan-features svg { flex: none; color: var(--teal-foreground); }
.plan-features .off { color: var(--muted-foreground); }
.plan-features .off svg { color: var(--muted-foreground); }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.plans-note { margin: 20px 0 0; font-size: 13px; color: var(--muted-foreground); text-align: center; }

.support-strip {
  border-radius: 14px;
  background: var(--inverse);
  color: var(--inverse-foreground);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.support-strip h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.support-strip p { margin: 0; font-size: 15px; color: var(--inverse-muted); max-width: 520px; }
.support-strip-copy { display: flex; flex-direction: column; gap: 8px; position: relative; }
.support-strip .btn { position: relative; flex: none; }

/* ---------------------------------------------------------- support faq */

.support-hero { background: var(--section); border-bottom: 1px solid var(--border); }
.support-hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
}
.support-hero h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.support-hero-copy { display: flex; flex-direction: column; gap: 12px; }
.mail-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mail-card-head { display: flex; align-items: center; gap: 12px; }
.mail-card-label { font-size: 13px; color: var(--muted-foreground); }
.mail-card-address { font-size: 16px; font-weight: 600; word-break: break-word; }
.mail-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted-foreground); }

.faq { margin-top: 8px; }
.faq h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  min-height: 44px;
  cursor: pointer;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary h3 { margin: 0; font-size: 16px; font-weight: 600; }
.faq-item > summary svg { flex: none; color: var(--muted-foreground); }
.faq-item > summary .icon-collapse { display: none; }
.faq-item[open] > summary .icon-expand { display: none; }
.faq-item[open] > summary .icon-collapse { display: block; }
.faq-answer { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--body-foreground); }

@media (max-width: 1023px) {
  .support-hero .container { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .support-hero h1 { font-size: 30px; }
}

/* --------------------------------------------------------- home mobile */

@media (max-width: 1023px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .import-card { grid-template-columns: minmax(0, 1fr); }
  .import-copy { padding: 24px; }
  .import-steps { padding: 0 24px 24px; }
  .support-strip { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (max-width: 899px) {
  .section { padding-top: 48px; }
  .section-head { align-items: flex-start; text-align: left; }
  .section-head h2 { font-size: 28px; }
  .hero { }
  .hero .container { padding: 48px 20px 40px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: 36px; line-height: 1.1; }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .preview-wrap { margin-top: 0; }
  .preview { box-shadow: var(--shadow-md); }
  .preview-float { display: none; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plan { padding: 20px; gap: 14px; }
  .plans-note { text-align: left; }
  .support-strip h2 { font-size: 22px; }
  .support-strip .btn { width: 100%; }
  .feature { padding: 20px; gap: 12px; }
  .faq h2 { font-size: 24px; }
}

@media (max-width: 899px) {
  /* HomeMobile.dc.html keeps one coral arc top right and one teal ring; the rest would sit on the copy. */
  .shape-1 { top: -50px; right: -50px; left: auto; width: 160px; height: 160px; }
  .shape-2 { top: 210px; left: 14px; }
  .shape-3, .shape-4, .shape-5 { display: none; }
  .support-strip .shape { display: none; }
  .import-card .shape { display: none; }
}

/* --------------------------------------------- 44px tap targets on phones */

@media (max-width: 899px) {
  .skip:focus { min-height: 44px; align-items: center; display: inline-flex; }
  .brand { min-height: 44px; }
  .breadcrumb a,
  .toc-card a,
  .side-card .card-link,
  .mail-card-address { min-height: 44px; display: inline-flex; align-items: center; }
  /* Padding on an inline link grows its hit box without moving any line. */
  .prose a, .plans-note a, .footer-about a { padding-block: 15px; }
}
