:root {
  --bg: #ffffff;
  --surface: #f7fbff;
  --card: #ffffff;
  --text: #172033;
  --muted: #5d6b82;
  --line: #dbe7f5;
  --blue: #1769e0;
  --blue-dark: #0d4fb3;
  --blue-soft: #e8f2ff;
  --cta: #ff7a1a;
  --cta-dark: #db5f00;
  --green: #13a36e;
  --orange-soft: #fff3e8;
  --shadow: 0 8px 22px rgba(23, 105, 224, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  text-size-adjust: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #36a3ff);
  font-size: 18px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
}

.global-nav {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 70px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.global-nav.is-open {
  display: grid;
  gap: 8px;
}

.global-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  border-radius: 8px;
  font-weight: 700;
}

.global-nav a:hover {
  background: var(--blue-soft);
  text-decoration: none;
}

.hero {
  padding: 34px 0 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 105, 224, 0.13), transparent 32%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 72%);
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 12px;
  font-size: 29px;
}

h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
}

.button:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.button.cta {
  background: var(--cta);
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.24);
}

.button.cta:hover {
  background: var(--cta-dark);
}

.button.ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.button.ghost:hover {
  background: var(--blue-soft);
}

.section {
  padding: 32px 0;
}

.section.alt {
  background: var(--surface);
}

.grid {
  display: grid;
  gap: 14px;
}

.card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ranking-list {
  display: grid;
  gap: 12px;
  counter-reset: ranking;
}

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ranking-item::before {
  counter-increment: ranking;
  content: counter(ranking);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--cta-dark);
  font-weight: 900;
}

.ranking-item p {
  color: var(--muted);
  margin-bottom: 10px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tool-card p {
  color: var(--muted);
}

.tool-card .button {
  margin-top: auto;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.question-title {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.option input {
  width: 18px;
  min-height: auto;
  margin-top: 4px;
}

.result {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  border: 2px solid #b9d8ff;
  background: #f7fbff;
}

.result.is-visible {
  display: block;
}

.result-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.result-title {
  margin: 12px 0 10px;
  font-size: 23px;
}

.result-copy {
  color: var(--text);
  white-space: pre-line;
}

.share-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #9fc5f8;
  color: var(--muted);
  font-weight: 700;
}

.result-actions-list,
.next-article {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.result-actions-list h3,
.next-article h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.result-actions-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.3em;
}

.result-actions-list li {
  padding-left: 2px;
}

.next-article a {
  display: inline-flex;
  margin-bottom: 6px;
  font-weight: 900;
}

.next-article p {
  margin-bottom: 0;
  color: var(--muted);
}

.article {
  max-width: 820px;
}

.article h2 {
  margin-top: 34px;
}

.article ul,
.article ol {
  padding-left: 1.2em;
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #f7fbff;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .global-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .global-nav a {
    font-size: 14px;
  }

  .hero {
    padding: 70px 0 42px;
  }

  h1 {
    font-size: clamp(40px, 5vw, 54px);
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 19px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-actions,
  .result-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-item {
    grid-template-columns: 46px 1fr;
  }
}

@media (max-width: 380px) {
  .header-inner,
  .container {
    width: min(100% - 22px, 1120px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  h1 {
    font-size: 27px;
  }

  .card,
  .result {
    padding: 16px;
  }
}
