/* agent247 — shared styles for SEO/AEO content pages.
   Brand system mirrors the root landing page (warm paper + orange, Fraunces + Inter Tight). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:    #FBF4EA;
  --paper-2:  #FFFCF7;
  --card:     #FFFFFF;
  --ink:      #16130F;
  --slate:    #514B42;
  --mute:     #7C7366;
  --hair:     rgba(22, 19, 15, 0.10);
  --line:     #ECE2D2;
  --blue:     #FF6A2B;
  --blue-deep:#B23A0E;
  --glow:     #FFEBE0;
  --ok:       #2E7D4F;
  --maxw:     720px;
}

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

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(70% 48% at 50% -6%, #FFFCF6 0%, rgba(255,252,246,0) 60%),
    radial-gradient(120% 100% at 50% 0%, var(--paper-2) 0%, var(--paper) 58%, #F7EEE0 100%);
  background-attachment: fixed;
}

a { color: var(--blue-deep); text-decoration-color: rgba(178,58,14,.3); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--blue-deep); }

/* ── NAV ─────────────────────────────────────────── */
.gnav {
  position: sticky; top: 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 clamp(18px, 4vw, 44px);
  background: rgba(253, 248, 240, 0.8);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.gnav .logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 700; letter-spacing: -0.6px;
  color: var(--ink); text-decoration: none;
}
.gnav .logo b { color: var(--blue); }
.gnav .logo .mark { width: 28px; height: 28px; flex-shrink: 0; }
.gnav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.gnav-links a {
  font-size: 14.5px; font-weight: 500; color: #423B32; text-decoration: none;
  letter-spacing: -0.1px; transition: color .2s ease; white-space: nowrap;
}
.gnav-links a:hover { color: var(--blue-deep); }
.gnav-cta {
  display: inline-flex; align-items: center; padding: 9px 17px; border-radius: 11px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.1px; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  box-shadow: 0 2px 4px rgba(22,19,15,.16), 0 12px 26px -12px rgba(22,19,15,.42);
  transition: transform .18s ease, box-shadow .3s ease;
}
.gnav-cta:hover { transform: translateY(-1.5px); color: #fff; }
@media (max-width: 720px) { .gnav-links a:not(.gnav-home) { display: none; } }

/* ── LAYOUT ──────────────────────────────────────── */
main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* breadcrumb */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 26px 22px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--mute); opacity: .6; }
.crumbs li:last-child::after { content: ""; }

/* ── HERO ────────────────────────────────────────── */
.hero { padding: 18px 0 6px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-deep);
  background: var(--glow); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 8px;
}
.dek { font-size: clamp(17px, 2.2vw, 19px); color: var(--slate); margin-top: 14px; max-width: 60ch; }

/* Quick Answer — what AI Overviews / assistants extract */
.qa-block {
  margin: 26px 0 8px; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF9, #FFF7EE);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22,19,15,.04), 0 18px 40px -28px rgba(178,58,14,.28);
}
.qa-block .qa-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 9px;
}
.qa-block .qa-label svg { width: 15px; height: 15px; }
.qa-block p { font-size: 17.5px; line-height: 1.62; color: var(--ink); }

/* ── ARTICLE BODY ────────────────────────────────── */
article { padding: 8px 0 20px; }
article h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(23px, 3.4vw, 29px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); margin: 46px 0 12px; scroll-margin-top: 84px;
}
article h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 28px 0 8px;
}
article p { font-size: 17px; color: var(--slate); margin: 0 0 16px; }
article p strong, article li strong { color: var(--ink); font-weight: 600; }
article ul, article ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }
article ul li, article ol li {
  position: relative; font-size: 17px; color: var(--slate);
  padding-left: 28px; margin-bottom: 10px; line-height: 1.55;
}
article ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px;
  border-radius: 3px; background: var(--blue); transform: rotate(45deg);
}
article ol { counter-reset: n; }
article ol li { counter-increment: n; }
article ol li::before {
  content: counter(n); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 7px; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--glow); color: var(--blue-deep);
}

/* callout / key takeaway */
.callout {
  margin: 22px 0; padding: 16px 18px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  font-size: 16px; color: var(--slate);
}
.callout strong { color: var(--ink); }

/* comparison table */
.tbl-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
table.cmp th, table.cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); font-size: 14px; }
table.cmp tbody th { font-weight: 600; color: var(--ink); background: #FFFDF9; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
table.cmp td { color: var(--slate); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-sec { padding: 20px 0 8px; }
.faq-sec h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(23px, 3.4vw, 29px); margin: 34px 0 16px;
}
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 17.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.faq-item p { font-size: 16.5px; color: var(--slate); margin: 0; }

/* ── RELATED ─────────────────────────────────────── */
.related { padding: 40px 0 8px; }
.related h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin-bottom: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rel-card {
  display: block; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22,19,15,.04); transition: transform .18s ease, box-shadow .3s ease, border-color .2s ease;
}
.rel-card:hover { transform: translateY(-2px); border-color: rgba(255,106,43,.5); box-shadow: 0 14px 28px -18px rgba(178,58,14,.32); }
.rel-card .rel-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); }
.rel-card .rel-title { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }

/* ── CTA BAND ────────────────────────────────────── */
.cta-band { margin: 54px 0 0; padding: 4px 0; }
.cta-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 32px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, #23201A 0%, #16130F 70%);
  color: #fff; box-shadow: 0 30px 60px -30px rgba(22,19,15,.6);
}
.cta-inner h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); line-height: 1.14; color: #fff; }
.cta-inner p { margin: 12px auto 22px; color: #D8CFC2; font-size: 17px; max-width: 46ch; }
.cta-btns { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-btns a { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 12px; font-size: 15.5px; font-weight: 600; text-decoration: none; }
.cta-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,106,43,.6); }
.cta-primary:hover { background: #ff7d47; color: #fff; }
.cta-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.cta-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── FOOTER ──────────────────────────────────────── */
.gfoot { margin-top: 56px; border-top: 1px solid var(--line); background: rgba(255,252,247,.5); }
.gfoot-inner { max-width: 1040px; margin: 0 auto; padding: 40px 22px 28px; }
.gfoot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.gfoot-brand .logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.6px; color: var(--ink); text-decoration: none; }
.gfoot-brand .logo b { color: var(--blue); }
.gfoot-brand .mark { width: 26px; height: 26px; }
.gfoot-brand p { margin-top: 12px; font-size: 14px; color: var(--mute); max-width: 34ch; }
.gfoot h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.gfoot ul { list-style: none; }
.gfoot li { margin-bottom: 8px; }
.gfoot a { font-size: 14px; color: var(--slate); text-decoration: none; }
.gfoot a:hover { color: var(--blue-deep); }
.gfoot-base { max-width: 1040px; margin: 0 auto; padding: 18px 22px 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
@media (max-width: 780px) { .gfoot-cols { grid-template-columns: 1fr 1fr; } .gfoot-brand { grid-column: 1 / -1; } }
