.seo-page {
  color: var(--v-ink);
  background: #fff;
}

.seo-page .container {
  width: min(calc(100% - 3rem), 1160px);
}

.seo-hero {
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--v-line);
  background:
    linear-gradient(115deg, rgba(237, 245, 255, .98), rgba(255, 255, 255, .96) 62%),
    #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: 0 0 2.2rem;
  color: var(--v-muted);
  font-size: .82rem;
}

.breadcrumbs a {
  color: var(--v-blue-dark);
  text-decoration: none;
}

.breadcrumbs span[aria-hidden="true"] {
  color: #99a7b9;
}

.seo-hero__copy {
  max-width: 880px;
}

.seo-hero h1 {
  max-width: 850px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.55rem, 5.5vw, 4.75rem);
  letter-spacing: -.052em;
  line-height: 1.03;
}

.seo-hero__lead {
  max-width: 760px;
  color: #3f4f65;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.seo-hero__actions {
  margin-top: 1.8rem;
}

.review-line {
  margin: 1.4rem 0 0;
  color: var(--v-muted);
  font-size: .82rem;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.seo-article {
  min-width: 0;
}

.seo-article > section {
  padding: 0 0 3.25rem;
  scroll-margin-top: 112px;
}

.seo-article > section + section {
  padding-top: 3.25rem;
  border-top: 1px solid var(--v-line);
}

.seo-article h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -.035em;
  line-height: 1.14;
}

.seo-article h3 {
  margin: 1.8rem 0 .7rem;
  font-size: 1.18rem;
}

.seo-article p,
.seo-article li {
  color: #39495e;
  line-height: 1.75;
}

.seo-article a:not(.button) {
  color: var(--v-blue-dark);
}

.seo-aside {
  position: sticky;
  top: 116px;
  padding: 1.4rem;
  border: 1px solid var(--v-line);
  background: var(--v-soft);
}

.seo-aside h2 {
  margin-bottom: .75rem;
  font-size: .95rem;
}

.seo-aside nav {
  display: grid;
}

.seo-aside nav a {
  padding: .72rem 0;
  border-bottom: 1px solid var(--v-line);
  color: var(--v-ink);
  font-size: .88rem;
  font-weight: 680;
  text-decoration: none;
}

.seo-aside nav a:hover {
  color: var(--v-blue-dark);
}

.seo-aside .button {
  width: 100%;
  margin-top: 1rem;
}

.key-list,
.numbered-guide {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--v-line);
  list-style: none;
}

.key-list li,
.numbered-guide li {
  position: relative;
  padding: 1.05rem 0 1.05rem 2rem;
  border-bottom: 1px solid var(--v-line);
}

.key-list li::before {
  position: absolute;
  top: 1.12rem;
  left: .2rem;
  color: var(--v-blue);
  content: "✓";
  font-weight: 850;
}

.numbered-guide {
  counter-reset: guide;
}

.numbered-guide li {
  padding-left: 3.2rem;
  counter-increment: guide;
}

.numbered-guide li::before {
  position: absolute;
  top: .9rem;
  left: 0;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid #afc8ee;
  border-radius: 50%;
  color: var(--v-blue-dark);
  content: counter(guide);
  font-weight: 850;
}

.fact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.6rem 0;
  border: 1px solid var(--v-line);
}

.fact-panel > div {
  padding: 1.4rem;
  border-right: 1px solid var(--v-line);
}

.fact-panel > div:last-child {
  border-right: 0;
}

.fact-panel strong,
.fact-panel span {
  display: block;
}

.fact-panel strong {
  margin-bottom: .3rem;
  color: var(--v-ink);
  font-size: 1.28rem;
}

.fact-panel span {
  color: var(--v-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.formula-panel {
  margin: 1.4rem 0;
  padding: 1.35rem;
  border-left: 4px solid var(--v-blue);
  background: var(--v-blue-soft);
}

.formula-panel code {
  color: var(--v-blue-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
  white-space: normal;
}

.comparison-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--v-line);
}

.comparison-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--v-line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--v-soft);
  color: var(--v-ink);
  font-size: .82rem;
}

.comparison-table td {
  color: #3f4d61;
  font-size: .9rem;
  line-height: 1.55;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.clarification {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #f0ce81;
  background: #fff8e8;
}

.clarification strong {
  color: #704b00;
}

.source-list {
  display: grid;
  gap: .8rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--v-line);
}

.source-list small {
  display: block;
  margin-top: .22rem;
  color: var(--v-muted);
}

.seo-faq details {
  border-bottom: 1px solid var(--v-line);
}

.seo-faq summary {
  padding: 1.1rem .15rem;
  color: var(--v-ink);
  cursor: pointer;
  font-weight: 760;
}

.seo-faq details p {
  margin-top: 0;
  padding: 0 .15rem 1.1rem;
}

.seo-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--v-navy);
  color: #fff;
}

.seo-cta__inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.seo-cta h2 {
  margin-bottom: .55rem;
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

.seo-cta p {
  max-width: 720px;
  margin: 0;
  color: #c5d2e4;
}

.free-tool {
  margin-top: 1.7rem;
  border: 1px solid var(--v-line);
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 20, 38, .08);
}

.free-tool__intro,
.free-tool__body,
.free-tool__result {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.free-tool__intro {
  background: var(--v-soft);
}

.free-tool__intro h3,
.free-tool__body h3,
.free-tool__result h3 {
  margin-top: 0;
}

.free-tool__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin: .9rem 0 0;
  color: var(--v-muted);
  font-size: .83rem;
}

.practice-question {
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--v-line);
}

.practice-question legend {
  max-width: 100%;
  padding: 0 .3rem;
  color: var(--v-ink);
  font-weight: 760;
  line-height: 1.55;
}

.practice-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  margin: .55rem 0;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  color: #39495e;
  cursor: pointer;
  line-height: 1.5;
}

.practice-option:hover {
  border-color: #bad1f2;
  background: var(--v-blue-soft);
}

.practice-option input {
  margin-top: .3rem;
}

.practice-correction {
  margin: .8rem 0 0;
  padding: 1rem;
  border-left: 4px solid #c1cbd8;
  background: var(--v-soft);
}

.practice-correction.is-correct {
  border-left-color: #178554;
  background: #eef9f3;
}

.practice-correction.is-wrong {
  border-left-color: #ba3b3b;
  background: #fff1f1;
}

.practice-correction p,
.practice-correction li {
  color: #39495e;
  font-size: .9rem;
}

.practice-case-statement {
  margin: 1rem 0 1.5rem;
  padding: 1.2rem;
  border-left: 4px solid var(--v-amber);
  background: #fff8e8;
  color: #39495e;
  line-height: 1.7;
}

.free-tool__status {
  min-height: 1.5rem;
  margin: .8rem 0 0;
  color: var(--v-muted);
  font-size: .88rem;
}

.free-tool__status.is-error {
  color: #a02f2f;
}

.free-tool__status.is-success {
  color: #116d45;
}

.tool-score {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.tool-score strong {
  color: var(--v-ink);
  font-size: 2.6rem;
  letter-spacing: -.05em;
}

.tool-score span {
  color: var(--v-muted);
}

.no-js-warning {
  padding: 1rem;
  border: 1px solid #f0ce81;
  background: #fff8e8;
  color: #704b00;
}

@media (max-width: 900px) {
  .seo-page .container {
    width: min(calc(100% - 2rem), 1160px);
  }

  .seo-layout {
    grid-template-columns: 1fr;
  }

  .seo-aside {
    position: static;
    order: -1;
  }

  .fact-panel {
    grid-template-columns: 1fr;
  }

  .fact-panel > div {
    border-right: 0;
    border-bottom: 1px solid var(--v-line);
  }

  .fact-panel > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .seo-hero {
    padding-top: 3rem;
  }

  .seo-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .seo-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-cta__inner .button-row,
  .seo-cta__inner .button {
    width: 100%;
  }
}
