/* Recpt — Option D: minimal Aussie sport
 *
 * Design tokens + components. JS-injected markup uses .card .btn .btn-primary
 * .btn-secondary .toast etc — those class names are preserved here, just
 * restyled. New layout classes prefixed with .app- and .hero- live below.
 */

:root {
  /* Palette */
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --accent: #ff5722;
  --accent-dark: #e54311;
  --soft: #fafafa;

  /* Status */
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;

  /* Legacy aliases (kept for JS-injected HTML compat) */
  --primary: var(--ink);
  --primary-dark: var(--accent);
  --orange: var(--accent);
  --card: var(--bg);
  --text: var(--ink);
  --border: var(--line);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Geist", -apple-system, "Inter", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Make landing-page sections use white instead of soft grey */
body.public-page { background: var(--bg); }

a { color: var(--ink); }

img { max-width: 100%; height: auto; }

/* ── Containers ──────────────────────────────────────────────────── */

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── Labels & type ───────────────────────────────────────────────── */

.label-mini {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
}
.label-mini-muted { color: var(--muted); }

.title-xl {
  font-size: 112px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -5px;
}
.title-lg {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.title-md {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}
.title-sm {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.accent { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────── */

/* ── Buttons — Recpt clay style ──────────────────────────────────
   All buttons share: slightly square corners (14px), dark border,
   hard offset shadow, press-down animation on hover/active.
   Primary = orange fill. Outline = white fill. Danger = red fill.
   ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  box-shadow: 3px 3px 0px var(--ink);
  transition: box-shadow 0.1s, transform 0.1s, background 0.15s, color 0.15s;
  position: relative;
}
.btn:hover {
  box-shadow: 1px 1px 0px var(--ink);
  transform: translate(2px, 2px);
  background: var(--accent);
  color: #fff;
}
.btn:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* Primary — orange */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }

/* Accent — alias for primary */
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent); color: #fff; }

/* Outline — white fill, shows on light backgrounds */
.btn-outline { background: var(--bg); color: var(--ink); }
.btn-outline:hover { background: var(--soft); color: var(--ink); }

/* Ghost — no fill, no shadow, for low-priority inline actions */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--soft);
  box-shadow: none;
  transform: none;
}
.btn-ghost:active { transform: none; }

/* Secondary — subtle grey, legacy alias */
.btn-secondary { background: var(--soft); color: var(--ink); border-color: var(--line); box-shadow: 3px 3px 0px var(--line); }
.btn-secondary:hover { background: var(--line); box-shadow: 1px 1px 0px var(--line); }

/* Danger — red */
.btn-danger { background: var(--bg); color: var(--red); border-color: var(--red); box-shadow: 3px 3px 0px var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 1px 1px 0px var(--red); }

/* Sizes */
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 44px; box-shadow: 2px 2px 0px var(--ink); }
.btn-sm:hover { box-shadow: 1px 1px 0px var(--ink); transform: translate(1px, 1px); }
.btn-sm:active { box-shadow: none; transform: translate(2px, 2px); }
.btn-lg { padding: 16px 32px; font-size: 17px; box-shadow: 4px 4px 0px var(--ink); }
.btn-lg:hover { box-shadow: 2px 2px 0px var(--ink); }
.btn-block { width: 100%; }

/* Focus */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Arrow nudge on hover */
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }



/* ── Form controls ───────────────────────────────────────────────── */

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Cards ───────────────────────────────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.card-tight { padding: 16px; }
.card-feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-feature label, .card-feature .lbl { color: rgba(255,255,255,0.6); }

/* ── Public-page nav (landing, privacy, terms) ───────────────────── */

.public-nav {
  padding: 16px 24px;
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.public-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0px var(--ink);
  padding: 14px 24px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.public-nav .logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.public-nav .logo .dot { color: var(--accent); }
.public-nav .links {
  display: flex;
  align-items: center;
}
.public-nav .links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.public-nav .links a:not(.btn):hover { color: var(--accent); }
/* CTA button in nav — inherits clay .btn, just tighten padding */
.public-nav .links a.btn {
  margin-left: 20px;
  padding: 9px 18px;
  font-size: 14px;
  color: #fff !important;
  font-weight: 700;
}
/* When laid over the dark hero, make the nav links/logo white */
.hero ~ .public-nav .logo,
.hero-overlay-nav .logo,
.hero-overlay-nav .links a { color: #fff; }


/* ── Hero (landing) ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg video, .hero-bg .hero-css-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-css-bg {
  background:
    radial-gradient(at 20% 30%, #1a1a1a 0%, transparent 50%),
    radial-gradient(at 80% 70%, #2a1e16 0%, transparent 55%),
    radial-gradient(at 60% 20%, #ff5722 0%, transparent 35%),
    radial-gradient(at 30% 80%, #1a3a3a 0%, transparent 45%),
    #0a0a0a;
  background-size: 200% 200%;
  animation: drift 24s ease-in-out infinite alternate;
  filter: saturate(0.9) brightness(0.7);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, transparent 60%);
}
@keyframes drift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 0%, 30% 70%; }
  50%  { background-position: 30% 50%, 70% 60%, 60% 40%, 40% 50%; }
  100% { background-position: 100% 100%, 0% 0%, 40% 80%, 60% 30%; }
}
.hero .label-mini { color: rgba(255,255,255,0.7); }
.hero .label-mini.accent { color: var(--accent); }
.hero h1 {
  font-size: 112px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -5px;
  margin: 24px 0 40px;
  max-width: 11ch;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 22px;
  max-width: 50ch;
  line-height: 1.45;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.3);
}
.hero .meta { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 32px; }
.hero .ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--accent); color: #fff; }
.hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50%      { opacity: 1;   transform: translate(-50%, 4px); }
}

/* ── Public-page sections (landing, legal) ───────────────────────── */

.section {
  padding: 100px 0;
  background: var(--bg);
}
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head .label-mini { color: var(--muted); margin-bottom: 16px; }
.section-head h2 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ink);
}
.section-head h2 .accent { color: var(--accent); }

/* ── Expense summary section (#summary) ───────────────────────── */
.summary-grid {
  display: grid;
  /* Viewer-dominant: the viewer is the FIRST column (order:0), so the wide
     track goes first. The A4 page renders ~2x larger than an even split, so the
     summary text is actually readable (was 1fr 1fr → page shrank to ~41%). */
  grid-template-columns: 1.28fr 0.72fr;
  gap: 48px;
  align-items: center;
}
.summary-copy h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 18px;
}
.summary-copy h2 .accent { color: var(--accent); }
.summary-copy .label-mini { color: var(--accent); margin-bottom: 14px; }
.summary-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  max-width: 44ch;
  margin-bottom: 26px;
}
.summary-feat { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.summary-feat li { font-size: 15px; font-weight: 500; display: flex; gap: 11px; align-items: flex-start; }
.summary-tick {
  flex: 0 0 22px; height: 22px; border-radius: 7px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  border: 2px solid var(--ink);
}
.summary-fineprint { font-size: 11px; color: var(--muted); max-width: 42ch; line-height: 1.5; }

/* Zig-zag: viewer on the LEFT, copy on the RIGHT, to alternate with the hero */
.summary-viewer-wrap { order: 0; }
.summary-copy { order: 1; }

.summary-viewer-wrap { display: flex; justify-content: center; min-width: 0; }
.summary-viewer {
  width: 100%; max-width: 100%;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.summary-viewer-bar {
  height: 38px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  border-bottom: 2.5px solid var(--ink);
  background: var(--soft);
}
.summary-viewer-bar .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.summary-viewer-bar .dot.r { background: #ff5f57; }
.summary-viewer-bar .dot.y { background: #febc2e; }
.summary-viewer-bar .dot.g { background: #28c840; }
.summary-fname { margin-left: 8px; font-size: 12px; font-weight: 600; color: #333; }
.summary-fmt { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.summary-scroll {
  height: 520px; overflow-y: auto;
  background: #e9e9ec; padding: 16px;
  scroll-behavior: smooth;
}
.summary-scroll::-webkit-scrollbar { width: 10px; }
.summary-scroll::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 6px; }
.summary-scroll img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  margin-bottom: 16px;
}
.summary-scroll img:last-of-type { margin-bottom: 0; }
.summary-scroll-hint { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 0 2px; font-weight: 600; }

@media (max-width: 860px) {
  .summary-grid { grid-template-columns: 1fr; gap: 40px; }
  .summary-copy h2 { font-size: 34px; }
  /* stack with copy first on mobile */
  .summary-copy { order: 0; }
  .summary-viewer-wrap { order: 1; padding: 2px 6px 14px; }
  /* breathing room so the hard shadow isn't jammed against the screen edge */
  .summary-viewer { max-width: 100%; box-shadow: 7px 7px 0 var(--ink); }
  .summary-scroll { height: 440px; }
}

/* 3-up steps with hairline grid */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); padding: 40px 32px; }
.step .step-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.step h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.step-chip { display: none; }   /* mobile-only — see breakpoint below */

@media (max-width: 560px) {
  /* Mobile: number-chip on the left, content on the right.
     Hides the "01 / LINK" eyebrow since the chip already shows the number. */
  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 20px;
    align-items: start;
  }
  .step-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--accent); color: var(--bg);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 900; font-size: 16px;
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .step .step-label { display: none; }
  .step h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.3px; }
  .step p { font-size: 13px; line-height: 1.5; }
}

/* Big stat row (legacy — kept for any callers; current stats section uses .void-rcpt below) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat .num {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 12px;
}
.stat .label-text { font-size: 14px; color: var(--muted); max-width: 22ch; }

/* ───── VOID receipt — "Your Saturday EOFY" stamped out ───── */
.void-rcpt {
  background: var(--bg);
  padding: 32px 44px;
  box-shadow: 0 0 0 1.5px var(--line), 8px 8px 0 var(--ink);
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  position: relative;
  max-width: 580px;
  margin: 12px auto 8px;
  transform: rotate(-0.4deg);
}
.void-rcpt::before, .void-rcpt::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 6px 5px, var(--bg) 5px, transparent 6px);
  background-size: 12px 10px; background-repeat: repeat-x;
}
.void-rcpt::before { top: -10px; }
.void-rcpt::after  { bottom: -10px; transform: rotate(180deg); }

.void-stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 4px solid #c0392b;
  color: #c0392b;
  padding: 12px 32px;
  font-weight: 900; font-size: 44px; letter-spacing: 8px;
  background: transparent;
  text-shadow: 1px 1px 0 rgba(192,57,43,0.15);
  pointer-events: none;
  z-index: 3;
  opacity: 0.92;
  font-family: inherit;
}

.void-head {
  font-size: 11px; letter-spacing: 1.5px; color: var(--muted);
  border-bottom: 1px dashed var(--line); padding-bottom: 10px;
  display: flex; justify-content: space-between; text-transform: uppercase;
}
.void-head .when { color: var(--muted); }

.void-body { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.void-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 16px; color: var(--muted); opacity: 0.7;
  gap: 14px;
}
.void-row span:first-child { flex: 1; min-width: 0; }
.void-row span:last-child { white-space: nowrap; }

.void-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 4px;
}
.void-total .lbl { font-size: 12px; letter-spacing: 2px; font-weight: 800; color: var(--ink); }
.void-total .val { font-size: 36px; font-weight: 900; letter-spacing: -1.5px; color: var(--ink); }

.void-after {
  margin-top: 28px;
  padding: 16px 24px;
  background: #fff4ec;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
  box-shadow: 4px 4px 0 var(--accent);
  gap: 14px;
}
.void-after .lbl { font-weight: 700; font-size: 14px; }
.void-after .val { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: -1px; white-space: nowrap; }

@media (max-width: 600px) {
  .void-rcpt { padding: 22px 18px; transform: none; max-width: 100%; }
  .void-stamp { font-size: 30px; letter-spacing: 5px; padding: 8px 20px; border-width: 3px; }
  .void-row { font-size: 13px; }
  .void-total .val { font-size: 28px; }
  .void-after { padding: 12px 16px; flex-wrap: wrap; gap: 6px; }
  .void-after .lbl { font-size: 12px; }
  .void-after .val { font-size: 22px; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card {
  background: var(--soft);
  border-radius: 24px;
  padding: 40px 32px;
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-2px); }
.price-card.featured {
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -10px; right: 24px;
  background: var(--accent); color: var(--bg);
  padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.price-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.3px; }
.price-card .price { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -3px; }
.price-card .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); vertical-align: middle; }
.price-card.featured .price small { color: rgba(255,255,255,0.6); }
.price-card ul { list-style: none; margin: 28px 0 32px; flex: 1; }
.price-card li { padding: 8px 0; font-size: 14px; }
.price-card li::before { content: "→  "; color: var(--accent); font-weight: 700; }
.price-card.featured .price small { color: rgba(255,255,255,0.6); }
.price-card .btn { width: 100%; margin-top: auto; }
.price-card.featured .btn {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
  box-shadow: 3px 3px 0px rgba(255,255,255,0.4);
}
.price-card.featured .btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 1px 1px 0px rgba(255,255,255,0.4);
  transform: translate(2px, 2px);
}

/* Section divider — clay dot */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
}

/* Testimonials — receipt-paper style (matches pricing receipts). */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rcpt-q {
  background: var(--bg);
  padding: 22px 26px 18px;
  box-shadow: 0 0 0 1px var(--line), 5px 5px 0 var(--ink);
  border-radius: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  position: relative;
  /* Push quote + sig to the bottom so signature lines align across all
     three cards (CSS grid already stretches cards to equal height).
     Shorter quotes get whitespace at the top + room for the stamp. */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
}
.rcpt-q:nth-child(1) { transform: rotate(-0.6deg); }
.rcpt-q:nth-child(2) { transform: rotate(0.5deg); }
.rcpt-q:nth-child(3) { transform: rotate(-0.3deg); }
.rcpt-q::before, .rcpt-q::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px;
  background-image: radial-gradient(circle at 5px 4px, var(--bg) 4px, transparent 5px);
  background-size: 10px 8px; background-repeat: repeat-x;
}
.rcpt-q::before { top: -8px; }
.rcpt-q::after  { bottom: -8px; transform: rotate(180deg); }

.rcpt-q-stamp {
  position: absolute; top: 14px; right: 14px;
  border: 1.5px dashed var(--accent);
  padding: 6px 8px;
  text-align: center;
  background: var(--bg);
  color: var(--accent);
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  line-height: 1.1;
  transform: rotate(6deg);
  z-index: 2;
}
.rcpt-q-stamp svg {
  display: block; margin: 0 auto 2px;
  width: 16px; height: 16px;
  stroke: var(--accent);
}
.rcpt-q-quote {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  margin: 18px 0 14px;
  padding-right: 80px;   /* don't run under the stamp on the first line */
}
.rcpt-q-sig {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.rcpt-q-sig .who {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 22px; color: var(--ink); line-height: 1;
}
.rcpt-q-sig .role {
  font-size: 10px; color: var(--muted); letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .testimonials { grid-template-columns: 1fr; gap: 24px; }
  .rcpt-q { transform: none !important; }
}


.section-divider-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.section-divider-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  flex-shrink: 0;
}

/* FAQ details */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
details.faq summary {
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; color: var(--accent); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Footer (used on all public pages) */
footer.site {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 32px;
  font-size: 14px;
  margin-top: 80px;
}
footer.site .container { display: block; }
footer.site .site-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer.site .site-brand .logo { color: var(--bg); font-size: 22px; font-weight: 700; text-decoration: none; }
footer.site .site-brand .logo .dot { color: var(--accent, #ff7a00); }
footer.site .site-blurb { margin-top: 12px; opacity: 0.6; line-height: 1.55; max-width: 320px; }
footer.site .site-col { display: flex; flex-direction: column; }
footer.site .site-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin: 0 0 16px; }
footer.site .site-col a { display: block; color: var(--bg); text-decoration: none; opacity: 0.75; margin: 0 0 10px; padding: 0; }
footer.site .site-col a:hover { opacity: 1; }
footer.site .site-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.5;
  font-size: 12px;
}
footer.site .site-disclaimer { font-style: italic; }
@media (max-width: 720px) {
  footer.site .site-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site .site-brand { grid-column: 1 / -1; }
  footer.site .site-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── App shell (post-login pages) ─────────────────────────────────── */

.app-nav {
  background: transparent;
  border-bottom: none;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-nav .inner {
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0px var(--ink);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-nav .logo {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.app-nav .logo .dot { color: var(--accent); }
.app-nav-links { display: flex; gap: 4px; }
.app-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.app-nav-links a:hover { color: var(--ink); background: var(--soft); }
.app-nav-links a.active {
  color: var(--accent);
  font-weight: 700;
  background: transparent;
  position: relative;
}
.app-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
/* Mobile nav */
@media (max-width: 560px) {
  .app-nav { padding: 12px 16px; }
  .app-nav .inner { padding: 10px 16px; box-shadow: 4px 4px 0px var(--ink); }
  .app-nav .logo { font-size: 15px; }
  .app-nav-links { gap: 2px; }
  .app-nav-links a { padding: 6px 10px; font-size: 13px; }
  .app-user > span { display: none; }
}
.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ── App page — white bg (post-login dashboard pages) ─────────── */
body.app-page { background: var(--bg); }

/* ── Deductions page header ───────────────────────────────────── */
.ded-page-head {
  margin-bottom: 32px;
}
.ded-page-head .label-mini {
  margin-bottom: 10px;
}
.ded-page-head h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
@media (min-width: 760px) {
  .ded-page-head h1 { font-size: 52px; }
}
@media (max-width: 560px) {
  .app-main { padding: 28px 20px 60px; }
  .ded-page-head h1 { font-size: 32px; }
}

/* ── Deductions page footer ───────────────────────────────────── */
.ded-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}
.ded-footer a {
  color: var(--ink);
  text-decoration: none;
}
.ded-footer a:hover { text-decoration: underline; }

/* ── Deductions summary card ──────────────────────────────────── */
.ded-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
}
@media (min-width: 760px) {
  .ded-summary {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 36px;
  }
}
.ded-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 760px) {
  .ded-summary-right { align-items: flex-end; }
}
.ded-summary-lbl {
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.ded-summary-total {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
}
@media (max-width: 560px) {
  .ded-summary-total { font-size: 40px; }
}
.ded-summary-cents {
  color: rgba(255,255,255,.5);
  font-weight: 700;
  font-size: .6em;
}
.ded-summary-sub {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.ded-summary-sub .accent { color: var(--accent); font-weight: 600; }

/* ── Section heads (Categories, Entries, etc.) ────────────────── */
.ded-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 32px 0 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.ded-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
}

/* ── Category grid ────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .08s;
}
.cat-card:hover { border-color: var(--ink); }
.cat-card:active { transform: scale(.98); }
.cat-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cat-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.cat-count { font-size: 11px; color: var(--muted); font-weight: 500; }
.cat-amount { margin-top: 12px; font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
/* Active state: ink fill, orange amount */
.cat-card.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cat-card.active .cat-count { color: rgba(255,255,255,.55); }
.cat-card.active .cat-name { color: #fff; }
.cat-card.active .cat-amount { color: var(--accent); }

/* ── Deduction list + rows ────────────────────────────────────── */
.ded-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.ded-row {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}
.ded-row:hover { border-color: #c8c8cb; }
.ded-row.open  { border-color: var(--ink); }

.ded-row-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
}
/* Desktop: 4-col grid */
@media (min-width: 760px) {
  .ded-row-head {
    grid-template-columns: 80px 1fr 110px 80px;
    gap: 16px;
  }
}

/* Date column — visible only on desktop */
.ded-col-date {
  display: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
@media (min-width: 760px) { .ded-col-date { display: block; } }

/* Vendor column */
.ded-col-vendor { min-width: 0; }
.row-vendor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-note { color: var(--accent); font-size: 13px; flex-shrink: 0; }
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}
/* Hide date in meta on desktop (shown in its own column) */
@media (min-width: 760px) { .row-meta-date { display: none; } }
.row-receipt { font-size: 12px; }
.row-receipt-miss { color: var(--amber); font-weight: 600; }
.row-cat {
  background: var(--soft);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}

/* Amount column */
.ded-col-amount {
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
  white-space: nowrap;
}

/* Work % column — desktop only */
.ded-col-pct {
  display: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
@media (min-width: 760px) { .ded-col-pct { display: block; } }

/* ── Vendor pills ─────────────────────────────────────────────── */
.vendor-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.vendor-pills::-webkit-scrollbar { display: none; }
.vendor-pill {
  flex: 0 0 auto;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.vendor-pill:hover { border-color: var(--ink); }
.vendor-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Date filter pills */
.date-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.date-filter-pills::-webkit-scrollbar { display: none; }
.date-pill {
  flex: 0 0 auto;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.date-pill:hover { border-color: var(--ink); }
.date-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Expanded row body */
.ded-row-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  border-radius: 0 0 14px 14px;
}

/* Inline edit fields grid */
.inline-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .inline-fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .inline-fields { grid-template-columns: 1fr 1fr 2fr; }
}
.inline-field-wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .inline-field-wide { grid-column: auto; }
}
.inline-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 6px;
}
.inline-label strong {
  color: var(--accent);
  font-size: 14px;
  margin-left: 4px;
}
.inline-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: var(--line);
}
.inline-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: transparent;
}
.inline-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.inline-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px 0 0 3px;
  background: var(--accent);
}
.inline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: -7px;
}
.inline-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.inline-input {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  transition: border-color .15s;
}
.inline-input:focus-within { border-color: var(--ink); }
.inline-prefix { color: var(--muted); font-weight: 700; font-size: 15px; }
.inline-input input.inline-amt-input {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  padding: 0 6px;
  height: 100%;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.inline-seg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  height: 44px;
}
.seg-btn {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.seg-btn.on { background: var(--accent); color: #fff; }
.inline-select {
  width: 100%;
  height: 44px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.inline-select:focus { outline: none; border-color: var(--ink); }

/* Save / Cancel bar */
.inline-savebar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-savebar .btn-primary { flex: 1; }

/* Action row */
.inline-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.inline-action-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  line-height: 44px;
  transition: border-color .12s, background .12s;
  flex-shrink: 0;
}
.inline-action-btn:hover, .inline-action-btn:active {
  border-color: var(--accent);
  background: var(--soft);
}
.inline-action-btn.muted {
  opacity: .45;
}
.inline-action-btn.danger {
  border-color: var(--red);
}
.inline-action-btn.danger:hover, .inline-action-btn.danger:active {
  border-color: var(--red);
  background: #fff0ee;
}

/* CSS tooltips on desktop hover */
.inline-action-btn {
  position: relative;
}
.inline-action-btn[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}
.inline-action-btn[data-tip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  pointer-events: none;
  z-index: 10;
}
@media (max-width: 760px) {
  .inline-action-btn[data-tip]:hover::after,
  .inline-action-btn[data-tip]:hover::before { display: none; }
}

/* ⋯ More dropdown */
.inline-more-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.inline-more-item {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.inline-more-item:hover { background: var(--soft); }
.inline-more-item.danger { color: var(--red); }
.inline-more-item.danger:hover { background: #fff0ee; }

/* ── FY picker ────────────────────────────────────────────────── */
.fy-picker-wrap {
  position: relative;
  align-self: flex-start;
}
.fy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fy-btn:hover { background: var(--accent); color: #fff; }
.fy-chev { font-size: 10px; opacity: .7; }
.fy-picker-sheet {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 20;
}
.fy-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg);
  color: var(--ink);
}
.fy-picker-item:last-child { border-bottom: none; }
.fy-picker-item:hover { background: var(--soft); }
.fy-picker-item.active { color: var(--accent); }
.fy-picker-amt { color: var(--muted); font-weight: 500; font-size: 14px; }

/* Export link in summary overflow */
.ded-export-link {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
}
.ded-export-link:hover { color: #fff; }

/* Mobile: bottom sheet feel */
@media (max-width: 560px) {
  .fy-picker-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
}


.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-head .subtitle { color: var(--muted); margin-top: 12px; font-size: 16px; }
.page-head h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.page-head h1 .accent { color: var(--accent); }

/* Summary cards row */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.summary-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
}
.summary-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.summary-card .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.summary-card.featured .lbl { color: rgba(255,255,255,0.6); }
.summary-card .val { font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.summary-card .val .accent { color: var(--accent); }
.summary-card .delta { font-size: 12px; color: var(--green); margin-top: 6px; font-weight: 600; }

/* Toolbar (filters + search) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.filter-btn.active { background: var(--ink); color: var(--bg); }
.filter-btn:hover:not(.active) { color: var(--ink); }
.search-input {
  flex: 1;
  max-width: 280px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  font-size: 14px;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--ink); }

/* Tables */
.table-wrap {
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--soft); }
td.amount, td.num { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
td.date { color: var(--muted); font-variant-numeric: tabular-nums; }
td.vendor { font-weight: 600; }

/* ATO code chips */
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chip-d1 { background: #ffe8df; color: #c2410c; }
.chip-d2 { background: #dbeafe; color: #1d4ed8; }
.chip-d3 { background: #ede9fe; color: #6d28d9; }
.chip-d4 { background: #d1fae5; color: #047857; }
.chip-d5 { background: #fef3c7; color: #b45309; }
.chip-d9 { background: #fce7f3; color: #be185d; }
.chip-d10 { background: #fef2f2; color: #b91c1c; }
.chip-prop { background: #e0e7ff; color: #4338ca; }
.chip-default { background: var(--soft); color: var(--ink); }

/* Confidence pills (used in review.html) */
.confidence-high { color: var(--green); font-weight: 700; }
.confidence-medium { color: var(--amber); font-weight: 700; }
.confidence-low { color: var(--red); font-weight: 700; }

/* Modal (edit dialog) */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-content {
  background: var(--bg);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content h3 { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { display: block; animation: toast-in 0.2s ease-out; }
.toast.toast-error { background: #e53935; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Footer bar (under tables) */
.footer-bar {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-bar strong { color: var(--ink); }

/* ── Login split layout ──────────────────────────────────────────── */

.auth-split {
  min-height: calc(100vh - 65px); /* minus topbar */
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-wrap h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin: 16px 0 12px;
}
.auth-subtitle { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }

.auth-drift-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 60px 48px;
  isolation: isolate;
}
.auth-drift-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(at 20% 30%, #1a1a1a 0%, transparent 50%),
    radial-gradient(at 80% 70%, #2a1e16 0%, transparent 55%),
    radial-gradient(at 60% 20%, #ff5722 0%, transparent 35%),
    radial-gradient(at 30% 80%, #1a3a3a 0%, transparent 45%),
    #0a0a0a;
  background-size: 200% 200%;
  animation: drift 24s ease-in-out infinite alternate;
  filter: saturate(0.9) brightness(0.7);
}
.auth-drift-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  mix-blend-mode: overlay;
}
.auth-drift-quote {
  max-width: 420px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}
.auth-drift-quote cite {
  display: block;
  font-style: normal;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 600;
}

.auth-demo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.auth-topbar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.auth-topbar .logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.auth-topbar .logo .dot { color: var(--accent); }

/* ── Error / success messages ───────────────────────────────────── */

.error-msg {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.error-msg.show { display: block; }

.success-msg {
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Misc utility ────────────────────────────────────────────────── */

.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.full-width { width: 100%; }
.hidden { display: none !important; }

/* Disclaimer banner */
.disclaimer-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 24px;
}
.disclaimer-banner strong { font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .container, .container-wide { padding: 0 20px; }
  .public-nav { padding: 12px 16px; }
  .public-nav .container { padding: 10px 16px; }
  .public-nav .links a:not(.btn) { display: none; }
  .hero { min-height: 90vh; padding: 80px 0 60px; }
  .hero h1 { font-size: 56px; letter-spacing: -2px; margin: 16px 0 28px; }
  .hero .lede { font-size: 18px; margin-bottom: 28px; }
  .section { padding: 60px 0; }
  /* Legal pages (terms/privacy/security): first section sits directly under
     the fixed .public-nav (~90px tall on mobile) — 60px top padding tucked
     the heading behind the nav pill. */
  .public-nav + .section { padding-top: 120px; }
  .section-head h2, .page-head h1 { font-size: 36px; letter-spacing: -1px; }
  .stat .num { font-size: 56px; letter-spacing: -2px; }
  .steps, .stat-row, .pricing, .summary { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; min-height: calc(100vh - 65px); }
  .auth-drift-side { display: none; }
  .auth-form-side { align-items: flex-start; padding: 40px 24px; }
  .auth-form-wrap h1 { font-size: 36px; }
  th, td { padding: 10px 12px; font-size: 13px; }
  .col-hide { display: none; }
  .app-nav { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .app-nav-links { order: 3; width: 100%; justify-content: center; }
  .app-main { padding: 24px 20px 60px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
 * Legacy class names used by JS-injected HTML (deductions/review/settings).
 * Restyled in the D aesthetic. Do NOT remove without updating the JS.
 * ─────────────────────────────────────────────────────────────── */

/* FY pills (deductions filter) */
.fy-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fy-pill {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.fy-pill:hover { color: var(--ink); border-color: var(--ink); }
.fy-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Stat cards (used in stats-row across deductions + review) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
}
.stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Export card (special stat-card variant on deductions) */
.export-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  transition: background 0.15s;
}
.export-card:hover { background: var(--accent); }
.export-card .export-icon { font-size: 24px; margin-bottom: 6px; line-height: 1; }

/* Category breakdown row */
.cat-breakdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cat-card {
  flex: 1 1 140px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.cat-card.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-card.active .cat-label { color: rgba(255,255,255,0.7); }
.cat-card .cat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.cat-card .cat-amount {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.5px;
}

/* Generic colored badges (still used by review.js + deductions table chips) */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-orange { background: #ffe8df; color: #c2410c; }
.badge-red { background: #fef2f2; color: #b91c1c; }

/* Action button used in tables (edit/delete row actions) */
.action-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: all 0.15s;
}
.action-btn:hover { background: var(--soft); border-color: var(--ink); }
.action-btn-danger { color: var(--red); border-color: #fecaca; }
.action-btn-danger:hover { background: var(--red); color: var(--bg); border-color: var(--red); }

/* Delete confirm row (deductions table inline) */
.delete-confirm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef2f2;
  border-radius: 12px;
  padding: 12px 16px;
}
.delete-confirm span { font-size: 14px; color: var(--red); font-weight: 600; }
.delete-confirm .btn-danger {
  background: var(--red);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.delete-confirm .btn-danger:hover { background: #b91c1c; }

/* Deduction mobile cards */
.ded-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.ded-card:hover { border-color: var(--ink); }
.ded-card.expanded { border-color: var(--ink); }
.ded-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ded-card-vendor { font-weight: 700; font-size: 15px; }
.ded-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.ded-card-amount {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ded-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Review items */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.review-item:last-child { border-bottom: none; }
.review-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Modal aliases — legacy class names used in some inline modals */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-field { margin-bottom: 12px; }
.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: inherit;
}
.modal-field textarea { min-height: 60px; resize: vertical; }
.workpct-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Inline disclaimer (legacy class used at bottom of deductions/review) */
.disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}





/* iPhone frame wrapper */

/* Dynamic island */

/* Side buttons — volume */

/* Power button — right side via inner element */




























































/* Modal overlay (for DEMO.show()) */






/* ─────────────────────────────────────────────────────────────────
 * Landing hero — new layout with demo (replaces old full-bleed hero)
 * ─────────────────────────────────────────────────────────────── */
.hero-v2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 32px 60px;
  display: grid;
  /* Give the demo column extra width so the looping tutorial reads larger. */
  grid-template-columns: 1fr 1.32fr;
  gap: 32px 56px;
  align-items: center;
}
.hero-v2-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-v2-demo { align-self: center; }

.hero-v2-text { max-width: 480px; }
.hero-v2-headline { max-width: 480px; }
.hero-v2 .label-mini { margin-bottom: 20px; }
.hero-v2 h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.hero-v2 h1 .accent { color: var(--accent); }
/* Slogan lede: each sentence on its own line, key words highlighted in accent. */
.hero-v2 .hero-v2-lede {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0;
}
.hero-v2 .hero-v2-lede .ll { display: block; }
.hero-v2-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
/* Apple's official "Download on the App Store" badge (hero, #6). The [hidden]
   rule must win over the inline-flex default so the dormant badge stays gone. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 9px;
  padding: 8px 13px;
  line-height: 1;
  text-decoration: none;
}
.appstore-badge[hidden] { display: none; }
.appstore-badge svg { width: 22px; height: 22px; }
.appstore-badge-txt { display: flex; flex-direction: column; align-items: flex-start; }
.appstore-badge-txt small { font-size: 9px; font-weight: 500; letter-spacing: 0.2px; }
.appstore-badge-txt b { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin-top: 1px; }
.hero-v2 .hero-v2-meta {
  font-size: 13px;
  color: var(--muted);
}

/* Profile page — button radio group */
.btn-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.btn-radio {
  padding: 10px 18px;
  border-radius: 100px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-radio:hover { border-color: var(--accent); color: var(--accent); }
.btn-radio.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Google CTA button — used on landing hero + /login */
.btn-google {
  background: var(--accent);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0px var(--ink);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.1s, transform 0.1s;
}
.btn-google:hover {
  background: var(--accent);
  box-shadow: 1px 1px 0px var(--ink);
  transform: translate(2px, 2px);
}
.btn-google:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}
.btn-google .g-icon {
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .hero-v2 {
    display: flex;
    flex-direction: column;
    padding: 110px 24px 40px;
    gap: 32px;
  }
  .hero-v2-left { display: contents; }
  .hero-v2-headline { order: 1; text-align: center; }
  .hero-v2-demo { order: 2; }
  .hero-v2-actions { order: 3; text-align: center; }
  .hero-v2-ctas { justify-content: center; }
  .hero-v2 .label-mini { text-align: center; }
  .hero-v2 h1 { font-size: 40px; letter-spacing: -2px; }
  .hero-v2 .hero-v2-lede { font-size: 15px; }
  
  
}

/* ─────────────────────────────────────────────────────────────────
 * Deductions empty state — shown when items array is empty.
 * Two variants: bot-linked and not-linked.
 * ─────────────────────────────────────────────────────────────── */
.ded-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 480px;
  margin: 40px auto;
}
.ded-empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.4;
}
.ded-empty h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink);
}
.ded-empty p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.ded-empty-cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.ded-empty-cta:hover { background: var(--accent); }
.ded-empty-learn {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.ded-empty-learn:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
 * Login page — Google-first, email behind toggle
 * ─────────────────────────────────────────────────────────────── */
.login-v2-google {
  width: 100%;
  margin-bottom: 20px;
}
.login-v2-toggle {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 0;
  display: block;
  text-align: center;
  width: 100%;
}
.login-v2-toggle:hover { color: var(--accent); }
.login-v2-email-form { display: none; margin-top: 16px; }
.login-v2-email-form.open { display: block; }

/* Demo play FAB — sits centred inside the phone chat area, no overlay */



/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Payment trust line (under pricing) ──────────────────────────── */
.pay-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.pay-trust svg { flex-shrink: 0; color: var(--ink); }
.pay-trust strong { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .pay-trust { align-items: flex-start; font-size: 13px; padding: 0 8px; }
}

/* ───────── ABOUT — "one bloke in Melbourne" ───────── */
.r-about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.r-about-note p { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 18px; max-width: 50ch; }
.r-about-note p strong { font-weight: 800; }
.r-about-note .r-about-lede { font-size: 22px; font-weight: 600; line-height: 1.45; max-width: 26ch; margin-bottom: 22px; }
.r-about-cta { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.r-about-meta { font-size: 13px; color: var(--muted); }

.r-about-card {
  background: var(--soft);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 32px 30px;
  text-align: center;
}
.r-about-av {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 3px 3px 0 var(--accent);
}
.r-about-sig { font-family: 'Caveat', cursive; font-size: 36px; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.r-about-role { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.r-about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1.5px dashed var(--line); padding-top: 22px; }
.r-about-facts .fact .num { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.r-about-facts .fact:nth-child(2) .num { color: var(--accent); }
.r-about-facts .fact .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
@media (max-width: 880px) { .r-about-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) {
  /* Mobile: founder card pushes the About section onto a second scroll.
     Hide it — the lede + paragraphs + CTA carry the message on their own. */
  .r-about-side { display: none; }
}

/* Section-head width + nowrap helpers */
.section-head.section-head--wide { max-width: none; }
.h2-nowrap { white-space: nowrap; }
@media (max-width: 640px) { .h2-nowrap { white-space: normal; } }

/* ───────── PRICING — receipt ───────── */
.r-pricing { position: relative; }
.rcpt-wrap { display: flex; justify-content: center; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding: 12px 0 8px; }
.rcpt-paper--alt { transform: rotate(0.8deg); }

/* Hustler — corner ribbon */
.rcpt-paper--ribbon { overflow: hidden; }
.rcpt-ribbon {
  position: absolute; top: 22px; left: -54px;
  background: var(--accent); color: var(--bg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 900; font-size: 11px; letter-spacing: 2px;
  padding: 6px 60px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  z-index: 2;
}

/* Highlighted receipt-count digits */
.rcpt-qty { color: var(--accent); font-weight: 700; }

/* Caption above pricing cards */
.rcpt-caption {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}
.rcpt-caption strong { color: var(--ink); }
.rcpt-paper {
  position: relative;
  background: var(--bg);
  padding: 36px 44px 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 0 0 1px var(--line), 8px 8px 0 var(--ink);
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
  transform: rotate(-0.6deg);
  display: flex;
  flex-direction: column;
}
/* Push the total + CTA to the bottom so buttons align across cards
   regardless of how many body lines each card has. */
.rcpt-paper .rcpt-total { margin-top: auto; }
.rcpt-paper::before, .rcpt-paper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 6px 5px, var(--bg) 5px, transparent 6px);
  background-size: 12px 10px; background-repeat: repeat-x;
}
.rcpt-paper::before { top: -10px; }
.rcpt-paper::after  { bottom: -10px; transform: rotate(180deg); }

.rcpt-stamp {
  position: absolute; top: 38px; right: -14px;
  border: 2.5px solid var(--accent); color: var(--accent);
  padding: 5px 12px;
  font-family: inherit;
  font-weight: 900; font-size: 12px; letter-spacing: 1.5px;
  transform: rotate(8deg);
  background: var(--bg);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
}
.rcpt-stamp-tick { width: 12px; height: 12px; }

.rcpt-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.rcpt-head .brand { font-family: inherit; font-weight: 900; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.rcpt-head .brand .dot { color: var(--accent); }

.rcpt-body { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.rcpt-line { display: flex; justify-content: space-between; padding: 5px 0; gap: 14px; }
.rcpt-line.heading { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; padding-bottom: 8px; }
.rcpt-line.free { color: var(--green); }
.rcpt-line.discount { color: var(--muted); font-style: italic; }
.rcpt-line span:first-child { flex: 1; min-width: 0; }
.rcpt-line span:last-child { white-space: nowrap; }

.rcpt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0 8px;
  font-family: inherit;
}
.rcpt-total .lbl { font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.rcpt-total .per { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.rcpt-total .price { font-size: 48px; font-weight: 900; letter-spacing: -2.5px; color: var(--accent); }

.rcpt-cta-row { margin-top: 10px; }
.rcpt-foot { text-align: center; padding-top: 16px; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

@media (max-width: 600px) {
  /* Stack on mobile — one receipt per row, full readable width. */
  .rcpt-wrap {
    flex-wrap: wrap;
    gap: 24px;
    padding: 8px 8px;
    align-items: stretch;
  }
  .rcpt-paper {
    flex: 1 1 100%;
    max-width: 360px;
    padding: 22px 18px 16px;
    font-size: 13px;
    line-height: 1.5;
    transform: none;
    box-shadow: 0 0 0 1px var(--line), 4px 4px 0 var(--ink);
  }
  .rcpt-paper--alt { transform: none; }

  .rcpt-stamp {
    top: 14px; right: -4px;
    padding: 3px 8px;
    font-size: 10px;
    letter-spacing: 1px;
    border-width: 2px;
  }
  .rcpt-stamp-tick { width: 10px; height: 10px; }

  .rcpt-head { padding-bottom: 12px; }
  .rcpt-head .brand { font-size: 22px; }

  .rcpt-body { padding: 12px 0; }
  .rcpt-line { padding: 4px 0; gap: 8px; }
  .rcpt-line.heading { font-size: 10px; letter-spacing: 1px; padding-bottom: 6px; }

  .rcpt-total { padding: 14px 0 6px; gap: 6px; }
  .rcpt-total .lbl { font-size: 13px; letter-spacing: 1px; }
  .rcpt-total .per { font-size: 11px; }
  .rcpt-total .price { font-size: 32px; letter-spacing: -1px; }

  .rcpt-cta-row { margin-top: 10px; }
  .rcpt-cta-row .btn { font-size: 14px; padding: 12px 14px; }

  .rcpt-foot { padding-top: 12px; font-size: 10px; }
}

/* ── Blog / Guides ───────────────────────────────────────────────── */

/* top padding must clear the fixed .public-nav (~100px tall) */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 124px 24px 64px; }

.blog-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.blog-breadcrumb a { color: var(--muted); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--accent); }

.blog-meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.article h1 {
  font-size: 44px; line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.article > p.lede {
  font-size: 20px; line-height: 1.6; color: var(--muted); margin-bottom: 36px;
}
.article h2 {
  font-size: 27px; line-height: 1.2; letter-spacing: -0.5px;
  margin: 44px 0 16px;
}
.article h3 { font-size: 20px; margin: 28px 0 12px; }
.article p { font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.article a { color: var(--accent); font-weight: 600; }
/* Buttons in the article body (e.g. the blog CTA) keep their component text
   colour — without this, `.article a` paints them accent-on-accent (invisible). */
.article a.btn { color: #fff; font-weight: 700; }
.article a.btn-outline, .article a.btn-secondary, .article a.btn-ghost { color: var(--ink); }
.article strong { font-weight: 600; }
.article .note {
  font-size: 14px; font-style: italic; color: var(--muted);
  border-left: 3px solid var(--line); padding-left: 16px; margin: 28px 0;
}

/* CTA card shared by index + posts */
.blog-cta {
  margin: 48px 0 8px; padding: 28px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--soft);
}
.blog-cta h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.5px; }
.blog-cta p { font-size: 16px; color: var(--muted); margin-bottom: 18px; }

/* Index post list */
.post-list { display: grid; gap: 18px; margin-top: 32px; }
.post-card {
  display: block; padding: 24px; border: 1px solid var(--line);
  border-radius: 16px; text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card h2 { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 8px; color: var(--ink); }
.post-card p { font-size: 16px; color: var(--muted); line-height: 1.55; }

.read-more { display: inline-flex; margin-top: 24px; font-weight: 600; color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .blog-wrap { padding: 108px 20px 48px; }
  .article h1 { font-size: 34px; }
  .article h2 { font-size: 23px; }
}

/* ───────────────────────── Hero looping tutorial (desktop) ─────────────────────────
 * Three flows behind tabs, each a short looped tutorial. Mobile keeps the existing
 * #demo-container demo (this is hidden under 769px). All classes ht- prefixed to
 * avoid clashing with global .arrow / .step etc. JS in /js/hero-tutorial.js. */
.hero-tut { --ht-soft:#f6f1ea; --ht-line:#e8e4df; width:100%; display:none }
@media (min-width:769px){ .hero-tut{display:block} .hero-v2-demo #demo-container{display:none} }
.hero-tut .ht-tabs{display:flex;gap:8px;margin-bottom:14px}
.hero-tut .ht-tab{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--ht-line);border-radius:12px;padding:11px 16px;font-weight:800;font-size:16px;color:var(--ink);cursor:pointer;transition:all .15s;font-family:inherit}
.hero-tut .ht-tab svg{width:20px;height:20px;stroke:currentColor}
.hero-tut .ht-tab.on{border-color:var(--ink);background:var(--ink);color:#fff;box-shadow:3px 3px 0 rgba(10,10,10,.18)}
.hero-tut .ht-device{position:relative;background:var(--ht-soft);border:2.5px solid var(--ink);border-radius:18px;box-shadow:8px 8px 0 rgba(10,10,10,.10);overflow:hidden;aspect-ratio:4/3}
.hero-tut .ht-topbar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--ht-line);background:#fff}
.hero-tut .ht-d{width:9px;height:9px;border-radius:50%;background:var(--ht-line)}
.hero-tut .ht-ttl{margin-left:8px;font-size:17px;font-weight:800}
.hero-tut .ht-stage{position:relative;height:calc(100% - 42px);background:var(--ht-soft);padding:20px}
.hero-tut .ht-beat{position:absolute;inset:20px;opacity:0;transition:opacity .4s ease;display:flex;align-items:center;justify-content:center}
.hero-tut .ht-beat.show{opacity:1}
.hero-tut .ht-beat img{max-width:100%;max-height:100%;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.10);background:transparent}
.hero-tut .ht-beat.cover{overflow:hidden;border-radius:12px;border:0;box-shadow:0 6px 18px rgba(0,0,0,.10);background:#fff}
.hero-tut .ht-beat.cover img{width:100%;height:100%;object-fit:cover;object-position:50% 0;border:0;border-radius:0;box-shadow:none;transition:object-position 1.6s ease}
.hero-tut .ht-beat.cover.scrolled img{object-position:50% 80%}
.hero-tut .ht-dzwrap{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.hero-tut .ht-dz{width:84%;height:46%;border:2px dashed var(--ht-line);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;background:#fff;transition:border-color .3s,background .3s}
.hero-tut .ht-dz.lit{border-color:var(--accent);background:#fff3ee}
.hero-tut .ht-up{width:30px;height:30px;color:var(--muted)}
.hero-tut .ht-t{font-size:17px;color:var(--muted)} .hero-tut .ht-t b{color:var(--accent)}
.hero-tut .ht-dropper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);opacity:0}
.hero-tut .ht-dropper.go{animation:ht-drop 2.4s cubic-bezier(.4,0,.2,1) forwards}
.hero-tut .ht-dropper img{width:236px;border-radius:9px;border:1px solid rgba(0,0,0,.12);box-shadow:0 18px 40px rgba(0,0,0,.32);display:block}
@keyframes ht-drop{0%{transform:translate(-50%,calc(-50% - 150px)) scale(1);opacity:0}12%{opacity:1}60%{transform:translate(-50%,-50%) scale(.82);opacity:1}100%{transform:translate(-50%,-50%) scale(.82);opacity:1}}
.hero-tut .ht-cursor{position:absolute;left:calc(50% + 30px);top:50%;width:24px;height:24px;opacity:0}
.hero-tut .ht-cursor.go{animation:ht-cur 2.4s cubic-bezier(.4,0,.2,1) forwards}
@keyframes ht-cur{0%{transform:translateY(-150px);opacity:0}12%{opacity:1}60%,100%{transform:translateY(0);opacity:1}}
.hero-tut .ht-csv{width:182px;background:#fff;border:1px solid var(--ht-line);border-radius:9px;box-shadow:0 18px 40px rgba(0,0,0,.28);overflow:hidden}
.hero-tut .ht-csv-h{display:flex;align-items:center;gap:7px;padding:9px 12px;border-bottom:1px solid var(--ht-line);font-size:14.5px;font-weight:800}
.hero-tut .ht-csv-tag{font-size:12px;font-weight:900;color:#fff;background:#16a34a;border-radius:4px;padding:1px 5px}
.hero-tut .ht-csv-row{height:6px;margin:7px 10px;border-radius:3px;background:var(--ht-soft)}
.hero-tut .ht-csv-row.s{width:60%}
.hero-tut .ht-savewrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.hero-tut .ht-savecard{background:#fff;border:1px solid var(--ht-line);border-radius:14px;box-shadow:0 8px 22px rgba(0,0,0,.12);padding:28px 32px;text-align:center;max-width:80%}
.hero-tut .ht-savecheck{width:48px;height:48px;border-radius:50%;background:#16a34a;color:#fff;font-size:25px;display:flex;align-items:center;justify-content:center;margin:0 auto 13px;box-shadow:0 4px 12px rgba(22,163,74,.32)}
.hero-tut .ht-savebig{font-size:25px;font-weight:900;letter-spacing:-.3px}
.hero-tut .ht-savesub{font-size:17px;color:var(--muted);margin-top:5px}
/* Caption sits just below the device. */
.hero-tut .ht-cap{margin-top:16px}
/* Step label (left) + progress/arrows (centred) share the row above the line.
   The line below is fixed-height, so this row stays put across every step. */
.hero-tut .ht-caprow{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:26px}
.hero-tut .ht-step{font-size:13px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--accent)}
.hero-tut .ht-txt{font-size:22px;font-weight:800;letter-spacing:-.3px;line-height:1.3;margin-top:8px;min-height:58px}
/* Progress dots + arrows, centred in the gap above the line. */
.hero-tut .ht-pbar{display:flex;align-items:center;gap:12px}
.hero-tut .ht-dots{display:flex;gap:6px}
.hero-tut .ht-dots i{width:26px;height:5px;border-radius:3px;background:var(--ht-line);position:relative;overflow:hidden}
.hero-tut .ht-dots i b{position:absolute;inset:0;background:var(--accent);transform:translateX(-101%)}
.hero-tut .ht-dots i.done b{transform:translateX(0)}
.hero-tut .ht-dots i.now b{animation:ht-fill 3400ms linear forwards}
@keyframes ht-fill{from{transform:translateX(-101%)}to{transform:translateX(0)}}
.hero-tut .ht-navs{display:flex;gap:6px}
.hero-tut .ht-arrow{width:24px;height:24px;border-radius:50%;border:none;background:var(--accent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:filter .15s;padding:0}
.hero-tut .ht-arrow:hover{filter:brightness(.92)} .hero-tut .ht-arrow svg{width:13px;height:13px;stroke:#fff}
@media (prefers-reduced-motion:reduce){ .hero-tut .ht-dropper.go,.hero-tut .ht-cursor.go,.hero-tut .ht-dots i.now b,.hero-tut .ht-beat.cover img{animation:none;transition:none} }
