:root { --bg: #fef9ed; --ink: #1c1f58; --muted: #56596c; --accent: #545bfe; --accent-dark: #383ca3; --soft: #f1f1ff; --line: #efe9da; --sun: #f6c91d; --ok: #01744e; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h3 { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 100px; padding: 14px 24px; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .1s, background .15s; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark); }
.btn.primary:hover { background: #474ef0; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--ink); border-color: #d5d6e0; }
.btn.small { padding: 9px 16px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100% - 1160px) / 2)); background: rgba(254, 249, 237, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px "Fraunces", Georgia, serif; color: var(--ink); text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font: 800 16px "Figtree", sans-serif; color: var(--ink); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; max-width: 1160px; margin: 0 auto; padding: 64px 20px 48px; }
.eyebrow { display: inline-block; background: var(--soft); color: var(--accent-dark); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 100px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
.lead { font-size: 19px; color: #3c3e53; margin: 20px 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.hero-art { position: relative; height: 520px; }
.hero-art img { position: absolute; width: 62%; border-radius: 8px; box-shadow: 0 24px 60px rgba(28, 31, 88, .2); background: #fff; }
.hero-art .h1 { left: 4%; top: 30px; transform: rotate(-4deg); z-index: 3; }
.hero-art .h2 { left: 30%; top: 0; transform: rotate(3deg); z-index: 2; }
.hero-art .h3 { left: 40%; top: 70px; transform: rotate(8deg); z-index: 1; opacity: .9; }
.h-badge { position: absolute; left: 0; bottom: 18px; z-index: 4; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(28, 31, 88, .15); border-radius: 16px; padding: 12px 16px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; }
.h-badge b { font: 600 22px "Fraunces", serif; color: var(--ink); }

.section { max-width: 1160px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.section > h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.section .sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 14px auto 36px; text-wrap: balance; }
.section.alt { background: #fff; border-radius: 32px; max-width: 1200px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; text-align: left; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(28, 31, 88, .05); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 31, 88, .14); }
.thumb { display: block; width: 100%; padding: 14px 14px 0; border: 0; background: #f4efe1; cursor: zoom-in; height: 300px; overflow: hidden; }
.thumb img { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); border-radius: 4px 4px 0 0; }
.meta { padding: 14px 16px 16px; }
.meta h3 { font-size: 16px; }
.meta p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: left; margin-top: 40px; }
.f { background: var(--bg); border-radius: 18px; padding: 22px; }
.f .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.f h3 { font-size: 17px; margin-bottom: 6px; }
.f p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 22px 70px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 800; }
.steps span { color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; margin: 36px auto 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.final { padding-bottom: 96px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px max(20px, calc((100% - 1160px) / 2)) 48px; border-top: 1px solid var(--line); }
.foot p { color: var(--muted); font-size: 14px; max-width: 30em; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; }

.lightbox { border: 0; padding: 0; border-radius: 16px; max-width: min(860px, 94vw); max-height: 92vh; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lightbox::backdrop { background: rgba(28, 31, 88, .6); }
.lb-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 700; }
.lb-bar span { margin-right: auto; min-width: 0; line-height: 1.25; }
.lb-bar .btn { flex: none; white-space: nowrap; }
.lb-bar [data-lb-close] { min-width: 40px; height: 40px; padding: 0; }
.lightbox img { width: 100%; }

@media (max-width: 1000px) {
  .grid, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .grid { gap: 12px; }
  .thumb { height: 220px; padding: 10px 10px 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero-art { height: 340px; }
  .section { padding: 56px 16px; }
  .btn { width: 100%; }
  .nav .btn, .lb-bar .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html, body { overflow-x: clip; }
@media (max-width: 640px) { .hero-art .h3 { left: 34%; } .hero-art .h2 { left: 26%; } .hero-art img { width: 64%; } }
.brand, .nav .btn { white-space: nowrap; }
.nav .short { display: none; }
@media (max-width: 640px) { .nav .long { display: none; } .nav .short { display: inline; } .brand { font-size: 18px; } }
.foot .tools-nav { flex-basis: 100%; font-size: 14px; color: var(--muted); gap: 6px 16px; }
.foot .tools-nav b { color: var(--ink); }

/* "Get notified" box + coffee link (assets/notify.js) */
.updates { max-width: 1160px; margin: 0 auto; padding: 24px 20px 48px; }
.updates-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: center; background: var(--soft); border: 1px solid #e1e2fb; border-radius: 24px; padding: 32px; }
.updates-copy h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.updates-copy p { color: var(--muted); margin: 10px 0 0; }
.updates-row { display: flex; gap: 10px; }
.updates-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #d5d6e0; border-radius: 100px; padding: 12px 18px; }
.updates-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(84, 91, 254, .18); }
.updates-row .btn { flex: none; padding: 12px 22px; }
.updates-row .btn:disabled { opacity: .6; cursor: wait; }
.updates-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.updates-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0 6px; }
.updates-msg { font-size: 14.5px; font-weight: 600; margin: 6px 0 0 6px; min-height: 1em; }
.updates-msg:empty { display: none; }
.updates-msg[data-state="ok"] { color: var(--ok); }
.updates-msg[data-state="error"] { color: #b42318; }
.updates-coffee { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid #e1e2fb; font-size: 15px; color: var(--muted); }
.updates-coffee:only-child { border-top: 0; padding-top: 0; text-align: center; }
.updates-coffee a { font-weight: 700; text-decoration: none; }
.updates-coffee a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .updates-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .updates-row { flex-direction: column; }
  .updates-row .btn { width: 100%; }
}
.foot .foot-legal { max-width: none;  flex-basis: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.foot .foot-legal a { color: var(--muted); }

/* phone: tighter first screen so the sample invoices show sooner */
.eyebrow .short { display: none; }
@media (max-width: 640px) {
  .eyebrow .long { display: none; } .eyebrow .short { display: inline; }
  .eyebrow { font-size: 13px; margin-bottom: 14px; }
  .hero { padding-top: 24px; padding-bottom: 24px; gap: 24px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16.5px; margin: 12px 0 0; }
  .cta-row { gap: 10px; margin-top: 20px; }
  .cta-row .btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding-top: 8px; padding-bottom: 8px; }
  .trust { margin-top: 14px; }
  .trust li { font-size: 14.5px; }
  .hero-art { height: auto; aspect-ratio: 1 / 1.12; max-width: 400px; max-height: 450px; margin: 0 auto 8px; }
}
/* Sample thumbnails keep their real proportions (cropped from the top, never squashed) */
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1018; object-fit: cover; object-position: top; }
/* phone: features as a compact list (icon beside text) instead of 8 tall cards */
@media (max-width: 640px) {
  .features { gap: 10px; margin-top: 28px; }
  .f { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: 16px; }
  .f .ic { grid-row: span 2; margin: 0; }
  .f h3 { font-size: 16px; margin: 1px 0 3px; }
  .f p { font-size: 14.5px; line-height: 1.45; }
}
