/* Number Two - Design System
   Colors and tokens from the app's lib/constants.ts */

:root {
  --primary: #8FBC8F;
  --primary-dark: #6B9E6B;
  --primary-light: #B5D8B5;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-tertiary: #6B7B7D;
  --border: #E9ECEF;
  --accent: #EFA49A;
  --success: #6BBFA3;
  --warning: #FDCB6E;
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-input: 8px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 1080px;
  --max-width-narrow: 820px;
}

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

body {
  font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--blog {
  max-width: 820px;
}

/* ---- Nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding: 64px 24px 48px;
}

.hero__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.15s;
}

.hero__cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

.hero__cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-block;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ---- Screenshots ---- */

.screenshots {
  padding: 32px 24px 64px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.screenshots__row {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshots__item {
  flex: 0 0 auto;
  width: 200px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.screenshots__caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ---- Features ---- */

.features {
  padding: 64px 24px;
  background: var(--surface);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-card:hover .feature-card__svg {
  color: var(--primary);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card__svg {
  width: 32px;
  height: 32px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Section ---- */

.section {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--alt {
  background: var(--surface);
  max-width: 100%;
}

.section--alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---- Surfaces ---- */

.surfaces {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.surfaces__watch {
  width: 120px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.surfaces__label {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ---- Privacy Block ---- */

.privacy-block {
  text-align: center;
  padding: 64px 24px;
}

.privacy-block__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-block__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.privacy-block__points {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.privacy-block__point {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ---- CTA ---- */

.cta-block {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
}

.cta-block__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-block__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---- Footer ---- */

.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---- Legal pages ---- */

.legal h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: #444;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal .back {
  display: inline-block;
  margin-top: 32px;
}

/* ---- FAQ ---- */

.faq {
  margin-top: 32px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 20px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.faq details[open] summary::before { content: '\2212'; }

.faq .faq__answer {
  padding: 8px 0 4px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---- Blog ---- */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-dark);
  border-radius: var(--radius-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--primary);
  border-left-color: var(--primary-dark);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.blog-card__link {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.blog-card__link:hover { text-decoration: none; }

.blog-card__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.blog-card__excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.blog-card__date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.blog-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---- Blog Post ---- */

.post {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 48px 24px;
}

.post__back {
  display: block;
  width: fit-content;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 20px;
}

.post__back:hover { color: var(--text); text-decoration: none; }

.post__tag {
  display: block;
  width: fit-content;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.post__meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post__tldr {
  background: linear-gradient(135deg, var(--primary-light), #e8f5e8);
  border-left: 4px solid var(--primary-dark);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.post__tldr-label {
  display: inline-block;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.post__tldr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post__tldr li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.post__tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--primary-dark);
  border-radius: 50%;
}

.post__body h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.post__body h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.post__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.post__body p {
  color: #444;
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 16px;
}

.post__body ul,
.post__body ol {
  color: #444;
  padding-left: 24px;
  margin-bottom: 20px;
}

.post__body li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 16px;
}

.post__body blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post__body img {
  border-radius: var(--radius-card);
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.post__body a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post__body a:hover {
  color: var(--text);
}

.post__body strong {
  color: var(--text);
}

.post__disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-card);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  border: 1px solid var(--border);
}

.post__cta {
  margin-top: 48px;
  padding: 36px 28px;
  background: linear-gradient(135deg, var(--surface), #f0f4f0);
  border-radius: var(--radius-card);
  text-align: center;
  border: 1px solid var(--border);
}

.post__cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Responsive ---- */

@media (min-width: 768px) {
  .container { padding: 64px 40px; }
  .nav { padding: 20px 40px; }
  .hero { padding: 80px 40px 56px; }
  .features { padding: 80px 40px; }
  .section { padding: 80px 40px; }
  .screenshots { padding: 40px 40px 72px; }
  .privacy-block { padding: 80px 40px; }
  .cta-block { padding: 80px 40px; }
  .footer { padding: 40px; }
  .post { padding: 48px 40px; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 30px; }
  .hero__subtitle { font-size: 17px; }
  .screenshots__item { width: 160px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
  .features__grid { grid-template-columns: 1fr; }
  .privacy-block__points { flex-direction: column; gap: 12px; }
  .post__title { font-size: 28px; }
  .post__body h2 { font-size: 20px; }
}

/* ============================================================
   TOOL: Interactive Bristol Stool Chart
   ============================================================ */

/* ---- Tool hero ---- */

.tool-hero {
  text-align: center;
  padding: 56px 24px 32px;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.tool-hero__eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tool-hero__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.tool-hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

.tool-hero__authority {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================================
   TOOL: Lifetime Poop Counter
   ============================================================ */

.counter {
  max-width: var(--max-width-narrow);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.counter__input-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.counter__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.counter__input-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.counter__slider {
  width: 100%;
  max-width: 400px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.counter__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: var(--primary-dark);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.counter__slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--primary-dark);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.counter__age-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.counter__age {
  width: 80px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  border: none;
  background: transparent;
  font-family: inherit;
  line-height: 1;
  -moz-appearance: textfield;
}

.counter__age::-webkit-outer-spin-button,
.counter__age::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.counter__age:focus {
  outline: none;
  color: var(--primary-dark);
}

.counter__age-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* ---- Stats grid ---- */

.counter__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.counter__stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 16px;
  text-align: center;
}

.counter__stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.counter__stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

/* ---- Comparison + share ---- */

.counter__comparison {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px;
  font-weight: 500;
}

.counter__share {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.counter__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-dark);
  border: none;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.counter__share-btn:hover {
  opacity: 0.88;
}

.counter__share-btn svg {
  flex-shrink: 0;
}

.counter__share-confirm {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ---- Responsive: counter ---- */

@media (min-width: 768px) {
  .counter { padding: 0 40px; }
  .counter__input-card { padding: 32px 40px 28px; }
  .counter__stat-number { font-size: 38px; }
}

@media (max-width: 640px) {
  .counter { padding: 0 16px; }
  .counter__input-card { padding: 22px 20px 18px; }
  .counter__age { font-size: 40px; width: 70px; }
  .counter__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .counter__stat { padding: 18px 12px; }
  .counter__stat-number { font-size: 26px; }
  .counter__stat-label { font-size: 11px; }
  .counter__comparison { font-size: 14px; }
}

/* ---- Tools index page ---- */

.tools-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px auto 0;
}

.tools-index__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 30px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tools-index__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transform: translateY(-2px);
}

.tools-index__card--rater,
.tools-index__card--chart,
.tools-index__card--counter {
  border-left: 4px solid var(--primary-dark);
}

.tools-index__tag {
  display: inline-block;
  width: fit-content;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.tools-index__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.2;
}

.tools-index__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}

.tools-index__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.tools-index__meta li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.tools-index__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.tools-index__cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.tools-index__more {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 32px;
}

.tools-index__more a {
  color: var(--primary-dark);
}

@media (max-width: 720px) {
  .tools-index {
    grid-template-columns: 1fr;
  }
  .tools-index__card {
    padding: 24px 22px 22px;
  }
}

/* ---- Home page tools grid ---- */

.home-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.home-tools__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.home-tools__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-tools__tag {
  display: inline-block;
  width: fit-content;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.home-tools__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

.home-tools__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}

.home-tools__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: auto;
}

/* ---- Tool hint (quiet inline pointer to sister tools) ---- */

.tool-hint {
  max-width: var(--max-width-narrow);
  margin: 0 auto 20px;
  padding: 10px 16px;
  background: var(--surface);
  border-left: 3px solid var(--primary-dark);
  border-radius: var(--radius-input);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-hint--plain {
  background: transparent;
}

.tool-hint a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.tool-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .tool-hint {
    margin: 0 16px 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ---- Bristol tool container ---- */

.bristol-tool {
  max-width: var(--max-width-narrow);
  margin: 0 auto 48px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Card (one per type) ---- */

.bristol-tool__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}

.bristol-tool__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--zone-color, var(--border));
  transition: width 0.2s;
}

.bristol-tool__card[data-zone="ideal"]      { --zone-color: #4F8B4F; --zone-tint: #EAF4EA; }
.bristol-tool__card[data-zone="healthy"]    { --zone-color: #8FBC8F; --zone-tint: #F0F7F0; }
.bristol-tool__card[data-zone="borderline"] { --zone-color: #E5B659; --zone-tint: #FDF7E8; }
.bristol-tool__card[data-zone="slow"]       { --zone-color: #E09B55; --zone-tint: #FCF1E6; }
.bristol-tool__card[data-zone="concern"]    { --zone-color: #D98466; --zone-tint: #FBEBE3; }
.bristol-tool__card[data-zone="fast"]       { --zone-color: #E28370; --zone-tint: #FBEAE5; }
.bristol-tool__card[data-zone="urgent"]     { --zone-color: #C56557; --zone-tint: #F7E1DC; }

.bristol-tool__card:hover {
  border-color: var(--zone-color);
  box-shadow: var(--shadow-card);
}

.bristol-tool__card--active {
  border-color: var(--zone-color);
  background: var(--zone-tint);
  box-shadow: var(--shadow-card);
}

.bristol-tool__card--active::before {
  width: 6px;
}

/* ---- Picker row (button) ---- */

.bristol-tool__row {
  display: grid;
  grid-template-columns: 44px 56px 1fr auto 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px 16px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  min-height: 84px;
}

.bristol-tool__row:focus {
  outline: none;
}

.bristol-tool__row:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: -2px;
  border-radius: var(--radius-card);
}

.bristol-tool__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zone-color);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.bristol-tool__icon {
  width: 56px;
  height: 56px;
  color: var(--zone-color);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bristol-tool__card--active .bristol-tool__icon {
  transform: scale(1.08);
}

.bristol-tool__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bristol-tool__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.bristol-tool__teaser {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bristol-tool__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.bristol-tool__pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  background: var(--zone-color);
  white-space: nowrap;
}

.bristol-tool__transit {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bristol-tool__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform 0.25s;
}

.bristol-tool__card--active .bristol-tool__chevron {
  transform: rotate(180deg);
  color: var(--zone-color);
}

/* ---- Detail panel (expanded content) ---- */

.bristol-tool__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.bristol-tool__card--active .bristol-tool__detail {
  max-height: 1600px;
}

.bristol-tool__detail-inner {
  padding: 8px 24px 28px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.bristol-tool__detail-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.bristol-tool__detail-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.bristol-tool__detail-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.bristol-tool__detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bristol-tool__detail-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.bristol-tool__detail-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zone-color);
}

.bristol-tool__detail-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bristol-tool__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--zone-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.bristol-tool__stat strong {
  color: var(--text);
  font-weight: 700;
}

.bristol-tool__stat--ideal      { background: #4F8B4F; color: #fff; border-color: #4F8B4F; }
.bristol-tool__stat--healthy    { background: #8FBC8F; color: #fff; border-color: #8FBC8F; }
.bristol-tool__stat--borderline { background: #E5B659; color: #fff; border-color: #E5B659; }
.bristol-tool__stat--slow       { background: #E09B55; color: #fff; border-color: #E09B55; }
.bristol-tool__stat--concern    { background: #D98466; color: #fff; border-color: #D98466; }
.bristol-tool__stat--fast       { background: #E28370; color: #fff; border-color: #E28370; }
.bristol-tool__stat--urgent     { background: #C56557; color: #fff; border-color: #C56557; }

.bristol-tool__app-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.bristol-tool__app-cta:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
}

/* ---- Transit time scale ---- */

.transit-scale {
  max-width: 720px;
  margin: 24px auto 16px;
}

.transit-scale__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #D98466 0%,
    #E09B55 20%,
    #8FBC8F 35%,
    #4F8B4F 50%,
    #8FBC8F 62%,
    #E28370 80%,
    #C56557 100%
  );
  margin: 32px 0 20px;
}

.transit-scale__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.transit-scale__marker[data-type="4"] {
  border-color: #4F8B4F;
  background: #4F8B4F;
  color: #fff;
  width: 36px;
  height: 36px;
}

.transit-scale__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 0 6px;
}

.transit-scale__note {
  max-width: 620px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Color strip ---- */

.color-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 920px;
  margin: 24px auto 16px;
}

.color-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-align: left;
}

.color-strip__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.color-strip__item strong {
  font-size: 13px;
  color: var(--text);
}

.color-strip__item span:last-child {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .color-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .color-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.color-strip__link {
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
}

/* ---- Stats grid ---- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 24px auto 0;
}

.stats-grid__item {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.stats-grid__number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.stats-grid__label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 10px;
}

.stats-grid__source {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ---- Red flag panel ---- */

.red-flag {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 28px 32px;
  background: #FBEAE5;
  border: 1px solid #E28370;
  border-left: 5px solid #C56557;
  border-radius: var(--radius-card);
}

.red-flag__title {
  font-size: 22px;
  font-weight: 800;
  color: #8B3A2E;
  margin-bottom: 8px;
}

.red-flag__desc {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 14px;
}

.red-flag__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.red-flag__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.red-flag__list li::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: #C56557;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 16px;
}

.red-flag__footer {
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 14px;
  border-top: 1px solid rgba(197, 101, 87, 0.25);
  line-height: 1.55;
}

/* ---- Tool footer group (related + sources in one band) ---- */

.bristol-tool-footer {
  background: var(--surface);
  padding: 56px 24px;
}

.bristol-tool-footer > * {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.bristol-tool-footer .section__title {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .bristol-tool-footer { padding: 72px 40px; }
}

/* ---- Sources ---- */

.sources {
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.sources__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.sources ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sources li {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.sources li a {
  color: var(--primary-dark);
}

.sources__disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
}

/* ---- Responsive: Bristol tool ---- */

@media (min-width: 768px) {
  .tool-hero { padding: 72px 40px 40px; }
  .tool-hero__title { font-size: 52px; }
  .tool-hero__subtitle { font-size: 20px; }

  .bristol-tool { padding: 0 40px; }

  .bristol-tool__detail-inner {
    padding: 12px 36px 32px;
  }

  .red-flag { padding: 32px 40px; }
}

@media (max-width: 640px) {
  .tool-hero { padding: 40px 20px 24px; }
  .tool-hero__title { font-size: 32px; }
  .tool-hero__subtitle { font-size: 16px; }

  .bristol-tool { padding: 0 16px; }

  .bristol-tool__row {
    grid-template-columns: 36px 44px 1fr auto;
    padding: 14px 14px 14px 18px;
    gap: 10px;
    min-height: 76px;
  }

  .bristol-tool__num {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .bristol-tool__icon {
    width: 44px;
    height: 44px;
  }

  .bristol-tool__name {
    font-size: 15px;
  }

  .bristol-tool__teaser {
    font-size: 12px;
  }

  .bristol-tool__chevron {
    display: none;
  }

  .bristol-tool__pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  .bristol-tool__detail-inner {
    padding: 8px 18px 22px;
  }

  .bristol-tool__detail-body h2 {
    font-size: 19px;
  }

  .red-flag {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bristol-tool__card,
  .bristol-tool__detail,
  .bristol-tool__chevron,
  .bristol-tool__card::before {
    transition: none;
  }
}

/* ============================================================
   TOOL: Rate Your Last Poop (Is My Poop Normal)
   ============================================================ */

.rater {
  max-width: var(--max-width-narrow);
  margin: 0 auto 48px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Question card ---- */

.rater__question {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rater__question:hover {
  border-color: var(--primary-light);
}

.rater__question-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rater__question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.rater__question-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.rater__question-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.rater__question-hint a {
  color: var(--primary-dark);
}

/* ---- Option groups ---- */

.rater__options {
  display: grid;
  gap: 10px;
}

.rater__options--shape {
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.rater__options--color {
  grid-template-columns: repeat(6, 1fr);
}

.rater__options--binary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rater__options--binary .rater__option {
  flex: 1 1 120px;
}

/* ---- Option button (base) ---- */

.rater__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-button);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: center;
  min-height: 88px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.rater__option:hover {
  border-color: var(--primary);
}

.rater__option:focus {
  outline: none;
}

.rater__option:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

.rater__option--selected {
  background: var(--primary-light);
  border-color: var(--primary-dark);
}

.rater__option-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.rater__option-label strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

/* ---- Shape options (Q1) with zone colors ---- */

.rater__option--shape[data-zone="ideal"]      { --zone: #4F8B4F; --zone-tint: #EAF4EA; }
.rater__option--shape[data-zone="healthy"]    { --zone: #8FBC8F; --zone-tint: #F0F7F0; }
.rater__option--shape[data-zone="borderline"] { --zone: #E5B659; --zone-tint: #FDF7E8; }
.rater__option--shape[data-zone="slow"]       { --zone: #E09B55; --zone-tint: #FCF1E6; }
.rater__option--shape[data-zone="concern"]    { --zone: #D98466; --zone-tint: #FBEBE3; }
.rater__option--shape[data-zone="fast"]       { --zone: #E28370; --zone-tint: #FBEAE5; }
.rater__option--shape[data-zone="urgent"]     { --zone: #C56557; --zone-tint: #F7E1DC; }

.rater__option--shape {
  padding: 12px 4px;
  min-height: 92px;
}

.rater__option--shape .rater__option-icon {
  width: 40px;
  height: 40px;
  color: var(--zone);
}

.rater__option--shape .rater__option-label {
  font-size: 11px;
}

.rater__option--shape .rater__option-label strong {
  font-size: 12px;
}

.rater__option--shape:hover {
  border-color: var(--zone);
}

.rater__option--shape.rater__option--selected {
  background: var(--zone-tint);
  border-color: var(--zone);
}

/* ---- Color options (Q2) ---- */

.rater__color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Binary options (Q3, Q4) ---- */

.rater__option--binary {
  min-height: 64px;
  flex-direction: row;
  padding: 16px 20px;
}

.rater__option--binary .rater__option-label strong {
  font-size: 15px;
}

.rater__option--danger.rater__option--selected {
  background: #F7E1DC;
  border-color: #C56557;
}

/* ---- Verdict panel ---- */

.rater__verdict {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  margin-top: 12px;
  transition: background 0.3s, border-color 0.3s;
}

.rater__verdict-empty {
  text-align: center;
  padding: 12px 0;
}

.rater__verdict-empty-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.rater__verdict-progress {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin: 0;
}

.rater__verdict--empty,
.rater__verdict--partial {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--border);
}

/* Verdict variants (zone-tinted backgrounds matching chart tool) */
.rater__verdict--healthy {
  background: #EAF4EA;
  border-color: #4F8B4F;
  border-left: 5px solid #4F8B4F;
}

.rater__verdict--watch {
  background: #FDF7E8;
  border-color: #E5B659;
  border-left: 5px solid #E5B659;
}

.rater__verdict--concern {
  background: #FBEBE3;
  border-color: #D98466;
  border-left: 5px solid #D98466;
}

.rater__verdict--urgent {
  background: #F7E1DC;
  border-color: #C56557;
  border-left: 5px solid #C56557;
}

/* Verdict content */
.rater__verdict-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 12px;
}

.rater__verdict--healthy .rater__verdict-pill { background: #4F8B4F; }
.rater__verdict--watch .rater__verdict-pill   { background: #B8872B; }
.rater__verdict--concern .rater__verdict-pill { background: #A65440; }
.rater__verdict--urgent .rater__verdict-pill  { background: #8B3A2E; }

.rater__verdict-rating {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-weight: 500;
}

.rater__verdict-content h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin: 20px 0 8px;
}

.rater__verdict-content > p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 8px;
}

.rater__verdict-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rater__verdict-actions li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}

.rater__verdict-actions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.rater__verdict--healthy .rater__verdict-actions li::before { background: #4F8B4F; opacity: 1; }
.rater__verdict--watch .rater__verdict-actions li::before   { background: #B8872B; opacity: 1; }
.rater__verdict--concern .rater__verdict-actions li::before { background: #A65440; opacity: 1; }
.rater__verdict--urgent .rater__verdict-actions li::before  { background: #8B3A2E; opacity: 1; }

.rater__verdict-cta {
  margin-top: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.rater__verdict-cta strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.rater__verdict-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
}

.rater__verdict-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s;
}

.rater__verdict-download:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
}

.rater__verdict-download svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Method grid (How it's calculated) ---- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 24px auto 0;
}

@media (max-width: 820px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-grid__item {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  border: 1px solid var(--border);
}

.method-grid__item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.method-grid__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  margin-bottom: 10px;
}

.method-grid__badge--urgent   { background: #8B3A2E; }
.method-grid__badge--concern  { background: #A65440; }
.method-grid__badge--watch    { background: #B8872B; }
.method-grid__badge--healthy  { background: #4F8B4F; }

.method-footer {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Responsive: rater ---- */

@media (min-width: 768px) {
  .rater { padding: 0 40px; }
  .rater__question { padding: 28px 32px; }
  .rater__verdict { padding: 36px 32px; }
}

@media (max-width: 720px) {
  .rater__options--color {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .rater__options--shape {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .rater { padding: 0 16px; gap: 16px; }

  .rater__question {
    padding: 20px 18px;
  }

  .rater__question-title {
    font-size: 16px;
  }

  .rater__option {
    min-height: 80px;
    padding: 12px 8px;
  }

  .rater__option--shape {
    min-height: 88px;
    padding: 10px 4px;
  }

  .rater__option--shape .rater__option-icon {
    width: 36px;
    height: 36px;
  }

  .rater__verdict {
    padding: 24px 20px;
  }

  .rater__verdict-cta {
    padding: 16px 18px;
  }
}

@media (max-width: 420px) {
  .rater__options--shape {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .rater__options--color {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rater__option,
  .rater__verdict,
  .rater__question {
    transition: none;
  }
}
