:root {
  --ink: #162033;
  --muted: #5d6678;
  --line: #d9e1ee;
  --soft: #f5f8fc;
  --card: #ffffff;
  --blue: #2563eb;
  --navy: #111827;
  --teal: #0f766e;
  --amber: #f59e0b;
  --shadow: 0 18px 48px rgba(15, 23, 42, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 76px);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand img { display: block; width: 258px; max-width: 48vw; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 780;
}
.site-nav a {
  text-decoration: none;
  color: #2d3545;
  padding: 10px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: #eef4ff; color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(37,99,235,.22);
}
.nav-toggle { display: none; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 98px) clamp(20px, 6vw, 110px);
  background:
    radial-gradient(circle at 88% 10%, rgba(245,158,11,.20), transparent 24%),
    linear-gradient(135deg, #111827 0%, #1e3a8a 52%, #0f766e 100%);
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
}
.hero-deck {
  max-width: 780px;
  margin: 20px 0 0;
  color: #e7eefc;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--blue); color: #fff; }
.hero .btn.primary { background: #fff; color: #1e3a8a; }
.btn.secondary { color: #fff; border-color: rgba(255,255,255,.70); }
.btn.full { width: 100%; }
.disclosure-inline {
  margin-top: 16px;
  max-width: 760px;
  color: #c7d7f5;
  font-size: .94rem;
}
.hero-table {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.table-line {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr .45fr;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #eaf2ff;
}
.table-line.head {
  border-top: 0;
  color: #bfdbfe;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.table-line strong, .table-line b { color: #fff; }
.section, .page-layout, .tool-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0;
}
.section.narrow { width: min(880px, calc(100% - 36px)); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.section-head h2, .subhero h1 { margin: 0; font-size: clamp(2rem, 3vw, 3.1rem); }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }
.notice {
  margin-bottom: 22px;
  padding: 17px 20px;
  border: 1px solid #f2d58b;
  border-radius: 10px;
  background: #fffaeb;
  color: #5b4413;
}
.visual-section { padding-top: 18px; }
.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.visual-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.visual-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.visual-grid figcaption {
  padding: 16px 18px;
  color: #3f4959;
  font-weight: 720;
}
.toc-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #c8d8ff;
  border-radius: 10px;
  background: #f7faff;
}
.toc-card strong {
  color: #1e3a8a;
  margin-right: 6px;
}
.toc-card a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 760;
  text-decoration: none;
  border: 1px solid var(--line);
}
.article-visual {
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.article-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.article-visual figcaption {
  padding: 14px 18px;
  color: #3f4959;
  font-size: .96rem;
  font-weight: 720;
}
.source-card p { margin-bottom: 16px; }
.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.source-list div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.source-list a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card, .software-card, .content-card, .side-card, .tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.resource-card, .software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
}
.resource-card h3, .software-card h3 { margin: 0 0 12px; font-size: 1.32rem; }
.resource-card h3 a, .software-card h3 a { text-decoration: none; }
.resource-card p, .software-card p { color: var(--muted); margin: 0 0 18px; }
.score {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 900;
}
.software-card .best {
  max-width: calc(100% - 60px);
  color: #0f766e;
  font-weight: 820;
}
.proscons {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: #475569;
  font-size: .94rem;
}
.text-link {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
.comparison-table {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.table-note {
  display: none;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 720;
}
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td {
  min-width: 140px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: #1e3a8a; background: #eef4ff; }
td a { color: var(--blue); text-decoration: none; }
.band {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 110px);
  background: #fff;
  border-block: 1px solid var(--line);
}
.band h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3vw, 3rem); }
.band p { color: var(--muted); }
.mini-grid, .pill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mini-grid a, .pill-row a {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}
.mini-grid span { color: var(--muted); font-size: .94rem; }
.subhero {
  padding: 70px clamp(20px, 6vw, 110px) 38px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subhero p { max-width: 800px; color: var(--muted); font-size: 1.15rem; }
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.page-layout > article,
.page-layout > aside,
.tool-card > *,
.band > * {
  min-width: 0;
}
.article-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 720;
}
.content-card {
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 34px);
}
.content-card h2 { margin-top: 0; font-size: clamp(1.5rem, 2.3vw, 2.15rem); }
.content-card p, .content-card li { color: #3f4959; }
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rating-box {
  display: inline-grid;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--blue);
}
.rating-box span { font-size: 2rem; font-weight: 900; line-height: 1; }
.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}
.side-card { padding: 20px; }
.side-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.side-card a:not(.btn) {
  display: block;
  padding: 10px 0;
  color: #1e3a8a;
  font-weight: 780;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.tool-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 28px;
}
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-weight: 820; }
select, input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #b9c5d6;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
select:focus, input:focus {
  outline: 3px solid rgba(37,99,235,.16);
  border-color: var(--blue);
}
.tool-result {
  min-height: 320px;
  padding: 22px;
  border-radius: 12px;
  background: #eef4ff;
  border: 1px solid #c8d8ff;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}
.site-footer {
  padding: 42px clamp(20px, 6vw, 110px);
  background: #111827;
  color: #d8e3f4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 30px;
}
.footer-grid img {
  display: block;
  width: 258px;
  max-width: 100%;
  height: auto;
  margin-bottom: 14px;
}
.footer-grid h2 { margin-top: 0; color: #fff; font-size: 1rem; }
.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d8e3f4;
  text-decoration: none;
}
.fine-print {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #b8c5d8;
  font-size: .92rem;
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero, .band, .page-layout, .tool-card, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-grid { grid-template-columns: 1fr; }
  .source-list { grid-template-columns: 1fr; }
  .mini-grid, .pill-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .brand img { max-width: 70vw; }
  .table-note { display: block; }
  .toc-card { display: grid; }
  .article-visual img { aspect-ratio: 4 / 3; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-table { overflow-x: auto; }
  .table-line { min-width: 520px; }
  .hero-actions, .btn { width: 100%; }
  .card-grid, .mini-grid, .pill-row, .two-col { grid-template-columns: 1fr; }
  .section-head { display: block; }
  th, td { padding: 12px; }
}
