/* 123 Invoice — home page (v2). Shared tokens and fonts come from style.css. */
:root { --paper: #f3f5f1; --deep: #0c3b24; --deeper: #082a19; --leaf: #4fb57a; }
body.home { overflow-x: hidden; }

/* Sticky header with CTA */
.home .site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; padding: 14px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 700 16px/1 'Figtree', sans-serif; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deeper); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-mint { background: var(--mint); color: var(--deeper); }
.btn-mint:hover { background: #d3f7e0; }
.head-cta { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
@media (prefers-color-scheme: dark) { .btn-primary { background: #4cc77f; color: #04210f; } .btn-primary:hover { background: #6fd39a; } }

/* ---------- Hero ---------- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: 48px 0 72px; }
.stairs { margin: 0 0 26px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.045em; line-height: .92; font-size: clamp(54px, 9vw, 116px); }
.stairs span { display: flex; align-items: baseline; gap: .18em; }
.stairs span + span { margin-top: .06em; }
.stairs span:nth-child(2) { padding-left: .9em; }
.stairs span:nth-child(3) { padding-left: 1.8em; }
.stairs i { font-style: normal; display: inline-grid; place-items: center; width: .62em; height: .74em; border-radius: .14em; font-size: .5em; letter-spacing: 0; transform: translateY(-.16em); }
.stairs span:nth-child(1) i { background: #2f7a4e; color: #fff; }
.stairs span:nth-child(2) i { background: #4fb57a; color: #062b17; }
.stairs span:nth-child(3) i { background: #b9f0cd; color: #062b17; }
.hero2 .lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Phone mockup (real app screenshots) */
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: #0b0f0d; box-shadow: 0 0 0 1.5px #2b332e inset, 0 40px 80px -20px rgba(8, 42, 25, .45), 0 12px 24px -12px rgba(8, 42, 25, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--paper); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #0b0f0d; z-index: 2; }
.hero-phone { position: relative; justify-self: center; }
.toast-card { position: absolute; left: -64px; bottom: 112px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -12px rgba(8, 42, 25, .35); animation: toastIn .7s .6s cubic-bezier(.2,.8,.2,1) both; }
.toast-card .dot { width: 38px; height: 38px; border-radius: 12px; background: #147d3b; color: #fff; display: grid; place-items: center; flex: none; }
.toast-card b { display: block; font-size: 15px; }
.toast-card small { display: block; font-size: 13px; color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.chip-card { position: absolute; right: -40px; top: 120px; z-index: 3; padding: 10px 14px; border-radius: 14px; background: #b9f0cd; color: #062b17; font-weight: 700; font-size: 14px; box-shadow: 0 14px 30px -12px rgba(8, 42, 25, .35); animation: toastIn .7s .9s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- Promise band ---------- */
.band { background: var(--deep); color: #fff; border-radius: 36px; padding: clamp(32px, 5vw, 56px); }
.band h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.035em; line-height: 1.04; margin: 0 0 12px; max-width: 18ch; }
.band > p { color: var(--mint); margin: 0 0 36px; max-width: 54ch; font-size: 18px; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.promise { background: rgba(255, 255, 255, .06); border-radius: 22px; padding: 22px; }
.promise .was { display: block; font-size: 14px; color: #ffb3a7; text-decoration: line-through; text-decoration-thickness: 1.5px; margin-bottom: 8px; }
.promise h3 { margin: 0 0 6px; font-size: 20px; }
.promise p { margin: 0; color: #cfe7d8; font-size: 15px; }

/* ---------- How it works ---------- */
.kicker { font-weight: 700; color: var(--accent); margin: 112px 0 10px; font-size: 16px; }
.h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 16px; max-width: 16ch; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 0 0 44px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.flow-step { display: flex; flex-direction: column; gap: 18px; }
.flow-step:nth-child(2) { margin-top: 48px; }
.flow-step:nth-child(3) { margin-top: 96px; }
.flow-step .phone { width: 100%; max-width: 280px; }
.flow-head { display: flex; align-items: center; gap: 12px; }
.flow-head i { font-style: normal; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; flex: none; }
.flow-step:nth-child(1) i { background: #2f7a4e; color: #fff; }
.flow-step:nth-child(2) i { background: #4fb57a; color: #062b17; }
.flow-step:nth-child(3) i { background: #b9f0cd; color: #062b17; }
.flow-head h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; letter-spacing: -0.02em; }
.flow-step p { margin: 0; color: var(--muted); max-width: 30ch; }

/* ---------- 1099 calculator ---------- */
.tax { margin-top: 112px; background: var(--deeper); color: #fff; border-radius: 36px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.tax .kicker { color: var(--mint); margin-top: 0; }
.tax .h2 { color: #fff; }
.tax .sub { color: #cfe7d8; margin-bottom: 28px; }
.calc { background: rgba(255, 255, 255, .06); border-radius: 26px; padding: 24px; display: grid; gap: 18px; }
.calc label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; color: #cfe7d8; }
.money-input { display: flex; align-items: center; gap: 6px; background: #fff; color: var(--deeper); border-radius: 14px; padding: 0 16px; min-height: 58px; }
.money-input span { font: 700 24px 'Bricolage Grotesque', sans-serif; color: #55615a; }
.money-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 800 28px 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; color: var(--deeper); }
.money-input:focus-within { box-shadow: 0 0 0 3px var(--mint); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: #4fb57a; height: 28px; }
.range-row output { min-width: 3.2ch; font: 800 22px 'Bricolage Grotesque', sans-serif; color: #fff; text-align: right; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result { background: #b9f0cd; color: #062b17; border-radius: 18px; padding: 16px; }
.result.alt { background: rgba(255, 255, 255, .1); color: #fff; }
.result small { display: block; font-size: 13px; font-weight: 600; opacity: .85; }
.result strong { display: block; font: 800 clamp(24px, 3vw, 32px)/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; margin-top: 4px; }
.result em { display: block; font-style: normal; font-size: 13px; margin-top: 4px; opacity: .85; }
.fine { font-size: 13px; color: #a9c9b6; margin: 4px 0 0; }
.tax .phone { justify-self: center; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border-radius: 28px; padding: 26px; overflow: hidden; position: relative; min-height: 220px; display: flex; flex-direction: column; }
.tile h3 { margin: 0 0 6px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; max-width: 34ch; }
.t-pdf { grid-column: span 4; background: var(--soft); }
.t-private { grid-column: span 2; background: var(--deep); color: #fff; }
.t-private p { color: #cfe7d8; }
.t-estimate { grid-column: span 2; }
.t-late { grid-column: span 2; }
.t-dark { grid-column: span 2; background: #0a0f0c; color: #eef3ef; padding-bottom: 0; }
.t-dark p { color: #a1ada6; }
.t-trades { grid-column: span 6; min-height: 0; padding: 22px 0; }
.t-trades h3 { padding: 0 26px; }
.big-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto; }
.t-private .big-ico { background: rgba(255,255,255,.1); color: var(--mint); }
.t-estimate .big-ico, .t-late .big-ico { background: var(--soft); color: var(--accent); }
.tile .push { margin-top: 26px; }
/* mini invoice drawing in the PDF tile */
.mini-pdf { display: flex; gap: 14px; margin-top: 24px; }
.sheet { flex: 1; background: #fff; color: #111827; border-radius: 14px; padding: 16px; box-shadow: 0 10px 30px -14px rgba(8,42,25,.3); font-size: 12px; min-width: 0; }
.sheet .t { font: 800 18px 'Bricolage Grotesque', sans-serif; color: #147d3b; }
.sheet .row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e5e7eb; color: #374151; }
.sheet .row:last-of-type { border: 0; font-weight: 700; color: #111827; }
.sheet .pay { margin-top: 10px; background: #f0fdf4; border-radius: 8px; padding: 8px 10px; color: #14532d; font-weight: 600; }
.status-list { display: grid; gap: 8px; margin-top: 22px; }
.status-list div { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.status-list b { font-size: 13px; }
.s-red { color: #b42318; } .s-amber { color: #a04a06; } .s-green { color: #147d3b; }
@media (prefers-color-scheme: dark) { .s-red { color: #ff8a7a; } .s-amber { color: #f5b266; } .s-green { color: #4cc77f; } }
.dark-shot { margin: 22px auto 0; width: 70%; border-radius: 24px 24px 0 0; overflow: hidden; border: 6px solid #1f2723; border-bottom: 0; }
.dark-shot img { width: 100%; display: block; }
.marquee { overflow: hidden; margin-top: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { white-space: nowrap; padding: 12px 20px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 16px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- FAQ + final ---------- */
.faq2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; margin-top: 112px; }
.faq2 .h2 { margin-top: 0; }
.faq2 details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq2 summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; font: 500 26px/1 'Figtree', sans-serif; color: var(--accent); transition: transform .2s ease; }
.faq2 details[open] summary::after { transform: rotate(45deg); }
.faq2 details p { margin: 12px 0 0; color: var(--ink-2); max-width: 60ch; }
.final { margin-top: 112px; text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 40px; background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.final h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(42px, 7vw, 96px); letter-spacing: -0.045em; line-height: .95; margin: 22px 0 16px; }
.final p { color: var(--mint); font-size: 18px; margin: 0 auto 30px; max-width: 44ch; }
.final img { width: 84px; height: 84px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 20px; gap: 48px; }
  .hero-phone { order: 2; }
  .toast-card { left: -24px; bottom: 80px; }
  .chip-card { right: -18px; }
  .promises { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 56px; }
  .flow-step:nth-child(n) { margin-top: 0; align-items: center; text-align: center; }
  .flow-step p { margin-inline: auto; }
  .tax { grid-template-columns: 1fr; }
  .tax .phone { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; }
  .faq2 { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .stairs span:nth-child(2) { padding-left: .5em; }
  .stairs span:nth-child(3) { padding-left: 1em; }
  .head-cta { display: none; }
  .results { grid-template-columns: 1fr; }
  .mini-pdf .sheet:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast-card, .chip-card { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 26px; }
  .marquee-track span[aria-hidden] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--deep); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }
@media (max-width: 900px) {
  .hero2, .tax, .flow, .bento, .faq2 { grid-template-columns: minmax(0, 1fr); }
}
.money-input input { width: 100%; }
/* fixes after review */
.head-links a.btn-primary, .head-links a.btn-primary:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .head-links a.btn-primary, .head-links a.btn-primary:hover { color: #04210f; } }
@media (min-width: 901px) { .hero2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.stairs { font-size: clamp(48px, 7vw, 92px); }
.stairs span { white-space: nowrap; }
.stairs span:nth-child(2) { padding-left: .7em; }
.stairs span:nth-child(3) { padding-left: 1.4em; }
.dark-shot { max-height: 250px; }
.dark-shot img { height: auto; }
.tile { min-height: 260px; }
@media (max-width: 480px) {
  .stairs { font-size: clamp(44px, 13vw, 60px); }
  .stairs span:nth-child(2) { padding-left: .45em; }
  .stairs span:nth-child(3) { padding-left: .9em; }
}
@media (max-width: 900px) { .chip-card { top: -16px; right: 8px; } }
