:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --surface: #ffffff;
  --surface-soft: #f0eefb;
  --ink: #171a26;
  --muted: #59616f;
  --quiet: #747b87;
  --line: rgba(57, 49, 164, 0.14);
  --indigo: #4a40b8;
  --indigo-dark: #332b91;
  --coral: #ef6a50;
  --mint: #36997e;
  --gold: #d89720;
  --shadow: 0 24px 70px rgba(26, 31, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 1%, rgba(74, 64, 184, 0.13), transparent 32rem),
    radial-gradient(circle at 2% 92%, rgba(239, 106, 80, 0.1), transparent 30rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--indigo-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(74, 64, 184, 0.28);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--indigo-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 36px), 1120px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 20px 0;
}

.nav-shell,
.brand,
.nav-links,
.hero-actions,
.language-links,
.footer-links {
  display: flex;
  align-items: center;
}

.nav-shell {
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(51, 43, 145, 0.23);
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.language-links {
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 0.86rem;
  font-weight: 720;
}

.language-links a,
.language-links span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.language-links span {
  color: var(--quiet);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #5d53cb, var(--indigo-dark));
  box-shadow: 0 12px 25px rgba(51, 43, 145, 0.22);
  font-weight: 780;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  color: #fff;
  box-shadow: 0 17px 32px rgba(51, 43, 145, 0.28);
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--indigo-dark);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--coral);
  background: #fff;
}

.hero {
  padding: 58px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.72fr);
  align-items: start;
  gap: clamp(40px, 8vw, 96px);
}

.hero-grid > div:first-child {
  padding-top: clamp(24px, 6vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 23px;
  font-size: clamp(3.1rem, 7.5vw, 6.4rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.gradient-text {
  color: var(--indigo-dark);
  background: linear-gradient(100deg, var(--indigo-dark), #6a50d3 48%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.microcopy,
.byline {
  margin: 15px 0 0;
  color: var(--quiet);
  font-size: 0.84rem;
}

.phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone-stage::before,
.phone-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.phone-stage::before {
  width: 310px;
  height: 310px;
  background: rgba(74, 64, 184, 0.11);
}

.phone-stage::after {
  width: 210px;
  height: 210px;
  right: -18px;
  bottom: 4px;
  border: 30px solid rgba(54, 153, 126, 0.11);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 305px);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 35px;
  background: #11131a;
  box-shadow: 0 35px 70px rgba(26, 31, 43, 0.22);
  transform: rotate(2deg);
}

.phone img {
  border-radius: 27px;
}

.section {
  padding: 78px 0;
}

.section.tint {
  border-block: 1px solid var(--line);
  background: rgba(239, 237, 250, 0.54);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
}

.answer-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 21px;
  max-width: 950px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(74, 64, 184, 0.15);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 45px rgba(26, 31, 43, 0.06);
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.answer-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--indigo-dark);
  font-weight: 900;
}

.card-grid,
.fact-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.card,
.fact,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 34px rgba(26, 31, 43, 0.045);
}

.card {
  min-height: 205px;
  padding: 25px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--indigo-dark);
  background: var(--surface-soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.card:nth-child(2n) .card-number {
  color: #a33a26;
  background: #ffebe6;
}

.card:nth-child(3n) .card-number {
  color: #176f5a;
  background: #e3f4ef;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  padding: 23px;
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.03rem;
}

.fact p,
.card p,
.guide-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.guide-card {
  overflow: hidden;
}

.guide-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.guide-copy {
  padding: 24px;
}

.guide-copy a {
  display: inline-block;
  margin-top: 15px;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 770;
}

details p {
  margin: 13px 0 0;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgba(74, 64, 184, 0.16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(234, 231, 253, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin-bottom: 10px;
}

.cta-panel p {
  max-width: 680px;
  margin-bottom: 0;
}

.site-footer {
  padding: 38px 0 45px;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  color: var(--quiet);
  font-size: 0.84rem;
}

.footer-layout p {
  margin: 0;
  color: inherit;
}

.footer-links {
  flex-wrap: wrap;
  gap: 18px;
}

.article-hero {
  padding: 56px 0 46px;
}

.article-hero .shell,
.article-layout {
  max-width: 940px;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 7vw, 5.2rem);
}

.article-image {
  width: 100%;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 52px;
  padding: 54px 0 82px;
}

.article-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.article-nav strong {
  display: block;
  margin-bottom: 9px;
}

.article-nav a {
  display: block;
  margin-top: 7px;
  text-decoration: none;
}

.article-body h2 {
  margin-top: 52px;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 29px;
}

.article-body p,
.article-body li {
  max-width: 710px;
}

.article-body li + li {
  margin-top: 8px;
}

.comparison {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.comparison th {
  color: var(--ink);
  background: var(--surface-soft);
}

.callout {
  margin: 30px 0;
  padding: 21px 23px;
  border-left: 4px solid var(--mint);
  border-radius: 0 16px 16px 0;
  background: rgba(54, 153, 126, 0.09);
}

.callout p {
  margin-bottom: 0;
  color: #265f51;
}

.course-outline {
  margin: 26px 0 40px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 34px rgba(26, 31, 43, 0.045);
}

.course-outline h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.course-outline ul {
  columns: 2;
  column-gap: 34px;
  padding-left: 21px;
}

.course-outline li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.source-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid > div:first-child {
    padding-top: 0;
  }

  .phone-stage {
    max-width: 430px;
    margin: 20px auto 0;
  }

  .card-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .article-nav {
    position: static;
  }
}

@media (max-width: 660px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 24px), 1120px);
  }

  .nav-extra {
    display: none;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links .button {
    min-height: 43px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 38px;
  }

  .answer-box {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .guide-grid,
  .fact-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .cta-panel .button {
    justify-self: start;
  }

  .section {
    padding: 60px 0;
  }

  .article-layout {
    padding-inline: 12px;
  }

  .comparison {
    font-size: 0.8rem;
  }

  .comparison th,
  .comparison td {
    padding: 10px 8px;
  }

  .course-outline ul {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
