/* ─────────────────────────────────────────────────────────────
   Alex Sears CPA — Night Studio refresh
   Design tokens + shared component CSS
   Ported from Claude Design handoff 2026-05-11.
   ───────────────────────────────────────────────────────────── */

:root {
  /* PRIMARY (indigo direction A — Modern-Local) */
  --brand: #3a3f7a;
  --brand-2: #5a60a8;
  --brand-600: #2a3060;
  --brand-100: #dde0ec;
  --brand-50: #eef0f7;

  /* Surfaces */
  --bone: #f7f4ee;
  --paper: #fbfaf6;
  --white: #ffffff;
  --shell: #f1ede4;

  /* Ink (WCAG AA on bone) */
  --ink: #15161c;
  --ink-2: #3a3d4a;
  --ink-3: #5b6070;
  --ink-4: #8a8e9b;

  /* Hairlines */
  --line: rgba(20, 22, 32, 0.10);
  --line-2: rgba(20, 22, 32, 0.06);

  /* Accent — warm amber, used sparingly */
  --amber: #b5803a;
  --amber-50: #f3ead8;

  /* Semantic */
  --ok: #2f7a52;
  --star: #d6a849;

  /* Type */
  --f-display: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii / shadow */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20,22,32,0.04), 0 1px 0 rgba(20,22,32,0.03);
  --shadow-2: 0 1px 3px rgba(20,22,32,0.06), 0 12px 32px -8px rgba(20,22,32,0.08);
}

/* Reset within .ascpa scope */
.ascpa, .ascpa * { box-sizing: border-box; }
.ascpa {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.005em;
  margin: 0;
}
.ascpa h1, .ascpa h2, .ascpa h3, .ascpa h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.ascpa h1 { font-size: 64px; letter-spacing: -0.035em; line-height: 1.02; }
.ascpa h2 { font-size: 44px; letter-spacing: -0.028em; }
.ascpa h3 { font-size: 26px; letter-spacing: -0.018em; line-height: 1.15; }
.ascpa h4 { font-size: 18px; letter-spacing: -0.012em; }
.ascpa p { margin: 0; }
.ascpa a { color: inherit; }

.ascpa .skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-1);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
}
.ascpa .skip-link:focus {
  transform: translateY(0);
}

/* Layout */
.ascpa .wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.ascpa .wrap-mobile { width: 100%; padding: 0 20px; }

/* Buttons */
.ascpa .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-1); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s;
}
.ascpa .btn:active { transform: translateY(1px); }
.ascpa .btn-primary { background: var(--brand); color: #fff; }
.ascpa .btn-primary:hover { background: var(--brand-600); }
.ascpa .btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.ascpa .btn-secondary:hover { border-color: var(--ink); }
.ascpa .btn-ghost { background: transparent; color: var(--brand); padding: 0 4px; height: auto; }
.ascpa .btn-ghost:hover { color: var(--brand-600); }
.ascpa .btn-call { background: var(--ink); color: #fff; }
.ascpa .btn-call:hover { background: var(--ink-2); }
.ascpa .btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }
.ascpa .btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Badges / chips */
.ascpa .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--brand-100); color: var(--brand-600);
}
.ascpa .chip.neutral { background: rgba(20,22,32,0.05); color: var(--ink-2); }
.ascpa .chip.amber { background: var(--amber-50); color: var(--amber); }
.ascpa .chip.dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
}

/* Eyebrow label */
.ascpa .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px;
}
.ascpa .eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--brand);
}

/* Inputs */
.ascpa .field { display: flex; flex-direction: column; gap: 6px; }
.ascpa .field label, .ascpa .field > span {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.ascpa .input, .ascpa .select, .ascpa .textarea,
.ascpa .field input, .ascpa .field select, .ascpa .field textarea {
  font-family: var(--f-body); font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-1); padding: 12px 14px;
  width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ascpa .input:focus, .ascpa .select:focus, .ascpa .textarea:focus,
.ascpa .field input:focus, .ascpa .field select:focus, .ascpa .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.ascpa .textarea, .ascpa .field textarea { min-height: 120px; resize: vertical; }
.ascpa .select, .ascpa .field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2315161c' stroke-width='1.6' stroke-linecap='round' d='M1.5 1.5L6 6l4.5-4.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}

/* Card */
.ascpa .card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-2);
}

/* Section */
.ascpa section { padding: 96px 0; }
.ascpa .sect-tight { padding: 64px 0; }
.ascpa .grid { display: grid; gap: 24px; }

/* Map placeholder */
.ascpa .map-stub {
  background:
    radial-gradient(circle at 30% 40%, rgba(58,63,122,0.06), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(58,63,122,0.04), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(20,22,32,0.025) 18px 19px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(20,22,32,0.025) 18px 19px),
    #ecf0f4;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Stars */
.ascpa .stars { display: inline-flex; gap: 1px; color: var(--star); }

/* FAQ */
.ascpa .faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.ascpa .faq-item:last-child { border-bottom: 1px solid var(--line); }
.ascpa .faq-q {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.ascpa .faq-a {
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .25s, opacity .2s, margin .2s;
}
.ascpa .faq-item.open .faq-a { max-height: 240px; opacity: 1; margin-top: 12px; }
.ascpa .faq-plus {
  width: 18px; height: 18px; position: relative; flex-shrink: 0;
  color: var(--ink-3); transition: transform .2s;
}
.ascpa .faq-plus::before, .ascpa .faq-plus::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: currentColor;
}
.ascpa .faq-plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.ascpa .faq-plus::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); transition: transform .25s; }
.ascpa .faq-item.open .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* Mobile */
@media (max-width: 768px) {
  .ascpa h1 { font-size: 38px; }
  .ascpa h2 { font-size: 28px; }
  .ascpa h3 { font-size: 20px; }
  .ascpa section { padding: 56px 0; }
  .ascpa .btn-lg { width: 100%; }
  .ascpa .wrap { padding: 0 20px; }
  .ascpa .show-desktop { display: none !important; }
  .ascpa .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .ascpa .show-mobile { display: none !important; }
}

/* Utility */
.ascpa .stack-1 > * + * { margin-top: 8px; }
.ascpa .stack-2 > * + * { margin-top: 16px; }
.ascpa .stack-3 > * + * { margin-top: 24px; }
.ascpa .stack-4 > * + * { margin-top: 40px; }
.ascpa .stack-5 > * + * { margin-top: 64px; }
.ascpa .row { display: flex; align-items: center; gap: 12px; }
.ascpa .row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ascpa .col { display: flex; flex-direction: column; }
.ascpa .between { justify-content: space-between; }
.ascpa .muted { color: var(--ink-3); }
.ascpa .mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }

/* Focus ring */
.ascpa a:focus-visible, .ascpa button:focus-visible,
.ascpa .input:focus-visible, .ascpa .select:focus-visible, .ascpa .textarea:focus-visible,
.ascpa .field input:focus-visible, .ascpa .field select:focus-visible, .ascpa .field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Header */
.ascpa .ascpa-header {
  background: var(--bone);
  border-bottom: 1px solid var(--line-2);
  position: relative; z-index: 5;
}
.ascpa .ascpa-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
@media (max-width: 768px) { .ascpa .ascpa-header-inner { height: 60px; } }
.ascpa .logo-row { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ascpa .logo-mark {
  width: 32px; height: 32px; border-radius: 6px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ascpa .logo-text { display: flex; flex-direction: column; line-height: 1; }
.ascpa .logo-name {
  font-family: var(--f-display); font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em; color: var(--ink);
}
.ascpa .logo-sub {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--ink-3); margin-top: 3px; text-transform: uppercase;
}
.ascpa .nav-links { display: inline-flex; gap: 36px; }
.ascpa .nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; position: relative; padding: 8px 0;
}
.ascpa .nav-links a.active { color: var(--brand); }
.ascpa .nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1.5px; background: var(--brand);
}
.ascpa .header-cta { display: inline-flex; align-items: center; gap: 12px; }
.ascpa .header-phone {
  display: inline-flex; color: var(--ink-2); text-decoration: none;
  font-size: 13px; font-weight: 500; gap: 6px; align-items: center;
}
.ascpa .mobile-icon-btn {
  background: transparent; border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: var(--r-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; text-decoration: none;
}

/* Footer */
.ascpa-footer { background: #111319; color: #cbd0d8; padding: 80px 0 32px; }
@media (max-width: 768px) { .ascpa-footer { padding: 56px 0 32px; } }
.ascpa-footer .ascpa-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
}
@media (max-width: 768px) {
  .ascpa-footer .ascpa-footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ascpa-footer .ascpa-footer-brand { max-width: 320px; }
.ascpa-footer .ascpa-footer-brand .logo-name { color: #fff; }
.ascpa-footer .ascpa-footer-brand p {
  font-size: 14px; color: #9ba1ad; margin-top: 18px; line-height: 1.6;
}
.ascpa-footer h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; margin: 0 0 18px;
}
.ascpa-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ascpa-footer a {
  color: #9ba1ad; text-decoration: none; font-size: 14px;
}
.ascpa-footer a:hover { color: #fff; }
.ascpa-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #6e7480;
}
@media (max-width: 768px) {
  .ascpa-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Service card */
.ascpa .svc-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  padding: 28px; transition: border-color .15s, transform .15s;
}
.ascpa .svc-card:hover { border-color: var(--ink); }
.ascpa .svc-card .svc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.ascpa .svc-icon {
  width: 40px; height: 40px; border-radius: var(--r-1);
  background: var(--brand-50); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.ascpa .svc-num { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); }
.ascpa .svc-card h3 { margin-bottom: 8px; font-size: 20px; }
.ascpa .svc-card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin-bottom: 18px; }
.ascpa .svc-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--brand);
}

/* Trust strip */
.ascpa .trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2);
  border-radius: var(--r-2); overflow: hidden;
}
@media (max-width: 768px) { .ascpa .trust-strip { grid-template-columns: 1fr 1fr; } }
.ascpa .trust-cell {
  background: var(--paper); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 2px;
}
@media (max-width: 768px) { .ascpa .trust-cell { padding: 16px 14px; } }
.ascpa .trust-lead {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
}
@media (max-width: 768px) { .ascpa .trust-lead { font-size: 18px; } }
.ascpa .trust-sub { font-size: 12px; color: var(--ink-3); }
@media (max-width: 768px) {
  .ascpa .trust-card div[style*="justify-content:space-between"] {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 4px;
  }
  .ascpa .trust-card div[style*="justify-content:space-between"] span:last-child {
    text-align: left;
  }
}

/* Page hero */
.ascpa .page-hero {
  background: linear-gradient(180deg, var(--brand-50), var(--bone));
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 768px) { .ascpa .page-hero { padding: 56px 0 48px; } }
.ascpa .page-hero h1 { max-width: 900px; }
.ascpa .breadcrumb {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--ink-3); margin-bottom: 24px;
}
.ascpa .breadcrumb a { color: var(--ink-3); text-decoration: none; }
.ascpa .breadcrumb .sep { margin: 0 8px; color: var(--ink-4); }
.ascpa .breadcrumb .here { color: var(--ink); }
.ascpa .page-hero-sub {
  font-size: 19px; color: var(--ink-2); line-height: 1.5;
  margin-top: 20px; max-width: 680px;
}
@media (max-width: 768px) { .ascpa .page-hero-sub { font-size: 16px; } }

/* Section head */
.ascpa .sect-head { max-width: 720px; margin-bottom: 48px; }
@media (max-width: 768px) { .ascpa .sect-head { margin-bottom: 32px; } }
.ascpa .sect-head h2 { margin-top: 16px; }
.ascpa .sect-head p {
  font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-top: 14px;
}
@media (max-width: 768px) { .ascpa .sect-head p { font-size: 15px; } }

/* Numbered step */
.ascpa .step { display: flex; flex-direction: column; gap: 16px; }
.ascpa .step-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.ascpa .step-num {
  font-family: var(--f-mono); font-size: 13px; color: var(--brand); font-weight: 600;
  background: var(--brand-50); padding: 4px 10px; border-radius: var(--r-pill);
}
.ascpa .step h3 { font-size: 20px; }
.ascpa .step p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
