:root {
  color-scheme: light;
  --ink: #13233f;
  --ink-soft: #526078;
  --line: #dbe5f1;
  --paper: #ffffff;
  --wash: #f4f8fc;
  --brand: #1478c9;
  --brand-dark: #0c589f;
  --aqua: #40c4d6;
  --violet: #6467e8;
  --shadow: 0 24px 70px rgba(21, 64, 108, 0.13);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --page: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 720px;
  background:
    radial-gradient(circle at 18% 18%, rgba(64, 196, 214, 0.18), transparent 33%),
    radial-gradient(circle at 82% 8%, rgba(100, 103, 232, 0.14), transparent 31%),
    linear-gradient(180deg, #f7fbff 0%, rgba(247, 251, 255, 0) 100%);
  content: "";
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(20, 120, 201, 0.35);
  outline-offset: 4px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 229, 241, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-dark);
}

.button,
.button-secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 12px 28px rgba(33, 105, 187, 0.25);
  color: white;
}

.button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(33, 105, 187, 0.32);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.button-secondary:hover {
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  width: var(--page);
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 0 84px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(44px, 8vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--aqua);
  content: "";
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--brand) 8%, var(--violet) 88%);
  background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.steps-list {
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: deletion-step;
}

.steps-list li {
  position: relative;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 10px 0 10px 58px;
  counter-increment: deletion-step;
}

.steps-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: white;
  content: counter(deletion-step);
  font-weight: 900;
  place-items: center;
}

.phone-shell {
  position: relative;
  max-width: 390px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 46px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(224, 240, 251, 0.82));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-shell::after {
  position: absolute;
  right: -28px;
  bottom: 62px;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(64, 196, 214, 0.23);
  content: "";
  filter: blur(4px);
}

.phone-screen {
  min-height: 560px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(20, 120, 201, 0.11);
  border-radius: 34px;
  background: linear-gradient(180deg, #eaf9fd 0%, #f8fbff 56%, #edf0ff 100%);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.streak {
  padding: 7px 11px;
  border-radius: 999px;
  background: white;
  color: #d15b28;
  box-shadow: 0 8px 20px rgba(56, 91, 124, 0.09);
}

.lesson-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 45px rgba(46, 94, 134, 0.12);
}

.lesson-card small {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-card h2 {
  margin: 10px 0 2px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.lesson-card p {
  margin: 0;
  color: var(--ink-soft);
}

.progress {
  width: 100%;
  height: 8px;
  margin: 24px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #e4eef6;
}

.progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e4eef6;
}

.progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
}

.progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
}

.word-list {
  display: grid;
  margin-top: 18px;
  gap: 11px;
}

.word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid rgba(219, 229, 241, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.word-row span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--wash);
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.legal-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 12px 30px rgba(26, 65, 104, 0.05);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(64, 196, 214, 0.17), rgba(100, 103, 232, 0.15));
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.feature-card h3,
.legal-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.feature-card p,
.legal-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.legal-card a {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.cta-panel {
  display: flex;
  padding: clamp(34px, 7vw, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0e5fa8, #6367df);
  box-shadow: var(--shadow);
  color: white;
}

.cta-panel h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.cta-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: white;
  color: var(--brand-dark);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.footer-wrap {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 44px 0;
  grid-template-columns: 1fr auto;
  gap: 32px;
}

.footer-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-hero {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 38px;
}

.legal-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.legal-hero .lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.13rem;
}

.updated {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 100px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}

.toc {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-dark);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: 110px;
}

.legal-content section + section {
  margin-top: 52px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: #3f4d65;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--aqua);
  border-radius: 0 12px 12px 0;
  background: #effbfc;
  color: #284a5d;
}

.notice-strong {
  border-left-color: var(--violet);
  background: linear-gradient(90deg, rgba(100, 103, 232, 0.1), rgba(64, 196, 214, 0.08));
  color: var(--ink);
  font-weight: 750;
}

.data-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.data-table th {
  background: var(--wash);
  color: var(--ink);
}

.contact-box {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(64, 196, 214, 0.09), rgba(100, 103, 232, 0.08));
}

.contact-box p {
  margin: 5px 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 56px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .phone-shell {
    max-width: 360px;
  }

  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc {
    position: static;
    columns: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 28px, 1120px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-links a:not(.nav-primary) {
    display: none;
  }

  .nav-primary {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--wash);
  }

  .hero {
    padding: 48px 0 66px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .phone-screen {
    min-height: 510px;
  }

  .section {
    padding: 72px 0;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    width: min(100% - 28px, 920px);
    padding-top: 48px;
  }

  .legal-layout {
    width: min(100% - 28px, 920px);
  }

  .toc {
    columns: 1;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .data-table td {
    border: 0;
  }

  .data-table td + td {
    border-top: 1px solid var(--line);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
