/* Invoice Hop website. Same palette and type scale as the app (docs/PRD.md, UI design canvas). */
:root {
  --blue: #2A6AF0;
  --blue-dark: #1B50C4;
  --blue-soft: #DCE7FE;
  --blue-ink: #123A99;
  --bg: #EEF1F6;
  --card: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --green-bg: #DCFCE7; --green: #166534;
  --amber-bg: #FEF3C7; --amber: #92400E;
  --red-bg: #FEE2E2; --red: #991B1B;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.lead { font-size: 21px; color: var(--ink-2); max-width: 34em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.head-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: none; border-radius: 22px; background: var(--bg); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 16px; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 14px 16px; }
  .site-head .head-cta { display: none; }
  .logo { white-space: nowrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: none; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-ghost:hover { background: #E2E7F0; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-note { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* Sections */
.sec { padding: 96px 0; }
.sec-tint { background: var(--bg); }
.sec-h { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
@media (max-width: 720px) { .sec { padding: 64px 0; } .sec-h { margin-bottom: 32px; } }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(var(--card), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 span { color: var(--blue); }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { flex-shrink: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } }

/* Phone mockups (decorative copies of the app screens) */
.phone { width: 320px; max-width: 100%; margin: 0 auto; border-radius: 46px; background: #0F172A; padding: 10px; box-shadow: 0 30px 60px -20px rgba(15,23,42,0.35); }
.phone-screen { border-radius: 37px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 44px 16px 22px; min-height: 600px; font-size: 15px; }
.phone-screen.white { background: #fff; }
.ph-row { display: flex; justify-content: space-between; align-items: center; }
.ph-title { font-size: 26px; font-weight: 800; line-height: 1.15; }
.ph-card { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ph-said { background: #fff; border-radius: 18px; padding: 16px; font-size: 18px; line-height: 1.4; }
.ph-said em { font-style: normal; color: var(--blue); font-weight: 600; font-size: 14px; display: block; margin-top: 8px; }
.ph-line { display: flex; justify-content: space-between; gap: 10px; }
.ph-hl { background: var(--amber-bg); border-radius: 10px; padding: 8px 10px; }
.ph-small { font-size: 13px; color: var(--muted); }
.ph-total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--bg); padding-top: 8px; }
.ph-btn { margin-top: auto; height: 52px; border-radius: 26px; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ph-amount { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.ph-merchant { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.ph-avatar { width: 44px; height: 44px; border-radius: 22px; background: #EA580C; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ph-pay { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ph-pay b { font-weight: 700; }
.ph-pay span:last-child { color: var(--blue); font-weight: 700; }
.ph-foot { font-size: 12px; color: var(--muted); text-align: center; }

/* Pills */
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-blue { background: #DBEAFE; color: #1E40AF; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--red-bg); color: var(--red); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sec:not(.sec-tint) .card { background: var(--bg); }
.ico { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.card p { color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 20px; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip .split-media { order: -1; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-copy ul { margin: 0; padding-left: 22px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip .split-media { order: 0; } .split + .split { margin-top: 64px; } }

/* Payment chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }
.sec-tint .chips li { border-color: transparent; }

/* Timeline mock */
.tl { list-style: none; margin: 0; padding: 22px 24px; background: var(--card); border-radius: var(--radius); }
.tl li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 16px; position: relative; }
.tl li::before { content: ""; width: 14px; height: 14px; border-radius: 7px; background: var(--blue); margin-top: 5px; }
.tl li::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 0; width: 2px; background: #CBD5E1; }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::after { display: none; }
.tl li.done-ok::before { background: var(--green); }
.tl li.next::before { background: #fff; border: 2px solid #94A3B8; }
.tl b { display: block; font-size: 17px; }
.tl span { font-size: 15px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; border: 2px solid transparent; }
.plan.pro { border-color: var(--blue); }
.plan-name { display: flex; align-items: center; justify-content: space-between; }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.plan-price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.plan li svg { margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* Tables */
.table-box { overflow-x: auto; border-radius: var(--radius); background: var(--card); }
.sec:not(.sec-tint) .table-box { background: var(--bg); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 17px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 15px; color: var(--muted); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody th { font-weight: 600; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: var(--radius-sm); }
.sec:not(.sec-tint) .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 19px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }

/* Callout */
.ibox { background: var(--blue-soft); color: var(--blue-ink); border-radius: var(--radius-sm); padding: 18px 22px; font-size: 17px; }
.ibox b { color: var(--blue-ink); }

/* CTA strip */
.cta-strip { background: var(--ink); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #CBD5E1; margin-top: 12px; }
.cta-strip .btn-ghost { background: #fff; }
@media (max-width: 820px) { .cta-strip { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Breadcrumbs and page hero */
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #94A3B8; }
.crumbs a { color: var(--muted); }
.page-hero { padding: 56px 0 48px; background: var(--bg); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero .btn-ghost, .sec-tint .btn-ghost { background: var(--card); }
.page-hero .btn-ghost:hover, .sec-tint .btn-ghost:hover { background: #E2E7F0; }

/* Long text (legal, guides) */
.prose { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.prose h2 { font-size: 30px; color: var(--ink); margin-top: 28px; }
.prose h3 { color: var(--ink); margin-top: 10px; }
.prose ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose .table-box { background: var(--bg); }

/* Footer */
.site-foot { background: var(--bg); padding: 56px 0 40px; font-size: 16px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h2 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.site-foot a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-foot a:hover { color: var(--blue); text-decoration: underline; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid #CBD5E1; padding-top: 24px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .foot-brand { grid-column: 1 / -1; } }

/* Generated SEO pages */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose .capsule { font-size: 20px; color: var(--ink); }
.prose table caption, .table-box caption { text-align: left; padding: 16px 20px 0; font-size: 15px; color: var(--muted); }
.prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.mistakes h3 { font-size: 19px; margin: 0 0 10px; color: var(--blue-ink); }
.mistakes ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.example { background: var(--card); border: 2px solid var(--blue-soft); border-radius: var(--radius-sm); padding: 20px 22px; }
.sec:not(.sec-tint) .example { background: var(--bg); border-color: transparent; }
.example-h { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.disclaimer { font-size: 16px; background: var(--amber-bg); color: #78350F; border-radius: var(--radius-sm); padding: 16px 20px; }
.related-h { font-size: 24px; margin-bottom: 14px; }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; background: var(--bg); border-radius: 999px; padding: 10px 18px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* Free tools */
.tool-title { font-size: clamp(26px, 3vw, 34px); }
.tool-note { margin: 8px 0 24px; font-size: 16px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1040px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-form { display: flex; flex-direction: column; gap: 14px; }
.tool-form fieldset { margin: 0; border: none; background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-form legend { font-weight: 700; font-size: 17px; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.tool-form fieldset > .tl-lines, .tool-form fieldset > button, .tool-form legend, .tf-wide, .tf:has(textarea) { grid-column: 1 / -1; }
.tool-form fieldset > button { justify-self: start; }
.tf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tf label { font-size: 14px; font-weight: 600; color: var(--muted); }
.tf input, .tf select, .tf textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 1px solid #CBD5E1; border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
.tf input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; margin: 10px 0; accent-color: var(--blue); }
.tf textarea { resize: vertical; }
.tl-lines { display: flex; flex-direction: column; gap: 10px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto auto; gap: 8px; align-items: end; background: var(--bg); border-radius: 12px; padding: 10px; }
.tl-row .tf-desc { grid-column: 1 / -1; }
.tl-row .tf input { background: #fff; }
.tl-row .tf label { font-size: 13px; }
.tl-remove { width: 44px; height: 44px; border: none; border-radius: 22px; background: #fff; font-size: 22px; color: var(--red); cursor: pointer; }
@media (max-width: 560px) {
  .tool-form fieldset { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
  .tl-row .tf-taxable { grid-column: 1 / 2; }
}
.tool-out { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1040px) { .tool-out { position: static; } }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions .btn-ghost { background: var(--card); }
.paper { background: #fff; border-radius: 6px; padding: 32px; box-shadow: 0 10px 30px -12px rgba(15,23,42,0.25); font-size: 15px; color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.paper p { margin: 0; }
.pp-head { display: flex; justify-content: space-between; gap: 16px; }
.pp-right { text-align: right; }
.pp-biz { font-size: 20px; font-weight: 800; }
.pp-title { font-size: 24px; font-weight: 800; color: var(--blue); }
.pp-small { font-size: 13px; color: var(--muted); }
.pp-block { display: block; font-weight: 400; }
.pp-pre { white-space: pre-line; }
.pp-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pp-strong { font-weight: 700; font-size: 17px; }
.paper table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
.paper th, .paper td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.paper td { text-align: right; white-space: nowrap; }
.pp-lines thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pp-lines thead th:last-child { text-align: right; }
.pp-lines tbody th { font-weight: 600; }
.pp-sums { width: 70% !important; margin-left: auto; }
.pp-sums th { font-weight: 500; text-align: left; }
.pp-sums tr.strong th, .pp-sums tr.strong td { font-weight: 800; font-size: 17px; }
.pp-sums tr:last-child th, .pp-sums tr:last-child td { border-bottom: none; }
.pp-note { background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.pp-sign { border-top: 1px solid var(--ink); margin-top: 36px; padding-top: 6px; width: 60%; }
.pp-foot { font-size: 11px; color: var(--muted); text-align: center; }

@media print {
  .site-head, .site-foot, .cta-strip, .menu-btn { display: none; }
  .sec { padding: 24px 0; }
  body.printing-doc * { visibility: hidden; }
  body.printing-doc .paper, body.printing-doc .paper * { visibility: visible; }
  body.printing-doc .paper { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0; }
}
