/* Intelligent Receipt marketing site. No framework; system fonts; light + dark. */
:root {
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --brand-soft: #e8efff;
  --accent: #0f9d6b;
  --warn: #c2410c;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f5f7fc;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --radius: 16px;
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6ea0ff;
    --brand-2: #93b7ff;
    --brand-soft: #1b2a4a;
    --accent: #34d399;
    --warn: #fb923c;
    --ink: #e8edf6;
    --ink-2: #c3cbd8;
    --muted: #94a3b8;
    --line: #273248;
    --bg: #0b1220;
    --bg-2: #111a2c;
    --card: #142036;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink-2); background: var(--bg); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; text-decoration: none; border: 1px solid transparent; font-size: 1rem; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 9px 18px 10px;
  border-radius: 12px; background: #0f172a; color: #fff; text-decoration: none; line-height: 1.15; border: 1px solid #0f172a;
}
.store-sub { font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.store-name { font-size: 1.12rem; font-weight: 650; }
.store-btn.is-soon { background: transparent; color: var(--ink); border-color: var(--line); }
.store-btn.is-small { min-width: 140px; padding: 7px 14px; }
.store-btn.is-small .store-name { font-size: 1rem; }
@media (prefers-color-scheme: dark) { .store-btn:not(.is-soon) { background: #fff; color: #0f172a; border-color: #fff; } }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .grad { background: linear-gradient(90deg, #1d4ed8, #3b82f6 60%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero h1 .grad { background: linear-gradient(90deg, #6ea0ff, #93c5fd); -webkit-background-clip: text; background-clip: text; } }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .93rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; gap: 18px; }
.hero-visual .phone:nth-child(2) { transform: translateY(48px); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .phone:nth-child(2) { display: none; }
}

/* Phone frame */
.phone {
  width: 260px; max-width: 100%; border-radius: 34px; padding: 10px; background: #0f172a; box-shadow: 0 30px 60px rgba(15, 23, 42, .25);
  flex: 0 0 auto;
}
.phone img { border-radius: 25px; aspect-ratio: 600 / 1160; object-fit: cover; object-position: top; width: 100%; background: #f4f6fb; }
.phone.is-small { width: 220px; }

/* Logos / stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--ink); }
.stat span { font-size: .93rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; margin-left: 6px; }

/* Split feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row .phone { margin: 0 auto; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-text { order: 0; }
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; font-weight: 700; margin-bottom: 14px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience .card { padding: 22px; }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* Screens strip */
.screens { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; scroll-snap-align: center; text-align: center; }
.screens figcaption { margin-top: 14px; font-size: .93rem; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.is-featured { border: 2px solid var(--brand); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
@media (prefers-color-scheme: dark) { .plan-badge { color: #0b1220; } }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 12px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-note { color: var(--muted); font-size: .93rem; min-height: 2.8em; }
.plan .checklist { flex: 1; margin-bottom: 22px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare thead th { background: var(--bg-2); color: var(--ink); }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--ink); list-style: none; position: relative; padding-right: 54px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; }
.faq h2 { margin-top: 40px; font-size: 1.35rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #0ea5e9); color: #fff; border-radius: 24px; padding: 54px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeafe; font-size: 1.12rem; max-width: 640px; margin: 0 auto 26px; }
.cta-band .store-buttons { justify-content: center; }
.cta-band .store-btn.is-soon { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* Page header + prose (guides, legal) */
.page-head { padding: 60px 0 30px; background: radial-gradient(900px 400px at 90% -20%, var(--brand-soft), transparent 60%); }
.page-head p { font-size: 1.15rem; max-width: 760px; color: var(--muted); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 20px; margin: 1.5em 0; color: var(--ink-2); }
.callout.is-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-left-color: var(--warn); }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 2em; }
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; }
.article-meta { font-size: .92rem; color: var(--muted); }
.guide-cards .card a { text-decoration: none; }
.guide-cards .card h3 a { color: var(--ink); }
.guide-cards .card h3 a:hover { color: var(--brand); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 360px; margin: 14px 0 18px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
