/* Shared by the comparison pages (apps-that-pay-you-to-lose-weight, calcut-vs-*).
   Tokens and nav/footer/FAQ/CTA rules match index.html. */
:root {
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --orange: #FF5C00;
  --orange-pale: #FFF5F0;
  --orange-border: #FFD4BD;
  --black: #1A1A1A;
  --grey: #888888;
  --grey-dark: #5F5F5F;
  --grey-light: #E5E5E5;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--black); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(245,245,245,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.04); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand-icon { height: 30px; width: 30px; border-radius: 7px; }
.nav-brand-text { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--black); }
.nav-brand-text .accent { color: var(--orange); }
.nav-links { display: flex; gap: 28px; align-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--grey); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--black); }
@media (max-width: 600px) { .nav-links { gap: 18px; font-size: 14px; } .nav-inner { padding: 16px 20px; } .nav-brand-icon { height: 26px; width: 26px; } .nav-brand-text { font-size: 17px; } }

/* PAGE HEAD */
.page-head { max-width: 860px; margin: 0 auto; padding: 64px 24px 48px; }
@media (max-width: 600px) { .page-head { padding: 44px 20px 36px; } }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--grey-dark); }
.lede a, .prize-note a, .prose a, .more a, .sources a { color: var(--orange); font-weight: 600; }
.lede a:hover, .prize-note a:hover, .prose a:hover, .more a:hover, .sources a:hover { text-decoration: underline; }
.disclosure { margin-top: 18px; font-size: 14px; color: var(--grey-dark); line-height: 1.55; }

/* BANDS */
.band { padding: 64px 24px; }
.band.white { background: var(--card); border-top: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.04); }
@media (max-width: 600px) { .band { padding: 48px 20px; } }
.inner { max-width: 860px; margin: 0 auto; }
.inner.wide { max-width: 1000px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
h3 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.prose p { font-size: 17px; line-height: 1.6; color: var(--grey-dark); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--black); }
.cite { font-size: 14px; }

/* CHOOSE CARDS */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .picks { grid-template-columns: 1fr; } }
.pick { background: var(--bg); border: 1px solid rgba(0,0,0,0.04); border-radius: 20px; padding: 26px 26px 24px; }
.band:not(.white) .pick { background: var(--card); }
.pick.ours { border: 2px solid var(--orange-border); }
.pick h3 { margin-bottom: 14px; }
.pick ul { list-style: disc; padding-left: 20px; }
.pick li { font-size: 16px; color: var(--grey-dark); margin-bottom: 8px; line-height: 1.45; }
.pick li:last-child { margin-bottom: 0; }

/* APP CARDS */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app-card { background: var(--card); border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 26px; }
.app-card.ours { border: 2px solid var(--orange-border); }
.app-card h3 { margin-bottom: 4px; }
.app-kind { font-size: 15px; color: var(--grey-dark); margin-bottom: 16px; }
.app-card dl { border-top: 1px solid var(--grey-light); }
.app-card dt { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--black); padding-top: 12px; }
.app-card dd { font-size: 15px; color: var(--grey-dark); line-height: 1.45; padding-bottom: 12px; border-bottom: 1px solid var(--grey-light); }
.app-card dd:last-child { border-bottom: 0; padding-bottom: 0; }

/* COMPARISON TABLE */
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--grey-light); line-height: 1.45; }
.cmp thead th { width: 39.5%; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--black); border-bottom: 2px solid var(--black); }
.cmp thead td { width: 21%; border-bottom: 2px solid var(--black); }
.cmp th[scope="row"] { font-family: var(--display); font-weight: 700; font-size: 14px; width: 21%; padding-left: 0; }
.cmp td { color: var(--grey-dark); width: 39.5%; }
.cmp a { color: var(--orange); font-weight: 600; }
@media (max-width: 640px) {
  .cmp, .cmp tbody { display: block; }
  .cmp thead { display: none; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--grey-light); }
  .cmp th, .cmp td { display: block; width: auto; padding: 0; border: 0; }
  .cmp th[scope="row"] { grid-column: 1 / -1; width: auto; font-size: 15px; margin-bottom: 8px; }
  .cmp td { font-size: 14.5px; }
  .cmp td::before { content: attr(data-name); display: block; font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--orange); margin-bottom: 3px; }
}

/* PRIZE NOTE */
.prize-note { background: var(--orange-pale); border: 1px solid var(--orange-border); border-radius: 20px; padding: 24px 26px; }
.prize-note h3 { margin-bottom: 10px; }
.prize-note p { font-size: 16px; line-height: 1.55; color: var(--black); margin-bottom: 10px; }
.prize-note p.small { font-size: 14px; color: var(--grey-dark); margin-bottom: 0; }

/* MORE + SOURCES */
.more { margin-top: 22px; font-size: 16px; color: var(--grey-dark); }
.sources { font-size: 14px; color: var(--grey-dark); line-height: 1.6; }
.sources h2 { font-size: 20px; margin-bottom: 10px; }
.sources ul { padding-left: 18px; }
.sources li { margin-bottom: 4px; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid rgba(0,0,0,0.04); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.band.white .faq-item { background: var(--bg); }
.faq-item summary { padding: 20px 24px; font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--grey); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; color: var(--orange); }
.faq-body { padding: 0 24px 22px; font-size: 16px; color: var(--grey-dark); line-height: 1.6; }

/* FINAL CTA */
.final-cta { padding: 80px 24px; background: var(--black); color: white; text-align: center; position: relative; overflow: hidden; }
@media (max-width: 600px) { .final-cta { padding: 60px 20px; } }
.final-cta::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255,92,0,0.18), transparent 60%); pointer-events: none; }
.final-cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.final-cta h2 span { color: var(--orange); }
.final-cta-sub { font-size: 17px; color: rgba(255,255,255,0.7); margin: 0 auto 30px; max-width: 480px; line-height: 1.55; }
.app-store-badge { display: inline-block; border-radius: 12px; transition: transform 0.2s ease; }
.app-store-badge:hover { transform: translateY(-2px); }
.app-store-badge img { display: block; height: 56px; width: auto; }
.rating-line { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.8); }
.rating-line .stars { color: var(--orange); letter-spacing: 1px; }
@media (max-width: 420px) { .rating-line .stars { display: block; margin-bottom: 2px; } }

/* FOOTER */
.footer { background: var(--bg); padding: 48px 24px 40px; border-top: 1px solid rgba(0,0,0,0.04); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-icon { width: 32px; height: 32px; }
.footer-text { font-size: 14px; color: var(--grey); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-family: var(--display); font-weight: 600; font-size: 14px; }
.footer-links a { color: var(--grey); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--black); }
.footer-conditions { max-width: 1200px; margin: 24px auto 0; font-size: 12px; color: var(--grey-dark); line-height: 1.55; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; text-align: center; } .footer-left { flex-direction: column; gap: 10px; } .footer-links { justify-content: center; } .footer-conditions { text-align: center; } }

/* SEARCH PAGES: calorie tables, calculators, QR */
.crumbs { font-size: 13px; color: var(--grey-dark); margin-bottom: 14px; }
.crumbs a { color: var(--orange); font-weight: 600; }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .glance { gap: 8px; } }
.glance-card { background: var(--card); border: 1px solid rgba(0,0,0,0.05); border-radius: 18px; padding: 20px 16px; text-align: center; }
@media (max-width: 640px) { .glance-card { padding: 16px 8px; border-radius: 14px; } }
.glance-num { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--orange); margin-bottom: 8px; }
.glance-label { font-size: 13.5px; line-height: 1.35; color: var(--grey-dark); }
.data { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 8px; }
.data th, .data td { text-align: right; padding: 11px 8px; border-bottom: 1px solid var(--grey-light); font-variant-numeric: tabular-nums; }
.data th:first-child { text-align: left; padding-left: 0; font-family: var(--body); font-weight: 500; }
.data td:last-child, .data th:last-child { padding-right: 0; }
.data thead th { font-family: var(--display); font-weight: 800; font-size: 13.5px; border-bottom: 2px solid var(--black); vertical-align: bottom; }
.data thead th:first-child { font-family: var(--display); font-weight: 800; }
.data a { color: var(--orange); font-weight: 600; }
@media (max-width: 480px) { .data { font-size: 15px; } .data th, .data td { padding: 10px 5px; } }
.data.three th, .data.three td { text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-note { font-size: 13.5px; line-height: 1.55; color: var(--grey-dark); margin-top: 10px; }
.table-note a { color: var(--orange); font-weight: 600; }
.band h2 + .data, .band h2 + .table-scroll { margin-top: 2px; }
.band .data + h2, .band .table-note + h2 { margin-top: 38px; }
.qa h3 { font-size: 18px; margin: 22px 0 6px; }
.qa h3:first-child { margin-top: 0; }
.qa p { font-size: 16px; line-height: 1.6; color: var(--grey-dark); }
.qa a, .pick a, .sources a { color: var(--orange); font-weight: 600; }
.tool { display: block; }
.tool label { display: block; font-family: var(--display); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.tool input[type=number], .tool select { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: 500 16px var(--body); color: var(--black); background: var(--bg); border: 1px solid var(--grey-light); border-radius: 12px; }
.tool input:focus, .tool select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.tool fieldset { border: 0; margin-bottom: 14px; }
.tool legend { font-family: var(--display); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.tool .radio { display: inline-block; margin: 0 18px 0 0; font-family: var(--body); font-weight: 500; font-size: 16px; }
.tool .radio input { accent-color: var(--orange); width: 18px; height: 18px; vertical-align: -3px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool button { display: block; width: 100%; padding: 16px; font: 800 16px var(--display); color: #fff; background: var(--orange); border: 0; border-radius: 12px; cursor: pointer; }
.tool button:hover { filter: brightness(0.95); }
.tool-out { margin-top: 20px; padding: 22px; background: var(--orange-pale); border: 1px solid var(--orange-border); border-radius: 16px; font-size: 16px; line-height: 1.5; }
.tool-big { font-size: 19px; margin-bottom: 12px; }
.tool-out .data { margin-top: 10px; }
.final-cta-sub + .final-cta-sub { margin-top: -18px; }
.qr-box { display: none; }
@media (min-width: 901px) and (hover: hover) { .qr-box { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 10px 18px 10px 10px; background: rgba(255,255,255,0.08); border-radius: 14px; font-size: 14px; color: rgba(255,255,255,0.8); text-align: left; } .qr-box img { width: 88px; height: 88px; border-radius: 6px; } }
