/* homepage-cold.css — homepage-specific components for the wire-saw vertical site.
   Relies on tokens from assets/alliance-layout-cold.css.
   Palette: cool neutral surfaces, brand-red/orange accent, blue ≤ 10 %.
*/

/* Prevent horizontal overflow on narrow viewports */
html, body { overflow-x: hidden; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  padding: 148px 0 80px;
  background: linear-gradient(180deg, var(--color-canvas) 0%, #f4f5f6 100%);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-steel);
  margin-bottom: 18px;
}
.hero-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-verified);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 em {
  color: var(--color-verified);
  font-style: normal;
}
.hero-desc {
  font-size: 15px;
  color: var(--color-steel);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 26px;
}
.hero-desc strong { color: var(--color-ink); font-weight: 600; }
.hero-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-hairline-dark);
  color: var(--color-ink);
  background: transparent;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--color-ink); background: #fff; text-decoration: none; }
.pill-primary {
  background: #e85d3c;
  border-color: #e85d3c;
  color: #fff;
}
.pill-primary:hover { background: #d14f30; border-color: #d14f30; }
.hero-visuals { position: relative; }
.hero-image-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  background: var(--color-card);
  aspect-ratio: 4 / 3;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--color-ink);
  line-height: 1;
}
.hero-stat span {
  font-size: 12px;
  color: var(--color-steel);
  margin-top: 4px;
  display: block;
}
.hero-method {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.method-card {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.method-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #e85d3c;
  font-weight: 500;
}
.method-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.method-card-body {
  font-size: 11px;
  color: var(--color-steel);
  line-height: 1.5;
}
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-ash), transparent);
}

/* ---------------------------------------------------------------------------
   Home TOC
   --------------------------------------------------------------------------- */
.home-toc {
  position: sticky;
  top: 68px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-hairline);
}
.home-toc-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  height: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-toc-inner::-webkit-scrollbar { display: none; }
.home-toc-inner a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-steel);
  white-space: nowrap;
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}
.home-toc-inner a:hover { color: var(--color-ink); text-decoration: none; }
.home-toc-inner a.active { color: #e85d3c; }
.home-toc-inner a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e85d3c;
  border-radius: 1px;
}

/* ---------------------------------------------------------------------------
   Ranking banner & tabs
   --------------------------------------------------------------------------- */
.ranking-banner {
  background: #111827;
  padding: 32px 0 0;
  position: relative;
  overflow: hidden;
}
.ranking-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.ranking-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.ranking-banner-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ranking-trophy-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  flex-shrink: 0;
}
.ranking-trophy-icon svg { width: 100%; height: 100%; }
.ranking-banner-title h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}
.ranking-banner-title h2 span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin-top: 4px;
}
.ranking-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ranking-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ranking-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-verified);
  border: 1px solid var(--color-verified);
  padding: 4px 10px;
  border-radius: 4px;
}
.ranking-tabs {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.ranking-tabs::-webkit-scrollbar { display: none; }
.ranking-tab {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -20px;
  padding-bottom: 18px;
  white-space: nowrap;
}
.ranking-tab:hover { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ranking-tab.active {
  color: #fff;
  border-bottom-color: #e85d3c;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------------------------------
   Ranking section
   --------------------------------------------------------------------------- */
.ranking-section { padding: 32px 0 80px; background: var(--color-canvas); }
.category-ranking { display: none; }
.category-ranking.active { display: block; }
.category-intro {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-steel);
  line-height: 1.8;
}
.category-intro p { margin: 0; }
.category-intro p + p { margin-top: 8px; }
.category-intro strong { color: var(--color-ink); font-weight: 600; }
.category-ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Ranking card */
.ranking-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ranking-card:hover {
  border-color: var(--color-hairline-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
.ranking-card-header {
  display: grid;
  grid-template-columns: 46px 1fr 72px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-hairline);
}
.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.rank-num.rank-1 { background: #1a1a1a; color: #fff; }
.rank-num.rank-2 { background: #e5e7eb; color: #1a1a1a; }
.rank-num.rank-3 { background: #f3e9db; color: #7a5c3c; }
.rank-num.rank-other { background: #f4f5f6; color: var(--color-steel); }
.ranking-card-info h4 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 3px;
  color: var(--color-ink);
}
.ranking-card:hover .ranking-card-info h4 { color: #e85d3c; }
.score-reason {
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-score { text-align: right; }
.ranking-score-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
}
.ranking-score-label {
  font-size: 9px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ranking-card-body { padding: 16px; }
.ranking-card-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.img-thumb,
.img-thumb-half {
  background: var(--color-canvas-soft);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ash);
  font-size: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.img-thumb img,
.img-thumb-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radar-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 3;
}
.radar-legend-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--color-steel);
}
.radar-legend-inline span { display: inline-flex; align-items: center; gap: 5px; }
.radar-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.radar-legend-dot.current { background: #e85d3c; }
.radar-legend-dot.avg { background: var(--color-hairline-dark); border: 1px solid var(--color-ash); }

/* Mini radar — kept to 6 CSS rules */
.mini-radar { display: block; width: 100%; height: 100%; }
.mini-radar .current { fill: hsla(12, 80%, 56%, 0.10); stroke: hsl(12, 80%, 56%); stroke-width: 2; }
.mini-radar .avg { fill: none; stroke: var(--color-hairline-dark); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mini-radar circle { fill: #fff; stroke: var(--color-ash); stroke-width: 1.5; }
.mini-radar line.axis { stroke: var(--color-hairline); stroke-width: 1; }
.mini-radar text { fill: var(--color-ash); font-size: 9px; }

/* Tag group */
.tag-group { display: flex; flex-direction: column; gap: 8px; }
.tag-row { display: flex; align-items: flex-start; gap: 8px; }
.tag-row-label {
  font-size: 10px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 3px;
  min-width: 56px;
}
.tag-row-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row-chip {
  font-size: 11px;
  color: var(--color-steel);
  background: #f4f5f6;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
  white-space: nowrap;
}
.tag-row-chip.highlight {
  background: rgba(232, 93, 60, 0.08);
  border-color: rgba(232, 93, 60, 0.25);
  color: #c94a2c;
}

/* Testimonial */
.testimonial {
  background: #f4f5f6;
  border-radius: 12px;
  padding: 14px;
  border-left: 2px solid #e85d3c;
}
.testimonial-text {
  font-size: 12px;
  color: var(--color-ink);
  line-height: 1.65;
  margin-bottom: 10px;
}
.testimonial-author {
  font-size: 11px;
  color: var(--color-steel);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Methodology
   --------------------------------------------------------------------------- */
.method-section { padding: 80px 0; background: var(--color-canvas); }
.method-desc {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.8;
  max-width: 780px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.method-step {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  padding: 18px;
}
.method-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e85d3c;
  margin-bottom: 10px;
}
.method-step h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.method-step p {
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.65;
}
.method-principles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.method-principle {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--color-hairline);
  background: #fff;
}
.method-principle h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.method-principle p {
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   Recommendations
   --------------------------------------------------------------------------- */
#recommendations { padding: 80px 0; background: var(--color-canvas-soft); }
.recommendation-subsection + .recommendation-subsection { margin-top: 56px; }
.section-subheader { margin-bottom: 22px; }
.section-subtitle { font-size: clamp(22px, 2.5vw, 28px); }
.section-subtitle em { color: #e85d3c; font-style: normal; }
.region-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.region-card {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  padding: 18px;
}
.region-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.region-card-tip {
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.5;
  margin: 6px 0 12px;
}
.compact-product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-hairline);
  text-decoration: none;
  color: inherit;
}
.compact-product:last-child { border-bottom: none; }
.compact-product:hover { text-decoration: none; }
.compact-product:hover .compact-product-name { color: #e85d3c; }
.compact-badge {
  flex-shrink: 0;
  background: #e85d3c;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 2px;
}
.compact-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-product-brand {
  font-size: 11px;
  color: var(--color-steel);
  margin-bottom: 3px;
}
.compact-product-reason {
  font-size: 11px;
  color: var(--color-steel);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Articles
   --------------------------------------------------------------------------- */
#articles { padding: 80px 0; background: var(--color-canvas-soft); }
.articles-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06); text-decoration: none; }
.article-card.featured { justify-content: flex-end; position: relative; min-height: 320px; }
.article-card.featured .article-image {
  position: absolute;
  inset: 0;
}
.article-card.featured .article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.2) 55%, transparent);
}
.article-card.featured .article-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.article-card.featured h4,
.article-card.featured p { color: #fff; }
.article-image { aspect-ratio: 16 / 9; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-content { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  color: #e85d3c;
  background: rgba(232, 93, 60, 0.08);
  border: 1px solid rgba(232, 93, 60, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-card h4 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.article-card p {
  font-size: 13px;
  color: var(--color-steel);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  margin-top: auto;
  font-size: 11px;
  color: var(--color-ash);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------------------
   Reviews
   --------------------------------------------------------------------------- */
#reviews { padding: 80px 0; background: var(--color-canvas); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  padding: 22px;
}
.review-stars { color: var(--color-gold); font-size: 14px; margin-bottom: 12px; }
.review-text {
  font-size: 13px;
  color: var(--color-ink);
  line-height: 1.7;
  margin-bottom: 16px;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f5f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.review-author-info h5 {
  font-size: 13px;
  color: var(--color-ink);
  margin-bottom: 2px;
}
.review-author-info p {
  font-size: 11px;
  color: var(--color-steel);
}

/* ---------------------------------------------------------------------------
   CTA / contact form
   --------------------------------------------------------------------------- */
.cta-section {
  padding: 80px 0;
  background: #111827;
  color: #fff;
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.cta-section h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.cta-section h2 em { color: #e85d3c; font-style: normal; }
.cta-section p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 460px;
}
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #e85d3c; }
.form-field select option { background: #1f2937; color: #fff; }
.form-field textarea { min-height: 90px; resize: vertical; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #e85d3c;
  color: #fff;
  margin-top: 4px;
  transition: background 0.2s;
}
.form-submit:hover { background: #d14f30; }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-status,
[data-fs-success],
[data-fs-error] {
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 20px;
  display: none;
}
.form-status.is-success,
.form-status.is-error,
[data-fs-success]:not(:empty),
[data-fs-error]:not(:empty) { display: block; }
.form-status.is-success,
[data-fs-success] { color: #4ade80; }
.form-status.is-error,
[data-fs-error] { color: #fb7185; }
.field-error {
  font-size: 11px;
  color: #fb7185;
  min-height: 14px;
  display: block;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #fb7185; }

/* ---------------------------------------------------------------------------
   Floating recommender
   --------------------------------------------------------------------------- */
.home-recommender {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-hairline);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  z-index: 110;
  overflow: hidden;
}
.home-recommender-toggle {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, rgba(232, 93, 60, 0.10), rgba(198, 163, 79, 0.06));
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-recommender-toggle strong { font-size: 15px; color: var(--color-ink); }
.home-recommender-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e85d3c;
  font-family: var(--font-mono);
}
.home-recommender-body { padding: 14px 16px 16px; }
.home-recommender-copy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-steel);
  margin-bottom: 12px;
}
.home-recommender-field { display: block; margin-bottom: 10px; }
.home-recommender-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.home-recommender-field select {
  width: 100%;
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.home-recommender-status {
  font-size: 11px;
  color: var(--color-steel);
  margin: 4px 0 8px;
  line-height: 1.5;
}
.home-recommender-results {
  list-style: none;
  display: grid;
  gap: 8px;
}
.home-recommender-results li {
  padding: 9px 10px;
  border-radius: 10px;
  background: #f4f5f6;
  border: 1px solid var(--color-hairline);
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-ink);
}
.home-recommender.is-collapsed .home-recommender-body { display: none; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-frame { aspect-ratio: 16 / 9; }
  .hero-method { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .method-principles { grid-template-columns: repeat(2, 1fr); }
  .region-row { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { min-height: 280px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-recommender {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: auto;
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 64px; }
  .hero-method { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .home-toc-inner { gap: 18px; justify-content: flex-start; }
  .category-ranking-list { grid-template-columns: 1fr; }
  .ranking-card-header { grid-template-columns: 42px 1fr 60px; }
  .ranking-card-visual { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-principles { grid-template-columns: 1fr; }
  .region-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-section::before { display: none; }
}
