/* QBO Maker, dark editorial theme. Serif display, mint-green accents, no framework. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #080b0a;
  --bg-2: #0c100e;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #eef3f0;
  --ink-soft: #aeb9b3;
  --muted: #7e8c85;
  --green: #36d399;
  --green-bright: #4ade9f;
  --green-deep: #16a974;
  --green-glow: rgba(54, 211, 153, 0.35);
  --green-ink: #062017;
  --neg: #f87171;
  --pos: #4ade9f;
  --radius: 16px;
  --max: 1120px;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -8%, rgba(54, 211, 153, 0.10), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.em { font-style: italic; color: var(--green); font-weight: 500; }

h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.01em; font-weight: 600; }
h1 { line-height: 1.06; }
h2 { line-height: 1.12; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 11, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.brand .mk { font-style: italic; color: var(--green); font-weight: 500; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--ink-soft); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; }
.nav a.navlink:hover { color: var(--ink); background: var(--surface); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer;
  background: var(--green);
  color: var(--green-ink); border: 1px solid var(--green);
  padding: 12px 22px; border-radius: 11px;
  transition: transform .05s ease, background .15s ease;
}
.btn:hover { color: var(--green-ink); background: var(--green-bright); border-color: var(--green-bright); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #2a322e; color: #6b7770; border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn.lg { font-size: 16.5px; padding: 15px 28px; }
.btn.secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--green); filter: none; }

/* ---- pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  padding: 7px 15px; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.pill.accent { color: var(--green-bright); border-color: rgba(54, 211, 153, 0.3); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge { display: inline-block; background: rgba(54, 211, 153, 0.12); color: var(--green-bright); border: 1px solid rgba(54, 211, 153, 0.28); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }

/* ---- hero ---- */
.hero { text-align: center; padding: 78px 0 36px; }
.hero .toppill { margin-bottom: 26px; }
.hero h1 { font-size: clamp(33px, 5.2vw, 58px); line-height: 1.1; margin: 0 auto 22px; max-width: 17ch; text-wrap: balance; }
.hero p.sub { font-size: clamp(16.5px, 2.2vw, 20px); color: var(--ink-soft); max-width: 620px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

/* ---- stats band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.stats .cell { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.stats .num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--green); }
.stats .lbl { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---- tool card ---- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.tool { padding: 28px; margin: 14px 0 48px; }
.step h3 { margin: 0 0 5px; font-size: 20px; }
.step .step-hint { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 17px; }
.step + .step { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.step .stepno { color: var(--green); font-style: italic; font-family: var(--serif); }

#drop, .dropzone {
  border: 1.5px dashed var(--line-2); border-radius: 13px; padding: 44px 20px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface);
}
#drop:hover, #drop.drag, .dropzone:hover, .dropzone.drag { border-color: var(--green); background: rgba(54, 211, 153, 0.06); }
#drop .big, .dropzone .big { font-size: 17px; font-weight: 600; color: var(--ink); }
#drop .small, .dropzone .small { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
#filename { font-weight: 600; color: var(--green-bright); }

/* ---- form controls (dark) ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 24px; }
.grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--ink); letter-spacing: .01em; }
.field select, .field input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14.5px;
  background: #0a0f0d; color: var(--ink); font-family: var(--sans); appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237e8c85' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field select:focus, .field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(54,211,153,.15); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.opts { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; margin-top: 18px; }
.opts .field { min-width: 150px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-soft); }
.check input { accent-color: var(--green); width: 16px; height: 16px; }

/* ---- preview table ---- */
table.preview { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.preview th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); padding: 8px; font-family: var(--sans); font-weight: 600; }
table.preview td { padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--ink-soft); }
table.preview td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.preview td.neg { color: var(--neg); }
table.preview td.pos { color: var(--pos); }
.preview-meta { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 4px; flex-wrap: wrap; gap: 8px; }
.preview-meta .count { font-weight: 700; font-size: 15px; color: var(--ink); }

/* ---- notices ---- */
.notice { padding: 13px 15px; border-radius: 11px; font-size: 14px; margin-top: 15px; }
.notice.warn { background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.3); color: #fcd34d; }
.notice.ok { background: rgba(54, 211, 153, 0.08); border: 1px solid rgba(54, 211, 153, 0.3); color: var(--green-bright); }
.notice.info { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.3); color: #7dd3fc; }
.generate-row { margin-top: 20px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }

/* ---- sections ---- */
section.band { padding: 70px 0; }
section.band.alt { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); }
.section-head h2 { font-size: clamp(27px, 4vw, 40px); margin: 12px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(54,211,153,.1); border: 1px solid rgba(54,211,153,.22); }
.feature .ic svg { width: 21px; height: 21px; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin: 14px 0 7px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---- pricing ---- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.price.hot { border: 1px solid var(--green); box-shadow: 0 0 0 1px rgba(54,211,153,.2), 0 24px 60px -28px var(--green-glow); }
.price .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--green-ink); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.price h3 { font-size: 20px; margin: 0 0 6px; }
.price .amt { font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.price .amt small { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; font-size: 14.5px; color: var(--ink-soft); }
.price li { padding: 7px 0 7px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price .btn { margin-top: auto; }

/* ---- FAQ ---- */
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; margin-bottom: 11px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; font-size: 16px; list-style: none; color: var(--ink); font-family: var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-soft); margin: 0 0 18px; font-size: 14.8px; }

/* ---- proof strip ---- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.proof .stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; padding: 20px; }
.proof .num { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--green); }
.proof .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ---- article (SEO/bank/blog pages) ---- */
.article { max-width: 760px; margin: 0 auto; padding: 8px 0 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 18px; }
.crumbs a { color: var(--ink-soft); }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; line-height: 1.08; }
.article .lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; }
.article h2 { font-size: 25px; margin: 38px 0 12px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p, .article li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 7px 0; }
.article strong { color: var(--ink); }
.article code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: var(--green-bright); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.article a { text-decoration: underline; text-underline-offset: 2px; }
.callout { background: rgba(54, 211, 153, 0.06); border: 1px solid rgba(54, 211, 153, 0.25); border-radius: 12px; padding: 18px 20px; margin: 22px 0; color: var(--ink-soft); }
.callout strong { color: var(--green-bright); }
.cta-band { background: var(--bg-2); border: 1px solid var(--green); box-shadow: 0 0 0 1px rgba(54,211,153,.12); border-radius: var(--radius); padding: 30px; text-align: center; margin: 40px 0; }
.cta-band h3 { font-size: 24px; margin: 0 0 8px; }
.cta-band p { color: var(--ink-soft); margin: 0 0 18px; }

/* related links grid */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; margin: 16px 0; }
.related a { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: border-color .15s; }
.related a:hover { border-color: var(--green); color: var(--ink); }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 50px 0 36px; margin-top: 50px; font-size: 14px; color: var(--ink-soft); background: rgba(255,255,255,.012); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer.site h4 { color: var(--ink); font-size: 13px; margin: 0 0 12px; font-family: var(--sans); letter-spacing: .02em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 8px 0; }
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--green); }
footer.site .fine { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 13px; }

/* ---- accessibility ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#drop:focus-visible, .dropzone:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
a:focus-visible, .btn:focus-visible, .navlink:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---- pro visibility ---- */
.pro-only { display: none; }
body.pro .pro-only { display: block; }

/* ---- mobile nav (CSS-only disclosure) ---- */
.menu { display: none; position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }
.menu[open] > summary { border-color: var(--green); }
.menu-panel { position: absolute; right: 0; top: 48px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; min-width: 210px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.menu-panel a { color: var(--ink-soft); padding: 11px 12px; border-radius: 8px; font-size: 15px; }
.menu-panel a:hover { background: var(--surface); color: var(--ink); }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .stats, .proof { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .nav a.navlink.hide-sm { display: none; }
  .menu { display: inline-block; }
  /* 16px controls stop iOS from auto-zooming the form */
  .field select, .field input[type=text], #opt-cleanup { font-size: 16px; }
}
@media (max-width: 640px) {
  .cards, .prices, .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* keep the header row from overflowing on small phones */
  .wrap { padding: 0 16px; }
  .nav { gap: 6px; }
  .brand { font-size: 20px; }
  header .nav .btn { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 520px) {
  footer.site .cols { grid-template-columns: 1fr; }
  /* keep the preview table readable: drop the Memo column */
  table.preview th:nth-child(4), table.preview td:nth-child(4) { display: none; }
  table.preview th, table.preview td { padding: 7px 6px; font-size: 13px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
}
