/* AppealNotes SEO pages — shared stylesheet
   Visual language mirrors site/index.html: white ground, teal accent,
   system font stack, thin grey rules, rounded cards. Mobile-first.
   No external fonts, no CDNs, no trackers. */

:root {
  --ink: #111827;
  --muted: #5b6472;
  --accent: #0f766e;
  --accent2: #14b8a6;
  --accent-soft: #ecfdf5;
  --accent-line: #a7f3d0;
  --bg: #ffffff;
  --soft: #f4f7f6;
  --line: #e5e9e8;
  --warn: #7c2d12;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #0b5d56; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-head {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.site-head nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
}
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--accent); }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { padding: 0 5px; }

/* ---------- hero ---------- */
.hero {
  padding: 26px 0 10px;
}
h1 {
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 14px 0 16px;
  max-width: 860px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 20px;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #065f46;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}
.meta-line strong { color: var(--ink); font-weight: 600; }

/* ---------- direct answer box ---------- */
.answer {
  background: var(--soft);
  border-left: 4px solid var(--accent2);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 8px 0 22px;
  max-width: 820px;
}
.answer p { margin: 0; }
.answer strong { color: var(--ink); }

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 6px;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0b5d56; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- sections ---------- */
section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
section > .wrap { max-width: 1040px; }
.narrow { max-width: 820px; }
h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
h3 {
  font-size: 18px;
  margin: 22px 0 6px;
  letter-spacing: -.01em;
}
p { margin: 0 0 14px; }
section > .wrap > p, .narrow p { max-width: 820px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 7px 0; }
li > ul, li > ol { margin-top: 6px; }

.lead-note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
  max-width: 820px;
}
.lead-note strong { color: var(--ink); }

/* ---------- numbered steps ---------- */
.steps { max-width: 860px; margin: 6px 0 4px; }
.step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.step h3 { margin: 3px 0 6px; font-size: 17px; }
.step p { margin: 0 0 6px; color: var(--muted); }
.step p:last-child { margin-bottom: 0; }
.step .where {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}

/* ---------- mistake cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .fix {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
}
.card .fix strong { color: var(--accent); }

/* ---------- evidence checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  max-width: 820px;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent2);
  border-bottom: 2.5px solid var(--accent2);
  transform: rotate(-45deg);
}
.checklist li strong { display: block; }
.checklist li span { color: var(--muted); font-size: 15px; }

.avoid-list { list-style: none; padding: 0; max-width: 820px; }
.avoid-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.avoid-list li:last-child { border-bottom: 0; }
.avoid-list li::before {
  content: "×";
  position: absolute;
  left: 4px;
  top: 7px;
  color: var(--warn);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}

/* ---------- timeline table ---------- */
.table-scroll { overflow-x: auto; margin: 8px 0 16px; max-width: 900px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 0 0 10px;
}
th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); font-size: 14px; }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- DSA callout ---------- */
.dsa {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 860px;
  margin: 8px 0 4px;
}
.dsa h2 { font-size: 22px; margin-top: 0; }
.dsa p, .dsa li { max-width: none; }
.dsa .note { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
  background: #fff;
  max-width: 860px;
}
summary { font-weight: 700; cursor: pointer; }
summary::marker { color: var(--accent); }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- sources & related ---------- */
.sources {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 860px;
  font-size: 15px;
}
.sources ul { margin: 8px 0 0; padding-left: 20px; }
.sources li { margin: 6px 0; }
.sources .note { margin-top: 10px; margin-bottom: 0; }

.related {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.related a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.related a:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  max-width: 860px;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--muted); max-width: 660px; }

/* ---------- disclaimer / footer ---------- */
.disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--warn);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 900px;
}
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
footer p { max-width: 900px; }
footer nav { margin-top: 10px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.note { color: var(--muted); font-size: 13px; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero { padding: 36px 0 14px; }
  section { padding: 44px 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { gap: 18px; }
  .answer { padding: 20px 24px; }
  .cta-band { padding: 28px; }
}

@media (min-width: 980px) {
  h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
