/* ScoreUs Gage public website. ScoreUs identity: charcoal #1C1C1C, dark charcoal #2B2B2B, red #C62828, white, light gray #F5F5F5. */
:root {
  --charcoal: #1c1c1c;
  --charcoal-2: #2b2b2b;
  --red: #c62828;
  --red-dark: #a31f1f;
  --white: #fff;
  --gray: #f5f5f5;
  --line: #e2e2e2;
  --text: #1c1c1c;
  --muted: #5f5f5f;
  --ready: #2e7d32;
  --attention: #b26a00;
  --notready: #c62828;
  --out: #546e7a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "PingFang SC", "PingFang TC", "Hiragino Sans", "Malgun Gothic", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
}
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted, .fine { color: var(--muted); }
.fine { font-size: 0.9rem; margin-top: 16px; }
.lead { font-size: 1.15rem; color: var(--charcoal-2); }
.intro { max-width: 760px; color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
section { padding: 56px 0; }
.band { background: var(--gray); }
.dark { background: var(--charcoal); color: var(--white); }
.dark .intro, .dark .fine { color: #cfcfcf; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border: 2px solid var(--charcoal); border-radius: 6px;
  color: var(--charcoal); background: transparent; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn.primary { border-color: var(--red); background: var(--red); color: var(--white); }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.dark { background: var(--charcoal); color: var(--white); }
.btn.ghost.light { border-color: var(--white); color: var(--white); }
.btn.big { min-height: 48px; padding: 10px 22px; font-size: 1.05rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--charcoal); color: var(--white); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand img { display: block; height: 48px; width: auto; }
.foot .brand { color: var(--charcoal); }
.mainnav { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.menu { display: none; }
.menu summary { cursor: pointer; color: var(--white); padding: 8px 0; font-weight: 700; }
.menu nav { display: flex; flex-direction: column; padding-bottom: 12px; }
.mainnav a, .menu nav a { color: #e6e6e6; text-decoration: none; padding: 8px 10px; border-radius: 4px; font-weight: 600; }
.mainnav a:hover, .mainnav a[aria-current], .menu nav a:hover, .menu nav a[aria-current] { color: var(--white); background: var(--charcoal-2); }
.actions { display: flex; align-items: center; gap: 10px; }
.login { color: var(--white); text-decoration: none; font-weight: 600; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; color: #e6e6e6; padding: 6px 10px; border: 1px solid #555; border-radius: 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); min-width: 160px; }
.lang li a { display: block; padding: 6px 10px; color: var(--charcoal); text-decoration: none; border-radius: 4px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--gray); font-weight: 700; }
@media (max-width: 920px) {
  .mainnav { display: none; }
  .menu { display: block; order: 3; flex-basis: 100%; }
  .actions { margin-left: auto; }
  .login { display: none; }
}
@media (max-width: 480px) { .actions .btn { display: none; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 14px 16px 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%); color: var(--white); padding: 64px 0 72px; }
.hero .lead { color: #e0e0e0; }
.hero .kicker { color: #ff8a80; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero .btn.ghost { border-color: var(--white); color: var(--white); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.points li::before, .checks li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 8px; }
.hero .points li::before { color: #ff8a80; }

.preview { margin: 0; background: var(--white); color: var(--text); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / 0.35); }
.window { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--gray); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.window span { width: 10px; height: 10px; border-radius: 50%; background: #cfcfcf; }
.window strong { margin-left: 8px; }
.window em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.8rem; }
.preview table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.preview th, .preview td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.preview th { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.preview figcaption { padding: 8px 14px; font-size: 0.75rem; color: var(--muted); }

.chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 800; color: var(--white); white-space: nowrap; letter-spacing: 0.02em; }
.chip.ready { background: var(--ready); }
.chip.attention { background: var(--attention); }
.chip.notready { background: var(--notready); }
.chip.out { background: var(--out); }

/* Sections */
.flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
.flow li { background: var(--charcoal-2); border-radius: 8px; padding: 14px; display: grid; gap: 6px; position: relative; counter-increment: step; }
.flow li strong::before { content: counter(step) ". "; color: #ff8a80; }
.flow li span { color: #cfcfcf; font-size: 0.9rem; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.state { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.state .chip { margin-bottom: 10px; }
@media (max-width: 900px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .states { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card.link { color: inherit; text-decoration: none; }
.card.link:hover { border-color: var(--red); }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.steps li { counter-increment: how; border-top: 4px solid var(--red); background: var(--gray); padding: 20px; border-radius: 0 0 8px 8px; }
.steps h3::before { content: counter(how); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 0.9rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.plan.featured { border: 2px solid var(--red); }
.plan .price strong { font-size: 2.2rem; }
.plan .price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 8px 0 20px; flex: 1; display: grid; gap: 6px; align-content: start; }
.plan li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 600; }
.compare .yes { color: var(--ready); font-weight: 800; }
.compare .no { color: #9e9e9e; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--charcoal-2); }

.pagehead { background: var(--gray); padding: 40px 0; }
.feature { border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.plans-line { color: var(--muted); }
.case { background: var(--gray); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 0 6px 6px 0; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--charcoal); font-size: 0.9rem; }
.toc a:hover { border-color: var(--red); }
.contact .email { font-size: 1.3rem; font-weight: 700; }
.legaltext h2 { font-size: 1.25rem; margin-top: 28px; }

.final { background: var(--red); color: var(--white); }
.final .btn.primary { background: var(--white); color: var(--red); border-color: var(--white); }

.foot { background: var(--gray); padding: 40px 0 16px; font-size: 0.95rem; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--charcoal); text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot .legal { margin-top: 24px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

.previewbar { background: #fff3cd; color: #5c4300; text-align: center; padding: 8px 16px; font-weight: 700; }
.listing { margin-bottom: 14px; }
.listing h2 { font-size: 1.25rem; }
.listing h2 a { color: var(--charcoal); text-decoration: none; }
.listing h2 a:hover { color: var(--red); }

/* Contact form */
.contactgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .contactgrid { grid-template-columns: minmax(0, 1fr); } }
.contactform { display: grid; gap: 6px; }
.contactform label { margin-top: 8px; font-weight: 600; font-size: 0.95rem; }
.contactform input, .contactform select, .contactform textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: inherit; background: var(--white);
}
.contactform input:focus, .contactform select:focus, .contactform textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.contactform .btn { justify-self: start; margin-top: 6px; }
.contactform p.muted { margin-top: 8px; font-size: 0.85rem; }
.contactform .formerror { margin: 0; padding: 10px 12px; border-left: 4px solid var(--red); background: #fdecea; color: var(--charcoal); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice h2 { margin-top: 0; }
