/* Shared reset + accessibility baseline. Page-specific files set colors/fonts/layout. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text, #1a1a1a);
  background: var(--bg, #fff);
  font-family: var(--font-body, sans-serif);
  line-height: 1.75;
  font-size: 17px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display, var(--font-body, sans-serif));
  line-height: 1.3;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.prose-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

figure.photo {
  max-width: 880px;
  margin: 2.2em auto;
}
figure.photo img { margin: 0 auto; border-radius: 6px; }
figure.photo figcaption {
  margin-top: 0.6em;
  font-size: 0.88rem;
  color: var(--text-muted, #666);
  text-align: center;
}

/* CTA links share tap-target sizing; visual skin comes from page CSS */
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
}

/* Accessible focus ring — never remove outline without replacing it */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent, #2563eb);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Mobile-first: no page may introduce horizontal scroll at 320px */
html, body { max-width: 100%; overflow-x: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ===== Header (HD1-4) ===== */
.site-header { border-bottom: 1px solid rgba(0,0,0,.08); background: #fff; }
.hd-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 1rem; flex-wrap: wrap; }
.hd-col { display: flex; flex-direction: column; align-items: center; padding: 16px 20px; gap: .5rem; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--primary); }
.hd-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hd-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.hd-nav a[aria-current="page"] { color: var(--primary); border-bottom: 2px solid var(--accent); }
.hd3-bar { background: var(--primary); color: #fff; font-size: .85rem; }
.hd3-bar .container { padding: 6px 20px; }
.hd4-right { display: flex; align-items: center; gap: 1rem; }
.hd4-cta { background: var(--primary); color: #fff; padding: .55em 1.1em; font-size: .88rem; min-height: 40px; }
.hd4-menu summary { cursor: pointer; list-style: none; font-weight: 700; padding: .4em .2em; }
.hd4-menu summary::-webkit-details-marker { display: none; }
.hd4-menu[open] summary { color: var(--primary); }
.hd4-menu nav { display: flex; flex-direction: column; gap: .5rem; position: absolute; right: 20px; margin-top: .5rem; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: .8rem 1.2rem; box-shadow: 0 6px 20px rgba(0,0,0,.1); z-index: 10; }
.hd4-menu nav a { text-decoration: none; font-weight: 600; }

/* ===== Hero (HR1-5) ===== */
.hero { padding: 3.2rem 0; background: var(--bg); }
.hero h1 { color: var(--primary); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero-desc { color: var(--text-muted, #555); font-size: 1.05rem; max-width: 620px; }
.hero.hr1 { border-bottom: 3px solid var(--accent); }
.hero.hr2 { background: linear-gradient(180deg, var(--bg), #fff); text-align: center; }
.hero-center { display: flex; flex-direction: column; align-items: center; }
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-fan { width: 110px; height: 110px; color: var(--accent); flex-shrink: 0; }
.hero.hr4 { background: #fafafa; }
.hero-label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero.hr5 { background: var(--primary); }
.hero.hr5 h1, .hero.hr5 .hero-desc { color: #fff; }

/* ===== CTA (CT1-7) ===== */
.cta { padding: 2.4rem 0; }
.cta-call { background: var(--primary); color: #fff; }
.cta-sms { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.cta-center { display: flex; justify-content: center; }
.cta.ct1 { background: var(--primary); }
.cta.ct1 .cta-call { background: #fff; color: var(--primary); }
.cta-box { background: var(--bg); border-radius: 14px; padding: 2rem; text-align: center; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.cta-split { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-stack { display: flex; flex-direction: column; gap: .8rem; }
.cta-inline { text-align: center; }
.cta-inline a { text-decoration: none; font-weight: 700; color: var(--primary); }
.cta-sticky { display: none; }
@media (max-width: 640px) {
  .cta.ct4 .cta-sticky { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
  .cta.ct4 .cta-sticky .cta-link { flex: 1; border-radius: 0; }
}
.cta-line { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-line a { text-decoration: none; font-weight: 700; color: var(--primary); }
.cta-diagonal { background: var(--accent); clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); padding: 2.4rem; display: flex; justify-content: center; }
.cta-diagonal .cta-call { background: #fff; color: var(--primary); }
.cta-diagonal .cta-sms { background: transparent; color: #fff; border-color: #fff; }
.cta-outline { border: 2px solid var(--primary); border-radius: 12px; padding: 1.6rem; text-align: center; }

/* ===== Footer (FT1-3) ===== */
.site-footer { background: #1c1c1c; color: #ddd; padding: 2.6rem 0 1.6rem; margin-top: 3rem; font-size: .9rem; }
.site-footer a { color: #ddd; }
.footer-biz p { margin: 0 0 .3em; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .8rem 0; }
.footer-copyright { color: #999; font-size: .82rem; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.ft-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.ft-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.ft-stack .footer-links { justify-content: center; }

/* ===== Article content primitives ===== */
.article-body { max-width: 880px; margin: 2.4rem auto; padding: 0 20px; }
.content-section h2 { color: var(--primary); font-size: 1.4rem; }
.three-line-summary { background: var(--bg); border-radius: 10px; padding: 1.4rem 1.8rem; margin-bottom: 1.6rem; }
.three-line-summary ul { list-style: none; padding: 0; margin: 0; }
.three-line-summary li { padding: .3em 0; font-weight: 600; }
.summary-box { background: var(--bg); border-left: 4px solid var(--accent); padding: 1.2rem 1.6rem; margin: 1.6rem 0; border-radius: 0 8px 8px 0; }
.compare-table table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.compare-table th, .compare-table td { border: 1px solid rgba(0,0,0,.12); padding: .6em .8em; text-align: left; }
.compare-table th { background: var(--bg); color: var(--primary); }
.steps ol { list-style: none; padding: 0; counter-reset: none; }
.steps li { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px dashed rgba(0,0,0,.12); }
.steps h3 { color: var(--primary); margin-bottom: .3em; }
.checkpoint { font-size: .9rem; color: var(--text-muted, #666); }
.checklist li { margin-bottom: .6em; }
.caveat { font-size: .88rem; color: var(--text-muted, #666); }
.faq details { border-bottom: 1px solid rgba(0,0,0,.1); padding: .8em 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.toc { list-style: none; }
.toc ul { list-style: none; padding: 0; margin: 0; }
