/* Neuwirth CPA — the website, in the same look as the Practice Management app.
   Colors from the Neuwirth CPA Style Guide: forest #193028, sage #718674.
   Headings: Schibsted Grotesk. Text: Barlow. Rounded cards, soft shadows. */
:root {
  --forest: #193028;
  --forest-2: #223a30;
  --sage: #718674;
  --sage-d: #5d7262;
  --sage-light: #a9bcab;
  --tint: #f1f4f1;
  --bg: #f5f7f5;
  --soft: #e2e7e2;
  --white: #ffffff;
  --text: #193028;
  --muted: #55665b;
  --line: #dfe5e0;
  --shadow: 0 1px 2px rgba(25, 48, 40, .05), 0 6px 22px rgba(25, 48, 40, .06);
  --shadow-up: 0 2px 4px rgba(25, 48, 40, .06), 0 14px 34px rgba(25, 48, 40, .10);
  --r: 14px;
  --head: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); max-width: 20ch; }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; font-weight: 600; }
p { margin: 0; max-width: 64ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 104px) 0; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-d); margin-bottom: 14px; }
.eyebrow.light { color: var(--sage-light); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--forest); color: var(--white); box-shadow: 0 2px 8px rgba(25, 48, 40, .18); }
.btn-dark:hover { background: var(--forest-2); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { background: var(--white); color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: var(--white); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 245, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 184px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--forest); background: var(--soft); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions .btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
.team-link { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.team-link:hover { color: var(--forest); background: var(--soft); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--forest); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 8px var(--gutter) 20px; background: var(--bg); border-top: 1px solid var(--line); }
.mobile-menu > a { padding: 14px 4px; text-decoration: none; font-size: 19px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-actions { display: grid; gap: 10px; margin-top: 16px; }
.mobile-actions .btn { width: 100%; min-height: 50px; font-size: 17px; }
.mobile-actions .team-link { text-align: center; }
.mobile-menu[hidden] { display: none; }

/* hero */
.hero { background: radial-gradient(1200px 600px at 85% 20%, #2a4a3d 0%, var(--forest) 60%); color: var(--white); padding: 0 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: center; gap: 32px; min-height: min(calc(100vh - 170px), 600px); }
.hero-text { padding: clamp(48px, 7vw, 92px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); max-width: 15ch; letter-spacing: -0.03em; }
.lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); color: #d6dfd7; max-width: 44ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { justify-self: end; width: min(100%, 420px, calc(100vh - 230px)); aspect-ratio: 1; border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hero-mark { width: 62%; height: auto; }
.bar-1 { fill: var(--sage); } .bar-2 { fill: var(--sage-d); } .bar-3 { fill: #8a9c8c; } .bar-4 { fill: var(--sage); }
@media (prefers-reduced-motion: no-preference) {
  .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .bar-2 { animation-delay: .08s; transform-origin: 50% 0; }
  .bar-3 { animation-delay: .16s; }
  .bar-4 { animation-delay: .24s; transform-origin: 50% 0; }
  @keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
}
.trust { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.trust li { display: grid; gap: 2px; padding: 6px 12px; }
.trust li + li { border-left: 1px solid rgba(255,255,255,.1); }
.trust b { font: 700 20px var(--head); }
.trust span { color: #c7d2c8; font-size: 15px; }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: end; }
.intro-copy p { color: var(--muted); font-size: 19px; }
blockquote { margin: 28px 0 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; font: 500 clamp(19px, 2vw, 23px)/1.35 var(--head); letter-spacing: -0.01em; box-shadow: var(--shadow); }

/* cards */
.cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.cards .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card h3 { margin-top: 2px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.ico { width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 12px; background: var(--tint); fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num { display: inline-block; font: 700 13px var(--head); color: var(--sage-d); background: var(--tint); border-radius: 999px; padding: 5px 10px; margin-bottom: 14px; }
.services { background: var(--white); border-block: 1px solid var(--line); }
.services .card { background: var(--bg); box-shadow: none; }
.services .cards .card:hover { background: var(--white); box-shadow: var(--shadow-up); }

/* industries */
.industries { background: var(--forest); color: var(--white); }
.industry-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: ind; }
.industry-list li { counter-increment: ind; display: flex; align-items: center; gap: 14px; font: 600 clamp(17px, 1.8vw, 20px) var(--head); padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #eef2ee; }
.industry-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-light); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.profile { display: grid; gap: 18px; justify-items: start; padding: 30px; }
.avatar { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, var(--forest), #2d4c3f); color: var(--soft); font: 700 30px var(--head); letter-spacing: .02em; }
.role { color: var(--muted); margin-top: 4px; }
.profile-links { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); width: 100%; display: grid; gap: 8px; }
.profile-links a { text-decoration: none; color: var(--forest); font-weight: 500; }
.profile-links a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 4px; }
.about-copy { margin: 18px 0 26px; color: var(--muted); font-size: 19px; }

/* steps */
.expect { background: var(--white); border-block: 1px solid var(--line); }
.steps { counter-reset: step; }
.steps .card { counter-increment: step; background: var(--bg); box-shadow: none; }
.steps .card::before { content: ''; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--forest); margin-bottom: 18px; }

/* fit */
.fit-card { background: linear-gradient(120deg, var(--sage-d), var(--sage)); color: var(--white); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px 48px; align-items: end; box-shadow: var(--shadow-up); }
.fit-card h2 { grid-row: span 2; }
.fit-card p { font-size: 19px; color: #f1f4f1; }
.fit-card .btn { justify-self: start; }

/* contact */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-info > p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.details { margin: 28px 0 0; display: grid; gap: 10px; }
.details > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.details dt { color: var(--muted); font-weight: 500; }
.details dd { margin: 0; }
.details a { text-underline-offset: 4px; text-decoration-color: var(--sage); }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { font: 400 16px/1.4 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--white); border-color: var(--sage); box-shadow: 0 0 0 4px rgba(113, 134, 116, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 14px; color: var(--muted); background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.contact-form .btn { justify-self: start; min-width: 140px; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1f6b44; }
.form-status.bad { color: #a3302a; }

/* footer */
.foot { background: var(--forest); color: #d6dfd7; padding: 52px 0 40px; margin-top: clamp(56px, 8vw, 104px); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.foot img { width: 176px; }
.foot p { font-size: 16px; }
.foot a { color: var(--white); text-underline-offset: 4px; text-decoration-color: var(--sage); }
.foot-links { display: grid; gap: 6px; justify-items: end; text-align: right; }

/* tablets */
@media (max-width: 1080px) {
  .nav, .top-actions { display: none; }
  .menu-btn { display: grid; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-card { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .intro-grid, .about-grid, .contact-grid, .fit-card { grid-template-columns: 1fr; }
  .fit-card h2 { grid-row: auto; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .industry-list { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .foot-links { justify-items: start; text-align: left; }
}
/* phones */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top-row { min-height: 64px; }
  .brand img { width: 156px; }
  .hero h1 { font-size: 36px; }
  .hero-cta .btn { flex: 1 1 100%; min-height: 50px; }
  .cards-3, .cards-4, .industry-list, .two { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-form .btn { width: 100%; }
  .fit-card .btn { width: 100%; }
}

/* privacy page */
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p { margin-top: 12px; color: var(--muted); }
.top-actions.push { margin-left: auto; }
[hidden] { display: none !important; }
