:root { --positive: #a4d8af; --error: #ffc0af; }
[hidden] { display: none !important; }
.wrap { max-width: 1264px; padding-inline: 20px; }
body::before { animation: none; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { font-family: var(--sans); cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.topbar { position: sticky; top: 0; z-index: 15; background: var(--bg); flex-wrap: wrap; gap: 20px 12px; padding-top: 16px; margin-top: -16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.brand { text-decoration: none; gap: 14px; min-width: 0; }
.brand .brand-monogram { font: 400 32px/1 var(--serif); border-right: 1px solid var(--line-strong); padding-right: 14px; }
.brand .brand-name { font: 400 25px/1 var(--serif); letter-spacing: -.02em; }
.brand .brand-caption { display: block; font: 500 8px/1.5 var(--sans); letter-spacing: .16em; margin-top: 4px; }
.view-nav { display: flex; gap: 24px; order: 3; width: 100%; }
.view-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--cream-dim); font-size: 14px; position: relative; }
.view-nav a[aria-current="page"] { color: var(--cream); }
.view-nav a[aria-current="page"]::after { content: ""; height: 2px; position: absolute; bottom: -21px; left: 0; right: 0; background: var(--cream); }
.account-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 12px 20px; color: var(--bg); background: var(--cream); border: 1px solid var(--cream); border-radius: 9px; font: 600 14px/1.4 var(--sans); text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover { background: #fff0c8; border-color: #fff0c8; }
.button-outline { color: var(--cream); background: transparent; border-color: var(--line-strong); }
.button-outline:hover { background: rgba(239,227,193,.08); border-color: var(--cream-dim); }
.button-small { min-height: 44px; padding: 10px 14px; font-size: 12px; gap: 8px; }
.button-full { width: 100%; margin-top: 8px; }
.button-danger { background: var(--error); border-color: var(--error); }
.text-button { color: var(--cream); background: transparent; border: 0; padding: 8px 0; min-height: 44px; font: 500 13px/1.5 var(--sans); }
.text-button:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--cream-dim); display: flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #bacba0; box-shadow: 0 0 0 4px rgba(186,203,160,.08); }
.landing-hero { display: grid; gap: 36px; padding: 44px 0; }
.hero-copy h1 { font-size: clamp(54px, 9vw, 82px); line-height: .99; letter-spacing: -.035em; margin: 25px 0 20px; }
h1 em { color: #b9c7a2; font-weight: 400; }
.lead { max-width: 465px; color: var(--cream-dim); font-size: 15px; line-height: 1.75; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-footnote { font-size: 11px; color: var(--sage); margin: 14px 0 0; }
.journal-preview { border: 1px solid var(--line-strong); border-radius: 16px; padding: 24px; background: linear-gradient(150deg, #293e2b, #112518); position: relative; min-width: 0; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .09em; color: var(--cream-dim); gap: 10px; }
.badge { font-size: 8px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 7px; color: var(--cream-dim); }
.preview-points { padding: 29px 0 23px; display: flex; flex-direction: column; }
.mini-label { font-size: 12px; color: var(--cream-dim); }
.preview-points strong { font: 400 66px/1.2 var(--serif); letter-spacing: -.03em; }
.preview-points strong span { font: 400 16px var(--sans); color: var(--sage); margin-left: 8px; }
.preview-caption { font-size: 10px; color: var(--sage); }
.preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-block: 1px solid var(--line); padding: 18px 0; }
.preview-metrics span { display: block; font-size: 10px; color: var(--sage); }
.preview-metrics strong { display: block; font: 400 24px/1.6 var(--serif); }
.preview-chart { display: flex; gap: 8px; align-items: flex-end; height: 92px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.preview-chart div { height: var(--bar); flex: 1; background: linear-gradient(to top, rgba(166,188,133,.13), rgba(200,214,171,.6)); border-radius: 3px 3px 0 0; }
.preview-bottom { display: flex; justify-content: space-between; padding-top: 10px; gap: 12px; font-size: 8px; letter-spacing: .04em; color: var(--sage); }
.feature-strip { display: grid; gap: 24px; border-block: 1px solid var(--line); padding: 28px 0; }
.feature-strip > div { position: relative; padding-left: 35px; }
.feature-number { position: absolute; top: 3px; left: 0; font-size: 10px; color: var(--sage); }
.feature-strip h2 { font: 400 25px/1.2 var(--serif); margin: 0 0 8px; }
.feature-strip p { margin: 0; color: var(--sage); font-size: 12px; line-height: 1.7; max-width: 300px; }
.calculator-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; }
.calculator-promo h2 { font: 400 32px/1.1 var(--serif); margin: 10px 0; }
.calculator-promo p { font-size: 13px; color: var(--sage); margin: 0; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 10px; color: var(--sage); margin-top: 12px; }
.site-footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: start; gap: 8px; }
.footer-dot { margin-inline: 8px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 38px 0 28px; }
.section-heading h1 { font-size: clamp(44px, 7vw, 62px); margin-top: 16px; }
.lead-small { font-size: 13px; color: var(--sage); margin: 8px 0 0; }
.username { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.metric { display: flex; flex-direction: column; padding: 20px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.metric > span:first-child { font-size: 11px; color: var(--cream-dim); }
.metric strong { font: 400 clamp(28px, 4vw, 40px)/1.3 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; margin: 7px 0; font-variant-numeric: tabular-nums; }
.metric-caption { font-size: 9px; color: var(--sage); }
.metric-highlight { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.metric-highlight > span:first-child, .metric-highlight .metric-caption { color: var(--ink-soft); }
.insight-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; padding: 22px 2px 28px; }
.insight { display: flex; flex-direction: column; gap: 3px; }
.insight span { font-size: 10px; color: var(--sage); }
.insight strong { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.insight-row .button { margin-left: auto; font-size: 12px; }
.entries-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.entries-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px; }
.entries-heading h2 { font: 400 26px var(--serif); margin: 0 0 5px; }
.count { font: 400 11px var(--sans); color: var(--sage); vertical-align: middle; margin-left: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.entries-heading p { font-size: 10px; color: var(--sage); margin: 0; }
.text-link { color: var(--cream-dim); font-size: 11px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; text-decoration: none; }
.empty-state { text-align: center; border-top: 1px solid var(--line); padding: 45px 20px; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; border: 1px solid var(--line-strong); border-radius: 10px; margin: 0 auto 18px; color: var(--sage); }
.empty-state h3 { font: 400 28px/1.2 var(--serif); margin: 0 0 10px; }
.empty-state p { font-size: 12px; color: var(--sage); line-height: 1.7; margin-bottom: 22px; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
th { text-align: right; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--sage); font-weight: 500; padding: 15px 18px; border-bottom: 1px solid var(--line); }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: right; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
.entry-note { display: block; color: var(--sage); font-size: 10px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-actions button { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--cream-dim); min-height: 44px; padding: 6px 10px; font-size: 10px; }
.row-actions button:hover { border-color: var(--cream-dim); color: var(--cream); }
.calculator-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 32px 0 24px; }
.calculator-heading .eyebrow { font-size: 9px; }
#calculatorView .hero-grid { margin-bottom: 20px; }
#calculatorView .res-value { white-space: normal; overflow-wrap: anywhere; font-size: clamp(48px, 10vw, 112px); }
#calculatorView .result { min-width: 0; }
#calculatorView .res-stats .v { white-space: normal; overflow-wrap: anywhere; }
#calculatorView .hero-grid h1 { font-size: clamp(42px, 6vw, 62px); }
#calculatorView .reveal { opacity: 1; transform: none; }
.fee-source { font-size: 11px; color: var(--cream-dim); margin: 8px 0; }
.fee-source .text-button { font-size: 11px; text-decoration: underline; }
.calculator-points-journal { width: 100%; justify-content: space-between; gap: 12px; margin-top: 12px; padding-inline: 16px; border-radius: 14px; text-align: left; }
.loading-state { padding: 36px 0; color: var(--sage); font-size: 13px; }
.inline-error, .form-error { color: var(--error); font-size: 12px; line-height: 1.6; }
.inline-error { border: 1px solid rgba(255,192,175,.25); border-radius: 8px; padding: 16px; margin-block: 16px; }
.modal { background: #14271a; color: var(--cream); border: 1px solid var(--line-strong); border-radius: 16px; padding: 24px; width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.modal::backdrop { background: rgba(6,15,8,.78); backdrop-filter: blur(6px); }
.modal-wide { width: min(540px,calc(100% - 24px)); }
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-top .eyebrow { font-size: 9px; }
.icon-button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); color: var(--cream-dim); background: transparent; font-size: 24px; }
.modal h2 { font: 400 37px/1.05 var(--serif); letter-spacing: -.02em; margin: 20px 0 12px; }
.modal-description { font-size: 12px; color: var(--sage); line-height: 1.65; margin: 0 0 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(0,0,0,.22); padding: 4px; border-radius: 8px; }
.auth-tabs button { color: var(--sage); border: 0; border-radius: 5px; min-height: 44px; background: transparent; font-size: 12px; }
.auth-tabs button[aria-pressed="true"] { color: var(--bg); background: var(--cream); }
.modal label { color: var(--cream-dim); font-size: 11px; }
.modal input, .modal textarea { font-size: 16px; border-radius: 8px; min-height: 46px; }
.modal textarea { width: 100%; color: var(--cream); background: rgba(0,0,0,.28); font-family: var(--sans); border: 1px solid var(--line); padding: 12px; resize: vertical; }
.modal textarea:focus { outline: 2px solid var(--cream); outline-offset: 1px; }
.field-help { font-size: 10px; color: var(--sage); line-height: 1.6; margin: 7px 0 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; right: 12px; top: 0; min-height: 46px; font-size: 10px; }
.modal-footnote { text-align: center; font-size: 10px; color: var(--sage); margin: 18px 0 0; }
.entry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field-full { grid-column: 1/-1; }
.optional { color: var(--sage); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; border: 1px solid var(--line-strong); background: var(--cream); color: var(--bg); padding: 14px 20px; border-radius: 10px; max-width: calc(100vw - 32px); font-size: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } .feature-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; padding-block: 32px; } .feature-strip > div { padding-left: 0; } .feature-number { position: static; display: block; margin-bottom: 14px; } .journal-preview { padding: 28px; } }
@media (min-width: 900px) { .topbar { flex-wrap: nowrap; padding-bottom: 25px; } .view-nav { order: initial; width: auto; margin-left: 35px; } .view-nav a[aria-current="page"]::after { bottom: -26px; } .landing-hero { grid-template-columns: 1.14fr 1fr; align-items: center; gap: 64px; padding: 62px 0 54px; } .journal-preview { padding: 30px; } .hero-copy h1 { font-size: clamp(65px, 6.1vw, 83px); } .preview-chart { height: 112px; } .metrics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; } .section-heading { padding-top: 48px; } .calculator-promo { padding-block: 38px; } }
@media (max-width: 420px) { .wrap { padding-inline: 16px; } .brand { gap: 9px; } .brand .brand-monogram { font-size: 26px; padding-right: 9px; } .brand .brand-name { font-size: 22px; } .account-actions { gap: 9px; } .account-actions .button { padding-inline: 10px; } .hero-copy h1 { font-size: 53px; } .hero-actions .button { font-size: 12px; padding-inline: 14px; } .insight-row .button { margin-left: 0; width: 100%; } .modal { padding: 20px; } .entry-fields { gap: 16px 10px; } .site-footer { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Keep visually hidden table labels inside the scroll container. */
.table-scroll { position: relative; }
.sr-only { top: 0; left: 0; }
@media (max-width: 420px) { .username { max-width: 90px; } }
.journal-frame { position: relative; isolation: isolate; min-height: 560px; }
.journal-workspace { transition: filter .2s, opacity .2s; }
.journal-locked { filter: grayscale(1) blur(1px); opacity: .28; pointer-events: none; user-select: none; }
.journal-gate { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 16px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 16px; background: #14271a; box-shadow: 0 24px 90px rgba(0,0,0,.4); }
.journal-gate h2 { font: 400 clamp(32px, 5vw, 42px)/1.05 var(--serif); letter-spacing: -.025em; margin: 20px 0 16px; }
.journal-gate > p { color: var(--cream-dim); font-size: 13px; line-height: 1.7; margin: 0 0 16px; }
.journal-gate .gate-status { color: var(--positive); padding-top: 12px; margin-bottom: 0; }
.journal-gate .gate-footnote { color: var(--sage); font-size: 10px; margin: 16px 0 0; }
.calculator-invite { position: fixed; z-index: 10; right: 24px; bottom: 24px; width: min(392px, calc(100vw - 32px)); padding: 24px; background: #14271a; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 60px rgba(0,0,0,.4); }
.calculator-invite .eyebrow { font-size: 8px; padding-right: 24px; }
.calculator-invite h2 { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; margin: 16px 0 10px; }
.calculator-invite p { color: var(--cream-dim); font-size: 12px; line-height: 1.6; margin: 0 0 18px; }
.invite-dismiss { position: absolute; right: 4px; top: 4px; border: 0; width: 44px; min-height: 44px; height: 44px; font-size: 22px; }
@media (max-width: 420px) { .journal-gate { padding: 24px 20px; } .journal-gate .button { font-size: 12px; padding-inline: 12px; gap: 10px; } .calculator-invite { right: 16px; bottom: 16px; padding: 20px; } .calculator-invite .button { width: 100%; min-height: 44px; } }
@media (max-width: 640px) { .journal-gate { top: 96px; transform: translateX(-50%); } }
