/* ===== Bacon marketing site =====
   Plain CSS, no build step. Brand accent is the app's own AccentColor. */

:root {
  --accent: #d6336c;            /* app AccentColor (light) */
  --accent-deep: #ab2354;
  --accent-tint: rgba(214, 51, 108, 0.10);
  --income: #0e824b;            /* app Income colour */
  --expense: #bf2d25;           /* app Expense colour */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-warm: #fff7fa;
  --line: #efe6ea;
  --radius: 18px;
  --shadow-card: 0 10px 30px rgba(60, 12, 32, 0.06);
  --shadow-shot: 0 26px 60px rgba(60, 12, 32, 0.16);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-deep); }

img { max-width: 100%; }

.section-title {
  text-align: center;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 24px clamp(12px, 2vw, 18px);
}

.section-lede {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  padding: 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 112px) 24px clamp(44px, 7vw, 80px);
  background:
    radial-gradient(115% 80% at 50% -10%, rgba(214, 51, 108, 0.16), rgba(214, 51, 108, 0) 60%),
    linear-gradient(180deg, #fffafc, #ffffff);
}

.app-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(160, 30, 78, 0.26);
  display: block;
  margin: 0 auto 26px;
}

.wordmark {
  font-size: clamp(50px, 11vw, 86px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.wordmark-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(14.5px, 1.8vw, 16.5px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--muted);
  /* Ignored where unsupported. Without it the phone breaks this after "iPad,"
     and leaves "and Mac" alone on a line under the wordmark. */
  text-wrap: balance;
}

.tagline {
  font-size: clamp(19px, 3.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  /* Wider than the gap above the descriptor, so the wordmark and its
     descriptor group together and this reads as the next thing said. */
  margin: 22px 0 0;
}

.lede {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.platforms {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ===== Showcase: one layered composition ===== */

.showcase {
  padding: clamp(56px, 8vw, 104px) 24px;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showcase-inner {
  /* Wider than --maxw: the device stack needs the room, and the copy beside it
     is set to a comfortable measure rather than to the column. */
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
}

/* One of the two breakpoints on the site. The columns are deliberately uneven:
   the copy is set to a reading measure and stops growing, while the stack wants
   every pixel it can get, so splitting them evenly leaves the composition small
   and the text column half empty. */
@media (min-width: 940px) {
  .showcase-inner { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
}

.showcase-copy h2 {
  font-size: clamp(27px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 14ch;
}

.showcase-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.points {
  list-style: none;
  margin: clamp(26px, 3.5vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  max-width: 46ch;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.points .icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
}

.points .icon svg { width: 20px; height: 20px; }

.points h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 7px 0 4px;
}

.points p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* The device stack: a Mac window with two phones cascading off its lower right.
   Everything inside is sized as a share of the stack itself — `cqw` for the
   corner radii, percentages for the rest — so the whole composition scales as
   one picture and never needs a breakpoint of its own. */
.stack {
  position: relative;
  width: 100%;
  container-type: inline-size;
  /* Derived from the pieces: the Mac is 79% wide at a 1.5 aspect, and the front
     phone hangs below it. Change any of the numbers below and this moves. */
  aspect-ratio: 100 / 58;
}

.dev-mac {
  position: absolute;
  left: 0;
  top: 0;
  width: 79%;
  height: auto;
  /* The window is captured with transparent rounded corners and no shadow, so
     the shadow is applied here and follows the alpha rather than a rectangle. */
  filter: drop-shadow(0 18px 42px rgba(60, 12, 32, 0.20));
}

/* A phone screenshot is a bare screen capture, so the bezel is drawn here. */
.dev-phone {
  position: absolute;
  width: 20.5%;
  background: #17141a;
  /* Percentage padding resolves against the stack's width, which is what keeps
     the bezel proportional. A radius cannot: a percentage radius is elliptical,
     so it needs a real length, and `cqw` is the only one that tracks the
     container. The px value above it is the fallback for anything that does not
     understand container query units. */
  padding: 0.72%;
  border-radius: 20px;
  border-radius: 3.4cqw;
  box-shadow: 0 16px 36px rgba(60, 12, 32, 0.30);
}

.dev-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border-radius: 2.8cqw;
}

.phone-back { left: 62%; top: 17%; z-index: 2; }
.phone-front { left: 78%; top: 26%; z-index: 3; }

/* ===== Features ===== */

.features { padding: clamp(60px, 9vw, 104px) 0 clamp(30px, 5vw, 50px); }

.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* `min(280px, 100%)` rather than a bare 280px: a track floor wider than the
     container is honoured, and the page scrolls sideways on a small phone. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
}

.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature .icon svg { width: 22px; height: 22px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 7px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* A quieter row for the things that need naming but not a card. */
.also {
  max-width: var(--maxw);
  margin: clamp(30px, 5vw, 46px) auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.also span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14.5px;
  color: var(--muted);
  background: #fff;
}

/* ===== Privacy strip ===== */

.privacy-strip {
  margin-top: clamp(60px, 9vw, 100px);
  padding: clamp(56px, 8vw, 92px) 24px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(214, 51, 108, 0.14), rgba(214, 51, 108, 0) 65%),
    var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.privacy-strip h2 {
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 auto 18px;
  max-width: 16ch;
}

.privacy-strip p {
  max-width: 640px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 17.5px);
}

.privacy-strip .more { font-weight: 600; }

/* ===== Pricing ===== */

.pricing { padding: clamp(60px, 9vw, 104px) 0; }

.plans {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  background: #fff;
}

.plan.pro {
  border-color: rgba(214, 51, 108, 0.35);
  box-shadow: 0 14px 40px rgba(214, 51, 108, 0.12);
}

.plan h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
}

.plan .price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 2px;
}

.plan.pro .price { color: var(--accent); }

.plan .price-note {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--muted);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan li strong { color: var(--ink); font-weight: 600; }


/* ===== Footer ===== */

.footer {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px clamp(40px, 6vw, 60px);
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}

.footer-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: block;
  margin: 0 auto 12px;
}

.footer-word {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-tag {
  margin: 2px 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.footer-links { margin: 0 0 10px; font-size: 15px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-legal { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ===== Document pages (privacy, support, 404) ===== */

.doc-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.doc-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.doc-home img { border-radius: 7px; }

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) 24px clamp(56px, 8vw, 88px);
}

.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.doc-updated {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14.5px;
}

.doc h2 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}

.doc h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 30px 0 6px;
}

.doc p, .doc li { font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

.summary {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 6px;
  margin: 28px 0 8px;
}

.summary h2 { margin: 0 0 10px; font-size: 18px; }
.summary ul { margin: 0 0 16px; }

/* ===== Support form ===== */

.form {
  margin: 34px 0 0;
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field .hint {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ddd2d7;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}

.field textarea { min-height: 170px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Netlify's spam honeypot. Hidden from people, left reachable to bots. */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.submit {
  justify-self: start;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
}

.submit:hover { background: var(--accent-deep); }

.form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ===== 404 =====
   Drawn as a page out of the ledger for a day that cannot exist. The two
   semantic colours are declared at the top of this file for the app's income
   and expense figures; this is the only place the site has needed them. */

.notfound {
  text-align: center;
  padding: clamp(56px, 10vw, 104px) 24px clamp(56px, 9vw, 96px);
}

.notfound .mark {
  width: 92px;
  height: 92px;
  border-radius: 21px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 16px 36px rgba(160, 30, 78, 0.22);
}

/* A long pause, then a short snuffle. Anything faster reads as a broken page
   rather than a joke, and it stops entirely for anyone who has asked it to. */
@media (prefers-reduced-motion: no-preference) {
  .notfound .mark { animation: snuffle 8s ease-in-out infinite; }
}

@keyframes snuffle {
  0%, 64%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-5deg); }
  78% { transform: rotate(4deg); }
  86% { transform: rotate(-2deg); }
  93% { transform: rotate(1deg); }
}

.notfound h1 {
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.lost-lede {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 34ch;
  margin: 0 auto clamp(30px, 4vw, 40px);
  text-wrap: balance;
}

.ledger-card {
  max-width: 420px;
  margin: 0 auto clamp(28px, 4vw, 38px);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ledger-day {
  margin: 0;
  padding: 15px 20px 13px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line);
}

.ledger-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 14px 15px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}

.ledger-totals div { text-align: center; }
.ledger-totals div + div { border-left: 1px solid var(--line); }

.ledger-totals span {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-totals strong {
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ledger-totals .in { color: var(--income); }
.ledger-totals .out { color: var(--expense); }

.ledger-section {
  margin: 0;
  padding: 14px 20px 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
}

.ledger-glyph {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent);
}

.ledger-glyph svg { width: 18px; height: 18px; }

.ledger-what { flex: 1 1 auto; min-width: 0; }
.ledger-what strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ledger-what span { display: block; font-size: 13px; color: var(--muted); }

.ledger-amount {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ledger-note {
  margin: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.lost-links {
  display: flex;
  justify-content: center;
  margin: 0;
}

.lost-links a {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lost-links a:hover { background: #000; }
