/* Tax Optimize Group — layout system shared with Credit Optimize Hub; navy/teal palette */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/DMSans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-latin.woff2) format('woff2'); }

:root {
  --brand-900: #0B3442;
  --brand-800: #0C4A52;
  --brand-700: #0E5E58;
  --brand-600: #0F766E;
  --brand-500: #14918A;
  --brand-400: #2BA8A0;
  --brand-300: #7BCBC6;
  --brand-100: #D5F0EE;
  --brand-50: #F0F9F8;
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #ffffff;
  --nav-h: 58px;
  --max: 1040px;
  --radius: 12px;
  --placeholder-bg: #FFF7ED;
  --placeholder-border: #FDBA74;
  --placeholder-ink: #9A3412;
  --sand-50: #FBF6EE;
  --sand-100: #F3E8D4;
  --sand-200: #E8D5B5;
  --amber-800: #8A5A28;
  --amber-700: #9A6B2F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, .display { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 750; letter-spacing: -0.03em; color: var(--slate-900); margin-bottom: 12px; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin: 0 0 8px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-600); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

header.site {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-bar {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-900); color: #fff;
  display: grid; place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800; font-size: 11px; letter-spacing: 0.02em;
  overflow: hidden;
}
.logo-mark img { width: 28px; height: 28px; }
.logo-name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 650; font-size: 15px; color: var(--slate-900); }

nav.primary { display: flex; align-items: center; gap: 16px; }
nav.primary a {
  font-size: 13px; font-weight: 500; color: var(--slate-600);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover { color: var(--slate-900); }
nav.primary a.active { color: var(--slate-900); font-weight: 700; border-bottom-color: var(--brand-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; color: var(--slate-700); border-color: var(--slate-200); }
.btn-secondary:hover { background: var(--slate-50); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-50); }
.cta-nav { margin-left: 4px; }

.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px; color: var(--slate-800);
}
.menu-btn:hover { background: var(--slate-50); }
.menu-btn svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; border-top: 1px solid var(--slate-200);
  background: #fff; padding: 10px 20px 16px;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  font-size: 15px; font-weight: 550; color: var(--slate-700);
  padding: 10px 8px; border-radius: 8px;
}
.mobile-nav a.active, .mobile-nav a:hover { background: var(--brand-50); color: var(--brand-800); }

@media (max-width: 960px) {
  nav.primary, .cta-nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .logo-name { font-size: 14px; }
}

main { min-height: calc(100vh - var(--nav-h) - 200px); }

.hero {
  background: linear-gradient(180deg, var(--sand-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--sand-100);
  padding: 40px 0 32px;
}
.hero-page { padding: 40px 0 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--sand-100); color: var(--brand-900);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  color: var(--slate-900); margin-bottom: 16px;
}
.lead { font-size: 1.125rem; color: var(--slate-600); max-width: 38rem; margin-bottom: 22px; }
.lead strong { color: var(--slate-800); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.micro { font-size: 13px; color: var(--slate-500); margin-top: 14px; }

.trust {
  background: var(--sand-50); border-bottom: 1px solid var(--sand-100);
  padding: 14px 0;
}
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 13px; font-weight: 600; color: var(--brand-900);
}

.section { padding: 48px 0; }
.section-tight { padding: 28px 0 40px; }
.section-muted { background: var(--sand-50); }
.section-tint { background: var(--brand-50); }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-800); margin-bottom: 8px;
}

.card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 20px 18px;
}
.card h3 { font-size: 1.02rem; font-weight: 700; color: var(--slate-900); margin: 0 0 8px; }
.card p { font-size: 0.95rem; color: var(--slate-600); }
.card-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; font-size: 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
a.card { color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s; }
a.card:hover, a.card:focus-visible {
  border-color: var(--brand-300);
  box-shadow: 0 12px 28px rgba(11, 52, 66, 0.08);
  transform: translateY(-2px);
}
a.card .text-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; font-weight: 650; color: var(--brand-700); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article { position: relative; padding: 20px 18px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--brand-600); color: var(--brand-700);
  display: grid; place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 14px;
  margin-bottom: 12px;
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

.cta-band {
  background: var(--brand-900); color: #fff; text-align: center;
  padding: 48px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }

.split-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
}
@media (max-width: 700px) { .split-band { grid-template-columns: 1fr; } }

.breadcrumb { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--slate-600); text-decoration: underline; text-underline-offset: 2px; }

.detail { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--slate-200); }
.detail:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.detail p { color: var(--slate-600); font-size: 0.98rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; color: var(--slate-700); font-size: 0.98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border: 2px solid var(--brand-600); border-radius: 4px;
}

.notice {
  background: var(--brand-50); border-left: 4px solid var(--brand-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; font-size: 0.95rem; color: var(--slate-700); margin: 16px 0;
}

.placeholder, code.placeholder {
  display: inline-block;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  color: var(--placeholder-ink);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92em;
  font-weight: 650;
}

.draft-banner {
  background: #FEF3C7; border-bottom: 1px solid #F59E0B; color: #92400E;
  text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 650;
}

.coming-card {
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius);
  padding: 20px 18px;
  min-height: 160px;
  display: flex; flex-direction: column; gap: 8px;
}
.coming-card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--slate-500);
}
.coming-card h3 { color: var(--slate-500); }
.coming-card p { font-size: 0.92rem; color: var(--slate-500); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.prose { font-size: 1.03rem; color: var(--slate-700); line-height: 1.7; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px 1.3rem; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }

.faq details { border-bottom: 1px solid var(--slate-200); padding: 14px 0; }
.faq summary { font-size: 1.02rem; font-weight: 650; cursor: pointer; color: var(--slate-900); }
.faq details p { margin: 10px 0 0; color: var(--slate-600); font-size: 0.98rem; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; color: var(--slate-800); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"],
.form select, .form textarea {
  height: 44px; padding: 0 12px; border: 1px solid var(--slate-200); border-radius: 8px;
  background: #fff; color: var(--slate-900); width: 100%;
}
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--brand-300); border-color: var(--brand-600);
}
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .form .grid2 { grid-template-columns: 1fr; } }
.form .consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500; font-size: 13px; color: var(--slate-700);
}
.form .consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand-600); }
.form button:disabled { opacity: .65; cursor: wait; }
#form-status { font-size: 14px; color: var(--brand-700); min-height: 1.2em; }
#form-status.is-error { color: #B91C1C; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

footer.site { background: var(--slate-900); color: var(--slate-400); margin-top: 0; }
footer.site .wrap { padding: 28px 0; font-size: 12.5px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; max-width: 20rem; }
.foot-brand .logo-name { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.foot-links a:hover { color: #fff; }
footer.site p { max-width: 48rem; margin-bottom: 6px; }
footer.site .copy { color: var(--slate-500); }
footer.site .legal { font-size: 11.5px; line-height: 1.65; color: var(--slate-500); max-width: 52rem; }
footer.site a { color: var(--slate-300); }
footer.site a:hover { color: #fff; }


/* Warm person band (Chesky headshot) */
.person-band {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}
.person-photo {
  width: 220px; height: 220px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 10px 28px rgba(11, 52, 66, 0.14);
  border: 4px solid #fff;
  background: var(--sand-100);
}
.person-band .lead { margin-bottom: 14px; }
.person-band p { color: var(--slate-700); font-size: 1.02rem; line-height: 1.65; margin: 0 0 12px; }
.person-band p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .person-band { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .person-photo { width: 160px; height: 160px; }
}

/* Article cards — same pattern as Credit Optimize Hub */
a.article-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
a.article-card:hover, a.article-card:focus-visible {
  border-color: var(--brand-300);
  box-shadow: 0 12px 28px rgba(11, 52, 66, 0.10);
  transform: translateY(-2px);
}
.article-art { aspect-ratio: 1200 / 630; background: var(--sand-100); overflow: hidden; }
.article-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-card .article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--amber-800);
}
.article-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin: 0; line-height: 1.35; }
.article-card p { font-size: 0.92rem; color: var(--slate-600); margin: 0; line-height: 1.5; }
.article-card .read { margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 650; color: var(--brand-700); }
.featured-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .featured-grid { grid-template-columns: 1fr; } }
.see-all { margin-top: 18px; font-size: 0.95rem; font-weight: 650; color: var(--brand-700); }
.see-all:hover { text-decoration: underline; text-underline-offset: 2px; }

.article-hero-art {
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 10px;
  background: var(--sand-100);
}
.article-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit { font-size: 12px; color: var(--slate-500); margin: 0 0 8px; }
.photo-credit a { color: var(--slate-600); text-decoration: underline; text-underline-offset: 2px; }

.article-cta {
  margin-top: 36px;
  padding: 24px 22px;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
}
.article-cta h2 { margin-bottom: 8px; }
.article-cta p { color: var(--slate-600); margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}
