/* =========================================================================
   sunlight.css — the Sunlight redesign layer. Loads LAST so it wins the
   cascade over modern.css / editorial.css / per-page sheets.

   Two jobs:
   1. Restyle the shared chrome every page already uses (nav, buttons, footer,
      toast, cookie banner, modals, forms, tables, pricing, FAQ accordions).
   2. Provide the Sunlight vocabulary templates reach for directly:
      .sl-panel, .sl-note, .sl-hand, .sl-band, .sl-btn*, .sl-chart, .ws-*.
   ========================================================================= */

/* ------------------------------------------------------------------ */
/* 0. Page ground                                                       */
/* ------------------------------------------------------------------ */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
main.grid-background { background: var(--bg); }
.grid-background::before { display: none; }          /* kill the old purple glow */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* Page templates set vertical padding on their .sl-wrap element with the
   `padding: Npx 0` shorthand, which would zero the gutters; the gutters must
   always win, so they are !important here and nowhere else. */
.sl-wrap  { max-width: 1180px; margin: 0 auto; padding-left: 32px !important; padding-right: 32px !important; }
@media (max-width: 640px) { .sl-wrap { padding-left: 16px !important; padding-right: 16px !important; } }

/* Two-column section header: short title left, wider lede right; stacks on phones */
.sl-grid-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: end; }
@media (max-width: 900px) { .sl-grid-head { grid-template-columns: 1fr; gap: 12px; } }

/* ------------------------------------------------------------------ */
/* 1. Type helpers                                                      */
/* ------------------------------------------------------------------ */
.sl-h    { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; margin: 0; color: var(--ink); }
.sl-hand { font-family: var(--font-hand); font-weight: 600; line-height: 1; }
.sl-muted{ color: var(--muted); }
.sl-label{ font-family: var(--font-display); font-weight: 700; font-size: 13px; display: block; margin-bottom: 8px; color: var(--ink); }
.sl-kicker { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* 2. Buttons                                                           */
/* ------------------------------------------------------------------ */
.sl-btn,
.btn-primary, .nav-cta, .form-btn-purple, .button-primary, .button-primary-cta,
.btn-secondary, .btn-outline, .checkout-button, .pricing-btn, .primary-btn,
.cookie-btn, .btn.btn-primary, .btn.btn-secondary, .btn.btn-danger, .magic-link-submit, .google-sign-in, .connect-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 0; border: 2px solid var(--ink);
  background: var(--ink); color: var(--sun);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: none; transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.sl-btn:hover, .btn-primary:hover, .nav-cta:hover, .form-btn-purple:hover, .button-primary:hover,
.button-primary-cta:hover, .checkout-button:hover, .pricing-btn:hover, .primary-btn:hover,
.btn.btn-primary:hover, .magic-link-submit:hover, .connect-btn:hover {
  background: var(--accent-hover); color: var(--sun); transform: none;
}
.btn-primary:active, .sl-btn:active { transform: translate(1px, 1px); }

.sl-btn-yellow, .btn-secondary, .cookie-accept, .button-secondary {
  background: var(--sun); color: var(--ink);
}
.sl-btn-yellow:hover, .btn-secondary:hover, .cookie-accept:hover, .button-secondary:hover { background: var(--sun-hover); color: var(--ink); }

.sl-btn-white, .btn-outline, .google-sign-in, .btn.btn-secondary, .action-links-secondary .button, .cookie-deny, .chart-menu-btn {
  background: var(--surface); color: var(--ink);
}
.sl-btn-white:hover, .btn-outline:hover, .google-sign-in:hover, .btn.btn-secondary:hover, .action-links-secondary .button:hover, .cookie-deny:hover, .chart-menu-btn:hover { background: var(--sun); color: var(--ink); }

.sl-btn-ghost { background: transparent; color: var(--ink); }
.sl-btn-ghost:hover { background: var(--sun); color: var(--ink); }

.sl-btn-danger, .btn-danger, .btn.btn-danger { background: var(--error); color: #FFFFFF; border-color: var(--ink); }
.sl-btn-danger:hover, .btn-danger:hover, .btn.btn-danger:hover { background: #A52A22; color: #FFFFFF; }

.sl-btn-sm, .btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.sl-btn-lg, .btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.sl-btn-block { width: 100%; }

.btn-primary .arrow, .btn-secondary .arrow, .nav-cta svg { transition: none; transform: none; }
.btn-primary:hover .arrow, .btn-secondary:hover .arrow { transform: none; }
button:disabled, .btn-primary:disabled, .checkout-button:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* 3. Navigation                                                        */
/* ------------------------------------------------------------------ */
.navbar {
  background: var(--sun);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 2px solid var(--ink);
  padding: 0 32px;
  position: sticky; top: 0; z-index: 50;
}
.nav-container { max-width: 1180px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo img { display: none; }
.nav-logo-mark { display: block; width: 26px; height: 26px; flex: none; }
.nav-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; background: none; }
.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); background: none; }
.nav-link.active { border-bottom-color: var(--ink); font-weight: 600; }
.nav-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-cta svg { display: none; }
.nav-credits { font-size: 13px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--surface); font-weight: 600; white-space: nowrap; }
.user-button { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.user-button:hover { color: var(--ink); background: none; }
.user-avatar { width: 30px; height: 30px; border: 2px solid var(--ink); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.dropdown-menu { border: 2px solid var(--ink) !important; border-radius: 0 !important; box-shadow: var(--shadow-md) !important; background: var(--surface) !important; min-width: 180px !important; margin-top: 10px; }
.dropdown-item { display: block; padding: 10px 14px !important; font-size: 14px !important; font-weight: 500; color: var(--ink) !important; text-decoration: none; }
.dropdown-item:hover { background: var(--sun); color: var(--ink) !important; }
.dropdown-menu > div { border-top: 2px solid var(--ink) !important; }
@media (max-width: 768px) {
  /* undo modern.css, which centers the nav and forces the links to full width */
  .navbar { padding: 0 16px; }
  .nav-container { height: 60px; justify-content: space-between; flex-wrap: nowrap; }
  .nav-links { width: auto; justify-content: flex-end; gap: 12px; flex-wrap: nowrap; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link.nav-login { display: inline-block; }
  .nav-links .user-menu { display: block; }
  .user-button > span:not(.user-avatar) { display: none; }
}
@media (max-width: 480px) {
  .nav-cta { width: auto; min-height: 36px; padding: 0 12px; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* 4. Surfaces: panels, sticky notes, bands, tables                     */
/* ------------------------------------------------------------------ */
.sl-panel { background: var(--surface); border: 2px solid var(--ink); }
.sl-shadow-sm { box-shadow: var(--shadow-sm); }
.sl-shadow { box-shadow: var(--shadow-lg); }
.sl-shadow-xl { box-shadow: var(--shadow-xl); }

.sl-note {
  background: var(--sun); border: 2px solid var(--ink); box-shadow: var(--shadow-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
}
.sl-note-white { background: var(--surface); }
.sl-note-black { background: var(--ink); color: var(--bg); }
.sl-note-black .sl-hand { color: var(--sun); }
.sl-note-black .sl-muted { color: #E6DDB0; }
.sl-note .sl-hand { font-size: 26px; }
.sl-note p { margin: 0; font-size: 14px; line-height: 1.55; }
.sl-tilt-l { transform: rotate(-1deg); }
.sl-tilt-r { transform: rotate(1deg); }
.sl-tilt-l2 { transform: rotate(-2deg); }
.sl-tilt-r2 { transform: rotate(2deg); }
.sl-tilt-l3 { transform: rotate(-3deg); }
.sl-tilt-r3 { transform: rotate(3deg); }
@media (max-width: 640px) { .sl-tilt-l, .sl-tilt-r, .sl-tilt-l2, .sl-tilt-r2, .sl-tilt-l3, .sl-tilt-r3 { transform: none; } }

/* small square sticky (wall of notes) */
.sl-sticky {
  width: 150px; height: 150px; padding: 16px 14px;
  background: var(--sun); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-hand); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
}
.sl-sticky small { font-size: 16px; font-weight: 500; color: var(--muted); font-family: var(--font-hand); }
.sl-sticky.sl-note-white { background: var(--surface); }
.sl-sticky.sl-note-black { background: var(--ink); color: var(--sun); }
.sl-sticky.sl-note-black small { color: #FFE37A; }
.sl-wall { display: flex; flex-wrap: wrap; gap: 16px; }

.sl-band { background: var(--sun); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sl-band-white { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sl-band-black { background: var(--ink); color: var(--bg); }
.sl-band-black .sl-h, .sl-band-black h2 { color: var(--bg); }
.sl-band-black .sl-muted, .sl-band-black p { color: #E6DDB0; }

.sl-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 2px solid var(--ink); background: var(--sun); font-family: var(--font-display); font-size: 11px; font-weight: 700; }
.sl-tag-white { background: var(--surface); }

.sl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sl-table th { text-align: left; font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 12px 14px; border-bottom: 2px solid var(--ink); background: var(--bg); white-space: nowrap; }
.sl-table td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.sl-table tr:last-child td { border-bottom: 0; }

.sl-rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.sl-hair { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* step cards with a numbered tab */
.sl-step { border: 2px solid var(--ink); padding: 22px 22px 24px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; position: relative; }
.sl-step h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.sl-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sl-step .sl-step-tab { position: absolute; top: -14px; left: 18px; background: var(--sun); border: 2px solid var(--ink); padding: 2px 10px; font-family: var(--font-display); font-size: 12px; font-weight: 700; }

/* sticky-note step row (handwritten titles) */
.sl-stepnote { background: var(--sun); border: 2px solid var(--ink); box-shadow: var(--shadow-md); padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.sl-stepnote h3 { margin: 0; font-family: var(--font-hand); font-weight: 600; font-size: 34px; line-height: 1; }
.sl-stepnote p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.sl-stepnote.sl-note-black { background: var(--ink); }
.sl-stepnote.sl-note-black h3 { color: var(--sun); }
.sl-stepnote.sl-note-black p { color: var(--bg); }

/* FAQ two-column rows (landing + construction) */
.sl-faq { padding: 20px 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 24px; }
.sl-faq h3 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.sl-faq p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sl-faq:last-of-type { border-bottom: 2px solid var(--ink); }
@media (max-width: 760px) { .sl-faq { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* 5. Chart mock (marketing pages) — bars use the editor's real colors  */
/* ------------------------------------------------------------------ */
.sl-chart { background: var(--surface); border: 2px solid var(--ink); padding: 26px 28px 22px; }
.sl-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.sl-chart-cols { display: grid; grid-template-columns: 200px repeat(12, minmax(0,1fr)); font-size: 12px; color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-weight: 500; }
.sl-chart-rows { position: relative; }
.sl-chart-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ws-today); }
.sl-trow { display: grid; grid-template-columns: 200px repeat(12, minmax(0,1fr)); align-items: center; height: 40px; border-bottom: 1px solid var(--rule); }
.sl-trow:last-child { border-bottom: 0; }
.sl-trow > span:first-child { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.sl-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .sl-chart { padding: 16px; }
  .sl-chart-cols, .sl-trow { grid-template-columns: 110px repeat(12, minmax(0,1fr)); }
}

.ws { height: 22px; border-radius: var(--r-bar); display: flex; align-items: center; padding: 0 8px; color: #FFFFFF; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ws-ux { background: var(--ws-uiux); }
.ws-be { background: var(--ws-backend); }
.ws-fe { background: var(--ws-frontend); }
.ws-mk { background: var(--ws-marketing); }
.ws-do { background: var(--ws-devops); }
.ws-qa { background: var(--ws-qa); }
.ws-na { background: var(--ws-none); }
.ws-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.ws-selected { box-shadow: 0 0 0 2px #3B82F6; }

/* ------------------------------------------------------------------ */
/* 6. Forms                                                             */
/* ------------------------------------------------------------------ */
.sl-input, .form-input, .magic-link-input, input[type="text"].form-input, input[type="date"].form-input, textarea.form-input, select.form-input {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--surface);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--ink);
  box-shadow: none; transition: none;
}
.sl-input:hover, .form-input:hover { border-color: var(--ink); }
.sl-input:focus, .form-input:focus, .magic-link-input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.form-input::placeholder, .sl-input::placeholder { color: var(--muted-faint); }
.form-group label, .form-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px; display: block; }
.help-text, .form-help, .sl-help { font-size: 13px; color: var(--muted); line-height: 1.5; }
.help-text::before { display: none; }
.description-help li::before { background: var(--ink); }
.form-error { color: var(--error); font-size: 13px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }

/* modern.css paints #result-container as a green success box with its own
   margin/padding; the result page now uses that id only as a hook */
#result-container { background: transparent; border: 0; border-radius: 0; color: inherit; margin: 0 auto; padding-top: 56px; padding-bottom: 88px; text-align: left; }
@media (max-width: 640px) { #result-container { padding-top: 32px; padding-bottom: 64px; } }
#result-container a { font-weight: inherit; }
.feedback-link:not(.sl-btn) { display: inline; padding: 0; border: 0; background: none; font-size: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; }
.feedback-link:not(.sl-btn):hover { background: none; border: 0; color: var(--muted); }

/* create form: old rounded wrappers around the mode cards and the writing tips */
.milestone-mode-selector { border: 0; border-radius: 0; padding: 0; background: none; }
.description-help { border-radius: 0; border: 2px solid var(--ink); background: var(--bg-sunken); }

/* template picker is a wrapping grid now, so the old carousel arrows never apply */
.carousel-arrow { display: none !important; }

/* milestone mode radio cards (project form) */
.milestone-mode { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); box-shadow: none; }
.milestone-mode.active { background: var(--sun); border-color: var(--ink); box-shadow: none; }
.milestone-mode:hover { border-color: var(--ink); }
.mode-indicator { border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); }
.milestone-mode.active .mode-indicator { border-color: var(--ink); background: var(--surface); }
.mode-dot { background: var(--ink); }
.milestone-mode.active .mode-dot { background: var(--ink); }
.premium-badge { border: 2px solid var(--ink); border-radius: 0; background: var(--sun); color: var(--ink); font-family: var(--font-display); font-size: 10px; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* 7. Toast, cookie banner, modals                                       */
/* ------------------------------------------------------------------ */
.toast { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--shadow-md); }
.toast-message { color: var(--ink); font-weight: 500; }

.cookie-popup { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--shadow-lg); }
.cookie-text { color: var(--ink); font-size: 14px; line-height: 1.5; }
.cookie-text a { color: var(--ink); text-decoration: underline; }
.cookie-btn { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 0; }

.modal-overlay { background: rgba(0, 0, 0, .55); }
.modal-content { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--shadow-xl); }
.modal-header { border-bottom: 2px solid var(--ink); }
.modal-header h2 { font-family: var(--font-display); font-size: 18px; }
.modal-footer { border-top: 2px solid var(--ink); }
.close-modal { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer; }
.close-modal:hover { background: var(--sun); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 8. Pricing cards (landing, pricing table)                            */
/* ------------------------------------------------------------------ */
.pricing { background: var(--sun); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.pricing-header h2 { font-family: var(--font-display); }
.pricing-header p { color: var(--ink); }
.pricing-card, .pricing-card.featured {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: none;
  transform: none; transition: none;
}
.pricing-card:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.pricing-card.featured { background: var(--ink); color: var(--bg); box-shadow: 8px 8px 0 var(--surface); }
.pricing-card.featured h3, .pricing-card.featured .amount, .pricing-card.featured .period, .pricing-card.featured p, .pricing-card.featured li { color: var(--bg); }
.pricing-card.featured h3 { color: var(--sun); }
.pricing-card.featured .pricing-features strong, .pricing-card.featured .credit-amount, .pricing-card.featured .credit-note, .pricing-card.featured .pricing-features span { color: var(--bg); }
.pricing-card.featured .pricing-features li::before { background: var(--sun); }
.pricing-card.featured .pricing-btn, .pricing-card.featured .checkout-button { background: var(--sun); color: var(--ink); }
.pricing-card.featured .pricing-btn:hover, .pricing-card.featured .checkout-button:hover { background: var(--sun-hover); color: var(--ink); }
.pricing-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.pricing-card .amount { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.03em; }
.pricing-card .period { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--muted); }
.pricing-features li { color: var(--muted); }
.pricing-features li::before, .pricing-features svg { color: var(--ink); }
.pricing-card .pricing-btn, .pricing-card .checkout-button { width: 100%; }
.pricing-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pricing-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pricing-grid--four { grid-template-columns: 1fr; } }
.pricing-card:not(.featured) .pricing-btn, .pricing-card:not(.featured) .checkout-button { background: var(--surface); color: var(--ink); }
.pricing-card:not(.featured) .pricing-btn:hover, .pricing-card:not(.featured) .checkout-button:hover { background: var(--sun); color: var(--ink); }
.best-value-badge { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; font-family: var(--font-display); font-size: 10px; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* 9. FAQ accordion (faq page, construction, landing)                   */
/* ------------------------------------------------------------------ */
.faq-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
.faq-card-header { border-bottom: 2px solid var(--ink); }
.faq-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.faq-item { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.faq-item:first-child { border-top: 0; }
.faq-item.active { background: transparent; border-color: var(--rule); box-shadow: none; }
.faq-question { font-weight: 600; font-size: 15px; color: var(--ink); background: transparent; border-radius: 0; }
.faq-question:hover, .faq-item.active .faq-question { color: var(--ink); background: transparent; }
.faq-question .icon { font-family: var(--font-display); font-weight: 700; color: var(--ink); background: transparent; border: 0; width: auto; height: auto; }
.faq-item.active .faq-question .icon { transform: none; color: var(--ink); }
.faq-answer p, .faq-answer li { color: var(--muted); }
.faq-sidebar, .faq-nav { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
.faq-nav h3 { font-family: var(--font-hand); font-weight: 600; font-size: 24px; color: var(--ink); }
.faq-nav a { color: var(--ink); border-left: 3px solid transparent; border-radius: 0; }
.faq-nav a:hover, .faq-nav a.active { background: var(--sun); color: var(--ink); border-left-color: var(--ink); }
.faq-hero h1 { font-family: var(--font-display); }
.faq-hero p { color: var(--muted); }

/* ------------------------------------------------------------------ */
/* 10. Footer                                                           */
/* ------------------------------------------------------------------ */
.footer { background: var(--bg); border-top: 2px solid var(--ink); padding: 40px 0 28px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.footer-brand { gap: 16px; }
.footer-logo img { display: none; }
.footer-logo { gap: 10px; }
.footer-logo-mark { display: block; width: 22px; height: 22px; flex: none; }
.footer-logo span { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-badges img { filter: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.footer-links-group h4 { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-links-group a, .footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links-group a:hover, .footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 16px; }
.footer-bottom p { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ */
/* 11. Generic cards, badges, progress, and legacy helpers              */
/* ------------------------------------------------------------------ */
.feature-card, .settings-card, .faq-card, .info-box, .example-box, .guide-faq-card, .connector-card, .contact-method, .credit-info, .charts-table, .form-section, .success-header, .primary-action, .secondary-actions {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: none;
}
.feature-card:hover, .connector-card:hover, .stat-box:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.badge, .badge-plan, .role-badge, .new-badge, .beta-badge, .badge-unlimited, .badge-beta {
  border: 2px solid var(--ink); border-radius: 0; background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0;
}
.progress-track, .credit-progress, .progress-bar-track { height: 12px; border: 2px solid var(--ink); background: var(--surface); border-radius: 0; overflow: hidden; }
.progress-fill, .credit-progress .progress-bar, .progress-fill.high, .progress-fill.medium, .progress-fill.low,
.credit-progress .progress-bar.high, .credit-progress .progress-bar.medium, .credit-progress .progress-bar.low { background: var(--ink); border-radius: 0; height: 100%; }
.section-title { font-family: var(--font-display); }
.section-description, .section-lede { color: var(--muted); }
.section-eyebrow, .hero-eyebrow { font-family: var(--font-hand); font-weight: 600; font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.hero-title .highlight { color: inherit; background: none; -webkit-text-fill-color: inherit; }
.animate-fade-in, .animate-fade-in-delay-1, .animate-fade-in-delay-2, .animate-fade-in-delay-3, .animate-fade-in-delay-4 { animation: none; opacity: 1; transform: none; }

/* loading overlay (edit milestones / project form) */
.loading-overlay { background: rgba(255, 247, 214, .92); }
.loading-content { background: var(--surface); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--shadow-lg); }
.loading-spinner { border-color: var(--rule); border-top-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 12. Layout helpers                                                   */
/* ------------------------------------------------------------------ */
.sl-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.sl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.sl-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.sl-split { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 48px; align-items: center; }
.sl-split-rev { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px; align-items: center; }
.sl-split-even { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.sl-section { padding: 80px 0; }
.sl-section-sm { padding: 48px 0; }
.sl-stack { display: flex; flex-direction: column; gap: 16px; }
.sl-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sl-center { text-align: center; align-items: center; }
@media (max-width: 900px) {
  .sl-grid-2, .sl-grid-3, .sl-grid-4, .sl-split, .sl-split-rev, .sl-split-even { grid-template-columns: 1fr; }
  .sl-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sl-section { padding: 56px 0; }
}
@media (max-width: 600px) { .sl-grid-4 { grid-template-columns: 1fr; } }
