:root {
  --navy: #061b32;
  --navy-2: #0b2d4d;
  --blue: #2478ef;
  --cyan: #00a8b8;
  --mint: #dff9f5;
  --ice: #f3f9fc;
  --line: #d7e6ed;
  --muted: #5f7488;
  --shadow: 0 24px 70px rgba(13, 52, 79, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(0, 183, 197, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(36, 120, 239, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff 0, #f3fafc 56%, #fff 100%);
}

a { color: inherit; text-decoration: none; font-weight: 750; }

.ruo {
  padding: 9px;
  text-align: center;
  background: var(--navy);
  color: #dffaff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.site-head {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: auto;
  padding: 0 28px;
}

.site-logo img { width: 170px; display: block; }
.site-head nav { display: flex; align-items: center; gap: 28px; }
.site-head nav a { color: #18314d; font-size: 14px; }
.shop-link { padding: 11px 16px; border: 1px solid #c6d9e2; border-radius: 999px; white-space: nowrap; }

main { max-width: 1240px; margin: auto; padding: 58px 28px 92px; }

.hero { text-align: center; max-width: 880px; margin: auto; }
.hero > span,
.featured > span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #047983;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hero > p:first-of-type { font-weight: 900; letter-spacing: 0.16em; color: #078ca1; font-size: 12px; margin-top: 24px; }
.hero h1 { font-size: clamp(46px, 7vw, 78px); line-height: 0.96; margin: 16px 0 20px; letter-spacing: -0.055em; }
.hero h1 + p { max-width: 720px; margin: auto; font-size: 19px; line-height: 1.65; color: var(--muted); }

.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-proof span { padding: 10px 14px; border: 1px solid #cfe3e9; border-radius: 999px; background: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 62px; }
.plans article { position: relative; display: flex; flex-direction: column; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: 0 18px 50px rgba(18,57,90,.06); overflow: hidden; }
.plans article::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, transparent, #9bcfd4, transparent); opacity: .7; }
.plans article.featured { border: 2px solid var(--cyan); transform: translateY(-14px); box-shadow: var(--shadow); background: linear-gradient(160deg, #fff 0%, #f3fdfe 100%); }
.plans article.featured::after { height: 6px; background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: 1; }
.plans article > p { font-size: 12px; font-weight: 900; letter-spacing: 0.15em; color: #128ca1; }
.plans h2 { font-size: 30px; margin: 12px 0; }
.price { font-size: clamp(25px, 2.4vw, 30px); font-weight: 900; min-height: 42px; letter-spacing: -.03em; }
.plans small { display: block; color: var(--muted); min-height: 36px; margin-top: 4px; }
.plans ul { padding: 16px 0 8px; list-style: none; min-height: 270px; margin-bottom: 20px; }
.plans li { padding: 9px 0 9px 27px; position: relative; line-height: 1.4; }
.plans li::before { content: "✓"; position: absolute; left: 0; color: #079a91; font-weight: 900; }
.plans a,
.plans .join { width: 100%; display: block; margin-top: auto; text-align: center; border: 0; border-radius: 13px; padding: 15px; background: linear-gradient(120deg, var(--cyan), var(--blue)); color: #fff; font: 800 15px inherit; cursor: pointer; box-shadow: 0 10px 25px rgba(21,116,196,.18); }
.plans article:first-child a { background: #eaf3f7; color: var(--navy); box-shadow: none; }

.term-picker { display: grid; gap: 8px; margin: 18px 0 4px; }
.term-picker button { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; padding: 11px 12px; border: 1px solid #cbdfe7; border-radius: 12px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.term-picker button span { color: var(--muted); font-size: 12px; text-align: right; }
.term-picker button em { grid-column: 1 / -1; color: #087d68; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .12em; }
.term-picker button.active { border-color: var(--cyan); background: #eafcfb; box-shadow: 0 0 0 2px rgba(0,168,184,.12); }
.pro-card ul { min-height: 0; }

#message { text-align: center; min-height: 28px; margin-top: 18px; font-weight: 800; color: #08775e; }

.pro-math { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; margin: 56px auto 0; padding: 42px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.pro-math .eyebrow { color: #6fe1df; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.pro-math h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.math-card { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.08); }
.math-card span { color: #c5d8e6; }
.math-card strong:last-child { color: #7af0db; font-size: 20px; }
.pro-math > p { grid-column: 1 / -1; margin: 0; color: #bfd1df; line-height: 1.65; }

.truth { margin: 34px auto 0; padding: 34px; max-width: 830px; border: 1px solid var(--line); border-radius: 22px; background: #fff; text-align: center; }
.truth h2 { font-size: 30px; margin: 0 0 10px; }
.truth p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

footer { display: flex; justify-content: center; gap: 30px; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plans article:first-child { grid-column: 1 / -1; }
  .plans article:first-child ul { min-height: 0; columns: 2; }
}

@media (max-width: 800px) {
  .site-head { height: 76px; padding: 10px 18px; }
  .site-logo img { width: 145px; }
  .site-head nav { margin-left: auto; }
  .site-head nav a:not(.account-link), .site-head > .shop-link { display: none; }
  .site-head nav .account-link { display: inline-flex; padding: 10px 14px; border: 1px solid #c6d9e2; border-radius: 999px; }
  .ruo { font-size: 9px; letter-spacing: .1em; }
  main { padding: 34px 18px 62px; }
  .hero h1 { font-size: 45px; }
  .hero h1 + p { font-size: 17px; }
  .plans { grid-template-columns: 1fr; margin-top: 46px; }
  .plans article:first-child { grid-column: auto; }
  .plans article:first-child ul { columns: 1; }
  .plans article.featured { transform: none; }
  .plans ul { min-height: 0; }
  .pro-math { grid-template-columns: 1fr; padding: 28px 22px; }
  .pro-math > p { grid-column: auto; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 39px; }
  .hero-proof { display: grid; }
  .plans article { padding: 24px 20px; border-radius: 22px; }
  .term-picker button { grid-template-columns: 1fr; }
  .term-picker button span { text-align: left; }
}
