/* The xfix.ai homepage (root homepage spec, 2026-10-29: RootHome.dc.html, RootHomeMobile.dc.html). build.py root_home. */
.rh { display: block; }
.rh-wrap { max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.rh-section { padding: 0 24px 56px; }
.rh-section-tight { padding-bottom: 40px; }
.rh-section-end { padding-bottom: 72px; }

/* hero */
.rh-hero { padding: 72px 24px 64px; max-width: 860px; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.rh-h1 { font-size: 68px; line-height: 1; max-width: 860px; }
[dir="rtl"] .rh-h1 { font-size: 56px; line-height: 1.3; }
.rh-sub { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--ink-2, #5E584C); text-wrap: pretty; }
.rh-box { width: 100%; max-width: 640px; box-sizing: border-box; background: var(--card, #fff); border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 var(--line, #E6E0CF), 0 16px 40px rgba(26, 23, 18, .07); }
.rh-check { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-check input { flex: 1 1 260px; min-width: 0; min-height: 56px; box-sizing: border-box; border: 1px solid #DCD5C1; border-radius: 999px; padding: 0 22px; font: inherit; font-size: 17px; background: #fff; color: var(--ink, #1A1712); }
.rh-check input::placeholder { color: #6F6858; }
.rh-check input:focus { outline: 2px solid var(--ink, #1A1712); outline-offset: 1px; }
.rh-btn { min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink, #1A1712); color: #fff; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }
.rh-btn:hover { background: #000; }
.rh-btn:focus-visible { outline: 3px solid var(--shop, #F59AC4); outline-offset: 2px; }
.rh-btn[disabled] { opacity: .7; cursor: wait; }
.rh-micro { margin: 0; font-size: 14px; color: var(--ink-2, #5E584C); }
.rh-detected { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; }
.rh-detected[hidden] { display: none; }
.rh-type { display: inline-flex; align-items: center; gap: 6px; background: #E9F4EA; color: #1F5130; font-weight: 800; padding: 7px 12px; border-radius: 999px; }
.rh-line { color: var(--ink-2, #5E584C); }
.rh-change { border: 0; background: transparent; padding: 0 4px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink, #1A1712); text-decoration: underline; cursor: pointer; }
.rh-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rh-pick[hidden] { display: none; }
.rh-pick-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line, #E6E0CF); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink, #1A1712); cursor: pointer; }
.rh-pick-btn[aria-pressed="true"] { background: var(--ink, #1A1712); color: #fff; border-color: var(--ink, #1A1712); }
.rh-sample { margin: 0; font-size: 14px; color: var(--ink-2, #5E584C); }
.rh-sample a { color: var(--ink, #1A1712); font-weight: 800; }
.scan-error { margin: 0; color: #9B1C1C; font-size: 14px; }

/* products */
.rh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rh-card { background: var(--card, #fff); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rh-card-top { display: flex; align-items: center; gap: 10px; }
.rh-name { text-decoration: none; color: var(--ink, #1A1712); display: inline-flex; min-height: 44px; align-items: center; }
.rh-tag { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--ink-2, #5E584C); }
.rh-h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
.rh-list { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.rh-list li { padding: 12px 0; border-top: 1px solid #EFEADC; }
.rh-more { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; color: var(--ink, #1A1712); text-decoration: none; }
.rh-more:hover { text-decoration: underline; }
.rh-more.is-search { color: #6B5600; }
.rh-more.is-ux { color: #A4185A; }
.rh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rh-tile { background: var(--paper, #F6F3E8); border-radius: 14px; padding: 12px 14px; min-height: 44px; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink, #1A1712); }
.rh-tile:hover { background: #EFEADC; }
.rh-tile:focus-visible, .rh-chip:focus-visible, .rh-gov:focus-visible, .rh-report:focus-visible, .rh-more:focus-visible, .rh-name:focus-visible { outline: 2px solid var(--ink, #1A1712); outline-offset: 2px; }
.rh-tile-name { font-size: 15px; font-weight: 900; }
.rh-tile-path { font-size: 12px; color: var(--ink-2, #5E584C); }
.rh-short { display: none; }

/* one report */
.rh-report { margin-top: 16px; background: var(--ink, #1A1712); color: #F6F3E8; border-radius: 22px; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; text-decoration: none; }
.rh-report-k { font-weight: 900; font-size: 16px; }
.rh-report-tabs { display: flex; gap: 6px; background: #2A2620; border-radius: 999px; padding: 4px; }
.rh-tab { color: var(--ink, #1A1712); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.rh-tab small { font-size: 13px; font-weight: 600; }
.rh-tab.is-search { background: var(--search, #F2D33B); }
.rh-tab.is-ux { background: var(--shop, #F59AC4); }
.rh-grow { flex: 1; }
.rh-report-go { font-weight: 900; }
.rh-report:hover .rh-report-go { text-decoration: underline; }

/* price and proof */
.rh-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.rh-price, .rh-stat { background: var(--card, #fff); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.rh-k { font-size: 13px; font-weight: 800; color: var(--ink-2, #5E584C); }
.rh-price-t { font-size: 30px; font-weight: 900; line-height: 1.1; }
.rh-price-l { font-size: 14px; line-height: 1.5; color: var(--ink-2, #5E584C); }
.rh-stat { gap: 6px; }
.rh-stat b { font-size: 44px; font-weight: 900; line-height: 1; min-height: 44px; font-variant-numeric: tabular-nums; }
.rh-stat span { font-size: 14px; color: var(--ink-2, #5E584C); }

/* free tools and guides */
.rh-more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.rh-more-title { font-size: 14px; font-weight: 900; margin-inline-end: 6px; }
.rh-chip { background: var(--card, #fff); border-radius: 999px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 800; color: var(--ink, #1A1712); }
.rh-chip:hover { background: #EFEADC; }

/* gov */
.rh-gov { background: var(--card, #fff); border-radius: 22px; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-decoration: none; color: var(--ink, #1A1712); }
.rh-gov-text { flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: #3D382F; }
.rh-gov-go { font-weight: 900; min-height: 44px; display: inline-flex; align-items: center; }
.rh-gov:hover .rh-gov-go { text-decoration: underline; }

/* phone (RootHomeMobile.dc.html) */
@media (max-width: 720px) {
  .rh-hero { padding: 28px 16px 32px; gap: 16px; }
  .rh-h1 { font-size: 40px; line-height: 1.02; }
  [dir="rtl"] .rh-h1 { font-size: 34px; line-height: 1.35; }
  .rh-sub { font-size: 16px; line-height: 1.45; }
  .rh-box { border-radius: 22px; padding: 10px; gap: 8px; }
  .rh-check { flex-direction: column; gap: 8px; }
  .rh-check input { flex: none; width: 100%; min-height: 52px; font-size: 16px; padding: 0 18px; }
  .rh-btn { min-height: 52px; font-size: 16px; }
  .rh-micro, .rh-detected { font-size: 13px; }
  .rh-section { padding: 0 16px 24px; }
  .rh-section-end { padding-bottom: 32px; }
  .rh-cards { gap: 12px; }
  .rh-card { padding: 22px; border-radius: 22px; gap: 12px; }
  .rh-h2 { font-size: 21px; line-height: 1.25; }
  .rh-list { font-size: 14px; }
  .rh-list li { padding: 10px 0; }
  .rh-tiles { grid-template-columns: 1fr; gap: 6px; }
  .rh-tile { flex-direction: row; align-items: center; gap: 10px; }
  .rh-tile-name { flex: 1; }
  .rh-tile-name span { display: none; }
  .rh-tile::after { content: "›"; font-weight: 900; }
  [dir="rtl"] .rh-tile::after { content: "‹"; }
  .rh-long { display: none; }
  .rh-short { display: inline; }
  .rh-report { margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .rh-report-tabs { background: transparent; padding: 0; }
  .rh-tab { font-size: 12px; padding: 8px 12px; }
  .rh-tab small { display: none; }
  .rh-grow { display: none; }
  .rh-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rh-price { grid-column: 1 / -1; padding: 22px; }
  .rh-price-t { font-size: 24px; line-height: 1.15; }
  .rh-stat { padding: 18px; border-radius: 20px; gap: 4px; }
  .rh-stat b { font-size: 30px; min-height: 30px; }
  .rh-stat span { font-size: 12px; }
  .rh-more-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .rh-more-title { padding: 0 4px 4px; }
  .rh-chip { border-radius: 14px; padding: 14px 16px; font-size: 15px; justify-content: space-between; }
  .rh-gov { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 20px; }
  .rh-gov-text { flex: none; font-size: 14px; }
}
