/* Shared public pages: quiet navy, warm paper, readable documents. */
:root {
    --navy: #102e40;
    --blue: #17627a;
    --paper: #f7f5ef;
    --card: #fffefa;
    --ink: #253f4c;
    --muted: #53656b;
    --line: #d6dcd7;
    --accent: #dce8e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-color: #849a99 var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.7; }
::selection { color: var(--navy); background: #cde3dc; }
a { color: var(--blue); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: Tahoma, "Segoe UI", sans-serif; letter-spacing: 0; line-height: 1.45; }
.skip-link { position: fixed; inset-inline-start: 20px; top: -80px; z-index: 100; padding: 12px 20px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { width: min(1160px, calc(100% - 64px)); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; direction: ltr; color: var(--navy); font-family: inherit; font-size: 1.65rem; font-weight: 600; line-height: 1; text-decoration: none; }
.brand img { display: block; width: 32px; height: auto; }
.nav-actions, .nav-links, .language { display: flex; align-items: center; gap: 28px; }
.nav-links a, .nav-actions a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.nav-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-actions a:hover { color: var(--navy); text-decoration: underline; }
.language { gap: 16px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.nav-actions a[aria-current="page"] { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 1px solid var(--navy); border-radius: 6px; font-weight: 600; text-decoration: none; transition: background-color .18s, color .18s; }
.button.primary { color: var(--card); background: var(--navy); }
.button.primary:hover { background: var(--blue); }
.button.secondary { border-color: transparent; color: var(--navy); padding-inline: 12px; text-decoration: underline; }
.button.secondary:hover { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-inner { width: min(1160px, calc(100% - 64px)); margin: auto; }
.welcome-page .hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 80px; align-items: center; padding: 88px 0 64px; }
.welcome-page h1 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5vw, 4.7rem); line-height: 1.07; font-weight: 400; letter-spacing: -.035em; margin-bottom: 28px; }
.hero-copy { max-width: 49ch; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.8; }
.availability { max-width: 42ch; margin: 16px 0 0; color: var(--muted); font-size: .83rem; }
.snapshot { min-width: 0; margin: 0; }
.app { background: var(--card); border: 1px solid #bccdc7; border-radius: 12px; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.app-top strong { font-weight: 600; }
.app-top small, .entry small { display: block; color: var(--muted); font-size: .76rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--navy); background: var(--accent); font-size: .85rem; }
.balance { padding: 24px; }
.balance > span, .card span { display: block; color: var(--muted); font-size: .8rem; }
.balance > strong { display: block; color: var(--navy); font-size: 2.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.4; }
.balance em { color: #34654f; font-size: .78rem; font-style: normal; }
.cards { display: grid; grid-template-columns: 1fr 1fr; margin: 0 24px 24px; border-block: 1px solid var(--line); }
.card { padding: 16px 0; }
.card + .card { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.card strong { color: var(--navy); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Illustrative preview: goal progress is meaningful; budget has no known limit. */
.card:first-child .bar { display: none; }
.bar { height: 4px; margin-top: 12px; background: var(--accent); }
.bar::before { content: ""; display: block; width: 68%; height: 100%; background: var(--blue); }
.recent { padding: 0 24px 12px; }
.recent-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .75rem; }
.entry { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry-icon { flex: 0 0 24px; width: 24px; height: 24px; color: var(--blue); }
.entry div { flex: 1; min-width: 0; }
.entry strong { font-size: .85rem; font-weight: 600; }
.amount { white-space: nowrap; font-size: .86rem; font-variant-numeric: tabular-nums; }
.income-amount { color: #34654f; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .75rem; text-align: center; }
.truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 38px; border-block: 1px solid var(--line); }
.truth { color: var(--muted); font-size: .9rem; }
.truth strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 7px; }
.section { width: min(1100px, calc(100% - 64px)); margin: auto; padding: 100px 0; }
.feature-layout, .how-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.heading h2, .privacy-copy h2, .closing h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2rem, 3.1vw, 3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 22px; }
.heading p, .privacy-copy p { color: var(--muted); max-width: 45ch; }
.features { border-top: 1px solid var(--line); }
.feature { padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature h3, .step h3 { color: var(--navy); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature p, .step p { color: var(--muted); margin-bottom: 0; max-width: 60ch; font-size: .95rem; }
.privacy-band { background: #e7ede7; }
.privacy-band .section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.choice { padding: 22px 0; border-bottom: 1px solid #bfcfc5; }
.choice:first-child { padding-top: 0; }
.choice strong { font-weight: 600; color: var(--navy); }
.choice p { margin: 7px 0 0; color: var(--muted); font-size: .95rem; }
.steps { counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 32px; padding-inline-start: 48px; }
.step::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; color: var(--blue); font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.step + .step { padding-top: 28px; border-top: 1px solid var(--line); }
.step + .step::before { top: 28px; }
.closing { padding-top: 0; }
.closing-box { border-top: 1px solid var(--line); padding-top: 58px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 100px; }
.closing h2 { grid-row: span 2; }
.closing p { max-width: 60ch; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.closing .actions { margin-top: 20px; }
.welcome-page footer, .site-footer { width: min(1160px, calc(100% - 64px)); margin: auto; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 24px; font-size: .83rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: inherit; }
/* Documents read as documents, with navigation separate from the text. */
.legal-page .hero { border-bottom: 1px solid var(--line); }
.legal-page .hero-inner { padding: 64px 0 38px; }
.legal-page h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--navy); font-size: clamp(2.7rem, 5vw, 4.5rem); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 22px; }
.summary { max-width: 66ch; color: var(--muted); font-size: 1.08rem; margin-bottom: 20px; }
.meta { color: var(--muted); font-size: .83rem; margin: 0; }
.shell { width: min(1160px, calc(100% - 64px)); margin: 52px auto 90px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; }
.legal-sidebar { position: sticky; top: 116px; font-size: .87rem; }
.document-label { display: block; margin-bottom: 18px; color: var(--muted); font-size: .78rem; }
.notice { border-block: 1px solid var(--line); padding: 18px 0; color: var(--muted); }
.notice strong { display: block; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.back-link { display: inline-block; padding-block: 14px; }
.contents { margin-top: 18px; border-top: 1px solid var(--line); }
.contents summary { cursor: pointer; padding: 16px 0; color: var(--navy); font-weight: 600; }
.contents ol { margin: 0; padding-inline-start: 22px; max-height: 45vh; overflow-y: auto; }
.contents li { padding-inline-start: 4px; }
.contents a { display: block; padding: 6px 0; line-height: 1.5; }
.legal-card { min-width: 0; max-width: 72ch; }
.legal-card section { scroll-margin-top: 112px; }
.legal-card section + section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-card h2 { color: var(--navy); font-size: 1.4rem; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; margin-bottom: 16px; }
.legal-card h3 { font-size: 1.02rem; margin: 24px 0 10px; font-weight: 600; }
.legal-card p { margin-bottom: 16px; line-height: 1.85; }
.legal-card ul { padding-inline-start: 23px; margin: 12px 0 18px; }
.legal-card li + li { margin-top: 10px; }
.contact { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .welcome-page .hero-inner { gap: 40px; }
    .feature-layout, .how-layout, .privacy-band .section, .closing-box { gap: 48px; }
    .legal-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
    .nav-actions, .nav-links { gap: 18px; }
}
@media (max-width: 760px) {
    .brand { gap: 10px; font-size: 1.45rem; }
    .brand img { width: 28px; }
    .nav { width: calc(100% - 40px); min-height: 72px; }
    .nav-links { display: none; }
    .hero-inner, .section, .truths, .shell, .welcome-page footer, .site-footer { width: calc(100% - 40px); }
    .welcome-page .hero-inner { grid-template-columns: 1fr; padding: 52px 0 38px; gap: 38px; }
    .welcome-page h1 { max-width: 13ch; font-size: clamp(2.8rem, 9vw, 4rem); }
    [dir="rtl"] .welcome-page h1 { max-width: 18ch; }
    .snapshot { width: 100%; max-width: 480px; margin: auto; }
    .truths { grid-template-columns: 1fr; gap: 20px; padding-block: 26px; }
    .section { padding-block: 60px; }
    .feature-layout, .how-layout, .privacy-band .section, .closing-box { grid-template-columns: 1fr; gap: 28px; }
    .closing { padding-top: 0; }
    .closing-box { padding-top: 40px; }
    .closing h2 { margin-bottom: 0; }
    .legal-page .hero-inner { padding: 44px 0 30px; }
    .shell { margin-top: 30px; }
    .legal-grid { grid-template-columns: 1fr; gap: 36px; }
    .legal-sidebar { position: static; }
    .contents { margin-top: 0; border-bottom: 1px solid var(--line); }
    .contents ol { max-height: 300px; padding-bottom: 14px; }
    .legal-card { max-width: none; }
    .welcome-page footer, .site-footer { flex-direction: column; gap: 14px; }
}
@media (max-width: 380px) {
    .nav-actions { gap: 10px; }
    .language { padding-inline-start: 12px; gap: 12px; }
    .legal-page .home-label { display: none; }
    .actions { align-items: stretch; }
    .actions .button { width: 100%; }
    .entry { gap: 8px; }
    .app-top, .balance { padding-inline: 18px; }
    .recent { padding-inline: 18px; }
    .cards { margin-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
@media print {
    .site-header, .site-footer, .legal-sidebar, .skip-link { display: none; }
    body { color: #000; background: #fff; font-size: 11pt; }
    .legal-page .hero-inner, .shell { width: 100%; margin: 0; padding: 0; }
    .legal-page .hero { border: 0; margin-bottom: 30px; }
    .legal-grid { display: block; }
    .legal-card { max-width: none; }
    .legal-card h2 { break-after: avoid; }
    .legal-card p, .legal-card li { orphans: 3; widows: 3; }
    .contents { display: none; }
}
