:root {
  /* Exact values from the brand sheet: Porcelain, Midnight Ink, Mineral Sea, Sea Glass, Soft Coral. */
  --bg: #f6f5f0; --card: #ffffff; --position-bg: #daeae6; --text: #152521; --muted: #626a65; --line: #dfddd6;
  --accent: #15695b; --accent-strong: #0f554a; --accent-text: #ffffff; --pos: #15695b; --pos-tint: #daeae6; --neg: #a94f43; --neg-tint: #f5e7e4;
  --radius: 20px; --radius-sm: 15px; --shadow: 0 18px 55px rgb(21 37 33 / .10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --card: #1f1f1d; --position-bg: #1c2821; --text: #f1efeb; --muted: #a29d96; --line: #33322f;
          --accent: #6cc59a; --accent-text: #0e1a14; --pos: #6cc59a; --pos-tint: #203027; --neg: #ef8a7c; --neg-tint: #2e1f1c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.45 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 110px; }

/* ---------- brand ---------- */
.brand-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
a.brand-header { text-decoration: none; color: inherit; }
.brand-mark { flex-shrink: 0; }
.brand-header h1 { font-family: "Sora", "Manrope", sans-serif; font-size: 21px; margin: 0; font-weight: 700; letter-spacing: -0.035em; }
.brand-header .sub { font-size: 14px; color: var(--muted); margin-top: 1px; }
.brand-header .spacer { flex: 1; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
            border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); flex-shrink: 0; }

/* ---------- marketing landing page ---------- */
body.landing main { max-width: none; padding: 0; }

.hero-cta { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 700;
            font-size: 16px; padding: 14px 28px; border: 0; border-radius: 999px; text-decoration: none;
            box-shadow: 0 8px 20px rgb(21 105 91 / 0.28); cursor: pointer; }
.hero-cta:active { opacity: 0.88; }
.hero-cta[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.coming-soon-cta { display: inline-flex; align-items: center; gap: 13px; min-width: 258px; padding: 12px 14px;
                   color: #fff; background: var(--accent); border-radius: 18px; box-shadow: 0 14px 30px rgb(21 105 91 / .22); text-align: left; }
.coming-soon-cta small { display: block; margin-bottom: 1px; font-size: 9px; line-height: 1.2; font-weight: 800; letter-spacing: .12em; opacity: .72; }
.coming-soon-cta strong { display: block; font-size: 17px; line-height: 1.2; }
.cta-phone { position: relative; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .13); }
.cta-phone::before { content: ""; position: absolute; inset: 7px 10px 6px; border: 2px solid #fff; border-radius: 4px; }
.cta-phone::after { content: ""; position: absolute; width: 4px; height: 2px; left: 15px; bottom: 9px; border-radius: 2px; background: #fff; }
.cta-arrow { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); font-size: 18px; }

.landing-page { overflow: hidden; }
.landing-topbar { display: flex; align-items: center; justify-content: space-between;
                  max-width: 1160px; margin: 0 auto; padding: 24px; }
.landing-brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
                 color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.landing-nav { display: flex; gap: 20px; }
.landing-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.landing-nav a:hover { color: var(--text); }

.landing-hero { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
                max-width: 1160px; margin: 0 auto; padding: 68px 24px 104px; }
.landing-hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -240px; top: -120px;
                        border-radius: 50%; background: radial-gradient(circle, rgb(218 234 230 / .9), rgb(218 234 230 / 0) 68%); pointer-events: none; }
@media (min-width: 880px) { .landing-hero { grid-template-columns: 1.05fr .95fr; padding-top: 92px; } }

.landing-h1 { max-width: 720px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(66px, 8.4vw, 110px); line-height: .84; letter-spacing: -0.035em; font-weight: 400; margin: 18px 0 30px; }
.landing-h1 em { color: var(--accent); font-style: italic; font-weight: 400; }
@media (max-width: 480px) { .landing-h1 { font-size: 38px; } }
.landing-lede { font-size: 19px; line-height: 1.58; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.landing-ctas { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.landing-cta-note { font-size: 13px; color: var(--muted); margin: 0; }

.landing-hero-visual { position: relative; min-height: 720px; display: grid; place-items: center; z-index: 1; }
.phone-shell { position: relative; z-index: 2; width: min(100%, 350px); aspect-ratio: 393 / 852; padding: 11px; border-radius: 48px; background: #10231f;
               box-shadow: 0 35px 80px rgb(21 37 33 / .22), inset 0 0 0 1px rgb(255 255 255 / .15); transform: rotate(2deg); }
.phone-screen { height: 100%; background: var(--bg); border-radius: 37px; padding: 26px 18px 22px; overflow: hidden; }
.phone-notch { width: 86px; height: 22px; margin: -17px auto 18px; border-radius: 0 0 15px 15px; background: #10231f; }
.landing-hero-demo { display: flex; flex-direction: column; gap: 13px; }
.landing-hero-demo .position-card { margin-bottom: 0; }
.floating-proof { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / .94);
                  border: 1px solid rgb(255 255 255 / .9); border-radius: 16px; padding: 12px 15px;
                  box-shadow: var(--shadow); backdrop-filter: blur(12px); font-size: 13px; font-weight: 700; }
.floating-proof strong { display: block; font-size: 15px; color: var(--text); }
.floating-proof span { color: var(--muted); font-weight: 500; }
.proof-link { left: -48px; top: 118px; transform: rotate(-3deg); }
.proof-fx { right: -36px; bottom: 116px; transform: rotate(3deg); }
.proof-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--pos-tint); color: var(--accent); }

.landing-band { background: var(--card); border-block: 1px solid var(--line); }
.landing-section { padding: 88px 24px; max-width: 1160px; margin: 0 auto; }
.section-intro { max-width: 610px; margin: 0 auto 46px; text-align: center; }
.landing-h2 { font-family: "Sora", "Manrope", sans-serif; font-size: clamp(36px, 4.7vw, 58px); line-height: 1.02; font-weight: 650; letter-spacing: -0.045em; margin: 0 0 18px; }
.section-intro p { margin: 0; color: var(--muted); font-size: 17px; }

.landing-steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: steps; }
@media (min-width: 720px) { .landing-steps { grid-template-columns: repeat(3, 1fr); } }
.landing-step { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-start; }
.landing-step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--pos-tint); letter-spacing: .06em; margin-bottom: 20px; }
.landing-step h3 { font-family: "Sora", "Manrope", sans-serif; font-size: 24px; font-weight: 650; letter-spacing: -.035em; margin: auto 0 8px; }
.landing-step p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

.landing-features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .landing-features { grid-template-columns: repeat(2, 1fr); } }
.landing-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.landing-feature .avatar { margin-bottom: 14px; }
.landing-feature h3 { font-family: "Sora", "Manrope", sans-serif; font-size: 22px; font-weight: 650; letter-spacing: -.035em; margin: 22px 0 8px; }
.landing-feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.landing-trust { display: grid; gap: 36px; align-items: center; }
@media (min-width: 800px) { .landing-trust { grid-template-columns: .8fr 1.2fr; } .landing-trust .section-intro { text-align: left; margin: 0; } }
.landing-quote { padding: 30px; border-radius: 28px; background: var(--position-bg); }
.landing-quote .big-proof { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 14px; }
.feature-wide { grid-column: span 2; min-height: 270px; background: var(--position-bg); position: relative; overflow: hidden; }
.feature-wide::after { content: "="; position: absolute; right: 22px; bottom: -34px; font: 700 150px/1 "Sora", sans-serif; color: rgb(21 105 91 / .09); }
.feature-proof { display: block; margin-top: 42px; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.04em; color: var(--accent); }
.feature-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.feature-dark h3 { color: var(--bg); }
.feature-dark p { color: rgb(246 245 240 / .68); }
.feature-dark .avatar { background: rgb(255 255 255 / .1); color: #8fd6b5; }
.promise-rail { overflow: hidden; border-block: 1px solid var(--line); background: var(--accent); color: var(--accent-text); transform: rotate(-1deg) scale(1.02); }
.promise-rail div { width: max-content; padding: 17px 0; font-size: 13px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; animation: rail-slide 24s linear infinite; }
.promise-rail span { display: inline-block; padding: 0 20px; color: #9cd4bd; }
@keyframes rail-slide { to { transform: translateX(-35%); } }
.landing-final { text-align: center; padding-top: 56px; }
.landing-final .landing-h2 { max-width: 760px; margin-inline: auto; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(46px, 6vw, 72px); font-weight: 400; letter-spacing: -.025em; }
.final-cta { margin: 8px auto 0; }

.landing-footer { border-top: 1px solid var(--line); padding: 36px 24px 48px; margin-top: 24px;
                   text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.landing-footer .landing-brand { font-size: 15px; }
.landing-footer nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.landing-footer nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.landing-footer nav a:hover { color: var(--accent); }
.landing-copyright { font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .landing-hero-copy, .landing-hero-visual { animation: landing-rise .65s cubic-bezier(.2,.8,.2,1) both; }
  .landing-hero-visual { animation-delay: .08s; }
}
@media (min-width: 720px) {
  .step-two { transform: translateY(34px); }
  .step-three { transform: translateY(-12px); }
  .landing-steps { padding-block: 14px 34px; }
}
@keyframes landing-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1 { font-family: "Sora", "Manrope", sans-serif; font-size: 28px; line-height: 1.15; margin: 8px 0 8px; letter-spacing: -0.04em; font-weight: 650; }
h2 { font-family: "Sora", "Manrope", sans-serif; font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -0.025em; color: var(--text); margin: 28px 0 10px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }

/* ---------- position card ---------- */
.position-card { background: var(--position-bg); border-radius: var(--radius); padding: 20px; margin-bottom: 8px; }
.position-card .headline { font-family: "Sora", "Manrope", sans-serif; font-size: 30px; line-height: 1.12; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 4px; letter-spacing: -0.035em; }
.position-card .detail { color: var(--muted); font-size: 15px; }
.position-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 12%, transparent); margin: 16px 0 10px; overflow: hidden; }
.position-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.position-split { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.position-split .owe-you { color: var(--accent); }

/* ---------- cards / rows ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.item-card { background: var(--card); border: 1px solid rgb(21 37 33 / .045); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; gap: 12px; }
.item-card.pending { opacity: .6; }
.item-card.pending .item-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px;
  border-radius: 999px; background: var(--accent); vertical-align: middle; animation: equaled-pulse 1.2s ease-in-out infinite; }
@keyframes equaled-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.avatar { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
          font-weight: 800; font-size: 16px; flex-shrink: 0; background: var(--pos-tint); color: var(--pos); }
.avatar.neg { background: var(--neg-tint); color: var(--neg); }
.avatar.icon { background: var(--position-bg); color: var(--accent); font-size: 18px; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 650; letter-spacing: -.012em; }
.item-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.item-sub.pos { color: var(--pos); font-weight: 600; }
.item-sub.neg { color: var(--neg); font-weight: 600; }
.item-amount { font-family: "Manrope", sans-serif; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; letter-spacing: -.02em; }
.item-amount.pos { color: var(--pos); } .item-amount.neg { color: var(--neg); }
.item-amount .fx { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.chev { color: var(--muted); opacity: .6; flex-shrink: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.total { font-family: "Sora", "Manrope", sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line);
                border-radius: 10px; padding: 10px 12px; width: 100%; }
input.big { font-size: 28px; font-weight: 800; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 6px; color: var(--text); background: var(--card);
                border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.checks input { width: auto; }
.split-rows { display: flex; flex-direction: column; gap: 6px; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.split-row .split-input { width: 90px; text-align: right; }
.split-hint { font-size: 13px; margin: 4px 0 0; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 13px 16px; cursor: pointer;
         background: var(--accent); color: var(--accent-text); }
button.secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--text); padding: 11.5px 12px; }
.button-link { text-decoration: none; flex: 1; }
.button-link button { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
.error { color: var(--neg); }
a { color: var(--accent); }
.card.pad { padding: 16px; }
.footer { margin-top: 32px; }

/* ---------- sticky action bar (group view) ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px;
              padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent);
              backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.action-bar button { flex: 1; margin: 0; }

@media (max-width: 879px) {
  .landing-hero-copy { text-align: center; }
  .landing-lede { margin-inline: auto; }
  .landing-ctas { align-items: center; }
  .landing-hero-visual { min-height: 700px; }
  .proof-link { left: 2%; }
  .proof-fx { right: 2%; }
}
@media (max-width: 520px) {
  .landing-nav { gap: 12px; }
  .landing-hero { padding-top: 42px; }
  .landing-hero-visual { min-height: 660px; }
  .phone-shell { width: 300px; border-radius: 42px; }
  .phone-screen { border-radius: 29px; padding-inline: 14px; }
  .floating-proof { display: none; }
  .landing-section { padding-block: 64px; }
  .landing-h1 { font-size: 66px; }
  .feature-wide { grid-column: auto; }
}
