/* Appeal Edge blog stylesheet.
   One file for /blog/ and every post. Tokens, nav, buttons, footer and type
   are copied from the homepage (frontend-v2/index.html) so the blog matches it.
   The fixed social rail and WhatsApp button stay inline on each page (CLAUDE.md).
   Scanner and case form styles live in ae-scanner.css and ae-caseform.css. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-variable.woff2') format('woff2');
}

:root {
  --navy: #0A2540;
  --navy-2: #0E2E52;
  --blue: #2B50FF;
  --blue-dark: #1E3AE0;
  --blue-soft: #8FA3FF;
  --amber: #F5A623;
  --amber-dark: #E48F00;
  --ink: #1A2433;
  --grey: #5B6675;
  --mist: #F4F7FB;
  --line: #D9DEE6;
  --white: #FFFFFF;
  --d-text: rgba(255,255,255,.72);
  --d-mute: rgba(255,255,255,.55);
  --d-line: rgba(255,255,255,.12);
  --grad-dark: linear-gradient(135deg, #0A2540 0%, #0E2E52 100%);
  --e1: 0 1px 2px rgba(10,37,64,.06);
  --e2: 0 6px 24px rgba(10,37,64,.07);
  --e3: 0 12px 32px rgba(10,37,64,.12);
  --focus: 0 0 0 3px rgba(43,80,255,.35);
  --r-card: 16px;
  --r-btn: 10px;
  --maxw: 1160px;
  --section-y: clamp(72px, 9vw, 120px);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(43,80,255,.16); }
img { max-width: 100%; }
p, li, h1, h2, h3 { text-wrap: pretty; }
button { font: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* Layout: pages are wide, the article column is narrow */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
nav.breadcrumb.wrap, article.wrap { max-width: 780px; }
.section { padding: var(--section-y) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15.5px;
  padding: 13px 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-dark); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--mist); color: var(--navy); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand:hover { opacity: .85; text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 400; color: var(--grey); white-space: nowrap; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links .nav-cta-mobile { display: none; }
.nav-cta { padding: 9px 16px; font-size: 14.5px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; flex: none; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .2s ease, background .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-inner { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    box-shadow: 0 12px 24px rgba(10,37,64,.08); padding: 8px 0 16px; border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 28px; font-size: 16px; color: var(--navy); }
}
@media (max-width: 640px) {
  .wrap, .nav-inner { padding: 0 20px; }
  .brand-logo { height: 36px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav-links .nav-cta-mobile { display: block; padding: 10px 20px 0; }
  .nav-links .nav-cta-mobile a { display: flex; color: var(--white); padding: 13px 20px; }
}

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.lede { color: var(--grey); max-width: 54ch; font-size: 17px; }
.post-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: rgba(43,80,255,.08); border-radius: 999px; padding: 5px 12px;
}
.display, .h-display {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  font-size: clamp(30px, 4.6vw, 56px); color: var(--navy); text-wrap: balance;
}

/* ---------- Blog index ---------- */
.blog-header { padding: clamp(56px, 7vw, 88px) 0 8px; }
.blog-header .display { margin-top: 16px; max-width: 24ch; }
.blog-header .lede { margin-top: 18px; }
.blog-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--e1); padding: 28px; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.post-card:hover { box-shadow: var(--e3); transform: translateY(-2px); border-color: var(--blue); text-decoration: none; color: inherit; }
.post-card h2 { margin-top: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--navy); line-height: 1.25; }
.post-card p { margin-top: 10px; color: var(--grey); font-size: 15px; }
.post-card .post-meta { margin-top: 18px; font-size: 13px; color: var(--grey); }
.blog-cta { margin-top: 56px; padding: clamp(40px, 5vw, 56px); border-radius: var(--r-card); background: var(--grad-dark); text-align: center; }
.blog-cta h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(24px, 3vw, 34px); color: var(--white); line-height: 1.1; max-width: 20ch; margin: 0 auto; }
.blog-cta p { margin: 14px auto 0; color: var(--d-text); font-size: 16px; max-width: 52ch; }
.blog-cta .btn { margin-top: 26px; }
.blog-cta .cta-assure { margin-top: 16px; font-size: 13px; color: var(--d-mute); }

/* ---------- Article ---------- */
.breadcrumb { padding: 40px 28px 0; font-size: 13px; color: var(--grey); }
.breadcrumb a { color: var(--grey); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }
.article-header { padding: 24px 0 36px; }
h1.article-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  font-size: clamp(28px, 4.2vw, 44px); color: var(--navy); margin-top: 18px; text-wrap: balance;
}
.article-dek { margin-top: 18px; font-size: 18.5px; color: var(--grey); }
.byline { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }
.byline strong { color: var(--navy); font-weight: 600; }
.prose h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; font-size: clamp(24px, 2.8vw, 31px); color: var(--navy); margin-top: 52px; }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); margin-top: 32px; }
.prose p { margin-top: 16px; color: var(--ink); }
.prose p.lede-p { font-size: 18.5px; color: var(--grey); }
.prose ul, .prose ol { margin-top: 16px; padding-left: 22px; color: var(--ink); }
.prose li { margin-top: 8px; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.prose tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.callout { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-card); background: var(--mist); border: 1px solid var(--line); }
.callout.warn { border-color: rgba(245,166,35,.45); background: #FFF8EA; }
.callout h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 10px; }
.callout p { margin-top: 0; color: var(--ink); }
.route-list { margin-top: 20px; display: grid; gap: 10px; }
.route-list a { display: block; padding: 14px 18px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white); font-weight: 600; text-decoration: none; }
.route-list a:hover { border-color: var(--blue); background: rgba(43,80,255,.04); }
.route-list .route-note { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--grey); }

/* FAQ */
.faq-section { margin-top: 48px; }
.faq-section h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; font-size: clamp(24px, 2.8vw, 31px); color: var(--navy); }
.faq-list { margin-top: 20px; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-mark { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--blue); transition: transform .2s ease; }
.faq-mark::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-mark::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-body { padding: 0 2px 20px; color: var(--ink); max-width: 64ch; }

/* Related, CTA, disclaimer */
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-top: 10px; }
.related a { font-weight: 600; }
.cta-card { margin-top: 48px; padding: clamp(28px, 5vw, 44px); border-radius: var(--r-card); background: var(--grad-dark); text-align: center; }
.cta-card h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(22px, 3vw, 32px); color: var(--white); line-height: 1.1; }
.cta-card p { margin-top: 14px; color: var(--d-text); font-size: 16px; }
.cta-card .btn { margin-top: 26px; }
.cta-assure { margin-top: 16px; font-size: 13px; color: var(--d-mute); }
.post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--grey); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--d-text); margin-top: 80px; }
.prefooter { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--d-line); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.prefooter h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; color: var(--white); max-width: 22ch; }
.footer-cols { padding: 56px 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer .brand-logo { height: 48px; }
.footer-desc { margin-top: 14px; font-size: 14.5px; color: var(--d-mute); max-width: 34ch; }
.footer-col h4 { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--d-mute); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.8); font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-legal { padding: 24px 0 36px; border-top: 1px solid var(--d-line); font-size: 13px; color: rgba(255,255,255,.62); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal p { max-width: 70ch; }
.footer-legal a { color: inherit; text-decoration: underline; white-space: nowrap; }
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .prefooter { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) { .footer .brand-logo { height: 44px; } }
@media (max-width: 400px) { .wrap { padding: 0 18px; } }

/* ---------- Scanner and case form: homepage type (sentence case, weight 700) ---------- */
.scan-heading, .scan-result-type, .scan-continue h4 {
  font-variation-settings: normal;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.02em;
}
.prose a.btn, .cta-card a.btn, .blog-cta a.btn { text-decoration: none; }
.prose a.btn-amber { color: var(--navy); }
