/* Top, pricing and FAQ page styles. Scoped to body.home so other pages keep style.css only. */
body.home section { padding: 64px 0; }
body.home .app-main section { padding: 24px 0; }
body.home .hero { padding: 72px 0 56px; background: linear-gradient(180deg, #eaf1f7 0%, var(--surface) 100%); border-bottom: 1px solid var(--line); }
body.home .hero h1 { color: var(--brand); max-width: 15em; }
body.home .hero .sub { max-width: 32em; }
body.home .hero .cta { margin-top: 28px; }
body.home .hero-status { margin-top: 16px; }
body.home .hero-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--ink-soft); }
body.home .hero-facts li::before { content: "✓"; margin-right: 6px; color: var(--ok); font-weight: 700; }
body.home .hero-badges { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
body.home .hero-badges .badge { white-space: normal; }
body.home .cta .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
body.home .home-features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
body.home .feature h3 { color: var(--brand); font-size: 1.02rem; }
body.home .feature p { color: var(--ink-soft); font-size: 0.92rem; }
body.home .feat-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 8px; margin-bottom: 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-weight: 700; font-size: 0.85rem; }
body.home .scope-note { margin: 0; }
body.home .report-sample p { margin: 0; }
body.home .sample-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; }
body.home .sample-item { display: grid; gap: 6px; border-top: 1px solid var(--line); padding: 14px 0; }
body.home .sample-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
body.home .sample-fix .chip { margin-right: 8px; }
body.home .price-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.home .price-steps li { display: grid; gap: 2px; justify-items: center; align-content: start; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
body.home .section-alt .price-steps li { background: var(--bg); }
body.home .price-steps strong { color: var(--brand); }
body.home .price-steps .amount { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
body.home .field select { max-width: 280px; }
body.home .cta-row { text-align: center; }

/* Inspect -> AI explanation -> fix flow */
body.home .flow-visual { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
body.home .flow-visual > li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
body.home .flow-visual > li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -22px; transform: translateY(-50%); color: var(--accent); font-weight: 700; font-size: 1.2rem; }
body.home .flow-visual h3 { color: var(--brand); margin: 0 0 6px; }
body.home .flow-visual p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
body.home .fv-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
body.home .fv-ai { background: #efe9f7; color: #6b4fa0; }
body.home .fv-fix { background: #e8f5ee; color: var(--ok); }
body.home .fv-tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
body.home .fv-tags li { font-size: 0.78rem; padding: 1px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); }

/* Report example */
body.home .report-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
body.home .report-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
body.home .report-perks li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
body.home .report-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
body.home .sample-grade { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; }
/* Only the text next to the badge is a block; the badge itself (.grade-letter) stays a centred flex box. */
body.home .sample-grade p strong, body.home .sample-grade p span { display: block; }
body.home .grade-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; color: #fff; font-size: 1.8rem; font-weight: 700; text-align: center; line-height: 1; box-sizing: border-box; padding: 0; text-box: trim-both cap alphabetic; }
@supports (text-box: trim-both cap alphabetic) {
  body.home .grade-letter { display: block; align-content: center; }
}
body.home .grade-e { background: var(--sev-high); }
body.home .sample-item .chip, body.home .sample-item .badge-ai { margin-right: 8px; }

/* Dashboard value */
body.home .manage-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.home .manage-grid li { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 16px; }
body.home .manage-grid strong { color: var(--brand); }

@media (max-width: 860px) {
  body.home .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .flow-visual { grid-template-columns: 1fr; gap: 28px; }
  body.home .flow-visual > li:not(:last-child)::after { content: "↓"; top: auto; bottom: -26px; right: 50%; transform: translateX(50%); }
  body.home .report-layout { grid-template-columns: 1fr; gap: 20px; }
  body.home .manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.home section { padding: 40px 0; }
  body.home .hero { padding: 44px 0 36px; }
  body.home .home-features { grid-template-columns: 1fr; }
  body.home .price-steps { gap: 6px; }
  body.home .price-steps li { padding: 12px 5px; font-size: .85rem; }
  body.home .price-steps .amount { font-size: 1.25rem; }
  body.home .cta .btn { width: 100%; }
  body.home .flow-visual > li { padding: 16px; }
  body.home .manage-grid li { padding: 12px; }
}

@media (max-width: 360px) {
  body.home .manage-grid { grid-template-columns: 1fr; }
}

/* Top page news entry: two cards in the hero .quick-links look. Links to the list pages only, because the
   daily news release may change news/<date>.html and news/index.html but never this page. */
body.home .home-news-lead { margin: 0 0 18px; }
body.home .home-news .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
@media (max-width: 640px) {
  body.home .home-news .quick-links { grid-template-columns: 1fr; }
}
/* hotfix-20261018: center grade letter (was overridden by .sample-grade span{display:block}) */
body.home .sample-grade .grade-letter { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 0; }
/* hotfix-20261018: mypage button contrast (WCAG AA) in all states */
body .site-header .nav a.btn, body .site-header .nav a.btn:hover, body .site-header .nav a.btn:focus, body .site-header .nav a.btn:focus-visible, body .site-header .nav a.btn:active, body .site-header .nav a.btn[aria-current="page"] { background: #165a82; color: #ffffff; border-color: #165a82; filter: none; }
/* og-hf2-20261018: visible hover / keyboard focus on the mypage button (white on #0b3d5c = 11.44:1) */
body .site-header .nav a.btn:hover, body .site-header .nav a.btn:active { background: #0b3d5c; border-color: #0b3d5c; color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
body .site-header .nav a.btn:focus-visible { background: #0b3d5c; border-color: #0b3d5c; color: #ffffff; outline: 3px solid #0b3d5c; outline-offset: 2px; }
/* top dual diagnosis (top-dual-20261019) */
body.home .dual-lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 24px; }
body.home .dual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.home .dual-card { display: flex; flex-direction: column; border-top: 4px solid var(--brand); }
body.home .dual-inside { border-top-color: var(--accent); }
body.home .dual-card h3 { color: var(--brand); }
body.home .dual-card .check { margin-bottom: 14px; }
body.home .dual-tag { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 10px; }
body.home .dual-outside .dual-tag .badge { background: var(--brand); }
/* Darker than --accent so white badge text keeps AA contrast (6.2:1). */
body.home .dual-inside .dual-tag .badge { background: #146b70; }
body.home .dual-card .dual-cta { margin: auto 0 0; padding-top: 6px; }
body.home .dual-cta .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
body.home .dual-why { margin-top: 24px; border-left: 4px solid var(--accent); }
body.home .dual-why p { margin: 0; }
body.home .dual-why p:first-child { margin-bottom: 6px; }
body.home .dual-why strong { color: var(--brand); }
@media (max-width: 760px) {
  body.home .dual-grid { grid-template-columns: 1fr; gap: 16px; }
  body.home .dual-cta .btn { width: 100%; }
}
/* top flow dual (top-flow-dual-20261019) */
body.home .flow-lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 24px; }
body.home .flow-dual { display: grid; gap: 28px; margin-bottom: 20px; }
body.home .flow-track { min-width: 0; padding-left: 16px; border-left: 4px solid var(--brand); }
body.home .flow-track-inside { border-left-color: #146b70; }
body.home .flow-track h3 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 1.05rem; margin: 0 0 12px; }
body.home .flow-track-outside h3 .badge { background: var(--brand); }
/* Same as the #dual inside badge: white text keeps AA contrast (6.2:1). */
body.home .flow-track-inside h3 .badge { background: #146b70; }
body.home .flow-visual h4 { color: var(--brand); margin: 0 0 6px; font-size: 1.1rem; line-height: 1.35; }
body.home .flow-track .flow-visual { margin-top: 0; }
body.home .flow-note { margin: 0; }

/* Cards on body.home pages: `body.home section` / `.app-main section` (padding: N 0) beat .card and removed the side padding (owner 10/22 22:55). */
body.home section.card { padding: 24px; }
body.home section.notice { padding: 14px 18px; }
@media (max-width: 640px) { body.home section.card { padding: 18px; } }

/* site-r10e (2026-10-23): example card and My Page button on the top page */
body.home .flow-example { margin: 24px 0 16px; }
body.home .flow-example ul { margin: 8px 0; }
body.home .manage-cta { margin: 24px 0 0; }
@media (max-width: 640px) { body.home .manage-cta .btn { width: 100%; } }
