/* AdWorq marketing site — 2026 SaaS. Geist typography, coral–gold accent,
   system-aware theme, 8px grid. No framework. */

@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --bg: #f4f1ec;
  --bg-elevated: #fffdf9;
  --bg-muted: #eae5de;
  --ink: #1a1d22;
  --ink-soft: #3a3f46;
  --muted: #545b64;
  --line: rgba(26, 29, 34, 0.1);
  --line-strong: rgba(26, 29, 34, 0.16);
  --coral: #ff5a3c;
  --gold: #ffc13f;
  --brand-dark: #2a2f36;
  --accent-text: #b93a24;
  --accent-soft: rgba(255, 90, 60, 0.12);
  --gold-soft: rgba(255, 193, 63, 0.28);
  --gradient: linear-gradient(135deg, #ff5a3c 0%, #ffc13f 100%);
  --shadow: 0 16px 40px rgba(42, 47, 54, 0.1);
  --shadow-sm: 0 6px 18px rgba(42, 47, 54, 0.07);
  --header-bg: rgba(244, 241, 236, 0.82);
  --browser-bar: #f3f0ea;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h: 68px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(185, 58, 36, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1c2026;
    --bg-elevated: #2a2f36;
    --bg-muted: #333942;
    --ink: #f4f1ec;
    --ink-soft: #d4d0c8;
    --muted: #a8a299;
    --line: rgba(244, 241, 236, 0.1);
    --line-strong: rgba(244, 241, 236, 0.16);
    --accent-text: #ff8d76;
    --accent-soft: rgba(255, 90, 60, 0.16);
    --gold-soft: rgba(255, 193, 63, 0.16);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(28, 32, 38, 0.82);
    --browser-bar: #242830;
    --focus: 0 0 0 3px rgba(255, 193, 63, 0.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c2026;
  --bg-elevated: #2a2f36;
  --bg-muted: #333942;
  --ink: #f4f1ec;
  --ink-soft: #d4d0c8;
  --muted: #a8a299;
  --line: rgba(244, 241, 236, 0.1);
  --line-strong: rgba(244, 241, 236, 0.16);
  --accent-text: #ff8d76;
  --accent-soft: rgba(255, 90, 60, 0.16);
  --gold-soft: rgba(255, 193, 63, 0.16);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(28, 32, 38, 0.82);
  --browser-bar: #242830;
  --focus: 0 0 0 3px rgba(255, 193, 63, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  box-shadow: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--gold);
  color: var(--brand-dark);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .container { width: min(100% - 48px, var(--max)); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 17px;
  margin-right: auto;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: inline-grid; }
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions .btn-chrome { display: inline-flex; }
}
.header-actions .btn-chrome { display: none; }
@media (min-width: 880px) {
  .header-actions .btn-chrome { display: inline-flex; }
}

.site-nav-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 20px 16px 40px;
  overflow: auto;
  z-index: 40;
}
.site-nav-panel.is-open { display: block; }
.site-nav-panel a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}
.site-nav-panel .btn { margin-top: 20px; width: 100%; justify-content: center; }
@media (min-width: 880px) {
  .site-nav-panel { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-chrome {
  background: var(--gold);
  color: var(--brand-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, var(--shadow-sm);
}
.btn-primary:hover,
.btn-chrome:hover { filter: brightness(1.04); }
.btn-dark {
  background: var(--brand-dark);
  color: #f4f1ec;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); }

/* Hero */
.hero {
  position: relative;
  padding: 40px 0 24px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 90, 60, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(255, 193, 63, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}
.hero-grid > * { min-width: 0; }
.hero-visual { justify-self: stretch; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 32px; }
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 48px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero .lede,
.lede {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.fine {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Browser frame */
.browser {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: var(--browser-bar);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser-dots span:nth-child(1) { background: #ff5a3c; }
.browser-dots span:nth-child(2) { background: #ffc13f; }
.browser-dots span:nth-child(3) { background: #3dbe8c; }
.browser-url {
  flex: 1;
  height: 24px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}
.browser-viewport { background: #e8e4de; position: relative; }
.browser-viewport img {
  width: 100%;
  height: auto;
}
.hero-shot-light,
.hero-shot-dark { margin: 0; }
.hero-shot-light img,
.hero-shot-dark img { width: 100%; height: auto; display: block; }
.hero-shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-shot-light { display: none; }
  :root:not([data-theme="light"]) .hero-shot-dark { display: block; }
  :root:not([data-theme="light"]) .browser-viewport { background: #1a1e24; }
}
:root[data-theme="dark"] .hero-shot-light { display: none; }
:root[data-theme="dark"] .hero-shot-dark { display: block; }
:root[data-theme="dark"] .browser-viewport { background: #1a1e24; }
:root[data-theme="light"] .hero-shot-light { display: block; }
:root[data-theme="light"] .hero-shot-dark { display: none; }
:root[data-theme="light"] .browser-viewport { background: #e8e4de; }
.hero figcaption,
.caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* Proof strip */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-elevated);
}
.proof-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.proof-list svg { width: 16px; height: 16px; color: var(--accent-text); flex: none; }

/* Sections */
.section {
  padding: 64px 0;
}
@media (min-width: 800px) {
  .section { padding: 88px 0; }
}
.section-head {
  max-width: 40rem;
  margin: 0 0 36px;
}
.section h2,
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Feature grid */
.features {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .features {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .feature-card.feature-visual {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 1fr);
    gap: 28px;
    align-items: center;
  }
  .feature-visual .shot { margin-bottom: 0; }
}
.feature-card,
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feature-card p,
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 14px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-visual { padding: 16px; }
.feature-visual .shot {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--brand-dark);
}
.feature-visual img { width: 100%; }

/* How it works */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--brand-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  font-size: 14px;
}
.step h3 { margin: 0 0 8px; letter-spacing: -0.02em; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Comparison */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-muted);
}
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 22%; }
.compare .yes { color: var(--ink); }
.compare thead th:nth-child(2) { color: var(--accent-text); }


.price-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-muted, var(--bg-elevated));
}
.price-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.price-toggle button[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.price-toggle .toggle-save {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.pricing-test-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Pricing: toggle, card, and footnote share one centered 420px column */
.pricing-block {
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-block .price-toggle {
  margin-inline: auto;
}
/* Pricing */
.pricing {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 0;
}
@media (min-width: 760px) {
  .pricing { grid-template-columns: 1fr; }
}
.price-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 24px;
}
.price-card .btn,
.price-card .btn-primary {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.placeholder-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.price-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.price-card p.price {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.price-card .price .price-amount,
.price-card .price [data-amount] {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.price-card .price .price-period {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.price-card .price-equiv {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
}
.price-card .price-equiv[hidden] { display: none; }
.price-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.price-card li {
  display: flex;
  gap: 8px;
}
.price-card li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  background: var(--gradient);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.9-5.9L13.2 4z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.9-5.9L13.2 4z'/></svg>") center / contain no-repeat;
}
.pricing-note {
  width: 100%;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  overflow-wrap: break-word;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex: none;
  margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-list details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* Final CTA + install note */
.final-cta,
.install-note {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  box-shadow: var(--shadow-sm);
}
.final-cta h2,
.install-note h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.final-cta p,
.install-note p {
  margin: 0 auto 20px;
  max-width: 36rem;
  color: var(--ink-soft);
}
.final-cta .cta-row,
.install-note .cta-row { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 28rem; }
.footer-col h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* Blog index */
.page-hero { padding: 48px 0 12px; }
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0 0 64px;
  display: grid;
  gap: 14px;
}
@media (min-width: 800px) {
  .blog-list { grid-template-columns: 1fr 1fr; }
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.blog-card .meta,
.meta {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.blog-card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.02em; }
.blog-card p { margin: 0; color: var(--ink-soft); }

/* Articles */
.article-layout {
  padding: 40px 0 72px;
}
.post {
  max-width: 42rem;
}
.post h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.post .lede { font-size: 1.15rem; }
.post .crumb {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.post .crumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.post .crumb a:hover { color: var(--accent-text); }
.post h2 {
  margin: 2em 0 0.7em;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.post h3 { margin: 1.6em 0 0.5em; font-size: 1.05rem; }
.post p { margin: 0 0 1em; color: var(--ink-soft); }
.post p:last-child { margin-bottom: 0; }
.post li { color: var(--ink-soft); margin-bottom: 0.4em; }
.post strong { color: var(--ink); font-weight: 650; }
.toc, .toc-slot .toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.toc h2 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 13.5px;
}
.toc a:hover { color: var(--accent-text); }
.cta-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin: 40px 0 16px;
  box-shadow: var(--shadow-sm);
}
.cta-box h2 { margin: 0 0 8px; }
.cta-box p { margin: 0 0 16px; }
.note {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}
.note p { margin: 0; }
.sources { font-size: 14px; }
.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
.post-shot { margin: 28px 0 32px; }
.post-shot a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}
.post-shot a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.post-shot img { width: 100%; height: auto; }
.post-shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.post-shot-hint { display: none; }
@media (max-width: 719px) {
  .post-shot-wide a { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .post-shot-wide img { width: 640px; max-width: none; }
  .post-shot-wide .post-shot-hint { display: block; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
}
.legal {
  padding: 48px 0 80px;
  max-width: 42rem;
}
.legal h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}
.legal h2 { margin: 2em 0 0.6em; font-size: 1.2rem; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover { transform: none; }
}

.banner, .legal .banner {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  color: var(--ink-soft);
}
.cta-box .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Stack the comparison table on small screens so the page itself never needs a sideways scroll. */
@media (max-width: 719px) {
  .compare-wrap {
    overflow: visible;
  }
  .compare {
    min-width: 0;
    width: 100%;
  }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td {
    display: block;
    width: 100%;
  }
  .compare tr {
    padding: 16px 18px 18px;
    border-bottom: 1px solid var(--line);
  }
  .compare tr:last-child { border-bottom: 0; }
  .compare td:first-child {
    padding: 0 0 8px;
    font-size: 15px;
  }
  .compare td:not(:first-child) {
    padding: 8px 0 0;
    color: var(--ink-soft);
  }
  .compare td:nth-child(2)::before,
  .compare td:nth-child(3)::before {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--muted);
  }
  .compare td:nth-child(2)::before { content: "AdWorq"; color: var(--accent-text); }
  .compare td:nth-child(3)::before { content: "Typical extensions"; }
}

/* Article SEO blocks */
.quick-answer {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.quick-answer-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.quick-answer p {
  margin: 0;
  color: var(--ink-soft);
}
.post .faq-list {
  margin: 0 0 2em;
  max-width: none;
}
.related-guides {
  margin: 40px 0 8px;
}
.related-guides h2 {
  margin-top: 0;
}
.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.related-guides a {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: break-word;
}
.related-guides a:hover {
  border-color: var(--line-strong);
  color: var(--accent-text);
  text-decoration: none;
}
.related-guides a span {
  display: block;
  margin-top: 4px;
  font-weight: 450;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
