/* AdRoast Teardowns, shared design system.
   Static, no build step, no external fonts (reliability + no CSP surprises).
   Brand: single blue accent (#0a66c2), red reserved for urgency/what-breaks,
   amber for caution. Off-white ground, ink text. Matches the app palette. */

:root {
  --ink: #0b1220;
  --ink-2: #33405a;
  --muted: #6b7688;
  --faint: #98a2b3;
  --line: #e6eaf0;
  --line-2: #eef1f6;
  --ground: #f6f8fb;
  --card: #ffffff;
  --blue: #0a66c2;
  --blue-ink: #084c93;
  --blue-wash: #eef4fb;
  --blue-line: #d4e3f6;
  --red: #dc2626;
  --red-wash: #fff4f2;
  --red-line: #f5cec4;
  --amber: #b45309;
  --amber-wash: #fdf5ec;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,15,26,.05), 0 10px 30px rgba(11,15,26,.06);
  --maxw: 940px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---- top bar ---- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand .slash { color: var(--faint); font-weight: 500; }
.brand .sub { color: var(--muted); font-weight: 600; }
.bar .cta { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13.5px; line-height: 1;
  padding: 10px 15px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(10,102,194,.25); }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #cdd5e0; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(220,38,38,.22); }
.btn-red:hover { background: #b91c1c; color: #fff; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hero { padding: 44px 0 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--blue); background: var(--blue-wash); border: 1px solid var(--blue-line);
  padding: 5px 11px; border-radius: 999px;
}
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 16px 0 0; text-wrap: balance; }
h2 { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 4px; text-wrap: balance; }
h3 { font-size: 15px; margin: 0; letter-spacing: -.005em; }
.lede { font-size: clamp(16.5px, 2.3vw, 19px); color: var(--ink-2); line-height: 1.55; margin: 16px 0 0; max-width: 62ch; }
.section { padding: 30px 0; }

/* ---- company header row ---- */
.co { display: flex; align-items: center; gap: 13px; margin-top: 6px; }
.co-badge {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 21px;
  box-shadow: 0 4px 12px rgba(11,15,26,.14);
}
.co-meta { display: flex; flex-direction: column; gap: 2px; }
.co-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.co-dom { font-size: 12.5px; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ---- verdict / score ---- */
.verdict {
  display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin-top: 22px;
}
.score-chip {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 108px; padding: 6px 16px; border-radius: 13px; text-align: center;
}
.score-chip .num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.score-chip .num small { font-size: 16px; font-weight: 700; opacity: .55; }
.score-chip .cap { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.sev-red { background: var(--red-wash); border: 1px solid var(--red-line); color: var(--red); }
.sev-amber { background: var(--amber-wash); border: 1px solid #f0dcc0; color: var(--amber); }
.sev-blue { background: var(--blue-wash); border: 1px solid var(--blue-line); color: var(--blue); }
.verdict-body { flex: 1; min-width: 240px; display: flex; flex-direction: column; justify-content: center; }
.verdict-body .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.verdict-body p { margin: 5px 0 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* ---- ad -> landing journey ---- */
.journey { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.panel-top { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--line-2); }
.panel-top .dot { width: 8px; height: 8px; border-radius: 999px; }
.panel-top .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.panel-body { padding: 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.snip { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); background: var(--ground); border: 1px solid var(--line-2); border-left: 3px solid var(--line); border-radius: 8px; padding: 8px 11px; }
.snip.good { border-left-color: var(--blue); }
.snip.bad { border-left-color: var(--red); }
.panel-cta { margin-top: auto; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--ground); border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; }
.arrow-col { display: grid; place-items: center; }
.arrow-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red);
}
.arrow-badge .glyph { font-size: 22px; line-height: 1; color: var(--red); font-weight: 700; }
.handoff-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---- two-column analysis ---- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 19px; box-shadow: var(--shadow); }
.col-card.works { border-top: 3px solid var(--blue); }
.col-card.breaks { border-top: 3px solid var(--red); }
.col-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.col-head .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex: none; }
.works .ic { background: var(--blue-wash); }
.breaks .ic { background: var(--red-wash); }
.col-head h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pts li { font-size: 14px; line-height: 1.5; color: var(--ink-2); padding-left: 22px; position: relative; }
.pts li::before { position: absolute; left: 0; top: 1px; font-weight: 800; }
.works .pts li::before { content: "+"; color: var(--blue); }
.breaks .pts li::before { content: "!"; color: var(--red); }

/* ---- fixes ---- */
.fixes { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px; box-shadow: var(--shadow); }
.fix { display: flex; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--line-2); }
.fix:last-child { border-bottom: none; }
.fix .n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.fix p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); padding-top: 4px; }

/* ---- pull quote ---- */
.quote { margin: 6px 0; padding: 26px 28px; background: linear-gradient(180deg, #fff, var(--blue-wash)); border: 1px solid var(--blue-line); border-radius: var(--radius); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 3vw, 25px); line-height: 1.35; color: var(--ink); font-style: italic; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---- source / attribution ---- */
.source { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.source .txt { flex: 1; min-width: 220px; }
.source .txt .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.source .txt p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.source .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- section titles ---- */
.stitle { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 14px; }

/* ---- Embedded LinkedIn post (the real infographic) ---- */
.li-embed { display: flex; justify-content: center; }
.li-embed iframe { width: 100%; max-width: 552px; height: 640px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(11,15,26,.06); }

/* ---- CTA band ---- */
.band { margin: 20px 0 0; background: linear-gradient(135deg, var(--blue), var(--blue-ink)); border-radius: 22px; padding: 40px 34px; text-align: center; color: #fff; }
.band h2 { color: #fff; }
.band p { color: #dce8f7; margin: 8px auto 0; max-width: 48ch; font-size: 15.5px; }
/* On the blue band use a clean white button (no red, no black) so the whole block stays on AdRoast brand. */
.band .btn-red { margin-top: 20px; background: #fff; color: var(--blue-ink); box-shadow: 0 8px 20px rgba(8,32,64,.22); }
.band .btn-red:hover { background: #eef4fb; color: var(--blue-ink); }

/* ---- hub grid ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.tcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,15,26,.06), 0 18px 40px rgba(11,15,26,.10); }
.tcard-top { display: flex; align-items: center; gap: 11px; padding: 17px 18px 0; }
.tcard-badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: none; }
.tcard-co { font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.tcard-date { font-size: 12px; color: var(--faint); }
.tcard .mini { margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.tcard h3 { font-size: 17px; font-weight: 800; line-height: 1.28; letter-spacing: -.015em; color: var(--ink); margin: 14px 18px 0; text-wrap: balance; }
.tcard p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 8px 18px 0; }
.tcard .foot { margin: 14px 18px 16px; padding-top: 13px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--blue); }
.tcard .foot .go { margin-left: auto; transition: transform .18s ease; }
.tcard:hover .foot .go { transform: translateX(3px); }

/* ---- footer ---- */
.foot-bar { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 44px; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.foot-bar a { color: var(--muted); font-weight: 600; }
.foot-bar .sep { color: var(--line); }
.foot-links { margin-left: auto; display: flex; gap: 16px; }

/* ---- prose (for extra context blocks, still GEO-readable) ---- */
.prose p { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 66ch; margin: 0 0 14px; }

@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; }
  .arrow-col { transform: rotate(90deg); padding: 4px 0; }
  .cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .bar .brand .sub { display: none; }
}
