/* Free Budget Sheet: whiteboard / marker style. Mobile-first, one stylesheet. */

:root {
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --ink: #1F2933;
  --ink-soft: #4A5562;
  --green: #2F7D4F;
  --green-dark: #23603C;
  --gold: #E0A526;
  --gold-soft: #FBEFD2;
  --navy: #1E3A5F;
  --tint: #E8F3EC;
  --line: #D9DDD3;
  --error: #B42318;
  --radius: 14px;
  --shadow: 0 2px 0 rgba(31, 41, 51, 0.08), 0 10px 30px rgba(31, 41, 51, 0.06);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-hand: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: 0.94rem; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Hand-lettered accents (used sparingly) */
.hand, .eyebrow, .section-title, .price, .step-num, .footer-name { font-family: var(--font-hand); }
.accent { color: var(--green); }
.marker-underline {
  background-image: linear-gradient(transparent 62%, rgba(224, 165, 38, 0.45) 62%, rgba(224, 165, 38, 0.45) 90%, transparent 90%);
  padding: 0 0.1em;
}

.eyebrow {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25em;
  transform: rotate(-1.5deg);
}

.section-title {
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1em;
  color: var(--navy);
}

/* Header */
.site-header { padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem;
}
.brand:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-lg { min-height: 60px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 0 var(--green-dark);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-primary[disabled] { opacity: 0.75; cursor: progress; }
.btn-secondary {
  background: var(--paper); color: var(--navy); border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-disabled, .btn-disabled:hover {
  background: #E4E7EB; color: #4A5562; border: 2px dashed #9AA5B1; cursor: not-allowed; box-shadow: none;
}

/* Hero */
.hero { padding: 24px 0 40px; }
.hero-grid { display: grid; gap: 24px; }
.hero-art { position: relative; display: none; }
.doodle { display: block; }
.form-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--tint), 6px 6px 0 2px var(--green);
  margin-top: 8px;
}

/* Forms */
.signup-form .form-fields { display: grid; gap: 12px; margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid #9AA5B1; border-radius: 10px;
}
.field input:focus { border-color: var(--green); outline: 3px solid rgba(47, 125, 79, 0.25); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.form-status { color: var(--error); font-weight: 600; margin: 10px 0 0; min-height: 0; }
.form-status:empty { display: none; }
.microcopy { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-soft); text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }

.preview { margin: 0; text-align: center; }
.preview img {
  display: block; width: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.preview figcaption { font-size: 1.6rem; color: var(--navy); margin-top: 12px; transform: rotate(-1deg); }

.benefits { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 20px; max-width: 900px; }
.benefit { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.benefit h3 { margin-bottom: 0.2em; }
.benefit p { margin: 0; color: var(--ink-soft); }
.benefits-compact { gap: 16px; margin-top: 24px; }
.benefits-compact .benefit { grid-template-columns: 32px 1fr; }

.cards { display: grid; gap: 18px; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: 4px 4px 0 var(--gold);
}
.card img { display: block; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2.5px solid var(--green); border-radius: 50%;
  font-size: 1.9rem; font-weight: 700; color: var(--green); background: var(--paper);
}
.step p { margin: 0; color: var(--ink-soft); }

.faq details {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  margin-bottom: 12px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 12px;
  font-family: var(--font-hand); font-size: 1.8rem; line-height: 1; color: var(--green);
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

.final-cta .form-card { max-width: 560px; margin: 0 auto; }

/* Offer page */
.banner { padding: 16px 0; }
.banner-success { background: var(--tint); border-bottom: 3px solid var(--green); }
.banner-inner { display: flex; gap: 12px; align-items: flex-start; }
.banner-inner img { flex: 0 0 auto; }
.banner-inner p { margin: 0; font-weight: 600; color: var(--green-dark); font-size: 1.05rem; }
.intro { color: var(--ink-soft); }
.offer-hero h1 .accent { display: block; }
.offer-grid { display: grid; gap: 28px; }
.offer-details h2 { font-size: 1.5rem; }
.price-card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: 6px 6px 0 var(--gold); align-self: start;
  text-align: center;
}
.price-card-inline { max-width: 460px; margin: 32px auto 0; }
.price { font-size: 4.2rem; font-weight: 700; color: var(--green); line-height: 1; margin: 0 0 4px; }
.price-currency { font-size: 2.4rem; vertical-align: super; margin-right: 2px; }
.price-was { font-size: 2.4rem; color: var(--ink-soft); font-weight: 400; margin-right: 10px; text-decoration-thickness: 3px; }
.price-discount { color: var(--green-dark); font-weight: 700; margin: 0 0 8px; }
.price-note { font-weight: 600; margin: 0 0 4px; }
.price-delivery { color: var(--ink-soft); font-size: 0.95rem; }
.inline-error {
  background: #FEF3F2; border: 2px solid var(--error); color: var(--error);
  border-radius: 10px; padding: 10px 12px; font-weight: 600;
}
.checkout-form { margin: 0; }
.refund { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 4px; font-weight: 600; }
.decline { margin: 10px 0 0; font-size: 0.95rem; }
.decline a { color: var(--ink-soft); }

.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare thead th:first-child { text-align: left; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; font-size: 1.2rem; }
.no { color: #9AA5B1; }

/* Simple pages (thanks, purchased, download, expired, 404) */
.simple-page { padding: 40px 0 48px; }
.page-doodle { display: block; margin: 0 auto 12px; }
.download-buttons { display: grid; gap: 12px; margin: 24px auto; max-width: 420px; }
.notice {
  background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 10px;
  padding: 12px 14px; font-weight: 600; color: var(--ink);
}

/* Legal */
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; color: var(--navy); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* Footer */
.site-footer { background: var(--ink); color: #E4E7EB; padding: 40px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { background: #fff; border-radius: 50%; }
.footer-name { font-size: 1.8rem; font-weight: 700; margin: 0; line-height: 1; color: #fff; }
.footer-tagline { margin: 0; color: #CBD2D9; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { overflow-wrap: anywhere; }
.footer-address, .footer-disclaimer, .footer-copy { margin: 0; color: #CBD2D9; }

/* Tablet */
@media (min-width: 700px) {
  .container { padding: 0 32px; }
  .signup-form .form-fields { grid-template-columns: 1.3fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { padding-left: 0; padding-top: 60px; }
  .step-num { top: 0; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
  .benefits-compact { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .btn-block.btn-lg { width: 100%; }
}

/* Desktop */
@media (min-width: 1000px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 48px; }
  .hero-art { display: block; min-height: 320px; }
  .doodle-piggy { width: 100%; max-width: 340px; margin: 0 auto; }
  .doodle-coins { position: absolute; right: 8%; bottom: 0; width: 120px; }
  .offer-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .price-card { position: sticky; top: 24px; }
}

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