/* Papero comparison pages, 2026-10-20: the /alternatives hub and /vs/<slug>. Loaded after papero-pages.css
   (page frame, head, seams, buttons) on body.pp-page.pp-compare. Layout follows creatorflow.so's comparison
   pages; colours and type are Papero's. Tokens mirror papero-home.css (tests/compare/vs-page.test.js asserts
   they match). ?v= on every link: app/public is served immutable. */
:root{
  --pp-bg:#fafaf8;
  --pp-surface:#ffffff;
  --pp-band:#f3f2ef;
  --pp-panel:#efeee9;
  --pp-ink:#17151d;
  --pp-muted:#66626e;
  --pp-line:#e6e4df;
  --pp-line-soft:#efede9;
  --pp-cta:#6c5ce7;
  --pp-cta-hover:#5b4bd6;
  --pp-accent-deep:#5040c8;
  --pp-accent:#b4abff;
  --pp-tint:#f1effd;
  --pp-radius:8px;
}

/* ---- Rhythm: many short sections, so less air than a content page ------------------------------ */
.pp-compare .pp-pbody{padding:72px 0 80px}
.pp-compare .pp-pbody .pp-h2{margin-bottom:24px}
.pp-compare .pp-cmp-gap{margin-top:56px}
.pp-compare .pp-main h3{font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.015em;color:var(--pp-ink);margin:0 0 12px}
.pp-compare .pp-main ul{margin:0;padding:0;list-style:none}
.pp-compare .pp-main dl{margin:0}
.pp-compare .pp-main dd{margin:0}
.pp-compare .pp-cmp-prose{font-size:17px;line-height:1.65;color:var(--pp-ink);margin:0}
.pp-compare .pp-main p.pp-cmp-small{font-size:13px;line-height:1.55;color:var(--pp-muted);margin:16px 0 0}

/* ---- Hero: text left, the Papero VS <tool> pair right ----------------------------------------- */
.pp-compare .pp-cmp-hero__grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:56px;align-items:center}
.pp-compare .pp-main p.pp-cmp-updated{font-size:13px;line-height:1.5;color:var(--pp-muted);margin:18px 0 0}
/* Prices and features go stale: say so where the reader starts, not only in the small print. */
.pp-compare .pp-main p.pp-cmp-disclaimer{max-width:620px;margin:12px 0 0;padding:10px 14px;background:var(--pp-surface);border:1px solid var(--pp-line);border-left:3px solid var(--pp-accent-deep);border-radius:8px;font-size:13px;line-height:1.55;color:var(--pp-muted)}
.pp-compare .pp-phead--center p.pp-cmp-disclaimer{margin:16px auto 0;text-align:left}
.pp-compare .pp-cmp-pair{display:flex;flex-direction:column;align-items:center;gap:14px;padding:40px 24px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:16px;box-shadow:0 24px 50px -30px rgba(23,21,29,.25);text-align:center}
.pp-compare .pp-cmp-pair__us,.pp-compare .pp-cmp-pair__them{font-family:var(--pp-serif);font-size:clamp(30px,3.4vw,42px);line-height:1.05;color:var(--pp-ink)}
.pp-compare .pp-cmp-pair__us{color:var(--pp-cta)}
.pp-compare .pp-cmp-pair__vs{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:var(--pp-ink);color:var(--pp-surface);font-size:13px;font-weight:700;letter-spacing:.04em}

/* ---- Tables: they scroll inside their own frame on a phone, never the page ---------------------- */
.pp-compare .pp-cmp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:12px}
.pp-compare table.pp-cmp-table{width:100%;min-width:640px;margin:0;border:0;border-collapse:separate;border-spacing:0;background:transparent;font-size:15px;line-height:1.5;table-layout:fixed}
.pp-compare .pp-cmp-table th,.pp-compare .pp-cmp-table td{padding:14px 18px;border:0;border-bottom:1px solid var(--pp-line-soft);text-align:left;vertical-align:top;color:var(--pp-ink);background:var(--pp-surface);font-weight:400}
.pp-compare .pp-cmp-table tbody tr:last-child th,.pp-compare .pp-cmp-table tbody tr:last-child td{border-bottom:0}
.pp-compare .pp-cmp-table thead th{font-size:13px;font-weight:600;color:var(--pp-muted);border-bottom:1px solid var(--pp-line)}
.pp-compare .pp-cmp-table thead th.pp-cmp-us{color:var(--pp-accent-deep)}
/* table-layout:fixed sizes columns from the first row, the header: widths go on thead th. */
.pp-compare .pp-cmp-table thead th:first-child{width:24%}
.pp-compare .pp-cmp-table tbody th{font-weight:600;position:sticky;left:0;z-index:1}
.pp-compare .pp-cmp-table td.pp-cmp-us,.pp-compare .pp-cmp-table th.pp-cmp-us{background:var(--pp-tint)}
.pp-compare .pp-cmp-table--features thead th:first-child{width:40%}
.pp-compare .pp-cmp-note{display:block;margin-top:4px;font-size:13px;line-height:1.45;font-weight:400;color:var(--pp-muted)}
.pp-compare .pp-cmp-mark{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.pp-compare .pp-cmp-mark--yes{font-weight:600}
.pp-compare .pp-cmp-mark--yes::before{content:"";width:16px;height:16px;flex:none;background:center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235040c8' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")}
.pp-compare .pp-cmp-mark--partial{color:var(--pp-accent-deep)}
.pp-compare .pp-cmp-mark--no,.pp-compare .pp-cmp-mark--unknown{color:var(--pp-muted)}

/* ---- Why: two columns of short points ------------------------------------------------------- */
.pp-compare ul.pp-cmp-why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pp-compare .pp-cmp-why li{padding:20px 22px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:12px;font-size:15px;line-height:1.6;color:var(--pp-muted)}
.pp-compare .pp-cmp-why li strong{display:block;margin-bottom:4px;font-size:16px;font-weight:600;color:var(--pp-ink)}

/* ---- Fit and verdict: two cards, Papero's tinted --------------------------------------------- */
.pp-compare .pp-cmp-fit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.pp-compare .pp-cmp-fit--verdict{margin:28px 0 0}
.pp-compare .pp-cmp-fit__card{padding:26px 28px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:14px}
.pp-compare .pp-cmp-fit__card--us{background:var(--pp-tint);border-color:var(--pp-accent)}
.pp-compare .pp-cmp-fit__card li{position:relative;padding-left:22px;margin:0 0 10px;font-size:15px;line-height:1.55;color:var(--pp-ink)}
.pp-compare .pp-cmp-fit__card li:last-child{margin-bottom:0}
.pp-compare .pp-cmp-fit__card li::before{content:"";position:absolute;left:0;top:.5em;width:8px;height:8px;border-radius:2px;background:var(--pp-muted);transform:rotate(45deg)}
.pp-compare .pp-cmp-fit__card--us li::before{background:var(--pp-cta)}

/* ---- Choose blocks: labelled rows ----------------------------------------------------------- */
.pp-compare .pp-cmp-choose{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pp-compare .pp-cmp-choose__item{padding:24px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:12px}
.pp-compare .pp-cmp-choose dt{margin:14px 0 4px;font-size:13px;font-weight:600;line-height:1.3;color:var(--pp-accent-deep)}
.pp-compare .pp-cmp-choose dt:first-child{margin-top:0}
.pp-compare .pp-cmp-choose dd{font-size:15px;line-height:1.55;color:var(--pp-ink)}

/* ---- Pricing: two cards --------------------------------------------------------------------- */
.pp-compare .pp-cmp-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.pp-compare .pp-cmp-price{padding:26px 28px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:14px}
.pp-compare .pp-cmp-price--us{border-color:var(--pp-accent);box-shadow:0 0 0 3px var(--pp-tint)}
.pp-compare .pp-cmp-price dl{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px 16px}
.pp-compare .pp-cmp-price dt{font-size:14px;line-height:1.45;color:var(--pp-muted)}
.pp-compare .pp-cmp-price dd{font-size:15px;line-height:1.45;font-weight:600;color:var(--pp-ink)}

/* ---- FAQ: native details, no script --------------------------------------------------------- */
.pp-compare .pp-cmp-faq__item{border-bottom:1px solid var(--pp-line)}
.pp-compare .pp-cmp-faq__item:first-of-type{border-top:1px solid var(--pp-line)}
.pp-compare .pp-cmp-faq__item summary{position:relative;display:block;padding:18px 40px 18px 0;cursor:pointer;list-style:none;font-size:17px;line-height:1.4;font-weight:600;color:var(--pp-ink)}
.pp-compare .pp-cmp-faq__item summary::-webkit-details-marker{display:none}
.pp-compare .pp-cmp-faq__item summary::after{content:"+";position:absolute;right:4px;top:14px;font-size:24px;font-weight:400;line-height:1;color:var(--pp-accent-deep);transition:transform .15s ease}
.pp-compare .pp-cmp-faq__item[open] summary::after{transform:rotate(45deg)}
.pp-compare .pp-cmp-faq__item summary:focus-visible{outline:2px solid var(--pp-cta);outline-offset:2px;border-radius:4px}
.pp-compare .pp-main .pp-cmp-faq__item p{margin:0 0 20px;font-size:16px;line-height:1.65;color:var(--pp-muted);max-width:68ch}
@media (prefers-reduced-motion:reduce){.pp-compare .pp-cmp-faq__item summary::after{transition:none}}

/* ---- Explore more --------------------------------------------------------------------------- */
.pp-compare ul.pp-cmp-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pp-compare .pp-cmp-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:10px;font-size:15px;font-weight:500;color:var(--pp-ink);text-decoration:none}
.pp-compare .pp-cmp-links a::after{content:"\2192";color:var(--pp-accent-deep)}
.pp-compare .pp-cmp-links a:hover{border-color:var(--pp-accent)}
.pp-compare .pp-cmp-links a:focus-visible{outline:2px solid var(--pp-cta);outline-offset:2px}
.pp-compare .pp-main p.pp-cmp-legal{margin-top:28px}

/* ---- Hub: jump links, card grids, guide -------------------------------------------------- */
.pp-compare .pp-cmp-jump{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:28px auto 0;max-width:760px}
.pp-compare .pp-cmp-jump a{padding:7px 14px;border:1px solid var(--pp-line);border-radius:999px;background:var(--pp-surface);font-size:14px;font-weight:500;color:var(--pp-ink);text-decoration:none}
.pp-compare .pp-cmp-jump a:hover{border-color:var(--pp-accent)}
.pp-compare .pp-cmp-jump a:focus-visible{outline:2px solid var(--pp-cta);outline-offset:2px}
.pp-compare .pp-main p.pp-cmp-groupnote{margin:8px 0 0;font-size:16px;line-height:1.55;color:var(--pp-muted)}
.pp-compare .pp-cmp-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.pp-compare .pp-cmp-cards--featured{grid-template-columns:repeat(3,minmax(0,1fr))}
.pp-compare .pp-cmp-card{position:relative;display:flex;flex-direction:column;padding:22px;background:var(--pp-surface);border:1px solid var(--pp-line);border-radius:12px}
.pp-compare .pp-cmp-card--us{background:var(--pp-tint);border-color:var(--pp-accent)}
.pp-compare .pp-cmp-cards--featured .pp-cmp-card{padding:26px}
.pp-compare .pp-main p.pp-cmp-card__tagline{margin:0 0 16px;font-size:14px;line-height:1.55;color:var(--pp-muted)}
.pp-compare .pp-cmp-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:0 0 18px;font-size:13px;line-height:1.45}
.pp-compare .pp-cmp-card dt{color:var(--pp-muted)}
.pp-compare .pp-cmp-card dd{color:var(--pp-ink);font-weight:500}
.pp-compare .pp-cmp-card__go{margin-top:auto;font-size:14px;font-weight:600;color:var(--pp-accent-deep);text-decoration:none}
.pp-compare .pp-cmp-card__go::after{content:" \2192"}
.pp-compare .pp-cmp-card__go:hover{text-decoration:underline}
.pp-compare .pp-cmp-tag{align-self:flex-start;margin:0 0 10px;padding:3px 9px;border-radius:999px;background:var(--pp-ink);color:var(--pp-surface);font-size:12px;font-weight:600;line-height:1.4}
.pp-compare .pp-cmp-guide{grid-template-columns:repeat(2,minmax(0,1fr))}
.pp-compare .pp-main .pp-cmp-guide p{margin:0;font-size:15px;line-height:1.6;color:var(--pp-muted)}
.pp-compare .pp-cmp-table td a{font-weight:600;color:var(--pp-accent-deep);text-decoration:none}
.pp-compare .pp-cmp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (max-width:1100px){
  .pp-compare .pp-cmp-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .pp-compare .pp-cmp-cards,.pp-compare .pp-cmp-cards--featured{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pp-compare .pp-cmp-hero__grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .pp-compare .pp-cmp-pair{flex-direction:row;justify-content:center;padding:20px}
  .pp-compare .pp-cmp-pair__us,.pp-compare .pp-cmp-pair__them{font-size:28px}
  .pp-compare .pp-cmp-choose{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .pp-compare .pp-pbody{padding:56px 0 64px}
  .pp-compare ul.pp-cmp-why,.pp-compare .pp-cmp-fit,.pp-compare .pp-cmp-prices,.pp-compare ul.pp-cmp-links,.pp-compare .pp-cmp-guide{grid-template-columns:minmax(0,1fr)}
  .pp-compare table.pp-cmp-table{min-width:560px;font-size:14px}
  .pp-compare .pp-cmp-table th,.pp-compare .pp-cmp-table td{padding:12px 14px}
}
@media (max-width:560px){
  .pp-compare .pp-cmp-cards,.pp-compare .pp-cmp-cards--featured{grid-template-columns:minmax(0,1fr)}
  /* A phone has no room for three columns: each row becomes a card, every cell labelled with its tool. */
  .pp-compare .pp-cmp-scroll{overflow:visible;border:0;border-radius:0;background:transparent}
  .pp-compare table.pp-cmp-table{min-width:0;table-layout:auto}
  .pp-compare .pp-cmp-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pp-compare .pp-cmp-table tbody,.pp-compare .pp-cmp-table tr{display:block}
  .pp-compare .pp-cmp-table tr{margin:0 0 12px;border:1px solid var(--pp-line);border-radius:12px;overflow:hidden;background:var(--pp-surface)}
  .pp-compare .pp-cmp-table tbody th{position:static;display:block;width:auto;border-bottom:1px solid var(--pp-line-soft)}
  .pp-compare .pp-cmp-table td{display:block}
  .pp-compare .pp-cmp-table tr td:last-child{border-bottom:0}
  .pp-compare .pp-cmp-table tbody tr:last-child th{border-bottom:1px solid var(--pp-line-soft)}
  .pp-compare .pp-cmp-table td::before{content:attr(data-label);display:block;margin:0 0 2px;font-size:12px;font-weight:600;color:var(--pp-muted)}
  .pp-compare .pp-cmp-table td.pp-cmp-us::before{color:var(--pp-accent-deep)}
  .pp-compare .pp-cmp-table td:not([data-label])::before{content:none}
}
