/* Receipt Rabbit's public site (issue #117): the brochure page and the privacy policy.
   No web fonts or scripts from anywhere else, so visiting sends nothing to anyone but us. */
:root {
    --paper: #ffffff;
    --page: #f3f4f6;
    --ink: #1f2937;
    --muted: #4b5563;
    --line: #e5e7eb;
    --green: #047857;
    --green-soft: #d1fae5;
    --mono: "Courier Prime", "Courier New", ui-monospace, Menlo, Consolas, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1f2937;
        --page: #111827;
        --ink: #f3f4f6;
        --muted: #d1d5db;
        --line: #374151;
        --green: #34d399;
        --green-soft: #064e3b;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 17px/1.6 var(--sans);
}
a { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font: 700 1.15rem var(--mono); }
.brand img { width: 40px; height: 40px; }
nav a { margin-left: 16px; font-size: 0.95rem; }

/* A paper slip with a torn bottom edge, like the receipt cards in the app */
.slip {
    background: var(--paper);
    padding: 28px 24px 40px;
    margin: 8px 0 32px;
    --tooth: 14px;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
h1, h2, h3 { font-family: var(--mono); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green);
         font: 700 0.8rem var(--mono); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.hero { text-align: center; }
.hero img { width: 112px; height: 112px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green-soft);
            color: var(--green); font: 700 1rem/2rem var(--mono); text-align: center; }
.steps b { display: block; font-family: var(--mono); }
.receipt-demo { font-family: var(--mono); font-size: 0.95rem; border: 1px dashed var(--line);
                padding: 12px 14px; margin: 16px 0; }
.receipt-demo div { display: flex; justify-content: space-between; gap: 12px; }
.receipt-demo .who { color: var(--green); font-weight: 700; }
.receipt-demo .total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; font-weight: 700; }
.note { color: var(--muted); font-size: 0.95rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); }
.table-scroll { overflow-x: auto; }
footer { padding: 0 0 40px; color: var(--muted); font-size: 0.9rem; }
footer a { margin-right: 16px; }
