/* Shared styles for the public pages (tools, glossary, landing footer + popup). Same look as the landing page. */
:root { --paper: #f6f3e4; --white: #fffef8; --ink: #0f2419; --muted: #4c5e53; --forest: #12382b; --deep: #0b2a20; --money: #1f7a4f; --bull: #2fae6b; --sage: #a9c4b3; --line: #d8dccb; --loss: #b3361e; }

/* ----- inner pages (body.pg) ----- */
body.pg { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pg .narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.pg h1, .pg h2, .pg h3 { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; }
.pg h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.pg h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 44px; }
.pg h3 { font-size: 21px; font-weight: 800; }
.pg p { margin: 0 0 16px; }
.pg a { color: var(--money); }
.pg .eyebrow { font: 700 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--money); margin: 0 0 10px; }
.pg .lede { font-size: 20px; color: var(--muted); max-width: 640px; }
.pg .crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.pg .crumbs a { color: var(--muted); }
.pg .hero { padding: 26px 0 30px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; border-bottom: 1px solid var(--line); }

/* ----- header ----- */
.sh { position: sticky; top: 0; z-index: 40; background: rgba(246, 243, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sh .in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sh .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sh .brand img.m { height: 28px; width: auto; } .sh .brand img.w { height: 22px; width: auto; }
.sh ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.sh ul a { font: 600 15px 'Inter', sans-serif; color: var(--ink); text-decoration: none; }
.sh ul a:hover { color: var(--money); }
.sbtn { display: inline-block; font: 700 15px 'Inter', sans-serif; background: var(--money); color: #fff !important; border: 0; border-radius: 8px; padding: 11px 18px; text-decoration: none; cursor: pointer; transition: background .15s; }
.sbtn:hover { background: var(--forest); }
.sbtn.ghost { background: transparent; color: var(--forest) !important; border: 2px solid var(--forest); padding: 9px 16px; }
@media (max-width: 800px) { .sh ul { display: none; } .sh .brand img.w { height: 18px; } }

/* ----- calculators ----- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 28px 0; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 14px 34px rgba(18, 56, 43, .1); }
.panel h2, .panel h3 { margin-top: 0; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.fld small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.pg input[type=number], .pg input[type=email], .pg input[type=text] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c3cbb8; border-radius: 10px; background: #fff; color: var(--ink); }
.pg input:focus { outline: 3px solid rgba(47, 174, 107, .35); border-color: var(--money); }
.out { display: grid; gap: 0; }
.out div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.out div:last-child { border-bottom: 0; }
.out span { color: var(--muted); } .out b { font: 800 22px 'Fraunces', serif; text-align: right; }
.out b.good { color: var(--money); } .out b.bad { color: var(--loss); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--sage); padding-left: 12px; margin-top: 14px; }
.warn { background: #f3e1da; border: 1px solid #e3bfb2; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 12px; display: none; }
@media (max-width: 800px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ----- cards, lists, faq, cta ----- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.card2 { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--money); border-radius: 12px; padding: 20px 22px; text-decoration: none; color: var(--ink) !important; display: block; transition: transform .15s, box-shadow .15s; }
.card2:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 56, 43, .12); }
.card2 h3 { margin: 0 0 6px; } .card2 p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: #dcf5e5; color: var(--ink); padding: 48px 0; margin-top: 48px; text-align: center; border-top: 1px solid #b9e6c9; }
.cta-band h2 { color: var(--ink); margin-top: 0; } .cta-band p { color: #2f4a3b; max-width: 560px; margin: 0 auto 20px; }
.cta-band .sbtn { background: var(--money) !important; color: #fff !important; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.related a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 15px; }
.disc { font-size: 13px; color: var(--muted); margin-top: 28px; }
.alpha { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

/* ----- footer (also used on the landing page) ----- */
.sf { background: var(--deep); color: #b3cabb; font: 14px/1.6 'Inter', -apple-system, sans-serif; padding: 44px 0 36px; }
.sf *, .sf *::before, .sf *::after { box-sizing: border-box; }
.sf .in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sf a { color: #cfe3d6; text-decoration: none; } .sf a:hover { color: #fff; text-decoration: underline; }
.sf .capture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; border: 1px solid #2c5646; border-radius: 16px; padding: 24px 26px; margin-bottom: 40px; }
.sf .capture h3 { font: 800 24px/1.15 'Fraunces', Georgia, serif; color: #fff; margin: 0 0 6px; }
.sf .capture p { margin: 0; color: #b8d0c1; }
.sf .row { display: flex; gap: 10px; }
.sf input[type=email] { flex: 1; min-width: 0; font: inherit; padding: 13px 14px; border-radius: 10px; border: 1px solid #3f6a58; background: transparent; color: #fff; }
.sf input[type=email]::placeholder { color: #8fb3a0; }
.sf .go { font: 700 15px 'Inter', sans-serif; background: var(--bull); color: #06231a; border: 0; border-radius: 10px; padding: 13px 20px; cursor: pointer; }
.sf .msg { min-height: 20px; font-size: 14px; margin-top: 8px; } .sf .msg.bad { color: #ff9c8a; } .sf .msg a { font-weight: 700; color: var(--bull); }
.sf .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sf h4 { font: 700 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--bull); margin: 0 0 12px; }
.sf ul { list-style: none; margin: 0; padding: 0; } .sf li { margin: 7px 0; }
.sf .about p { margin: 12px 0 14px; max-width: 320px; }
.sf .legal { border-top: 1px solid #2c5646; margin-top: 32px; padding-top: 20px; font-size: 12.5px; color: #93b2a2; }
.sf .brandrow { display: flex; align-items: center; gap: 8px; }
.sf .brandrow img { height: 22px; width: auto; }
@media (max-width: 860px) { .sf .capture { grid-template-columns: minmax(0, 1fr); } .sf .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sf .about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf .row { flex-direction: column; } }

/* ----- email popup ----- */
.pop { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 20px 50px rgba(11, 42, 32, .28); transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2, 1, .3, 1), opacity .3s; font: 15px/1.5 'Inter', sans-serif; }
.pop.show { transform: none; opacity: 1; }
.pop h3 { font: 800 21px/1.15 'Fraunces', Georgia, serif; margin: 0 24px 6px 0; }
.pop p { margin: 0 0 12px; color: #4c5e53; font-size: 14px; }
.pop .row { display: flex; gap: 8px; }
.pop input[type=email] { flex: 1; min-width: 0; font: inherit; padding: 11px 12px; border: 1px solid #c3cbb8; border-radius: 10px; background: #fff; }
.pop .go { font: 700 14px 'Inter', sans-serif; background: #1f7a4f; color: #fff; border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; }
.pop .x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #4c5e53; }
.pop .msg { min-height: 18px; font-size: 13px; margin-top: 6px; } .pop .msg.bad { color: #b3361e; } .pop .msg a { font-weight: 700; color: #1f7a4f; }
@media (prefers-reduced-motion: reduce) { .pop { transition: none; } }

/* The landing page has its own generic button.go and input rules; keep the shared footer/popup immune to them. */
.sf button.go, .pop button.go { width: auto; flex: none; margin-top: 0; box-shadow: none; border: 0; }
.sf button.go { background: var(--bull); color: #06231a; border-radius: 10px; padding: 13px 20px; }
.pop button.go { background: #1f7a4f; color: #fff; border-radius: 10px; padding: 11px 16px; }
.sf input[type=email], .pop input[type=email] { width: auto; }

/* Social links (2026-10-28) */
.sf-social{display:flex;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}
.sf-social span{width:100%;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.sf-social a{display:inline-flex;width:36px;height:36px;border-radius:8px;align-items:center;justify-content:center;background:rgba(255,255,255,.1)}
.sf-social a:hover{background:rgba(255,255,255,.2)}
.sf-social svg{width:18px;height:18px;fill:currentColor}
.sf-founders{margin-top:10px;font-size:14px;opacity:.85}
.ab-social{display:flex;gap:10px;margin:6px 0 14px}
.ab-social .ab-s{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px;padding:7px 12px;border-radius:8px;border:1.5px solid currentColor;text-decoration:none}
.ab-social svg{width:16px;height:16px;fill:currentColor}
