/* Morales Bookkeeping — site styles
   Layout: one 1120px column, mobile-first; white space with navy type,
   cool grey bands, and a single ledger-green accent for tick marks and labels. */
:root {
  --navy: #12355b;
  --navy-deep: #0b2340;
  --on-navy: #ffffff;
  --ink: #17212e;
  --muted: #4f5d6e;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #d8e0e9;
  --accent: #24735b;
  --accent-tint: #e5f1ec;
  --focus: #2f6fb3;
  --band-ink: #ffffff;
  --band-muted: #c3d1e2;
  --header-bg: rgba(255, 255, 255, 0.94);

  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --gutter: 16px;
  --section: 48px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #9cc3ef; --navy-deep: #061120; --on-navy: #0b2340; --ink: #e8eef5; --muted: #a9b6c5;
    --bg: #0c1726; --bg-alt: #122036; --line: #26395a; --accent: #62c7a5; --accent-tint: #163a33;
    --focus: #9cc3ef; --band-ink: #e8eef5; --band-muted: #a9b6c5; --header-bg: rgba(12, 23, 38, 0.94);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #9cc3ef; --navy-deep: #061120; --on-navy: #0b2340; --ink: #e8eef5; --muted: #a9b6c5;
  --bg: #0c1726; --bg-alt: #122036; --line: #26395a; --accent: #62c7a5; --accent-tint: #163a33;
  --focus: #9cc3ef; --band-ink: #e8eef5; --band-muted: #a9b6c5; --header-bg: rgba(12, 23, 38, 0.94);
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 32px; --section: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.35; }
@media (min-width: 760px) { h1 { font-size: 40px; } h2 { font-size: 30px; } h3 { font-size: 20px; } }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section.alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 14px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.45; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1;
  padding: 14px 20px; border-radius: var(--radius-md); text-decoration: none;
  border: 1px solid var(--navy); cursor: pointer; transition: background-color .15s, color .15s;
  min-height: 48px; text-align: center;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-navy); } }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.btn .ext { font-size: 0.9em; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy);
  text-decoration: none; letter-spacing: -0.01em; line-height: 1.1; margin-right: auto;
}
.wordmark span { display: none; font-family: var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.header-cta { padding: 10px 14px; min-height: 40px; font-size: 15px; white-space: nowrap; }
@media (max-width: 419px) { .wordmark { font-size: 17px; } }
@media (min-width: 760px) { .wordmark { font-size: 21px; } }
.header-cta .long { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s;
}
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; border-top: 1px solid var(--line); padding-block: 8px 16px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--navy); }
@media (min-width: 420px) { .header-cta .long { display: inline; } .header-cta .short { display: none; } }
@media (min-width: 1000px) {
  .menu-toggle { display: none; }
  .header-row { gap: 24px; }
  .site-nav { display: block !important; border: 0; padding: 0; order: 2; }
  .wordmark { order: 1; margin-right: 0; }
  .header-cta { order: 3; margin-left: auto; }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 10px; font-size: 16px; color: var(--muted); border-radius: var(--radius-sm); }
  .site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
  .site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
}

/* Hero */
.hero { padding-block: 40px 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: 34px; line-height: 1.12; }
.credline { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.credline li { display: inline-flex; align-items: center; gap: 8px; }
.credline li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) {
  .hero { padding-block: 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero h1 { font-size: 48px; line-height: 1.08; }
}
.page-hero { padding-block: 40px 36px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 760px) { .page-hero { padding-block: 64px 52px; } }

/* Workpaper (close package card) */
.workpaper {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(11, 35, 64, 0.35);
}
.workpaper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.workpaper-head strong { font-family: var(--font-display); font-size: 17px; }
.workpaper-head .mono { font-size: 13px; color: var(--muted); }
.workpaper ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.workpaper li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.workpaper li:last-child { border-bottom: 0; }
.workpaper .ref { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.workpaper-foot { font-size: 14px; color: var(--muted); }
.workpaper-foot b { color: var(--ink); font-weight: 600; }

/* Tick marks */
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--accent-tint); flex: none; }
.tick::after { content: ""; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--accent-tint); grid-row: 1; }
.ticks li { position: relative; }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks li { line-height: 1.45; padding-top: 1px; }

/* Grids */
.grid-2 { display: grid; gap: 24px; }
.grid-4 { display: grid; gap: 28px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; gap: 36px 48px; } }
.grid-2 > *, .grid-4 > * { min-width: 0; }

.problem { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--navy); }
.problem p { color: var(--muted); }
.problem .fix { color: var(--ink); }

/* Cards (partnership models, price tiers) */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section.alt .card { background: var(--bg); }
.card-top { display: flex; flex-direction: column; gap: 6px; }
.card-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.card .facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.card .facts div { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card .facts dt { font-size: 15px; color: var(--muted); }
.card .facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.card .price { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.card .price b { font-size: 28px; color: var(--ink); font-weight: 500; }
.card .card-foot { margin-top: auto; }

/* Pricing */
.price-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount .from { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.price-amount b { font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.price-amount span.per { font-size: 15px; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
table.rates { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 16px; }
table.rates th, table.rates td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-alt); }
table.rates tbody tr:last-child > * { border-bottom: 0; }
table.rates td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.example { border-left: 0; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.calc { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.calc .total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }

/* Steps (true sequences only) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--navy); color: var(--navy);
  display: grid; place-items: center;
}
.steps li > div { display: flex; flex-direction: column; gap: 4px; padding-top: 5px; min-width: 0; }
.steps li p { color: var(--muted); }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); gap: 24px; } .steps.row li { grid-template-columns: 1fr; } }

/* Close calendar */
.calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (min-width: 640px) { .calendar { grid-template-columns: repeat(10, 1fr); } }
.day { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg); font-size: 12px; color: var(--muted); }
.day .n { font-family: var(--font-mono); font-size: 16px; color: var(--ink); font-weight: 500; }
.day.work { background: var(--accent-tint); border-color: transparent; }
.day.due { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.day.due .n { color: var(--on-navy); }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--line); min-width: 0; }
.timeline li.key { border-top-color: var(--navy); }
.timeline .when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.timeline p { color: var(--muted); font-size: 16px; }

/* Services */
.service { display: grid; gap: 24px; padding-block: 36px; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 860px) { .service { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }
.service > * { min-width: 0; }
.service h2 { font-size: 24px; }
.service h3 { font-size: 13px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.receive { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 20px; }

/* Security */
.practice { display: grid; gap: 8px; padding-block: 22px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .practice { grid-template-columns: 18rem 1fr; gap: 32px; } }
.practice h3 { display: flex; gap: 12px; align-items: flex-start; }
.practice p { color: var(--muted); max-width: 60ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 64ch; display: flex; flex-direction: column; gap: 10px; }
.faq .answer strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.contact-grid > * { min-width: 0; }
.contact-line { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-line .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.contact-line .value { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer; }
.copy-btn:hover { border-color: var(--navy); }
/* Callouts and CTA band */
.callout { display: grid; gap: 20px; align-items: center; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; padding: 32px; } }
.callout > * { min-width: 0; }
.cta-band { background: var(--navy-deep); color: var(--band-ink); padding-block: 56px; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-band h2 { color: var(--band-ink); max-width: 30ch; }
.cta-band p { color: var(--band-muted); max-width: 56ch; }
.cta-band .btn-primary { background: #ffffff; color: #0b2340; border-color: #ffffff; }
.cta-band .btn-primary:hover { background: #e4ecf5; border-color: #e4ecf5; color: #0b2340; }

.credential { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .credential { grid-template-columns: auto 1fr; gap: 32px; } }

.link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-more::after { content: "→"; transition: transform .15s; }
.link-more:hover::after { transform: translateX(3px); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--band-muted); padding-block: 48px 32px; font-size: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer a { color: var(--band-ink); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid > * { min-width: 0; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--band-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--band-muted); margin-bottom: 12px; font-weight: 700; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

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

/* Intuit-provided ProAdvisor badge: shown as supplied, never stretched or recolored */
.badge { display: block; width: 112px; flex: none; line-height: 0; border-radius: var(--radius-sm); }
.badge img { width: 112px; height: auto; }

/* Phone header: one clean row, and the open menu drops below it at full width */
@media (max-width: 999px) {
  .header-row { flex-wrap: wrap; gap: 8px; min-height: 0; padding-block: 10px; }
  .wordmark { white-space: nowrap; }
  .site-nav { order: 10; flex-basis: calc(100% + var(--gutter) * 2); margin: 2px calc(var(--gutter) * -1) -10px; padding-inline: var(--gutter); }
  .site-nav a { font-size: 17px; padding: 14px 0; }
  .site-nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 379px) {
  .wordmark { font-size: 15px; }
  .header-cta { padding: 8px 12px; font-size: 14px; }
  .menu-toggle { width: 40px; height: 40px; }
}
