:root {
  --brand-blue: #4f6fef;
  --brand-purple: #7b62ff;
  --grad: linear-gradient(90deg, #4f6fef, #7b62ff);
  --grad-strong: linear-gradient(90deg, #3e63ff, #7b62ff 55%, #9b4dff);
  --ink: #1e2437;
  --text-sub: #5a6478;
  --bg-soft: #f5f7fe;
  --navy: #141a38;
  --hairline: #e9ecf8;
  --radius-card: 20px;
  --font: "Noto Sans JP", sans-serif;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

a,
button {
  transition: color .25s ease, opacity .25s ease, transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

a:hover {
  color: var(--brand-blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(79, 111, 239, .4);
  outline-offset: 4px;
}

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

h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
}

h3 {
  line-height: 1.55;
}

.gradient-text {
  color: transparent;
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1320px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
}

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

.brand-restart {
  font-weight: 900;
  letter-spacing: .07em;
}

.brand-studio {
  font-weight: 700;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 54px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 34px;
}

.nav-actions {
  gap: 24px;
}

.nav-links a,
.login-link {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.login-link {
  color: var(--brand-blue);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px 10px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .25s ease;
}

.button {
  display: inline-flex;
  min-width: 218px;
  min-height: 62px;
  padding: 15px 30px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 40px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .6), 0 12px 34px rgba(123, 98, 255, .5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.button-primary:hover {
  color: #fff;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .72), 0 17px 42px rgba(123, 98, 255, .62);
}

.button-secondary {
  color: var(--brand-blue);
  background: rgba(255, 255, 255, .35);
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .7), 0 12px 32px rgba(79, 111, 239, .15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.button-secondary:hover {
  color: var(--brand-purple);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .85), 0 16px 38px rgba(79, 111, 239, .22);
}

.button-small {
  min-width: 150px;
  min-height: 48px;
  padding: 11px 22px;
  font-size: 14px;
}

.parallax-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  z-index: -2;
  top: -10%;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 120%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
  pointer-events: none;
}

.bg-hero { background-image: url("../assets/bg-hero.png"); }
.bg-audience { background-image: url("../assets/bg-audience.png"); }
.bg-curriculum { background-image: url("../assets/bg-curriculum.png"); }
.bg-features { background-image: url("../assets/bg-features.png"); }
.bg-trial { background-image: url("../assets/bg-trial.png"); }
.bg-pricing { background-image: url("../assets/bg-pricing.png"); }
.bg-faq { background-image: url("../assets/bg-faq.png"); }
.bg-company { background-image: url("../assets/bg-company.png"); }
.bg-footer { background-image: url("../assets/bg-footer.png"); }

.hero {
  min-height: 640px;
}

.hero-inner {
  display: grid;
  width: min(1320px, calc(100% - 64px));
  min-height: 640px;
  margin: 0 auto;
  padding: 58px 0 48px;
  grid-template-columns: minmax(0, 640px) minmax(0, 630px);
  grid-template-rows: max-content max-content;
  gap: 40px;
  row-gap: 0;
  align-content: center;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.hero-conversion {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
}

.hero-badge,
.section-badge {
  display: inline-flex;
  min-height: 38px;
  margin-bottom: 24px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .7), 0 9px 26px rgba(79, 111, 239, .16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-purple);
}

.hero h1 {
  margin: 0 0 26px;
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.055em;
}

.hero-line-one,
.hero-line-two {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.hero-line-one {
  font-size: 64px;
}

.hero-ai {
  display: inline-block;
  margin-right: 16px;
  font-size: 112px;
  line-height: .78;
}

.hero-line-two {
  margin-top: 22px;
  font-size: 88px;
}

.hero-lead {
  margin-bottom: 26px;
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

.hero-actions {
  display: flex;
  margin-bottom: 20px;
  gap: 16px;
}

.hero-note {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
}

.micro-check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -1px;
}

.hero-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  min-height: 420px;
}

.browser-mock {
  position: absolute;
  top: 20px;
  right: 0;
  width: 610px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(43, 57, 123, .24);
}

.browser-bar {
  position: relative;
  display: flex;
  height: 41px;
  padding: 0 15px;
  align-items: center;
  background: #eef0fa;
}

.browser-lights {
  display: flex;
  gap: 7px;
}

.browser-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6159;
}

.browser-lights span:nth-child(2) { background: #fdbb2d; }
.browser-lights span:nth-child(3) { background: #25c83a; }

.browser-title {
  position: absolute;
  top: 7px;
  left: 50%;
  display: flex;
  min-width: 188px;
  min-height: 27px;
  padding: 4px 13px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  color: var(--text-sub);
  background: rgba(255, 255, 255, .95);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lock-icon {
  position: relative;
  width: 9px;
  height: 8px;
  border: 1px solid var(--text-sub);
  border-radius: 2px;
}

.lock-icon::before {
  position: absolute;
  right: 1px;
  bottom: 6px;
  left: 1px;
  height: 5px;
  border: 1px solid var(--text-sub);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  content: "";
}

.browser-mock > img {
  width: 100%;
  height: 298px;
  object-fit: cover;
  object-position: top;
}

.phone-mock {
  position: absolute;
  z-index: 3;
  right: -3px;
  bottom: 5px;
  width: 164px;
  padding: 8px;
  overflow: hidden;
  border-radius: 30px;
  background: #141a2e;
  box-shadow: 0 24px 50px rgba(20, 26, 56, .32);
}

.phone-mock img {
  width: 100%;
  border-radius: 23px;
}

.float-shape {
  position: absolute;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, .8), 0 18px 45px rgba(101, 90, 255, .2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

.float-shape-one {
  right: 4%;
  bottom: 10%;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  transform: rotate(21deg);
  animation: float-one 11s ease-in-out infinite;
}

.float-shape-two {
  top: 13%;
  right: 36%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  animation: float-two 8s ease-in-out -2s infinite;
}

.float-shape-three {
  top: 21%;
  left: 8%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  animation: float-two 14s ease-in-out -4s infinite;
}

.float-shape-four {
  right: 10%;
  bottom: 22%;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  transform: rotate(17deg);
  animation: float-one 10s ease-in-out -5s infinite;
}

@keyframes float-one {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(17deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(24deg); }
}

@keyframes float-two {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -15px, 0); }
}

.section {
  padding: 112px 0;
}

.section-inner,
.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.section-lead {
  max-width: 940px;
  margin: 0 auto 54px;
  color: var(--text-sub);
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

.glass-card {
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .7), 0 16px 40px rgba(79, 111, 239, .14);
}

.audience {
  min-height: 622px;
  padding-top: 105px;
}

.audience-grid {
  display: grid;
  margin-top: 46px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  min-height: 260px;
  padding: 34px;
}

.icon-tile {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  background: linear-gradient(145deg, rgba(235, 241, 255, .95), rgba(237, 227, 255, .85));
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .9), 0 8px 24px rgba(99, 90, 255, .16);
}

.icon-tile svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-card h3 {
  margin: 20px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.audience-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 2;
}

.curriculum {
  min-height: 1120px;
  text-align: center;
}

.curriculum .section-badge {
  margin: 0 auto 20px;
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .46), 0 10px 25px rgba(79, 111, 239, .32);
}

.curriculum h2 {
  margin-bottom: 20px;
}

.curriculum-list {
  display: grid;
  gap: 16px;
}

.curriculum-row {
  display: grid;
  min-height: 112px;
  padding: 20px 24px;
  grid-template-columns: 250px minmax(320px, 1fr) 310px;
  gap: 28px;
  align-items: center;
  text-align: left;
}

.curriculum-name {
  display: flex;
  align-items: center;
  gap: 18px;
}

.curriculum-icon {
  flex: none;
}

.curriculum-name h3 {
  margin: 0 0 1px;
  font-size: 20px;
  font-weight: 900;
}

.lesson-count {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.curriculum-description,
.phase-chip {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.85;
}

.phase-chip {
  justify-self: end;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  color: #4f6fef;
  background: rgba(255, 255, 255, .58);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.curriculum-note {
  margin: 34px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
}

.features {
  padding-top: 130px;
  padding-bottom: 140px;
}

.feature-list {
  display: grid;
  max-width: 1220px;
  margin: 80px auto 0;
  gap: 100px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 70px;
  align-items: center;
}

.feature-row-reverse .feature-image {
  order: 2;
}

.feature-row-reverse .feature-copy {
  order: 1;
}

.feature-image {
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(62, 99, 255, .18);
}

.feature-image img {
  width: 100%;
}

.feature-copy .number-badge,
.number-badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .42), 0 8px 20px rgba(79, 111, 239, .35);
  font-size: 13px;
  font-weight: 900;
}

.feature-copy h3 {
  margin: 20px 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.feature-copy p {
  margin: 0;
  color: var(--text-sub);
  line-height: 2;
}

.trial {
  min-height: 866px;
  padding-top: 126px;
  text-align: center;
}

.trial-grid {
  display: grid;
  margin-top: 60px;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: left;
}

.trial-card {
  height: 228px;
  padding: 26px;
}

.trial-card h3 {
  margin: 22px 0 14px;
  font-size: 16px;
  font-weight: 900;
}

.trial-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}

.worksheet-chip {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--brand-blue);
  background: rgba(235, 241, 255, .92);
  font-size: 10px;
}

.section-cta {
  margin-top: 50px;
}

.pricing {
  min-height: 1024px;
  padding-top: 120px;
}

.pricing-card {
  width: min(880px, 100%);
  min-height: 720px;
  margin: 50px auto 0;
  padding: 52px 72px 42px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  background: rgba(255, 255, 255, .65);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .84), 0 28px 65px rgba(79, 111, 239, .18);
  text-align: center;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.pricing-card h3 {
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 900;
}

.price {
  display: flex;
  margin-bottom: 4px;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.price strong {
  font-size: 96px;
  line-height: 1;
  letter-spacing: -.04em;
}

.tax {
  margin-bottom: 30px;
  color: var(--text-sub);
  font-weight: 700;
}

.pricing-rule {
  width: 100%;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--hairline);
}

.pricing-list {
  display: grid;
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 0;
  gap: 10px;
  list-style: none;
  text-align: left;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.pricing-list li > span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  font-size: 11px;
  box-shadow: 0 5px 12px rgba(79, 111, 239, .25);
}

.payment-method {
  margin: 20px 0 18px;
  color: var(--text-sub);
  font-size: 13px;
}

.pricing-cta {
  min-width: 320px;
}

.pricing-note {
  margin: 25px 0 0;
  color: var(--text-sub);
  font-size: 12px;
}

.faq {
  min-height: 860px;
  padding-top: 120px;
}

.faq-inner {
  max-width: 1080px;
}

.faq-list {
  display: grid;
  margin-top: 58px;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 17px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .75), 0 12px 30px rgba(79, 111, 239, .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.faq-item summary {
  display: grid;
  min-height: 72px;
  padding: 20px 26px;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.q-mark {
  color: var(--brand-blue);
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-sub);
  border-bottom: 2px solid var(--text-sub);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s ease;
}

.faq-item[open] .chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .35s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 60px 23px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.faq-item:not([open]) .faq-answer {
  grid-template-rows: 0fr;
}

.company {
  min-height: 483px;
  padding-top: 94px;
}

.company-inner {
  max-width: 1080px;
}

.company-card {
  margin-top: 46px;
  padding: 26px 42px;
}

.company-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 40px 150px 1fr;
  gap: 18px;
  align-items: center;
}

.company-row p {
  margin: 0;
}

.company-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.company-icon svg {
  width: 21px;
  height: 21px;
}

.company-key {
  color: var(--text-sub);
  font-weight: 700;
}

.company-legal-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.placeholder {
  color: #b04465;
  background: rgba(255, 227, 235, .74);
  border-radius: 5px;
}

.site-footer {
  min-height: 430px;
  color: #fff;
}

.site-footer .parallax-bg {
  background-color: var(--navy);
}

.footer-inner {
  padding: 70px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, 1fr);
  gap: 70px;
}

.brand-footer {
  color: #fff;
}

.footer-brand p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.footer-panel {
  display: flex;
  min-height: 200px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  flex-direction: column;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .04);
}

.footer-panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
  text-align: left;
}

.footer-panel a {
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  line-height: 2.25;
}

.footer-panel a:hover {
  color: #fff;
}

.footer-panel .placeholder {
  display: block;
  margin-top: 2px;
  padding: 0 3px;
  color: #ffd6e2;
  background: rgba(255, 255, 255, .08);
  line-height: 1.55;
}

.copyright {
  margin: 46px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  text-align: center;
}

/* Legal pages */
.legal-body {
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 36%);
}

.legal-header {
  position: relative;
}

.legal-main {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.legal-card {
  padding: 54px 64px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 20px 60px rgba(79, 111, 239, .1);
}

.legal-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.4;
}

.legal-card h2 {
  margin: 46px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 22px;
  text-align: left;
}

.legal-card p,
.legal-card li,
.legal-table th,
.legal-table td {
  color: #424b60;
  font-size: 15px;
  line-height: 1.9;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.45em;
}

.legal-card strong {
  color: var(--ink);
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--text-sub);
  font-size: 14px;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 15px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  width: 31%;
  color: var(--ink);
  background: var(--bg-soft);
  font-weight: 700;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  min-height: 150px;
}

.legal-footer .footer-inner {
  padding-top: 38px;
}

.legal-footer .copyright {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 48px, 1080px);
  }

  .global-nav {
    gap: 28px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-actions {
    gap: 14px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
    gap: 24px;
  }

  .hero-line-one {
    font-size: 50px;
  }

  .hero-ai {
    font-size: 96px;
  }

  .hero-line-two {
    font-size: 72px;
  }

  .browser-mock {
    width: 100%;
  }

  .phone-mock {
    width: 145px;
  }

  .curriculum-row {
    grid-template-columns: 220px 1fr 250px;
    gap: 20px;
  }

  .trial-card {
    padding: 22px 18px;
  }

  .footer-top {
    gap: 28px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    width: calc(100% - 40px);
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - var(--header-height));
    padding: 28px 24px 36px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    transform: translateY(-18px);
    visibility: hidden;
    opacity: 0;
    border-top: 1px solid var(--hairline);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 38px rgba(30, 36, 55, .12);
    transition: transform .32s ease, opacity .25s ease, visibility .32s;
  }

  .global-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-links,
  .nav-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links a,
  .login-link {
    padding: 12px 4px;
    font-size: 16px;
  }

  .nav-actions .button {
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 60px 0 84px;
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content max-content;
    gap: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 680px;
  }

  .hero-conversion {
    grid-column: 1;
    grid-row: 2;
    max-width: 680px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 3;
    width: min(680px, 92%);
    min-height: 450px;
    margin: 50px auto 0;
  }

  .browser-mock {
    top: 0;
    left: 0;
  }

  .phone-mock {
    right: -18px;
    bottom: 0;
    width: 155px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: auto;
  }

  .curriculum-row {
    grid-template-columns: 230px 1fr;
  }

  .phase-chip {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 7px 12px;
    text-align: left;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-row-reverse .feature-image,
  .feature-row .feature-image {
    order: 1;
  }

  .feature-row-reverse .feature-copy,
  .feature-row .feature-copy {
    order: 2;
  }

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

  .trial-card {
    height: auto;
    min-height: 220px;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
    line-height: 1.8;
  }

  h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.45;
  }

  .brand {
    gap: 6px;
    font-size: 16px;
  }

  .button {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: calc(100% - 36px);
  }

  .hero-inner {
    padding: 42px 0 62px;
  }

  .hero-visual {
    grid-row: 2;
    margin: 0 0 26px;
  }

  .hero-conversion {
    grid-row: 3;
  }

  .hero-badge {
    min-height: 34px;
    margin-bottom: 22px;
    padding: 6px 14px;
    font-size: 10px;
  }

  .hero h1 {
    margin-bottom: 24px;
    letter-spacing: -.06em;
  }

  .hero-line-one {
    font-size: clamp(36px, 10.25vw, 44px);
  }

  .hero-ai {
    margin-right: 7px;
    font-size: clamp(64px, 19vw, 78px);
  }

  .hero-line-two {
    margin-top: 13px;
    font-size: clamp(42px, 12.4vw, 54px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.95;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-note {
    display: flex;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.6;
  }

  .micro-check {
    flex: none;
  }

  .hero-visual {
    width: 100%;
    min-height: 300px;
  }

  .browser-mock {
    width: calc(100% - 4px);
  }

  .browser-bar {
    height: 31px;
    padding: 0 9px;
  }

  .browser-lights {
    gap: 4px;
  }

  .browser-lights span {
    width: 7px;
    height: 7px;
  }

  .browser-title {
    top: 5px;
    min-width: 151px;
    min-height: 21px;
    padding: 3px 8px;
    font-size: 8px;
  }

  .browser-mock > img {
    height: 200px;
  }

  .phone-mock {
    right: -4px;
    bottom: 0;
    width: 104px;
    padding: 5px;
    border-radius: 20px;
  }

  .phone-mock img {
    border-radius: 16px;
  }

  .section {
    padding: 78px 0;
  }

  .section-lead {
    margin-bottom: 38px;
    line-height: 1.9;
  }

  .section-lead br {
    display: none;
  }

  .audience {
    padding-top: 74px;
  }

  .audience-grid {
    margin-top: 34px;
    gap: 16px;
  }

  .audience-card {
    padding: 26px 22px;
  }

  .audience-card h3 {
    font-size: 18px;
  }

  .curriculum .section-badge {
    margin-bottom: 18px;
  }

  .curriculum-row {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .curriculum-description {
    padding-top: 17px;
    border-top: 1px solid var(--hairline);
  }

  .phase-chip {
    padding: 7px 12px;
  }

  .curriculum-note {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    text-align: left;
  }

  .features {
    padding-top: 88px;
  }

  .feature-list {
    margin-top: 48px;
    gap: 72px;
  }

  .feature-row {
    gap: 24px;
  }

  .feature-image {
    border-radius: 14px;
  }

  .feature-copy h3 {
    margin-top: 14px;
    font-size: 22px;
  }

  .trial-grid {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trial-card {
    min-height: 0;
    padding: 22px;
  }

  .trial-card h3 {
    margin-top: 16px;
  }

  .section-cta {
    margin-top: 34px;
  }

  .pricing {
    min-height: auto;
  }

  .pricing-card {
    min-height: 0;
    margin-top: 36px;
    padding: 38px 20px 30px;
    border-radius: 24px;
  }

  .price {
    gap: 6px;
    font-size: 14px;
  }

  .price strong {
    font-size: 59px;
  }

  .pricing-list {
    gap: 13px;
  }

  .pricing-list li {
    align-items: flex-start;
    font-size: 13px;
  }

  .pricing-list li > span {
    margin-top: 2px;
  }

  .pricing-cta {
    min-width: 0;
  }

  .faq {
    min-height: auto;
  }

  .faq-list {
    margin-top: 34px;
  }

  .faq-item summary {
    min-height: 66px;
    padding: 17px 17px;
    grid-template-columns: 28px 1fr 16px;
    font-size: 13px;
    line-height: 1.65;
  }

  .faq-answer p {
    padding: 0 20px 20px 45px;
    font-size: 12px;
  }

  .company {
    min-height: auto;
  }

  .company-card {
    margin-top: 32px;
    padding: 20px;
  }

  .company-row {
    min-height: 0;
    padding: 12px 0;
    grid-template-columns: 40px 1fr;
    gap: 4px 14px;
  }

  .company-row .company-key {
    font-size: 12px;
  }

  .company-row > p:last-child {
    grid-column: 2;
  }

  .company-legal-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .company-legal-links > span {
    display: none;
  }

  .footer-inner {
    padding-top: 56px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-brand {
    grid-column: auto;
    margin-bottom: 20px;
  }

  .footer-panel {
    min-height: 0;
  }

  .copyright {
    margin-top: 34px;
  }

  .legal-main {
    width: calc(100% - 28px);
    padding: 36px 0 70px;
  }

  .legal-card {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .legal-card h1 {
    font-size: 28px;
  }

  .legal-card h2 {
    margin-top: 36px;
    font-size: 19px;
  }

  .legal-card p,
  .legal-card li,
  .legal-table th,
  .legal-table td {
    font-size: 13px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  .legal-table td {
    border-bottom: 1px solid var(--hairline);
  }

  .legal-table th {
    border-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .parallax-bg {
    transform: none !important;
  }
}
