/* My Finances public website — intentionally dependency-free. */
:root {
  color-scheme: light;
  --navy-950: #061a33;
  --navy-900: #0a2444;
  --navy-800: #10365f;
  --blue-700: #175fc2;
  --blue-600: #2474df;
  --blue-100: #dceaff;
  --blue-050: #eff6ff;
  --green-700: #087a5b;
  --green-100: #d8f2e8;
  --gold-500: #ca972d;
  --gold-100: #f8ebc9;
  --ink: #142033;
  --muted: #56667d;
  --line: #d8e1ec;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --page: #f9fbfe;
  --shadow: 0 24px 60px rgba(8, 35, 68, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-900);
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(36, 116, 223, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy-950);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 225, 236, 0.86);
  background: rgba(249, 251, 254, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-950);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(8, 35, 68, 0.12));
}

.brand span {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-050);
  color: var(--navy-900);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 82px;
  background:
    radial-gradient(circle at 88% 8%, rgba(36, 116, 223, 0.13), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(8, 122, 91, 0.08), transparent 24%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -160px;
  bottom: -150px;
  border: 1px solid rgba(202, 151, 45, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(202, 151, 45, 0.04), 0 0 0 86px rgba(202, 151, 45, 0.025);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--blue-700);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: var(--gold-500);
}

h1,
h2,
h3 {
  color: var(--navy-950);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  font-weight: 850;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 820;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 780;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 95, 194, 0.2);
}

.button-primary:hover {
  background: var(--navy-800);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy-900);
}

.button-secondary:hover {
  border-color: #b8c9dc;
  background: var(--blue-050);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 690;
}

.pill::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--green-700);
}

.product-frame {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 34px;
  background: linear-gradient(145deg, var(--navy-950), #0f4278 65%, #1762af);
  box-shadow: var(--shadow);
  color: #fff;
}

.product-frame::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 40%);
  pointer-events: none;
}

.product-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 20px;
}

.product-logo {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: rgba(255,255,255,.11);
  object-fit: contain;
}

.secure-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbeaff;
  font-size: .76rem;
  font-weight: 700;
}

.dashboard-card {
  position: relative;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}

.dashboard-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 7px 0 22px;
  color: var(--navy-950);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 820;
  letter-spacing: -.04em;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal {
  min-height: 92px;
  padding: 13px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.signal strong,
.signal span {
  display: block;
}

.signal strong {
  margin-bottom: 4px;
  color: var(--navy-900);
  font-size: .94rem;
}

.signal span {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.trend {
  display: flex;
  height: 72px;
  align-items: end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.trend i {
  flex: 1;
  min-width: 9px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-100));
}

.trend i:nth-child(1) { height: 34%; }
.trend i:nth-child(2) { height: 52%; }
.trend i:nth-child(3) { height: 45%; }
.trend i:nth-child(4) { height: 72%; }
.trend i:nth-child(5) { height: 63%; }
.trend i:nth-child(6) { height: 88%; background: linear-gradient(180deg, var(--green-700), var(--green-100)); }

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 68px 0;
}

.section-white {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-navy {
  background: var(--navy-950);
  color: #dce6f2;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-navy .section-copy {
  color: #aebed2;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-copy {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(8, 35, 68, 0.045);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-weight: 850;
}

.icon-box.green {
  background: #e3f5ef;
  color: var(--green-700);
}

.icon-box.gold {
  background: #fff6dc;
  color: #8b6417;
}

.data-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.path-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.055);
}

.path-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #9fc6ff;
  font-size: .82rem;
  font-weight: 800;
}

.path-card p {
  margin: 0;
  color: #aebed2;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  content: "✓";
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .8rem;
  font-weight: 900;
}

.notice {
  padding: 22px 24px;
  border: 1px solid #ead59e;
  border-left: 4px solid var(--gold-500);
  border-radius: 16px;
  background: #fffbef;
  color: #5f5130;
}

.notice strong {
  color: var(--navy-900);
}

.cta {
  padding: 50px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(66, 145, 255, 0.32), transparent 32%),
    linear-gradient(140deg, var(--navy-950), var(--navy-800));
  color: #dce6f2;
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 780px;
  color: #fff;
}

.cta p {
  max-width: 700px;
  margin-bottom: 25px;
  color: #b9c8da;
}

.cta .button-primary {
  background: #fff;
  color: var(--navy-900);
}

.cta .button-primary:hover {
  background: var(--blue-050);
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0 34px;
  border-top: 1px solid var(--line);
  background: #f1f5fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 36px;
}

.footer-copy {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.footer-heading {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #6d7a8c;
  font-size: .82rem;
}

/* Legal and support pages */
.page-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 4%, rgba(36, 116, 223, .12), transparent 28%),
    var(--surface);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.page-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.meta-tag {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 64px;
  padding: 66px 0 20px;
}

.toc {
  position: sticky;
  top: 106px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue-700);
}

.legal-content section {
  scroll-margin-top: 110px;
  margin-bottom: 44px;
}

.legal-content {
  min-width: 0;
}

.legal-content h2 {
  margin-bottom: 15px;
  font-size: 1.65rem;
  letter-spacing: -.025em;
}

.legal-content h3 {
  margin-top: 26px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.legal-content p,
.legal-content li {
  color: #435269;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.3rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-summary {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid #c9dcf7;
  border-radius: 18px;
  background: var(--blue-050);
}

.legal-summary p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--navy-900);
  font-size: .79rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-address {
  display: inline-block;
  margin-top: 5px;
  font-size: 1.03rem;
  font-weight: 750;
  word-break: break-word;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.support-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

summary {
  padding: 17px 20px;
  color: var(--navy-900);
  font-weight: 750;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .data-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-layout {
    gap: 30px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 18px;
  }

  .toc strong {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: .84rem;
    white-space: nowrap;
  }

  .hero {
    padding: 62px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .product-frame {
    padding: 12px;
    border-radius: 25px;
  }

  .dashboard-card {
    padding: 19px;
  }

  .signal-grid,
  .feature-grid,
  .data-path,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .section,
  .section-tight {
    padding: 62px 0;
  }

  .cta {
    padding: 30px 24px;
  }

  .page-hero {
    padding: 54px 0 42px;
  }

  .legal-layout {
    padding-top: 42px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .button-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero,
  .legal-layout {
    padding: 20px 0;
  }

  .legal-layout {
    display: block;
  }
}
