/* Shared styles for the "Smudge vs ..." comparison pages in /smudge/vs/.
   Same system as /smudge/ (near-neutral white, off-black ink, Smudge coral as the one accent). */
:root {
  --bg: #F5F5F3;
  --surface: #FDFDFC;
  --ink: #141317;
  --ink-2: #36343C;
  --muted: #5E5C65;
  --line: #E0DFDB;
  --line-strong: #C9C7C2;
  --coral: #FF5A45;
  --coral-ink: #C2381F;
  --on-coral: #1A0B08;
  --coral-wash: #FFEDE9;
  --coral-line: #F8CFC6;
  --panel: #17151B;
  --on-panel: #F1EFF3;
  --on-panel-muted: #ABA7B3;
  --panel-line: rgba(255, 255, 255, 0.1);
  --shadow: 20 19 23;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111013;
    --surface: #19181C;
    --ink: #EEEDF0;
    --ink-2: #CDCAD3;
    --muted: #9C99A4;
    --line: #29272E;
    --line-strong: #3E3B45;
    --coral: #FF6B57;
    --coral-ink: #FF8A7A;
    --coral-wash: #2A1714;
    --coral-line: #4A2620;
    --panel: #24212A;
    --panel-line: rgba(255, 255, 255, 0.08);
    --shadow: 0 0 0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink-2); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--coral); color: var(--on-coral); }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; pointer-events: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 88%; font-weight: 640; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 620; }
.accent { color: var(--coral-ink); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.lead a, .prose a, .faq a, .fine a, .sources a, .win a, .pick a { color: var(--coral-ink); font-weight: 600; text-underline-offset: 3px; }
.head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 52px); }
.head .lead { margin-top: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 16px/1 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background-color .25s ease, box-shadow .25s ease, color .25s ease; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-coral { background: var(--coral); color: var(--on-coral); box-shadow: 0 14px 28px -18px rgb(194 56 31 / 0.9); }
.btn-coral:hover { background: color-mix(in srgb, var(--coral) 88%, #FFFFFF); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; border-radius: 28%; }
.wordmark { font: 720 21px/1 var(--display); font-stretch: 90%; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark span { font-weight: 400; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: var(--coral-ink); }

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 3px; }
.hero .lead { margin-top: 22px; }
.verdict { max-width: 820px; margin-top: clamp(32px, 4vw, 48px); }
.pick { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pick-smudge { background: var(--coral-wash); box-shadow: inset 0 0 0 1px var(--coral-line); }
.pick h2 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 12px; }
.pick ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 6px; }
.pick li::marker { color: var(--coral-ink); }

/* Sections */
section { padding: clamp(64px, 7vw, 100px) 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Comparison table: striped rows, no hairlines */
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; }
.compare-table thead th { font: 640 19px/1.2 var(--display); font-stretch: 90%; color: var(--ink); padding-top: 20px; padding-bottom: 18px; }
.compare-table thead th:nth-child(2) { color: var(--coral-ink); }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare-table tbody tr:nth-child(odd) { background: var(--surface); }
.compare-table td { color: var(--ink-2); width: 35%; }
.yes, .no, .part { display: inline-flex; align-items: flex-start; gap: 9px; }
.yes svg, .no svg, .part svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 4px; border-radius: 50%; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.yes svg { background: var(--coral); stroke: var(--on-coral); }
.no svg { background: var(--line); stroke: var(--muted); }
.part svg { background: var(--line); stroke: var(--ink-2); }
.checked { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* Where Smudge wins */
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.win { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.win h3 { margin-bottom: 10px; }
.win p { color: var(--muted); }

/* Steps */
.steps { position: relative; list-style: none; margin: 0; padding: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-strong); }
.steps::after { background: var(--coral); transform-origin: left center; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -50px; left: 0; width: 2px; height: 14px; border-radius: 2px; background: var(--ink); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Long-form text (the hub page) */
.prose { max-width: 46em; display: grid; gap: 18px; }
.prose h3 { margin-top: 18px; }

/* Links to the other comparisons */
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.others a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font: 620 19px/1.2 var(--display); font-stretch: 90%; color: var(--ink); transition: box-shadow .25s ease, transform .3s var(--ease); }
.others a:hover { box-shadow: inset 0 0 0 1.5px var(--coral); transform: translateY(-2px); }
.others svg { width: 18px; height: 18px; flex: none; }
.others small { display: block; margin-top: 4px; font: 400 14.5px/1.4 var(--sans); color: var(--muted); }

/* FAQ */
.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 24px 64px 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(19px, 1.9vw, 23px); }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; color: var(--ink); background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: transform .35s var(--ease), background-color .2s ease; }
.faq summary:hover::after { background-color: var(--coral-wash); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 60px 26px 0; color: var(--ink-2); max-width: 46em; }

/* Sources */
.sources { margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: 60em; }
.sources ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* Get Smudge */
.contact { padding-bottom: clamp(64px, 8vw, 112px); }
.cta { border-radius: var(--r); padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 80px); background: #FF5A45; color: #1A0B08; }
.cta h2 { color: #1A0B08; font-size: clamp(36px, 5vw, 68px); line-height: 1; }
.cta-text { margin: 22px 0 32px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: #2A1410; }
.btn-dark { background: #141317; color: #FFF4F1; }
.btn-dark:hover { background: #2A272F; }
.cta :focus-visible { outline-color: #1A0B08; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Footer */
footer { color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1fr 0.8fr 0.9fr 1.3fr; gap: 36px 44px; padding: 56px 0 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot h4 { margin: 0 0 10px; font: 600 15px/1.2 var(--sans); color: var(--ink); }
.foot p { line-height: 1.7; }
.foot a { text-decoration: none; color: var(--ink); font-weight: 500; }
.foot a:hover { color: var(--coral-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .brand { margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 26px 0 44px; font-size: 14px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom a { text-decoration: none; }
.legal button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.foot-bottom a:hover, .legal button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* The cookie bar from analytics.js */
body .yd-consent { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgb(var(--shadow) / 0.45); font-family: var(--sans); }
body .yd-consent p { color: var(--ink-2); }
body .yd-consent strong { font: 640 20px/1.2 var(--display); font-stretch: 90%; font-variation-settings: normal; letter-spacing: -0.012em; color: var(--ink); }
body .yd-consent .yd-now { color: var(--muted); }
body .yd-consent button { background: var(--ink); color: var(--bg); font-family: var(--sans); }
body .yd-consent button:hover { background: var(--ink-2); }
body .yd-consent button:focus-visible { outline-color: var(--coral-ink); }

/* Motion: extra only. With no JavaScript, or with reduced motion, everything shows in its finished state. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .steps::after { transform: scaleX(0); transition: transform 1.8s var(--ease) .25s; }
  .js .steps.in::after { transform: none; }
}

@media (max-width: 1000px) {
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links li:not(:last-child) { display: none; }
  .wins { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; padding: 0 0 0 30px; gap: 28px; }
  .steps::before, .steps::after { top: 0; bottom: 0; right: auto; width: 2px; height: auto; transform-origin: center top; }
  .js .steps::after { transform: scaleY(0); }
  .steps li::before { top: 9px; left: -30px; width: 14px; height: 2px; }
  .foot { grid-template-columns: 1fr; }
  .faq details > p { padding-right: 0; }
  .actions .btn { flex: 1 1 auto; }
  .compare-table th, .compare-table td { padding: 14px 14px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 19px; }
  .brand { gap: 9px; }
  .brand svg { width: 30px; height: 30px; }
  .nav .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .faq summary::after, .others a { transition: none; }
  .btn:hover, .btn:active, .others a:hover { transform: none; }
}
