/* QuickBooks Study Companion — Shared Sub-Page Styles */

:root {
  --coral: #ff5a4e;
  --coral-deep: #e63946;
  --yellow: #ffd23f;
  --yellow-soft: #ffe79a;
  --teal: #0a8a8a;
  --teal-light: #4ec9c9;
  --pink: #ffb5c5;
  --pink-soft: #ffe0e8;
  --purple: #8b5cf6;
  --purple-soft: #e9d5ff;
  --green: #22c55e;
  --green-soft: #bbf7d0;
  --blue: #3a86ff;
  --blue-soft: #c7d9ff;
  --orange: #ff8c42;
  --cream: #f5f1e8;
  --ink: #1a1a2e;
  --ink-soft: #4a4a6a;
  --warm-bg: #f5f1e8;
  --warm-bg-deep: #ede8d8;
  --shadow-hard: 3px 3px 0 var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--warm-bg);
  color: var(--ink);
  line-height: 1.5;
}

/* ========== TOP BAR (simpler than full sidebar for sub-pages) ========== */
.topbar {
  background: white;
  border-bottom: 2px solid var(--ink);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.topbar-brand-logo {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 18px;
  font-weight: 800;
}
/* Three-circle brand mark: override the dark round container so the SVG shows cleanly. */
.logo-circles {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: 32px;
}
.logo-circles .brand-circles {
  height: 100%;
  width: auto;
  display: block;
}
.topbar-brand-text {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.topbar-brand-text small {
  display: block;
  font-weight: 500;
  font-size: 9.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.topbar-nav a:hover { color: var(--coral); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  background: white;
  color: var(--ink);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn.primary {
  background: var(--ink);
  color: white;
}
.btn.primary:hover {
  background: var(--coral);
  border-color: var(--ink);
}
.btn.coral {
  background: var(--coral);
  color: white;
}
@media (max-width: 720px) {
  .topbar { padding: 12px 18px; }
  .topbar-nav { display: none; }
  .topbar-brand-text small { display: none; }
}

/* ========== PAGE CONTAINER ========== */
.page-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.page-wrap.wide { max-width: 1180px; }

/* ========== PAGE HEADER ========== */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.page-h1 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--ink);
}
.page-h1 .accent { color: var(--coral); }
.page-h1 .accent.yellow { color: #d99700; }
.page-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 48px;
}

/* ========== CONTENT BLOCKS ========== */
.content-block {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.content-block h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.content-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 18px;
}
.content-block h3:first-child { margin-top: 0; }
.content-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block ul, .content-block ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.content-block li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.content-block a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
}
.content-block a:hover { text-decoration: underline; }
.content-block strong { color: var(--ink); font-weight: 700; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.pricing-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  background: var(--coral);
  color: white;
  transform: scale(1.04);
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--yellow);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-tier-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.pricing-card.featured .pricing-tier-name { color: white; }
.pricing-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pricing-card.featured .pricing-price small { color: rgba(255,255,255,0.8); }
.pricing-yearly {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.pricing-card.featured .pricing-yearly { color: rgba(255,255,255,0.85); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  line-height: 1.5;
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--teal);
  font-weight: 800;
}
.pricing-card.featured .pricing-features li::before { color: var(--yellow); }
.pricing-features li.no::before { content: '✕'; color: var(--ink-soft); }
.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pricing-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.pricing-card.featured .pricing-cta {
  background: white;
  color: var(--ink);
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 22px; }
  .pricing-card.featured { transform: scale(1); }
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-q:hover { background: rgba(26,26,46,0.03); }
.faq-toggle {
  font-size: 22px;
  font-weight: 400;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq-a-inner p { margin-bottom: 10px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ========== CONTACT FORM ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  background: white;
  color: var(--ink);
  transition: box-shadow 0.15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ========== SITE FOOTER ========== */
.site-footer {
  margin-top: 64px;
  padding: 40px 32px 24px;
  border-top: 2px solid var(--ink);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand-block .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.footer-brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--coral); }
.footer-legal {
  border-top: 1px solid rgba(26,26,46,0.1);
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.footer-legal p { margin-bottom: 6px; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-block { grid-column: span 2; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: span 1; }
}
