@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --green: #1B6B4A; --green-dark: #134F37; --green-50: #E8F2EC; --green-100: #D3E7DA;
  --sand: #F4EFE6; --sand-2: #EAE2D3; --sand-3: #DCCFB8;
  --ink: #1D2622; --ink-2: #46524C; --ink-3: #6E7A73; --line: #E3DBCB;
  --white: #FFFFFF; --amber: #9A5B0C; --amber-bg: #FBEFD9; --red: #A23B2A; --red-bg: #F9E3DE;
  --radius: 14px; --shadow: 0 1px 2px rgba(29,38,34,.06), 0 6px 20px rgba(29,38,34,.06);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--sand); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid #7FB89A; outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--font-body); padding: 12px 18px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-50); color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-danger { background: #fff; color: var(--red); border-color: #E7B9AF; }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 7px 12px; font-size: .85rem; min-height: 34px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Header / footer */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--sand-2); color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 64px; color: var(--ink-3); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-flat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .35em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill-paid { background: var(--green-50); color: var(--green-dark); }
.pill-due { background: var(--amber-bg); color: var(--amber); }
.pill-neutral { background: var(--sand-2); color: var(--ink-2); }
.pill-red { background: var(--red-bg); color: var(--red); }
.eyebrow { font: 700 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 10px; }

/* Landing */
.hero { padding: 56px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 32px; } }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin-bottom: 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.paynote { font-size: .85rem; color: var(--ink-3); margin: 0; }
.sample-card { background: #fff; border-radius: 18px; box-shadow: 0 2px 4px rgba(29,38,34,.05), 0 24px 48px rgba(27,107,74,.12); border: 1px solid var(--line); overflow: hidden; }
.sample-card header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #FBF9F5); }
.sample-card .road { font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sample-card .bill { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.sample-card .bill b { font: 700 1.1rem var(--font-head); }
.sample-card .bill span { font: 800 1.3rem var(--font-head); color: var(--green); }
.sample-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #F0EBE1; }
.sample-row:last-of-type { border-bottom: 0; }
.sample-row .who { font-weight: 600; }
.sample-row .who small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.sample-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.sample-card footer { padding: 12px 20px; background: var(--sand); font-size: .85rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; }
.pitch { background: var(--green); color: #F4EFE6; border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pitch h2, .pitch h3 { color: #fff; }
.pitch p { color: #DCEBE2; margin: 0; }
@media (max-width: 720px) { .pitch { grid-template-columns: 1fr; padding: 26px; } }
.not-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.not-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.not-list li::before { content: '✕'; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--sand-2); color: var(--ink-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
@media (max-width: 720px) { .not-list { grid-template-columns: 1fr; } }
.price-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 34px 28px; border: 2px solid var(--green); }
.price-card .price { font: 800 3.2rem/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); margin: 10px 0 4px; }
.price-card .price small { font: 600 1.1rem var(--font-body); color: var(--ink-3); }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 22px auto; max-width: 340px; }
.price-card li { padding: 6px 0 6px 30px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.guarantee { background: var(--sand); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); margin-top: 18px; text-align: left; }
.guarantee b { color: var(--ink); }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--sand-3); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,74,.15); }
.input-sm { padding: 6px 8px !important; min-height: 36px !important; font-size: .9rem !important; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }
.form-ok { background: var(--green-50); color: var(--green-dark); border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.fields .span-2 { grid-column: span 2; }
@media (max-width: 480px) { .fields .span-2 { grid-column: auto; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

/* Auth */
.auth-wrap { max-width: 460px; margin: 40px auto; padding: 0 20px; }
.auth-wrap .card { padding: 28px; }
.note-box { background: var(--green-50); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--green-dark); margin-bottom: 18px; }
.next-note { background: var(--sand); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); margin-top: 18px; }

/* App */
.demo-banner { background: #FFF7E3; border-bottom: 1px solid #EEDDB1; }
.demo-banner .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.demo-banner p { margin: 0; font-weight: 600; color: #6B4A0B; }
.plan-banner { background: var(--amber-bg); border: 1px solid #EFD5A6; border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: .92rem; }
.app-top { padding: 22px 0 6px; }
.app-top h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; }
.road-switch { max-width: 280px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 14px 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; } }
.tabs a { padding: 12px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current=page] { color: var(--green); border-bottom-color: var(--green); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #F0EBE1; vertical-align: top; }
th { font-weight: 600; color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; background: #FBF9F5; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; background: #FBF9F5; border-top: 1px solid var(--line); border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.stat .v { font: 800 1.35rem var(--font-head); font-variant-numeric: tabular-nums; margin-top: 2px; }
.progress { height: 8px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); }
.bill-card { margin-bottom: 22px; }
.bill-card > header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; align-items: flex-start; }
.method-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .method-choices { grid-template-columns: 1fr; } }
.method-choices label { border: 1.5px solid var(--sand-3); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; font-weight: 400; margin: 0; }
.method-choices label b { display: block; font-weight: 700; margin-bottom: 2px; }
.method-choices label small { color: var(--ink-3); }
.method-choices input { position: absolute; opacity: 0; }
.method-choices label:has(input:checked) { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 1px var(--green); }
.method-choices label:has(input:focus-visible) { outline: 3px solid #7FB89A; }
.sum-ok { color: var(--green-dark); font-weight: 600; }
.sum-bad { color: var(--red); font-weight: 600; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-3); background: #fff; border: 1.5px dashed var(--sand-3); border-radius: 14px; }
.empty h3 { color: var(--ink); }
.readonly-note { background: var(--sand-2); border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.minute { margin-bottom: 14px; }
.minute header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.inline-pay { background: var(--green-50); }
.inline-pay .fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.copy-box { background: var(--sand); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; font-size: .9rem; margin: 10px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 1.4rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--green); }

/* Toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .93rem; transition: opacity .4s, transform .4s; }
.toast-err { background: var(--red); }
.toast-info { background: #6B4A0B; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Legal */
.legal { padding-top: 40px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

/* Packet (print) */
.packet { background: #fff; max-width: 860px; margin: 24px auto; padding: 40px 48px; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; }
.packet h1 { font-size: 1.8rem; margin-bottom: 4px; }
.packet h2 { font-size: 1.15rem; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--green); }
.packet h3 { font-size: 1rem; margin: 16px 0 6px; }
.packet table { font-size: .85rem; }
.packet .table-wrap { border-radius: 6px; }
.packet th, .packet td { padding: 6px 8px; }
.packet-toolbar { max-width: 860px; margin: 20px auto 0; padding: 0 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .packet { padding: 22px 16px; margin: 12px; } }
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 11pt; }
  .no-print, .site-header, .site-footer, .demo-banner, #toasts { display: none !important; }
  .packet { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .packet h2 { break-after: avoid; }
  .packet tr, .packet .minute { break-inside: avoid; }
  .table-wrap { overflow: visible; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
}
.pw-wrap input { padding-right: 76px; }
