:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #15181e;
  --muted: #5c6570;
  --line: #e4e7ec;
  --brand: #e10600;
  --brand-dark: #b80500;
  --safe: #00a67e;
  --safe-bg: #e8f8f3;
  --risk: #d32f2f;
  --risk-bg: #fdecea;
  --mixed: #c77700;
  --mixed-bg: #fff6e5;
  --hero-from: #0b0d12;
  --hero-to: #1a0f14;
  --radius: 14px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --gauge-track: #dfe5ec;
  --trust-track: #edf0f4;
  --score-safe: linear-gradient(180deg, #eefaf6, var(--surface));
  --score-mixed: linear-gradient(180deg, #fff8eb, var(--surface));
  --score-risk: linear-gradient(180deg, #ffefef, var(--surface));
  --hl-pos: linear-gradient(180deg, #e9f9f3, #f7fffb);
  --hl-neg: linear-gradient(180deg, #fdeceb, #fff8f8);
  --alert-bg: #fff1f0;
  --help-icon: linear-gradient(135deg, #ffe4e4, #fff);
}
html[data-theme="dark"] {
  --bg: #0d1118;
  --surface: #171d27;
  --ink: #eef2f7;
  --muted: #9aa6b4;
  --line: #2b3443;
  --brand: #ff3b33;
  --brand-dark: #d90d08;
  --safe: #2dd4a8;
  --safe-bg: #12352c;
  --risk: #ff6b6b;
  --risk-bg: #3a1b1b;
  --mixed: #f0b429;
  --mixed-bg: #3a2c12;
  --hero-from: #07090d;
  --hero-to: #160b10;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --gauge-track: #2b3443;
  --trust-track: #2b3443;
  --score-safe: linear-gradient(180deg, #12352c, var(--surface));
  --score-mixed: linear-gradient(180deg, #3a2c12, var(--surface));
  --score-risk: linear-gradient(180deg, #3a1b1b, var(--surface));
  --hl-pos: linear-gradient(180deg, #12352c, #1a2a26);
  --hl-neg: linear-gradient(180deg, #3a1b1b, #2a1c1c);
  --alert-bg: #3a1b1b;
  --help-icon: linear-gradient(135deg, #3a1b1b, #171d27);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.ash-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ash-top-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ash-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ash-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}
.ash-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}
.ash-wordmark strong {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.08rem;
}
.ash-wordmark em {
  font-style: normal;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--brand);
}
.ash-logo-footer { margin-bottom: 0.9rem; }
.ash-footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38ch;
  margin: 0;
}
.ash-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.ash-nav a:hover { color: var(--brand); }
.ash-lang {
  position: relative;
}
.ash-lang select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  color: var(--ink);
}
.ash-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.ash-theme-btn:hover { border-color: var(--ink); }
html[data-theme="dark"] .ash-theme-sun { display: none; }
html:not([data-theme="dark"]) .ash-theme-moon { display: none; }
.ash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}
.ash-btn-primary {
  background: var(--brand);
  color: #fff;
}
.ash-btn-primary:hover { background: var(--brand-dark); }
.ash-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.ash-btn-ghost:hover { border-color: var(--ink); }

.ash-hero {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(225, 6, 0, 0.28), transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(120, 20, 40, 0.35), transparent 40%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 4.5rem 1.1rem 5rem;
  text-align: center;
}
.ash-hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.ash-hero h1 .slash { color: var(--brand); }
.ash-search {
  margin: 1.8rem auto 0;
  max-width: 720px;
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
  gap: 0.35rem;
}
.ash-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  color: var(--ink);
}
.ash-search .type {
  display: none;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  padding: 0 0.5rem;
  border-right: 1px solid var(--line);
}
.ash-search button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.ash-deeper {
  margin-top: 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.ash-deeper a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.ash-error {
  margin-top: 0.8rem;
  color: #ffb4b4;
  font-weight: 600;
}

.ash-strip {
  background: #1c212b;
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.ash-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
}
.ash-section-title {
  font-size: 1.45rem;
  margin: 0 0 1rem;
  font-weight: 800;
}
.ash-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.ash-help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.ash-help-card span {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.7rem;
  border-radius: 12px;
  background: var(--help-icon);
  color: var(--brand);
  line-height: 42px;
  font-size: 1.2rem;
}

.ash-stories {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  margin-top: 2.2rem;
}
.ash-story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.ash-story h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.ash-story p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.ash-story .meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.4rem; }

.ash-score-hero {
  background: var(--score-safe);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}
.ash-score-hero.tone-mixed { background: var(--score-mixed); }
.ash-score-hero.tone-risk { background: var(--score-risk); }
.ash-gauge {
  width: 180px;
  height: 100px;
  margin: 0 auto 0.8rem;
  position: relative;
  overflow: hidden;
}
.ash-gauge::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 14px solid var(--gauge-track);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(225deg);
}
.ash-gauge.tone-safe::after,
.ash-gauge.tone-mixed::after,
.ash-gauge.tone-risk::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 14px solid transparent;
  border-top-color: var(--safe);
  border-right-color: var(--safe);
  transform: rotate(225deg);
  clip-path: inset(0 0 50% 0);
}
.ash-gauge.tone-mixed::after { border-top-color: var(--mixed); border-right-color: var(--mixed); }
.ash-gauge.tone-risk::after { border-top-color: var(--risk); border-right-color: var(--risk); }
.ash-score-label {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0;
}
.ash-score-label.tone-safe { color: var(--safe); }
.ash-score-label.tone-mixed { color: var(--mixed); }
.ash-score-label.tone-risk { color: var(--risk); }
.ash-domain { color: var(--muted); margin: 0.25rem 0 1rem; font-weight: 600; }
.ash-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.ash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.ash-trust-bar {
  height: 12px;
  background: var(--trust-track);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.7rem 0 0.4rem;
}
.ash-trust-bar > span {
  display: block;
  height: 100%;
  background: var(--safe);
}
.ash-trust-bar.tone-mixed > span { background: var(--mixed); }
.ash-trust-bar.tone-risk > span { background: var(--risk); }
.ash-hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.ash-hl {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-height: 140px;
}
.ash-hl.pos { background: var(--hl-pos); }
.ash-hl.neg { background: var(--hl-neg); }
.ash-hl h3 { margin: 0 0 0.7rem; font-size: 1rem; }
.ash-hl ul { margin: 0; padding: 0; list-style: none; }
.ash-hl li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
}
.ash-hl li::before {
  content: "✓";
  color: var(--safe);
  font-weight: 800;
}
.ash-hl.neg li::before {
  content: "✕";
  color: var(--risk);
}
.ash-summary {
  font-weight: 700;
  margin: 1rem 0 1.4rem;
  font-size: 1.05rem;
}
.ash-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.2rem;
}
.ash-fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.ash-fact strong { color: var(--muted); font-weight: 600; }
.ash-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.ash-form .field { margin-bottom: 0.85rem; }
.ash-form input,
.ash-form select,
.ash-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
}
.ash-form .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.ash-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.6rem 0 1rem;
}
.ash-consent input { width: auto; margin-top: 0.2rem; }
.ash-alert {
  border-left: 4px solid var(--brand);
  background: var(--alert-bg);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.ash-alert.ok {
  border-left-color: var(--safe);
  background: var(--safe-bg);
}
.ash-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.ash-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.ash-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.ash-footer h4 { margin: 0 0 0.7rem; font-size: 0.95rem; }
.ash-footer a { display: block; color: var(--muted); margin-bottom: 0.4rem; font-size: 0.9rem; }
.ash-footer a:hover { color: var(--brand); }
.ash-footer-bar {
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
}
.ash-footer-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ash-footer-bar a { color: #fff; margin-right: 0.8rem; }

.ash-prose p { color: var(--muted); line-height: 1.65; margin: 0 0 0.9rem; }
.ash-prose h2 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.ash-lead { color: var(--muted); line-height: 1.6; margin: 0 0 1.2rem; }
.ash-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.ash-how-grid h3 { margin: 0.4rem 0 0.35rem; font-size: 1rem; }
.ash-how-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ash-how-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.ash-help-card p {
  margin: 0.45rem 0 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.ash-warn-box { margin: 1.6rem 0 2rem; }
.ash-ad-list { list-style: decimal; padding-left: 1.3rem; margin: 0; }
.ash-ad-list li { margin-bottom: 1.1rem; }
.ash-ad-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.ash-ad-name {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  margin-right: 0.4rem;
}
.ash-ad-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ash-faq { margin-top: 2rem; }
.ash-faq-item { cursor: pointer; }
.ash-faq-item summary { font-weight: 800; cursor: pointer; }
.ash-faq-item p { margin: 0.7rem 0 0; color: var(--muted); }
.ash-policy-block h2 { font-size: 1.05rem; }
.ash-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.ash-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.ash-cookie p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: 70ch; }
.ash-cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

@media (max-width: 900px) {
  .ash-how-grid { grid-template-columns: 1fr 1fr; }
  .ash-cookie-inner { flex-direction: column; align-items: stretch; }
}

@media (max-width: 900px) {
  .ash-help-grid { grid-template-columns: 1fr 1fr; }
  .ash-stories, .ash-layout, .ash-hl-grid, .ash-footer-grid, .ash-form .grid2 {
    grid-template-columns: 1fr;
  }
  .ash-nav a:not(.ash-btn) { display: none; }
}
@media (min-width: 700px) {
  .ash-search .type { display: inline-flex; }
}
