/* ============================================================
   Scrannr — Comparison / content-page styles
   Shared by best-food-scanner-apps.html and scrannr-vs-yuka.html.
   Consumes the locked design tokens from shared.css and the base
   typography / components from home.css. Adds NO new brand colours.
   ============================================================ */

/* ===== PAGE SHELL ===== */
.cmp-block { padding: clamp(40px, 6vw, 64px) 0; }
.cmp-block--tint {
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  border-top: 1px solid var(--border);
}
.cmp-block--head { padding-top: clamp(20px, 3vw, 32px); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 22px 0 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb .sep { color: var(--ink-3); }
.breadcrumb [aria-current] { color: var(--ink-3); }

/* ===== PAGE HEAD ===== */
.page-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  max-width: 16ch;
}
.page-title em { font-style: normal; font-weight: 700; color: var(--green); }
.page-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 60ch;
  margin-top: 18px;
  line-height: 1.55;
}
.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.page-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); opacity: 0.6; }

/* ===== DISCLOSURE + CALLOUT ===== */
.disclosure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  max-width: 70ch;
}
.disclosure svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.disclosure strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.callout strong { color: var(--ink); font-weight: 600; }
.callout + .callout { margin-top: 12px; }

/* ===== ARTICLE PROSE ===== */
.article { max-width: var(--maxw-narrow); margin: 0 auto; }
.article.wide { max-width: 860px; }
.article > * + * { margin-top: 18px; }
.article h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 10px;
}
.article h2 em { font-style: normal; font-weight: 700; color: var(--green); }
.article h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.article p,
.article li { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 7px; }
.article a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article a:hover { color: var(--green); }
.article strong { color: var(--ink); font-weight: 600; }

/* small centred section header used above tables/grids */
.block-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.block-head.left { margin-left: 0; text-align: left; }
.block-head .section-title { margin: 0 auto; }
.block-head.left .section-title { margin: 0; }
.block-head .section-lead { margin-left: auto; margin-right: auto; }
.block-head.left .section-lead { margin-left: 0; }

/* ===== COMPARISON TABLE ===== */
.cmp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  box-shadow: var(--ring), var(--shadow-md);
  background: var(--surface);
}
.cmp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.cmp-table caption { text-align: left; padding: 14px 16px 0; color: var(--ink-3); font-size: 12.5px; }
.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}
.cmp-table thead th {
  border-top: none;
  background: var(--green);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 3; }
.cmp-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--ink);
  min-width: 138px;
  box-shadow: 1px 0 0 var(--border);
}
.cmp-table tbody td { color: var(--ink-2); }
.cmp-table tbody tr.is-scrannr { background: rgba(36, 107, 60, 0.055); }
.cmp-table tbody tr.is-scrannr th[scope="row"] { background: var(--green-soft); color: var(--green-deep); }

/* ===== UK-AVAILABILITY / STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-yes { background: var(--green-soft); color: var(--green-deep); }
.badge-partial { background: var(--orange-soft); color: #8a3d12; }
.badge-no { background: #ece7da; color: #6b6152; }

/* ===== PER-APP CARDS ===== */
.app-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--ring), var(--shadow-sm);
  padding: 22px 22px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow-md); }
.app-card.is-scrannr { box-shadow: 0 0 0 1.5px var(--green), var(--shadow-md); }
.app-card.is-scrannr:hover { box-shadow: 0 0 0 1.5px var(--green), var(--shadow-lg); }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-card-name { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.app-card-name .maker { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.app-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.app-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 2px; }
.proscons h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.proscons ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.proscons li { position: relative; padding-left: 19px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pros li::before { content: '+'; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 700; }
.cons li::before { content: '\2013'; position: absolute; left: 0; top: -1px; color: var(--orange); font-weight: 700; }

/* ===== "BEST FOR" VERDICT GRID ===== */
.verdict-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.verdict-card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--ring), var(--shadow-sm);
  padding: 18px 20px;
}
.verdict-card.is-scrannr { box-shadow: 0 0 0 1.5px var(--green), var(--shadow-sm); }
.verdict-card .vfor {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  font-weight: 600;
}
.verdict-card .vwin { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 18px; margin: 5px 0 6px; letter-spacing: -0.01em; }
.verdict-card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ===== SPLIT PANELS (where X wins / where Y fits) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--ring), var(--shadow-sm);
  padding: 24px;
}
.split .panel h3 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 12px; letter-spacing: -0.01em; }
.split .panel ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.split .panel li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.split .panel li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.split .panel.yuka li::before { background: var(--orange); }

/* ===== HOW-WE-COMPARED CRITERIA ===== */
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.criteria .crit {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--ring), var(--shadow-xs);
  padding: 16px 18px;
}
.criteria .crit h4 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.criteria .crit p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ===== FEATURED (SCRANNR) TREATMENT ===== */
.tag-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag-us::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* Full-width featured card that leads the app list */
.app-card.featured {
  border-left: 4px solid var(--green);
  box-shadow: 0 0 0 1.5px var(--green), var(--shadow-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--green-soft), transparent 55%),
    var(--surface);
  padding: 26px 26px 28px;
  margin-bottom: 18px;
}
.app-card.featured .app-card-name { font-size: 22px; }
.featured-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px 28px; align-items: start; }
.featured-why h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.featured-why ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; padding: 0; }
.featured-why li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.featured-why li::before { content: '+'; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 700; }
.featured-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.featured-price { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.featured-price .big { display: block; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.featured-price .free-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* Compact store buttons for use inside cards */
.store-mini-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.store-mini:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #2a241d; }
.store-mini svg { width: 19px; height: 19px; flex-shrink: 0; fill: currentColor; }
.store-mini .sm-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-mini .sm-pre { font-size: 9.5px; opacity: .72; }
.store-mini .sm-name { font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }

/* ===== VS-YUKA TABLE — highlight the Scrannr column ===== */
.cmp-vs thead th:nth-child(2) { box-shadow: inset 0 -3px 0 var(--orange); }
.cmp-vs tbody td:nth-child(2) { background: rgba(36, 107, 60, 0.06); color: var(--ink); font-weight: 500; }

/* ===== /alternatives/* SCREENSHOTS GRID ===== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}
.shots-grid figure { margin: 0; }
.shots-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d4e2d6;
  border-radius: 18px;
  background: var(--green-soft);
}
.shots-grid figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .criteria { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-why ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .app-cards, .verdict-grid, .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .criteria { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .featured-why ul { grid-template-columns: 1fr; }
  .app-card { padding: 20px; }
}
