.lp-v8 {
  --paper: #fff5e1;
  --white: #fffdf5;
  --ink: #171724;
  --blue: #183dce;
  --dark: #101c72;
  --yellow: #ffd32b;
  --accent: var(--blue);
  --accent-deep: var(--dark);
  --accent-wash: #ffe484;
  --blue-wash: #edf0ff;
  --muted: #3b3e62;
  --rule: #a9b8f0;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --editorial: var(--body);
  background: var(--paper);
  color: var(--ink);
}

.lp-v8 .wrap { width: min(100% - 88px, 1280px); }
.lp-v8 .section { padding-block: clamp(54px, 7.3vw, 104px); }
.lp-v8 h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.09;
  text-wrap: balance;
}
.lp-v8 .section-heading {
  align-items: end;
  gap: 16px 46px;
  margin-bottom: clamp(22px, 3.6vw, 44px);
}
.lp-v8 .section-heading h2 { margin-top: 10px; }
.v8-section-copy { max-width: 30em; color: var(--muted); }
.lp-v8 :is(.v8-section-copy, .v8-contact-copy) > p + p { margin-top: .45em; }
.lp-v8 .button {
  min-height: 49px;
  border-radius: 6px;
  font-weight: 800;
}
.lp-v8 .button-small { min-height: 43px; }
.v8-label {
  display: inline-block;
  width: fit-content;
  padding: .12em .52em .2em;
  background: var(--yellow);
  color: var(--dark);
  font-size: .84rem;
  font-weight: 900;
}
.v8-text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration-thickness: .08em;
  text-underline-offset: .24em;
}
.v8-text-link:hover { text-decoration-thickness: .16em; }

.lp-v8 .site-header { border-bottom: 2px solid var(--blue); }
.lp-v8 .v8-site-header .header-inner {
  width: auto;
  min-height: clamp(54px, 4.1vw, 68px);
  gap: 8px 22px;
  padding-inline: clamp(16px, 3.1vw, 64px);
}
.lp-v8 .brand {
  color: var(--blue);
  font-size: clamp(1.6rem, 3vw, 2.32rem);
  font-weight: 900;
  letter-spacing: -.09em;
}
.v8-wordmark {
  position: relative;
  display: inline-block;
  padding-bottom: .18em;
  color: #1046a6;
  font-family: Verdana, var(--body);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: 1.1;
}
.v8-wordmark::after {
  position: absolute;
  bottom: .02em;
  left: 50%;
  width: 1.42em;
  height: .27em;
  border-bottom: .1em solid #f5bb13;
  border-radius: 50%;
  transform: translateX(-50%);
  content: "";
}
.lp-v8 .v8-site-header .header-nav { display: flex; gap: clamp(8px, 1.55vw, 32px); }
.lp-v8 .v8-site-header .header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 3px;
  color: var(--dark);
  font-size: clamp(.76rem, 1.15vw, 1rem);
  white-space: nowrap;
}
@media (min-width: 821px) {
  .lp-v8 .v8-site-header .brand { font-size: clamp(2rem, 2.8vw, 3.25rem); }
}

.v8-hero {
  --hero-art: url("images/cobalt-study.webp");
  background:
    radial-gradient(ellipse at 3% 8%, #f4d59366, transparent 52%),
    var(--paper);
  border-bottom: 2px solid var(--blue);
}
.v8-reference { display: none; }
.lp-v8 .v8-cover { display: grid; width: min(100% - 32px, 540px); gap: 14px; padding-block: 16px; }
.v8-cover h1 {
  margin-bottom: 9px;
  font-size: clamp(2.5rem, 11.5vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -.10em;
  line-height: .99;
}
.v8-cover h1 span { display: block; }
.v8-cover-lead {
  font-size: clamp(.97rem, 4.15vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
.v8-cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin-top: 13px; }
.v8-cover-actions .button { min-width: min(156px, 100%); font-size: 1.04rem; }
.v8-cover-actions .v8-text-link { font-size: .85rem; }

/* Use separate views of the source artwork when the cover is laid out in HTML. */
.v8-art-panel {
  aspect-ratio: 894 / 816;
  border: 2px solid var(--blue);
  background: var(--hero-art) right 30.77% / 171.81% auto no-repeat;
}
.v8-laptop-figure a {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-decoration: none;
  font-size: .82rem;
}
.v8-laptop-figure .v8-text-link { text-decoration: underline; }
.v8-laptop-image {
  width: 100%;
  aspect-ratio: 632 / 389;
  background: var(--hero-art) 1.33% 77.17% / 243.04% auto no-repeat;
}
@media (min-width: 821px) and (max-aspect-ratio: 8/5) {
  .v8-cover-actions,
  .v8-art-panel,
  .v8-laptop-figure { display: none; }
  .lp-v8 .v8-cover {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .v8-reference {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1536 / 856;
    overflow: hidden;
  }
  /* Use rows 64–919 of the 1536px-wide reference artwork. */
  .v8-reference img {
    position: absolute;
    inset: 0 0 auto;
    margin-top: calc(-100% / 24);
  }
  .v8-reference-link {
    position: absolute;
    display: block;
    min-width: 44px;
    min-height: 44px;
  }
  .v8-reference-link:hover,
  .v8-reference-link:focus-visible {
    border-radius: 7px;
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--dark);
  }
  .v8-reference-try { top: 39.14%; left: 3.25%; width: 20.35%; height: 8.06%; }
  .v8-reference-screen { top: 49.88%; left: .8%; width: 40.8%; height: 47.66%; }
}

@media (min-width: 821px) and (aspect-ratio > 8/5) {
  .v8-hero {
    --cover-inset: clamp(23px, 3.1vw, 64px);
    --art-height: clamp(440px, max(calc(100svh - 156px), 39vw), 1050px);
  }
  .lp-v8 .v8-cover {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy" "laptop";
    gap: clamp(8px, .65vw, 14px);
    width: 100%;
    min-height: var(--art-height);
    padding-block: 0;
  }
  .v8-cover-copy {
    position: relative;
    z-index: 1;
    grid-area: copy;
    container-type: inline-size;
    width: min(calc(42.5vw - var(--cover-inset)), 780px);
    margin-inline: var(--cover-inset) 0;
    padding-top: clamp(13px, 1.65vh, 23px);
  }
  .v8-cover h1 {
    font-size: min(6.15vw, 13.55cqi, 6.75rem);
    line-height: .98;
    -webkit-text-stroke: .018em var(--paper);
    paint-order: stroke fill;
    text-shadow: 0 0 .055em var(--paper), 0 0 .13em var(--paper);
  }
  .v8-cover h1 span { white-space: nowrap; }
  .v8-cover-lead {
    font-size: clamp(1.05rem, 1.7vw, 1.9rem);
    line-height: 1.25;
    text-shadow: 0 0 .32em var(--paper), 0 0 .16em var(--paper);
  }
  .v8-cover-actions { margin-top: clamp(8px, 1.65vh, 17px); }
  .v8-cover-actions .button {
    min-width: clamp(158px, 17vw, 310px);
    min-height: clamp(46px, 6vh, 66px);
    justify-content: center;
    border-radius: 21px;
    padding: 8px 16px;
    line-height: 1.1;
    font-size: clamp(1.1rem, 2.15vw, 2.2rem);
  }
  .v8-cover-actions .button span { display: none; }

  .v8-art-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: 79%;
    aspect-ratio: auto;
    border: 0;
    background: url("images/v8-study-background.webp") right 39% / cover no-repeat;
    mask-image: linear-gradient(to right, transparent, #000 7%);
  }
  .v8-laptop-figure {
    position: relative;
    z-index: 1;
    grid-area: laptop;
    justify-self: start;
    align-self: start;
    width: min(40.5vw, calc(var(--art-height) * .845), 720px);
    margin-inline-start: clamp(12px, 1vw, 28px);
    padding-bottom: 5px;
  }

  .v8-laptop-figure .v8-text-link {
    padding: 1px 6px 2px;
    background: var(--paper);
    line-height: 1.35;
  }

  .v8-laptop-image {
    clip-path: polygon(
      5.05% 5.2%, 5.55% 2.3%, 7.2% 0, 92.3% 0, 93.5% 2.4%, 94% 5.1%,
      94% 86%, 99.95% 94%, 99.95% 97.5%, 97% 100%, 3% 100%, 0 97.5%, 0 94%, 5.05% 86%
    );
  }
}

.lp-v8 .v8-workbook {
  background:
    repeating-linear-gradient(0deg, #284bca13 0 1px, transparent 1px 26px),
    var(--paper);
}
.lp-v8 .lesson-intro { max-width: none; }
.lp-v8 .lesson-intro > p:last-child { max-width: 43em; }
.lp-v8 .lesson-demo {
  max-width: none;
  margin-top: 24px;
  border: 2px solid var(--blue);
  border-radius: 0;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--blue);
}
.lp-v8 .demo-exercise {
  background: repeating-linear-gradient(0deg, #284bca12 0 1px, transparent 1px 30px);
}
.lp-v8 .demo-question {
  margin-block: 14px;
  color: var(--dark);
  font-family: system-ui, sans-serif;
  font-size: clamp(1.16rem, 2.6vw, 2.25rem);
  font-weight: 770;
  line-height: 1.48;
}
.lp-v8 .demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; }
.lp-v8 .demo-tutor {
  border-color: var(--blue);
  background: var(--blue-wash);
}
.lp-v8 .demo-reply {
  position: relative;
  padding: 11px 13px;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
}
.lp-v8 .demo-reply::before {
  position: absolute;
  top: -5px;
  left: 17px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-top: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
  background: var(--white);
  content: "";
}
.lp-v8 .demo-options button,
.lp-v8 .demo-help button,
.lp-v8 .demo-hint { min-height: 44px; border: 1px solid var(--blue); border-radius: 4px; font-weight: 800; }
.lp-v8 .demo-hint {
  padding: 6px 10px;
  background: var(--yellow);
  color: var(--dark);
  cursor: pointer;
}
.lp-v8 .demo-hint:hover { background: var(--accent-wash); }
.lp-v8 .demo-hint:disabled { cursor: default; background: var(--blue-wash); }
.lp-v8 .demo-explanation > p { margin-bottom: 5px; color: var(--dark); font-size: .875rem; font-weight: 800; }
.lp-v8 .demo-caption { max-width: none; margin-top: 17px; }

.lp-v8 .experience {
  border-block: 2px solid var(--dark);
  background: var(--blue);
  color: var(--white);
}
.lp-v8 .experience .v8-section-copy { color: var(--white); }
.lp-v8 .experience :focus-visible { outline-color: var(--yellow); }
.lp-v8 .preview {
  border: 2px solid var(--dark);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--dark);
}
.lp-v8 .preview :focus-visible { outline-color: var(--blue); }
.lp-v8 .preview-tabs { border-color: var(--blue); }
.lp-v8 .preview-tabs button { min-height: 46px; color: var(--dark); }
.lp-v8 .preview-tabs button[aria-selected="true"] {
  border-bottom-color: var(--dark);
  background: var(--yellow);
  color: var(--dark);
}
.lp-v8 .preview-panel { align-items: start; gap: 12px 22px; }
.lp-v8 .preview-tabs:not([hidden]) ~ .preview-panel { margin-top: 0; border-top: 0; }
.lp-v8 .preview-copy {
  align-self: center;
  padding: 14px;
  border-left: 4px solid var(--blue);
  background: var(--blue-wash);
}
.lp-v8 .preview-copy h3 { color: var(--dark); font-weight: 900; }
.lp-v8 .preview-image img { width: 100%; }
.lp-v8 .preview-panel .preview-image > span,
.lp-v8 .future .preview-image > span { color: var(--blue); }

.lp-v8 .support { background: var(--paper); }
.v8-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v8-panels li { border: 2px solid var(--blue); background: var(--white); }
.v8-panel-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(8px, 1.6vw, 24px);
  min-height: 100px;
  padding: 13px clamp(12px, 1.7vw, 25px);
  border-bottom: 2px solid var(--blue);
  background: radial-gradient(#122da840 1px, transparent 1.4px) 0 0 / 7px 7px, var(--yellow);
  color: var(--dark);
}
.v8-panels li:nth-child(2) .v8-panel-art {
  background: repeating-linear-gradient(0deg, #2047d133 0 1px, transparent 1px 13px), var(--blue-wash);
}
.v8-panels li:nth-child(3) .v8-panel-art {
  background: radial-gradient(#fff5e154 1px, transparent 1.4px) 0 0 / 8px 8px, var(--blue);
}
.v8-panel-number { font-size: clamp(1.65rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.v8-panels li:nth-child(3) .v8-panel-number { color: var(--yellow); }
.v8-panel-art p {
  padding: 6px 10px;
  border: 1px solid var(--dark);
  border-radius: 13px 13px 13px 0;
  background: var(--white);
  font-size: clamp(.83rem, 1.45vw, 1.1rem);
  font-weight: 900;
}
.v8-panel-copy { padding: clamp(13px, 2vw, 25px); }
.v8-panel-copy h3 { color: var(--dark); font-weight: 900; }
.v8-panel-copy p { margin-top: 4px; color: var(--muted); }
.v8-support-link { display: inline-block; margin-top: 20px; }

.lp-v8 .future {
  border-block: 2px solid var(--blue);
  background: repeating-linear-gradient(0deg, #2449ca14 0 1px, transparent 1px 28px), var(--blue-wash);
}
.lp-v8 .future-grid { gap: clamp(12px, 2.4vw, 28px); }
.lp-v8 .future-feature {
  padding: clamp(15px, 2.5vw, 30px);
  border: 2px solid var(--blue);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--blue);
}
.lp-v8 .future-feature figure { margin-top: auto; }
.lp-v8 .future-feature h3 { color: var(--dark); font-weight: 900; }
.lp-v8 .future-status { align-self: start; padding-inline: 6px; background: var(--yellow); }

.lp-v8 .plans { background: var(--white); }
.lp-v8 .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--blue); }
.lp-v8 .plan {
  overflow-wrap: anywhere;
  padding: clamp(15px, 2.6vw, 29px);
  border: 0;
  border-radius: 0;
  background: var(--paper);
}
.lp-v8 .plan + .plan { border-left: 2px solid var(--blue); }
.lp-v8 .v8-plan-interview { background: var(--blue-wash); }
.lp-v8 .v8-plan-tutoring { background: #ffeb99; }
.lp-v8 .plan h3 { color: var(--dark); font-weight: 900; }
.v8-plan-interview h3, .v8-plan-tutoring h3 { letter-spacing: -.035em; }
.lp-v8 .plan-standard-price {
  margin-top: 10px;
  color: var(--muted);
  font-size: .86rem;
}
.lp-v8 .plan-standard-price span { text-decoration: line-through; }
.lp-v8 .plan-price {
  margin-block: 8px 7px;
  color: var(--dark);
  line-height: 1.2;
}
.lp-v8 .plan-price-label {
  display: block;
  margin-bottom: 3px;
  font-size: .9rem;
  font-weight: 700;
}
.lp-v8 .plan-price strong {
  font-size: clamp(1.65rem, 3.3vw, 3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
}
.lp-v8 .plan-annual {
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--blue);
  color: var(--dark);
  font-size: .94rem;
}
.lp-v8 .plan-frequency {
  margin-block: 0 10px;
  font-size: 1.01rem;
  line-height: 1.55;
}
.lp-v8 .plan-frequency strong { white-space: nowrap; }
.lp-v8 .plan-copy { color: var(--muted); }
.lp-v8 .plan-parent { margin-top: 8px; }

.lp-v8 .faq { border-top: 2px solid var(--blue); }
.lp-v8 .faq-inner { grid-template-columns: .65fr 1.35fr; gap: 22px 40px; }
.lp-v8 .faq-list { border-top: 2px solid var(--blue); background: var(--white); }
.lp-v8 .faq-list details { border-color: var(--blue); color: var(--dark); }
.lp-v8 .faq-list summary { padding-inline: 12px; }
.lp-v8 .faq-list summary::after { font-size: 1.3em; font-weight: 900; }
.lp-v8 .faq-list details p { padding-inline: 12px; }
.lp-v8 .faq-list details p:not(:last-child) { padding-bottom: 7px; }
.lp-v8 .faq-list details[open] { background: var(--blue-wash); }

.lp-v8 .trial {
  border-block: 2px solid var(--blue);
  background: radial-gradient(#243fba29 1px, transparent 1.5px) 0 0 / 9px 9px, var(--yellow);
  color: var(--dark);
}
.v8-contact-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: clamp(22px, 4vw, 42px);
}
.lp-v8 .trial-inner { gap: 0; border: 2px solid var(--blue); background: var(--white); }
.lp-v8 .audience-option { padding: clamp(15px, 3.2vw, 37px); }
.lp-v8 .audience-option + .audience-option { border-left: 2px solid var(--blue); }
.lp-v8 .audience-option h3 { font-weight: 900; }
.lp-v8 .v8-contact-copy { flex: 1; margin-block: 10px 18px; }
.lp-v8 .v8-contact-copy p { margin: 0; color: var(--dark); }
.lp-v8 .contact-address { color: var(--dark); }
.lp-v8 .audience-option .button-light { border-color: var(--blue); }
.lp-v8 .audience-option :focus-visible, .lp-v8 .audience-option:focus-visible { outline-color: var(--blue); }
.lp-v8 .footer-inner { flex-wrap: wrap; gap: 10px 22px; padding-block: 13px; }
.lp-v8 .site-footer { background: var(--paper); }

.lp-v8 .preview-dialog { border: 2px solid var(--blue); background: var(--white); }
.lp-v8 .preview-dialog[data-pan-preview] .dialog-image-viewport { overflow-x: auto; }
.lp-v8 .preview-dialog[data-pan-preview] .dialog-image-viewport img { min-width: min(680px, 100vw + 260px); }

@media (max-width: 940px) {
  .lp-v8 .plans-grid { grid-template-columns: 1fr; }
  .lp-v8 .plan + .plan { border-top: 2px solid var(--blue); border-left: 0; }
}
@media (max-width: 760px) {
  .lp-v8 .wrap { width: min(100% - 32px, 540px); }
  .lp-v8 .v8-site-header .header-inner {
    display: grid;
    gap: 5px;
    padding-block: 9px 4px;
  }
  .lp-v8 .v8-site-header .header-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 4px;
    border-top: 1px solid var(--rule);
  }
  .lp-v8 .v8-site-header .header-nav a { min-height: 38px; text-align: center; white-space: normal; }
  .lp-v8 .lesson-demo { grid-template-columns: minmax(0, 1fr); }
  .lp-v8 .demo-tutor { border-top: 1px solid var(--blue); border-left: 0; }
  .lp-v8 .preview-copy { padding: 9px 11px; }
  .lp-v8 .preview-tabs button { padding-inline: 5px; }
  .v8-panels { grid-template-columns: 1fr; }
  .v8-panel-art { min-height: 65px; }
  .lp-v8 .faq-inner { grid-template-columns: 1fr; }
  .v8-wide-break { display: none; }
  .lp-v8 .trial-inner { grid-template-columns: minmax(0, 1fr); }
  .lp-v8 .audience-option + .audience-option { border-top: 2px solid var(--blue); border-left: 0; }
  .lp-v8 .dialog-scroll-hint { margin-bottom: 7px; font-size: .75rem; }
  .lp-v8 .preview-dialog[data-pan-preview] .dialog-scroll-hint { display: block; }
}
