/* ==========================================================================
   Paint reference pages
   Builds on the site's existing style.css - reuses .section_title,
   .title_badge, .row_am, .download_app and the brand palette rather than
   redefining them.
   ========================================================================== */

:root {
  --paint-ink: #1b044a;
  --paint-muted: #636c99;
  --paint-line: #e3e5f0;
  --paint-tint: #f3f5ff;
  --paint-accent: #7a3df7;
}

/* ---------- page shell ---------- */

.paint_page { padding-bottom: 20px; }
.paint_page > .container:first-child { padding-top: 26px; }

.paint_crumbs {
  font-size: 14px;
  color: var(--paint-muted);
  /* Clears the site's absolutely-positioned header, matching the 180px
     padding-top .about_us_section uses for the same reason. */
  padding: 150px 0 0;
}
.paint_crumbs a { color: var(--paint-accent); }
.paint_crumbs a:hover { text-decoration: underline; }
.paint_crumbs .sep { margin: 0 8px; opacity: .55; }
.paint_crumbs .current { color: var(--paint-muted); }

/* Section title needs room to breathe - the site's own pages give it ~50px */
.paint_page .section_title { margin-bottom: 50px; }
.paint_page .section_title p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--paint-muted);
}

/* A hero swatch beside the page title, so a colour page leads with colour */
.colour_hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 8px;
}
.colour_hero .hero_chip {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(27, 4, 74, .12);
  box-shadow: 0 12px 30px rgba(27, 4, 74, .16);
  flex: 0 0 92px;
}

/* ---------- section rhythm ---------- */

.paint_section { padding: 46px 0; }
.paint_section + .paint_section { border-top: 1px solid var(--paint-line); }

.paint_section h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--paint-ink);
  margin-bottom: 10px;
}
.paint_section .section_note {
  color: var(--paint-muted);
  max-width: 760px;
  margin-bottom: 30px;
}

/* ---------- plain-language explainer ---------- */

.explainer_section { padding-top: 10px; }
.explainer {
  background: var(--paint-tint);
  border-radius: 20px;
  padding: 34px 38px;
  max-width: 860px;
  margin: 0 auto;
}
.explainer h2 { font-size: 27px; margin-bottom: 14px; }
.explainer p { color: var(--paint-ink); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.explainer p:last-child { margin-bottom: 0; }
.explainer .explainer_use {
  color: var(--paint-muted);
  border-top: 1px solid rgba(27, 4, 74, .10);
  padding-top: 16px;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .explainer { padding: 24px 22px; border-radius: 16px; }
  .explainer h2 { font-size: 22px; }
}

/* ---------- data cards ---------- */

.fact_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.fact_card {
  background: #fff;
  border: 1px solid var(--paint-line);
  border-radius: 16px;
  padding: 20px 22px;
}
.fact_card .fact_key {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  color: var(--paint-ink);
  background: var(--paint-tint);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.fact_card .fact_brands {
  color: var(--paint-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.scale_note {
  background: var(--paint-tint);
  border-left: 3px solid var(--paint-accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 26px 0 18px;
  color: var(--paint-ink);
  font-size: 15px;
}

/* ---------- distance rows ---------- */

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

.distance_row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--paint-line);
  border-radius: 14px;
  padding: 14px 20px;
}
.distance_row .pair { font-weight: 700; color: var(--paint-ink); }
.distance_row .pair .vs { color: var(--paint-muted); font-weight: 400; margin: 0 6px; }
.distance_row .delta {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--paint-ink);
  white-space: nowrap;
}
.distance_row .verdict {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.verdict.v_identical { background: #e7f7f0; color: #0b6b4f; }
.verdict.v_close     { background: #eaf1ff; color: #24459a; }
.verdict.v_noticeable{ background: #fff4e5; color: #8a5200; }
.verdict.v_different { background: #fdecec; color: #a3221f; }

/* ---------- the full measurement table ---------- */

.table_wrap {
  border: 1px solid var(--paint-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.paint_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.paint_table th {
  background: var(--paint-tint);
  font-weight: 800;
  color: var(--paint-ink);
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}
.paint_table td {
  padding: 13px 16px;
  border-top: 1px solid var(--paint-line);
  color: var(--paint-ink);
  vertical-align: middle;
}
.paint_table tbody tr:hover td { background: #fbfbff; }
.paint_table .num { font-variant-numeric: tabular-nums; color: var(--paint-muted); white-space: nowrap; }
.paint_table code {
  background: var(--paint-tint);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--paint-ink);
  font-size: 13px;
}
.paint_swatch {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(27, 4, 74, .12);
}

/* ---------- colour index ---------- */

.swatch_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.swatch_card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--paint-line);
  border-radius: 14px;
  padding: 12px 14px;
  transition: .25s all;
}
.swatch_card:hover {
  border-color: var(--paint-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 4, 74, .10);
}
.swatch_card .chip {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(27, 4, 74, .12);
  flex: 0 0 44px;
}
.swatch_card .meta { min-width: 0; }
.swatch_card .name {
  display: block;
  font-weight: 700;
  color: var(--paint-ink);
  line-height: 1.25;
}
.swatch_card .count { font-size: 13px; color: var(--paint-muted); }

/* ---------- hub / pill lists ---------- */

.pill_list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill_list a,
.pill_list .pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--paint-line);
  border-radius: 100px;
  padding: 9px 18px;
  color: var(--paint-ink);
  font-weight: 600;
  font-size: 15px;
  transition: .25s all;
}
.pill_list a:hover { border-color: var(--paint-accent); color: var(--paint-accent); }

/* ---------- neighbours ---------- */

.neighbour_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.neighbour_card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--paint-line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: .25s all;
}
.neighbour_card:hover { border-color: var(--paint-accent); transform: translateY(-2px); }
.neighbour_card .chip { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; border: 1px solid rgba(27,4,74,.12); }
.neighbour_card .name { display: block; font-weight: 700; color: var(--paint-ink); }
.neighbour_card .dist { font-size: 13px; color: var(--paint-muted); }

/* ---------- CTA panel ---------- */
/* Deliberately minimal: .download_app in style.css already positions the
   phone artwork and its rotated backdrop. Overriding .task_img here is what
   knocked the image out of alignment before. */

.paints_cta .task_block { padding: 0 90px; }
.paints_cta .task_text { padding: 70px 0 60px; }
.paints_cta .section_title { text-align: left; margin-bottom: 26px; }
.paints_cta .section_title h2 { font-size: 44px; letter-spacing: -1.5px; }
.paints_cta .section_title p { margin-left: 0; max-width: 460px; }
.paints_cta .free_tier_note {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  margin-top: 24px;
  max-width: 460px;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .paints_cta .task_block { padding: 0 30px; }
  .paints_cta .task_text { padding: 46px 0 40px; }
  .paints_cta .section_title h2 { font-size: 32px; }
  .paint_section h2 { font-size: 27px; }
}

@media (max-width: 767px) {
  .colour_hero { gap: 16px; }
  .colour_hero .hero_chip { width: 62px; height: 62px; flex-basis: 62px; border-radius: 16px; }
  .paint_section { padding: 34px 0; }
  .distance_row { grid-template-columns: 1fr; gap: 8px; justify-items: start; }
  .table_wrap { overflow-x: auto; }
  .paint_table { min-width: 720px; }
  .paints_cta .task_img { display: none; }
  .paints_cta .task_text { padding-bottom: 46px; }
}

.official_site {
  color: var(--paint-muted);
  font-size: 15px;
  margin: -10px 0 0;
}
.official_site a { color: var(--paint-accent); font-weight: 600; }
.official_site a:hover { text-decoration: underline; }
