/* Andy Macasaet — Bookkeeping site
   Layout: sidebar "console" shell (desktop) / sticky top bar (mobile), bento cards. */

:root {
  --navy: #183B68;
  --orange: #F28C28;
  --bg: #F4F7FB;
  --side: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #EEF3F9;
  --line: #DDE5EF;
  --text: #1F2937;
  --heading: #183B68;
  --muted: #64748B;
  --accent: #F28C28;
  --accent-hover: #DE7A17;
  --accent-text: #B95E07;
  --on-accent: #FFFFFF;
  --accent-dim: rgba(242, 140, 40, .11);
  --navy-dim: rgba(24, 59, 104, .07);
  --shadow: 0 1px 2px rgba(24, 59, 104, .04), 0 6px 22px rgba(24, 59, 104, .06);
  --display: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --side-w: 260px;
  --r: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1626;
  --side: #0E1B2E;
  --card: #12233A;
  --card-2: #182D49;
  --line: #22395A;
  --text: #E8EEF6;
  --heading: #FFFFFF;
  --muted: #9AABC2;
  --accent-text: #FFAE5E;
  --on-accent: #0B1626;
  --accent-dim: rgba(242, 140, 40, .14);
  --navy-dim: rgba(255, 255, 255, .05);
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 170px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.ico { width: 18px; height: 18px; flex: none; }
.ico-box {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--navy); color: #fff;
}
:root[data-theme="dark"] .ico-box { background: var(--card-2); color: var(--accent); }
.ico-box.orange { background: var(--accent); color: var(--on-accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: .93rem; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn .ico { width: 16px; height: 16px; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(242, 140, 40, .28); }
.btn.solid:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--heading); }
.btn.ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.wide { width: 100%; }

/* ---------- App shell ---------- */
.side { background: var(--side); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.side-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.avatar {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--accent);
  display: grid; place-items: center; overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--display); font-weight: 700; font-size: .95rem; color: #fff; }
.who { min-width: 0; flex: 1; }
.who strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--heading); }
.who p { color: var(--muted); font-size: .8rem; line-height: 1.35; display: none; }
.avail {
  display: none; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent-text); font-size: .62rem;
}
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.icon-row { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--heading); cursor: pointer;
  transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn .ico { width: 17px; height: 17px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }

.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding: 0 10px 10px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav a .ico, .nav a kbd { display: none; }
.nav a:hover { color: var(--heading); }
.nav a[aria-current="page"] { background: var(--navy-dim); color: var(--heading); font-weight: 600; }
.nav a[aria-current="page"] .ico { color: var(--accent); }
.side-cta, .side-foot { display: none; }

main { padding: 20px 16px 40px; }
.section { padding-top: 56px; }
.section:first-child { padding-top: 0; }

/* Section header */
.ph { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.ph .mono { color: var(--accent-text); display: block; margin-bottom: 10px; }
.ph h2 {
  font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  line-height: 1.08; letter-spacing: -.025em; max-width: 22ch;
}
.ph h1 {
  font-weight: 800; font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06; letter-spacing: -.03em; max-width: 22ch;
}
.ph h2 em, .ph h1 em, .hero h1 em { font-style: normal; color: var(--accent); }

/* Home teasers */
.card.mini { flex-direction: row; align-items: flex-start; gap: 14px; }
.card.mini h3 { font-size: 1.02rem; font-weight: 600; }
.card.mini p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.accent-label { color: var(--accent-text); }
.teaser-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.price-rows b { font-family: var(--display); color: var(--accent); font-size: 1.05rem; }
.ph .lede { color: var(--muted); font-size: 1.04rem; margin-top: 12px; max-width: 46rem; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: var(--shadow); transition: border-color .15s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head h3 { font-size: 1.08rem; font-weight: 600; flex: 1; line-height: 1.3; }
.card p.sub { color: var(--muted); font-size: .94rem; }
.card .for { color: var(--muted); font-size: .9rem; }
a.card:hover { transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--heading);
}
.chips li .ico { width: 16px; height: 16px; color: var(--accent); }

.checks { display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 9px; font-size: .93rem; line-height: 1.45; }
.checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F28C28' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Arrow chain motif */
.chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; padding: 10px; margin-top: auto;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--card-2);
}
.chain li { font-family: var(--mono); font-size: .66rem; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); }
.chain li + li::before { content: "→"; color: var(--accent); margin: 0 6px 0 -2px; font-family: var(--body); }
.chain li + li { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 14px; }
.hero-main { padding: 28px 22px; gap: 0; }
.hero-main .mono { color: var(--accent-text); }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 6.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; margin: 14px 0 0; }
.hero .subhead { font-family: var(--display); color: var(--heading); font-weight: 500; font-size: 1.12rem; margin-top: 16px; }
.hero-copy { margin-top: 14px; display: grid; gap: 10px; color: var(--muted); max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 22px; }

.photo-card { padding: 14px; gap: 14px; }
.photo {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--navy) 0%, #0F2A4D 100%);
  display: grid; place-items: center;
}
.photo::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -22%; top: -14%; background: rgba(242, 140, 40, .35); }
.photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(11, 22, 38, .5)); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: 1; }
.photo .init { position: relative; font-family: var(--display); font-weight: 800; font-size: 4rem; color: #fff; letter-spacing: -.02em; }
.photo .tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .95); color: var(--navy); padding: 8px 12px; border-radius: 10px;
  font-size: .78rem; font-weight: 600; font-family: var(--display);
}
.photo .tag .ico { color: #2CA01C; width: 16px; height: 16px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 12px 14px; border-radius: 12px; background: var(--card-2); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.stat span { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }

.toolstrip {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
}
.ts-label .mono { color: var(--accent-text); font-size: .62rem; display: block; }
.ts-label b { font-family: var(--display); font-size: .95rem; color: var(--heading); }
.toolstrip ul { display: flex; flex-wrap: wrap; gap: 8px 20px; flex: 1; }
.toolstrip li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; }
.toolstrip li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Bento / grids ---------- */
.bento { display: grid; gap: 14px; padding: 14px; border-radius: 24px; background: var(--accent-dim); }
.grid2, .grid3, .grid4, .svc-grid, .ind-grid, .price-grid, .steps-grid { display: grid; gap: 14px; }

.benefit .ico-box { margin-bottom: 4px; }
.benefit h3 { font-size: 1.05rem; font-weight: 600; }

.intro-card { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; }
.intro-card h3 { color: #fff; font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
.intro-card p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.intro-card .mono { color: var(--orange); }
:root[data-theme="dark"] .intro-card { background: var(--card-2); border-color: var(--line); }

/* Industries */
.ind-feature { position: relative; overflow: hidden; }
.ind-feature .badge {
  position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.ind-feature .scene {
  height: 120px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--navy), #24528C); color: rgba(255, 255, 255, .92); position: relative; overflow: hidden;
}
.ind-feature .scene::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; left: -40px; bottom: -70px; background: rgba(242, 140, 40, .4); }
.ind-feature .scene svg { width: 56px; height: 56px; position: relative; }
.ind-feature h3 { font-size: 1.3rem; font-weight: 700; }
.ind-small { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
.ind-small h3 { font-size: 1rem; font-weight: 600; }
.ind-small p { color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* Process */
.steps-grid { counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800;
  font-size: 1.9rem; color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.05rem; font-weight: 600; }
.step p { color: var(--muted); font-size: .92rem; }

/* About */
.about-grid { display: grid; gap: 14px; }
.about-grid .photo { aspect-ratio: 3 / 4; }
.about-grid .photo img { object-position: center 8%; }
.about-copy { gap: 14px; }
.about-copy h3 { font-size: 1.5rem; font-weight: 700; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--heading); font-weight: 600; }
.rows { display: flex; flex-direction: column; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.rows li span:first-child { font-weight: 600; color: var(--heading); }
.rows li span:last-child { color: var(--muted); text-align: right; }
.timeline .when { color: var(--accent-text); }
.timeline h3 { font-size: 1.02rem; font-weight: 600; }
.timeline p { color: var(--muted); font-size: .9rem; }
.cert {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  border: 1px dashed var(--accent); background: var(--accent-dim);
}
.cert img { height: 64px; width: auto; }
.cert strong { display: block; font-family: var(--display); color: var(--heading); font-size: .98rem; }
.cert span { font-size: .85rem; color: var(--muted); }

/* Pricing */
.price-card { gap: 14px; position: relative; }
.price-card.popular { border: 2px solid var(--accent); }
.price-card .pop {
  position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; }
.price { font-family: var(--display); color: var(--heading); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price small { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 100%; }
.price b { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.price span { color: var(--muted); font-size: .92rem; }
.price-card .checks { flex: 1; }
.cleanup { background: var(--navy); border-color: var(--navy); color: #fff; }
.cleanup h3 { color: #fff; }
.cleanup p { color: rgba(255, 255, 255, .8); }
.cleanup .price b, .cleanup .price { color: #fff; }
.cleanup .price small, .cleanup .price span { color: rgba(255, 255, 255, .7); }
.cleanup .checks li { color: rgba(255, 255, 255, .92); }
:root[data-theme="dark"] .cleanup { background: var(--card-2); border-color: var(--accent); }
.fine { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; box-shadow: var(--shadow); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0; font-family: var(--display); font-weight: 600; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: .95rem; }

/* CTA */
.cta {
  border-radius: 24px; padding: 36px 24px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0F2A4D 100%); color: #fff;
}
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: rgba(242, 140, 40, .3); }
.cta > * { position: relative; }
.cta .mono { color: var(--orange); }
.cta h2 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 12px auto 0; max-width: 22ch; }
.cta p { color: rgba(255, 255, 255, .82); margin: 14px auto 24px; max-width: 40rem; }
.cta .ph-actions { justify-content: center; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn.ghost:hover { border-color: #fff; }

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .84rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 14px; }
.form-card { padding: 26px 22px; }
.form-card h3 { font-size: 1.3rem; font-weight: 700; }
.form-row { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .86rem; color: var(--heading); padding: 0; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--text); padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card-2); width: 100%; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--card); }
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkbox-group { display: grid; gap: 8px 16px; margin-top: 4px; }
.checkbox-group label { font-weight: 400; color: var(--text); display: flex; align-items: center; gap: 9px; font-size: .9rem; cursor: pointer; }
.checkbox-group input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { display: none; padding: 12px 14px; border-radius: 10px; background: var(--accent-dim); color: var(--accent-text); font-size: .9rem; }
.form-status.show { display: block; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row strong { display: block; color: var(--heading); font-size: .9rem; font-family: var(--display); font-weight: 600; }
.info-row span, .info-row a { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.info-row a:hover { color: var(--accent); }
.expect li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .92rem; padding: 6px 0; }
.expect li b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .78rem; font-family: var(--mono); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  main { padding: 24px 24px 48px; }
  .who p { display: block; }
  .grid2, .svc-grid, .ind-grid, .price-grid, .steps-grid, .form-row, .checkbox-group { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1.5fr 1fr; }
  .hero-main { padding: 34px 32px; }
  .toolstrip { flex-direction: row; align-items: center; gap: 20px; }
  .ts-label { padding-right: 20px; border-right: 1px solid var(--line); flex: none; }
  .about-grid { grid-template-columns: .8fr 1.2fr; }
  .cta { padding: 52px 36px; }
  .price-grid .cleanup { grid-column: 1 / -1; }
}

/* ---------- Desktop: sidebar console ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 28px; }
  .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .side {
    position: sticky; top: 0; height: 100vh; border-bottom: none; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 28px 16px 18px; overflow-y: auto;
  }
  .side-top { flex-direction: column; text-align: center; padding: 0; gap: 10px; }
  .avatar { width: 112px; height: 112px; border-width: 3px; }
  .avatar span { font-size: 2.1rem; }
  .who strong { font-size: 1.15rem; }
  .who p { margin-top: 3px; }
  .avail { display: inline-flex; margin: 6px auto 0; }
  .icon-row { justify-content: center; margin-top: 4px; }
  .nav {
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px;
    padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--line);
  }
  .nav a { padding: 10px 12px; border-radius: 12px; font-size: .95rem; }
  .nav a .ico { display: block; }
  .nav a kbd {
    display: grid; place-items: center; margin-left: auto; min-width: 22px; height: 20px; padding: 0 5px;
    font-family: var(--mono); font-size: .62rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted);
  }
  .side-cta { display: block; margin-top: 18px; }
  .side-foot { display: block; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
  main { padding: 28px 36px 36px; min-width: 0; }
  main > section, main > footer { max-width: 1240px; margin-left: auto; margin-right: auto; }
  .section { padding-top: 72px; }
  .ph { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 28px; }
  .ph-actions { flex: none; justify-content: flex-end; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid4, .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bento { grid-template-columns: 1.1fr 1fr 1fr; }
  .trust-bento .intro-card { grid-row: span 2; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .side-stack { position: sticky; top: 28px; }
  .about-grid { grid-template-columns: .75fr 1.25fr; }
}
@media (min-width: 1280px) {
  .ind-small-grid { grid-template-columns: repeat(5, 1fr); }
  .ind-small { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 639px) {
  .photo { aspect-ratio: 4 / 3.4; }
  .photo .init { font-size: 3rem; }
}

/* About card: facts, focus areas, and actions fill the column */
.stat-row.three { grid-template-columns: repeat(3, 1fr); }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
@media (max-width: 639px) {
  .stat-row.three { grid-template-columns: 1fr 1fr; }
  .stat-row.three .stat:last-child { grid-column: 1 / -1; }
}

/* Very wide screens / zoomed out: use more of the width, stay centered */
@media (min-width: 1700px) {
  main > section, main > footer { max-width: 1440px; }
}
/* Desktop hero: photo stretches to match the headline card height */
@media (min-width: 1024px) {
  .hero .photo { aspect-ratio: auto; flex: 1; min-height: 340px; }
  .hero-main { justify-content: center; }
}

/* Software logos (linked to each app's website) */
.apps img { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; flex: none; }
.apps a { display: inline-flex; align-items: center; gap: 8px; transition: color .15s ease; }
.apps a:hover { color: var(--accent-text); }
.toolstrip ul.apps li::before { display: none; }
.chips.apps li { padding: 0; }
.chips.apps li a { padding: 7px 13px; border-radius: 999px; }
.chips.apps li:hover { border-color: var(--accent); }

/* QuickBooks certification badges */
.photo .badges { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.photo .badges img { position: static; z-index: auto; width: 78px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(11, 22, 38, .35)); }
.cert-badges { display: flex; gap: 6px; flex: none; }
.cert .cert-badges img { height: 84px; width: auto; }
@media (max-width: 639px) {
  .photo .badges img { width: 64px; }
  .cert { flex-wrap: wrap; }
}
.apps img[src$="chatgpt.png"] { background: #fff; border-radius: 50%; }

/* ---------- Tools: Home marquee ---------- */
.marquee {
  flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.toolstrip ul.marquee-track {
  flex: none; flex-wrap: nowrap; gap: 12px; padding-right: 12px;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li a {
  white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-2);
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.marquee-track li a:hover { border-color: var(--accent); transform: translateY(-2px); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Tools: About grouped tiles ---------- */
.tool-groups { display: grid; gap: 14px; }
.tool-group { gap: 18px; }
.tool-group .card-head { align-items: flex-start; }
.tool-group .card-head p { margin-top: 2px; font-size: .88rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tool-grid li a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; padding: 16px 8px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card-2);
  font-size: .82rem; font-weight: 600; color: var(--heading); line-height: 1.25;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.tool-grid li a img { width: 34px; height: 34px; border-radius: 8px; transition: transform .25s ease; }
.tool-grid li a:hover {
  transform: translateY(-4px); border-color: var(--accent); background: var(--card);
  box-shadow: 0 10px 22px rgba(24, 59, 104, .12);
}
.tool-grid li a:hover img { transform: scale(1.1); }
/* staggered entrance once the section scrolls into view */
.reveal .tool-group, .reveal .tool-grid li {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.reveal.in .tool-group, .reveal.in .tool-grid li { opacity: 1; transform: none; }
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 900px) {
  .tool-group { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 24px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .toolstrip ul.marquee-track { flex-wrap: wrap; flex: 1; }
  .reveal .tool-group, .reveal .tool-grid li { opacity: 1; transform: none; }
}

/* Contact form: spam trap stays invisible; error state */
.hp { display: none !important; }
.form-status.error { background: rgba(220, 38, 38, .1); color: #B91C1C; }
:root[data-theme="dark"] .form-status.error { color: #FCA5A5; }
