:root {
  --blue: #087ff0;
  --blue-dark: #0865c5;
  --ink: #192541;
  --muted: #52617a;
  --soft: #f8fafc;
  --line: #dbe3ec;
  --white: #fff;
  --radius: 1rem;
  --header-height: 4.75rem;
  --frame-inset: 0.5rem;
  --frame-radius: 0.85rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  background: #fff;
  padding-bottom: var(--frame-inset);
}
/* Keep the visible page rounded while the document scrolls behind the frame. */
body::after {
  content: "";
  position: fixed;
  inset: var(--header-height) var(--frame-inset) var(--frame-inset);
  border-radius: var(--frame-radius);
  box-shadow: 0 0 0 100vmax var(--white);
  pointer-events: none;
  z-index: 2;
}
body,
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
a,
summary {
  touch-action: manipulation;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f4b841;
  outline-offset: 5px;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.015em;
}
h2 {
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
}
h3 {
  font-size: 1.25rem;
}
em {
  font-style: normal;
  color: var(--blue);
}
.container {
  width: min(100% - 2.5rem, 75rem);
  margin-inline: auto;
}
.section {
  padding: 5rem 0;
  scroll-margin-top: 1rem;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title > p:last-child:not(.eyebrow) {
  margin-top: 1.5rem;
  color: var(--muted);
}
.eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.eyebrow.light {
  color: #fff;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 4.25rem;
  padding: 1rem 1.75rem;
  border-radius: 5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
}
.button-white {
  background: #fff;
  color: var(--blue-dark);
}
.arrow {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.button:hover {
  transform: translateY(-3px);
}
.button:active {
  transform: scale(0.98);
}
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
  transform: translateY(-160%);
  background: #fff;
  padding: 0.75rem;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  min-height: 4.75rem;
  padding: 0.65rem 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}
.brand img {
  width: 1.6em;
  height: auto;
}
.desktop-nav {
  display: none;
}
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 3rem;
  color: #fff;
  background: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary span {
  width: 15px;
  height: 2px;
  background: var(--blue);
}
.mobile-nav[open] summary span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-nav[open] summary span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px #14375524;
}
.mobile-nav nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 1rem;
}
.mobile-nav nav a:last-child {
  border: 0;
  color: var(--blue);
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #079ddf 0%, #087ff0 75%);
  color: #fff;
  padding: 7.1rem 0 4rem;
}
.hero:after {
  content: "";
  position: absolute;
  bottom: -3.6rem;
  left: -15%;
  width: 130%;
  height: 5rem;
  border-radius: 50% 50% 0 0;
  background: var(--soft);
}
.hero-inner {
  width: min(100% - 2.5rem, 78rem);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
.hero-heading h1 {
  font-size: clamp(1.6rem, 8.2vw, 3.5rem);
  line-height: 1.6;
  letter-spacing: 0.015em;
}
.hero-heading .eyebrow {
  font-size: clamp(0.85rem, 3.4vw, 1.1rem);
  letter-spacing: 0.03em;
}
.hero-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 21rem;
  margin: 1rem auto 1.5rem;
  max-width: 42rem;
}
.hero-person {
  position: absolute;
  object-fit: contain;
  object-position: bottom;
  bottom: 0;
}
.person-main {
  width: 49%;
  height: 92%;
  left: 26%;
  z-index: 1;
}
.person-left {
  width: 39%;
  height: 74%;
  left: 0;
  bottom: 1rem;
}
.person-right {
  width: 35%;
  height: 76%;
  right: 0;
  bottom: 1rem;
}
.hero-description > p:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 2.1;
}
.hero-description > p:first-child > span {
  display: block;
  text-wrap: pretty;
}
.hero-description .button {
  margin-top: 1.75rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.25rem;
}
.hero-points li + li {
  border-left: 1px solid #ffffff55;
}
.hero-points span {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.hero-points strong {
  display: block;
  font-size: clamp(0.75rem, 3.2vw, 1.2rem);
}
.worries {
  background: var(--soft);
}
.feature-layout {
  display: grid;
  gap: 2rem;
}
.feature-list article {
  display: flex;
  gap: 1.2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-list article:first-child {
  padding-top: 0;
}
.number {
  font-family: Arial, sans-serif;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}
.feature-list p {
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--muted);
}
.feature-visual {
  position: relative;
  align-self: center;
  min-height: 24rem;
  text-align: center;
  background: transparent;
  border-radius: 0;
  padding: 2rem 1.5rem 0;
  overflow: hidden;
}
.feature-visual img {
  height: 20rem;
  margin: 0 auto;
  object-fit: contain;
}
.flow-section {
  background: var(--soft);
}
.flow-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.flow-grid li {
  position: relative;
  padding: 1.5rem 1.3rem 1.5rem 4.8rem;
  background: #fff;
  border-radius: var(--radius);
}
.step-number {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}
.step-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.1em;
}
.flow-grid h3 {
  font-size: 1.1rem;
  margin: 0.4rem 0;
}
.flow-grid p {
  font-size: 1rem;
  color: var(--muted);
}
.skill-list article {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.skill-list article:first-child {
  padding-top: 0;
}
.skill-symbol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eaf5ff;
  border-radius: 1rem;
  color: var(--blue-dark);
  padding: 1.2rem 1.5rem;
  font-family: Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.skill-symbol span {
  max-width: 8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.skill-list p {
  margin: 0.85rem 0 1.2rem;
  font-size: 1rem;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin: 0 0.3rem 0.4rem 0;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  font-size: 0.75rem;
}
.faq-section {
  background: var(--soft);
}
.faq-layout {
  display: grid;
  gap: 2rem;
}
.faq-heading {
  text-align: center;
}
.faq-heading > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 1rem;
}
.faq-heading img {
  display: none;
}
.faq-list {
  min-width: 0;
}
.faq-list details {
  background: #fff;
  border-radius: 0.85rem;
  margin-bottom: 0.75rem;
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.question-label {
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  color: var(--blue);
  flex-shrink: 0;
}
.plus {
  flex-shrink: 0;
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
}
.plus:before,
.plus:after {
  content: "";
  position: absolute;
  background: var(--blue);
  top: 7px;
  left: 0;
  width: 14px;
  height: 2px;
}
.plus:after {
  transform: rotate(90deg);
}
details[open] .plus:after {
  transform: none;
}
.faq-list details > p {
  padding: 0 1.25rem 1.5rem 3rem;
  font-size: 1rem;
  color: var(--muted);
}
.faq-list p a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.apply-section {
  background: linear-gradient(120deg, #079ddf, #087ff0);
  color: #fff;
  overflow: hidden;
}
.apply-inner {
  position: relative;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 15rem;
}
.apply-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.apply-inner > p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 2;
  margin-top: 1.5rem;
}
.apply-inner .button {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  gap: 0.8rem;
  font-size: 1rem;
}
.apply-inner > p.apply-note {
  font-size: 0.7rem;
  margin-top: 1rem;
}
.apply-person {
  position: absolute;
  bottom: -1rem;
  height: 14rem;
  object-fit: contain;
  pointer-events: none;
}
.apply-left {
  left: calc(50% - 9.5rem);
}
.apply-right {
  right: calc(50% - 10rem);
}
.site-footer {
  padding: 3rem 0;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.site-footer .brand {
  font-size: 1.35rem;
}
.site-footer p {
  font-size: 1rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.site-footer nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.8rem;
}
.site-footer small {
  font-size: 0.7rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  :root {
    --frame-inset: 0.75rem;
  }
  .mobile-only {
    display: none;
  }
  .container {
    width: min(100% - 5rem, 75rem);
  }
  .section {
    padding: 6rem 0;
  }
  .section-title {
    margin-bottom: 4rem;
  }
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    border-radius: 0;
    min-height: 4.75rem;
    padding: 0.8rem 1.5rem;
  }
  .brand {
    font-size: 1.2rem;
  }
  .header-cta {
    font-size: 0.8rem;
    padding: 0.5rem 1.1rem;
  }
  .hero {
    margin: 0 0.75rem;
    border-radius: 0.85rem 0.85rem 0 0;
    padding: 4rem 0 5rem;
  }
  .hero-inner {
    width: calc(100% - 5rem);
    grid-template-columns: 1.1fr 1fr;
    column-gap: 1rem;
    text-align: left;
    align-items: center;
  }
  .hero-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .hero-heading h1 {
    font-size: clamp(1.8rem, 3.8vw, 3.3rem);
    line-height: 1.55;
  }
  .hero-art {
    grid-column: 2;
    grid-row: 1/3;
    height: 25rem;
    margin: 0;
  }
  .hero-description {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 1.75rem;
  }
  .hero-description > p:first-child {
    font-size: 1.125rem;
  }
  .hero-heading .eyebrow {
    font-size: 1.05rem;
  }
  .hero-points {
    grid-column: 1/-1;
    max-width: 60rem;
    width: 100%;
    margin: 4rem auto 0;
    text-align: center;
  }
  .hero-points span {
    font-size: 0.75rem;
  }
  .hero-points strong {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
  }

  .worries {
    margin: 0 0.75rem;
    border-radius: 0 0 0.85rem 0.85rem;
  }

  .feature-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
  .feature-visual img {
    height: 25rem;
  }
  .feature-visual {
    padding-inline: 1rem;
  }
  .feature-list h3 {
    font-size: 1.4rem;
  }
  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .flow-grid li {
    padding: 1.75rem;
    min-height: 16rem;
  }
  .step-number {
    position: static;
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
  }
  .flow-grid h3 {
    font-size: 1.05rem;
  }
  .skill-list article {
    grid-template-columns: 1fr 1.7fr;
    align-items: center;
    gap: 3.5rem;
    padding: 2.5rem 0;
  }
  .skill-symbol {
    min-height: 11rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    font-size: 4rem;
  }
  .skill-symbol span {
    max-width: none;
  }
  .skill-list h3 {
    font-size: 1.85rem;
  }
  .faq-layout {
    grid-template-columns: 1fr 1.75fr;
    gap: 3.5rem;
  }
  .faq-heading {
    text-align: left;
  }
  .faq-heading h2 {
    font-size: 2rem;
  }
  .faq-heading img {
    display: block;
    max-height: 17rem;
    object-fit: contain;
    margin: 2rem auto 0;
  }
  .faq-list summary {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .faq-list details > p {
    padding-left: 4rem;
  }
  .apply-inner {
    padding: 5rem 0 5.5rem;
  }
  .apply-inner h2,
  .apply-inner > p {
    position: relative;
    z-index: 1;
  }
  .apply-inner > p:not(.eyebrow) {
    font-size: 1.05rem;
  }
  .apply-person {
    height: 18rem;
    max-width: 25%;
    bottom: 0;
  }
  .apply-left {
    left: -1.5rem;
  }
  .apply-right {
    right: -1.5rem;
  }
  .site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 1rem;
  }
  .site-footer nav {
    justify-content: flex-end;
    grid-column: 2;
    grid-row: 1/3;
  }
  .footer-bottom {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 1rem;
  }
}
@media (min-width: 1024px) {
  /* Scale the whole composition with desktop width, while keeping user zoom. */
  html {
    font-size: clamp(100%, calc(50% + 0.64vw), 131.25%);
  }
  h2 {
    font-size: clamp(2.8rem, 4.5vw, 4.1rem);
  }
  .button {
    font-size: 1.15rem;
  }
  .brand {
    font-size: 1.4rem;
  }
  .hero-heading .eyebrow {
    font-size: 1.2rem;
  }
  .hero-points span {
    font-size: 0.9rem;
  }
  .faq-heading h2 {
    font-size: 2.8rem;
  }
  .apply-inner h2 {
    font-size: 3.75rem;
  }
  .skill-list p,
  .faq-list summary,
  .faq-list details > p {
    font-size: 1.05rem;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0 1.8rem 0 auto;
  }
  .desktop-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.8rem;
    font-weight: 700;
  }
  .desktop-nav a:hover,
  .site-footer nav a:hover {
    color: var(--blue);
  }
  .header-cta {
    margin-left: 0;
  }
  .mobile-nav {
    display: none;
  }
  .site-header {
    padding-inline: 2rem;
  }
  .hero {
    padding: 4.75rem 0 5.5rem;
  }
  .hero-inner {
    width: min(100% - 6rem, 80rem);
    grid-template-columns: 1.25fr 1fr;
    column-gap: 2rem;
  }
  .hero-art {
    height: 35rem;
  }
  .hero-heading h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  }
  .hero-description > p:first-child {
    font-size: 1.125rem;
  }
  .hero-description .button {
    margin-top: 2rem;
  }

  .hero-points {
    margin-top: 3rem;
  }
  .section {
    padding: 6.5rem 0;
  }

  .feature-layout {
    gap: 6rem;
  }
  .feature-visual img {
    height: 31rem;
  }
  .feature-visual {
    padding-top: 3rem;
  }
  .feature-list article {
    padding: 2rem 0;
  }
  .feature-list h3 {
    font-size: 1.85rem;
  }
  .feature-list p {
    font-size: 1rem;
  }
  .number {
    font-size: 2rem;
  }
  .flow-grid li {
    padding: 2.25rem;
  }
  .flow-grid h3 {
    font-size: 1.45rem;
  }
  .flow-grid p {
    font-size: 1.05rem;
  }
  .apply-person {
    height: 23rem;
  }
  .apply-left {
    left: 0;
  }
  .apply-right {
    right: 0;
  }
}
/* Explain the learning approach before presenting the service. */
.desktop-only {
  display: none;
}
.story-lead {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.retention-layout {
  display: grid;
  gap: 2rem;
}
.retention-copy p + p {
  margin-top: 1.5rem;
}
.retention-copy strong {
  color: var(--blue-dark);
}

.features {
  background: var(--soft);
}
@media (min-width: 768px) {
  .desktop-only {
    display: initial;
  }

  .retention-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  .retention h2 {
    font-size: clamp(2rem, 3.7vw, 3.2rem);
  }
}
@media (min-width: 1024px) {
  .retention-copy {
    font-size: 1.1rem;
  }
}

/* Illustration-led explanations: the visuals show the concepts in the copy. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.learning-visual {
  margin: 0;
  display: grid;
  min-width: 0;
  border: 1px solid #c8deef;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #f0f7fd;
}
.learning-illustration {
  position: relative;
  height: 21rem;
  background: linear-gradient(150deg, #d9ecfa, #edf7ff);
  overflow: hidden;
}
.learning-illustration img {
  position: absolute;
  width: 13rem;
  height: 14rem;
  object-fit: contain;
  bottom: 0;
  right: -0.8rem;
}
.reading-sheet {
  position: absolute;
  top: 2rem;
  left: 1.4rem;
  width: 11rem;
  height: 14.5rem;
  padding: 1rem 1.2rem;
  transform: rotate(-9deg);
  background: #fff;
  border: 1px solid #c3daee;
  border-radius: 0.5rem;
  box-shadow: 0.45rem 0.45rem 0 #bcd5ea;
}
.reading-sheet > span {
  font-size: 0.85rem;
  color: var(--blue-dark);
  font-weight: 700;
}
.reading-sheet > i {
  display: block;
  margin-top: 0.55rem;
  height: 0.3rem;
  border-radius: 0.2rem;
  background: #d5e3f0;
}
.reading-sheet > i:nth-of-type(3n) {
  width: 65%;
}
.reading-sheet > div {
  background: #eaf4fc;
  color: var(--blue);
  padding: 0.5rem;
  text-align: center;
  font-family: monospace;
  font-size: 1.5rem;
  margin-top: 0.8rem;
}
.learning-caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.7rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
}
.learning-route {
  padding: 1.5rem;
  min-width: 0;
}
.learning-route > h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.practice-cycle {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}
.practice-cycle li {
  display: flex;
  position: relative;
  align-items: center;
  gap: 1rem;
}
.practice-icon {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #b9d8f1;
  border-radius: 0.75rem;
  box-shadow: 0 0.3rem 0 #cde3f5;
  color: var(--blue-dark);
}
.practice-cycle li:not(:last-child) .practice-icon:after {
  content: "\2193";
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--blue);
}
.practice-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-number {
  display: block;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}
.practice-cycle strong {
  display: block;
  font-size: 1rem;
}
.practice-cycle p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
.route-return {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px dashed #9ec5e4;
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--blue-dark);
}
.route-return > span {
  font-size: 1.75rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}
.company-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.85rem;
}
.company-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
@media (min-width: 768px) {
  .learning-visual {
    grid-column: 1/-1;
    grid-template-columns: 0.8fr 1.4fr;
  }
  .learning-illustration {
    height: auto;
    min-height: 30rem;
  }
  .learning-illustration img {
    width: 17rem;
    height: 20rem;
  }
  .reading-sheet {
    width: 12rem;
    height: 16rem;
    left: 1rem;
    top: 3rem;
  }
  .learning-caption {
    bottom: 1.5rem;
    font-size: 1.1rem;
  }
  .learning-route {
    padding: 2rem;
  }
  .learning-route > h3 {
    font-size: 1.65rem;
  }
  .practice-cycle strong {
    font-size: 1.15rem;
  }
  .practice-cycle p {
    font-size: 0.85rem;
  }
}
@media (min-width: 1024px) {
  .learning-visual {
    grid-template-columns: 1fr 1.7fr;
  }
  .learning-illustration {
    min-height: 29rem;
  }
  .learning-illustration img {
    width: 19rem;
    height: 22rem;
  }
  .reading-sheet {
    width: 14rem;
    height: 18rem;
    left: 1.5rem;
  }
  .learning-caption {
    font-size: 1.3rem;
  }
  .learning-route {
    padding: 2.5rem;
  }
  .practice-cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 1.5rem;
  }
  .practice-cycle li {
    flex-direction: column;
    align-items: flex-start;
  }
  .practice-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
  .practice-icon svg {
    width: 2.8rem;
    height: 2.8rem;
  }
  .practice-cycle li:not(:last-child) .practice-icon:after {
    display: none;
  }
  .practice-cycle li:nth-child(odd) .practice-icon:after {
    display: block;
    content: "\2192";
    left: calc(100% + 2rem);
    top: 0.8rem;
    transform: none;
    font-size: 2rem;
  }
  .learning-route > h3 {
    margin-bottom: 2rem;
  }
}

/* From an AI prompt to a working screen, then the questions behind it. */
.ai-story {
  overflow: hidden;
}
.ai-story-title {
  text-align: center;
  font-size: clamp(1.8rem, 7.8vw, 3rem);
}
.creation-demo {
  margin: 2.5rem 0 0;
}
.creation-scene {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.prompt-panel {
  min-width: 0;
  padding: 1.4rem 1rem;
  border: 1px solid #d3e1ee;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 0.6rem 2rem #294d7810;
}

.prompt-field {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.85rem 0.6rem 0.85rem 0.8rem;
  background: #f5f8fb;
  border: 1px solid #cbdced;
  border-radius: 0.75rem;
  gap: 0.15rem;
}
.prompt-text {
  font-weight: 700;
  font-size: clamp(0.75rem, 3.45vw, 1.1rem);
}
.typing-caret {
  width: 2px;
  height: 1.2em;
  background: var(--blue);
  opacity: 0;
  flex-shrink: 0;
}
.prompt-send {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.prompt-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  min-height: 1.5rem;
}
.status-dot {
  height: 0.4rem;
  width: 0.4rem;
  background: var(--blue);
  border-radius: 50%;
}
.creation-arrow {
  width: 4rem;
  height: 2.5rem;
  margin: auto;
  transform: rotate(90deg);
  color: var(--blue);
}
.creation-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-shell {
  position: relative;
  width: 15rem;
  margin: auto;
  padding: 2.2rem 0.8rem 1.6rem;
  border: 4px solid #243950;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0.5rem 0.65rem 0 #d4e3f1;
}
.phone-speaker {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.25rem;
  height: 0.3rem;
  border-radius: 1rem;
  background: #243950;
}
.phone-home {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.2rem;
  border-radius: 1rem;
  background: #243950;
}
.phone-app {
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.calendar-top {
  display: flex;
  justify-content: space-between;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
}
.calendar-month {
  margin: 0.7rem 0;
  font-size: 1.3rem;
  font-weight: 900;
}
.calendar-month small {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}
.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  gap: 0.2rem;
}
.calendar-week {
  font-size: 0.55rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.calendar-days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: 0.65rem;
  border-radius: 50%;
}
.calendar-days .selected {
  color: #fff;
  background: var(--blue);
}
.calendar-agenda {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.calendar-agenda small {
  display: block;
  font-size: 0.55rem;
  color: var(--muted);
}
.calendar-agenda > div {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
}
.calendar-agenda i {
  width: 3px;
  height: 1.7rem;
  border-radius: 2px;
  background: var(--blue);
}
.calendar-agenda > div:last-child i {
  background: #6fa394;
}
.creation-demo > figcaption {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-enhanced:not([data-state="ready"]) .phone-app {
  opacity: 0;
  transform: translateY(0.65rem);
}
.demo-enhanced[data-state="typing"] .typing-caret {
  opacity: 1;
}
.story-pivot {
  text-align: center;
  margin: 3rem 0 1rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
}
.story-pivot span {
  letter-spacing: 0.2em;
}
.question-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 26rem;
  margin-top: 1rem;
}
.question-marquee {
  width: 100%;
  overflow: hidden;
  display: grid;
  gap: 9rem;
  padding: 1.5rem 0;
}
.question-track {
  display: flex;
  width: max-content;
  animation: question-drift 45s linear infinite;
  animation-play-state: paused;
}
.question-track:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 52s;
}
.question-set {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.question-set li {
  width: 15rem;
  min-height: 7rem;
  padding: 1rem 1.25rem;
  margin-right: 1rem;
  border: 1px solid #d0deeb;
  border-radius: 1rem;
  background: #ffffffc9;
  box-shadow: 0 0.3rem 0.8rem #2b4b7106;
}
.question-set li > span {
  display: block;
  font-size: 0.65rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.question-set p {
  font-size: 0.9rem;
  font-weight: 700;
  color: #63748a;
}
.question-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  padding: 0 1.25rem;
  background: linear-gradient(
    transparent 5%,
    #f8fafc70 25%,
    #f8fafcf5 42%,
    #f8fafcf5 58%,
    #f8fafc70 75%,
    transparent 95%
  );
}
.question-overlay h3 {
  font-size: clamp(1.5rem, 6.6vw, 2.5rem);
  line-height: 1.7;
}
.ai-story:not(.motion-paused) .question-stage.is-visible .question-track {
  animation-play-state: running;
}
@keyframes question-drift {
  to {
    transform: translateX(-50%);
  }
}
.responsibility {
  text-align: center;
  margin-top: 3rem;
}
.responsibility h3 {
  font-size: clamp(1.5rem, 6.8vw, 2.7rem);
  line-height: 1.6;
}
.responsibility-copy {
  max-width: 42rem;
  margin: 2rem auto 0;
  text-align: left;
  line-height: 2.2;
  text-wrap: pretty;
}
.responsibility-copy p + p {
  margin-top: 1.75rem;
}
@media (min-width: 768px) {
  .ai-story-title {
    font-size: clamp(2.7rem, 4.4vw, 4rem);
  }
  .creation-demo {
    max-width: 65rem;
    margin: 3.5rem auto 0;
  }
  .creation-scene {
    grid-template-columns: minmax(0, 1.7fr) 4rem minmax(0, 1fr);
    gap: 1.5rem;
  }
  .prompt-panel {
    padding: 2rem 1.5rem;
  }

  .prompt-text {
    font-size: clamp(0.8rem, 1.4vw, 1.3rem);
  }
  .prompt-field {
    min-height: 5rem;
    padding: 1rem;
  }
  .prompt-status {
    font-size: 0.8rem;
  }
  .creation-arrow {
    transform: none;
    width: 100%;
  }
  .phone-shell {
    width: 100%;
    max-width: 16rem;
  }
  .story-pivot {
    margin-top: 4rem;
    font-size: 1.8rem;
  }
  .question-stage {
    min-height: 29rem;
  }
  .question-marquee {
    gap: 10rem;
  }
  .question-set li {
    width: 20rem;
    min-height: 8rem;
    padding: 1.5rem;
    margin-right: 1.5rem;
  }
  .question-set p {
    font-size: 1.1rem;
  }
  .question-overlay h3 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
  }
  .responsibility {
    margin-top: 4rem;
  }
  .responsibility-copy {
    font-size: 1.1rem;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .question-track {
    animation: none;
  }
  .question-set[aria-hidden="true"] {
    display: none;
  }
  .question-marquee {
    overflow-x: auto;
  }
  .demo-enhanced:not([data-state="ready"]) .phone-app {
    opacity: 1;
    transform: none;
  }
}

/* A self-contained AI app window, rather than an explanatory card. */
.ai-window.prompt-panel {
  padding: 0;
  border: 1px solid #c9d8e7;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1.2rem 3rem #264b7212;
}
.ai-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid #e0e8f0;
  background: #f8fafc;
  font-size: 0.7rem;
  color: #697d91;
}
.window-dots {
  display: flex;
  gap: 0.3rem;
}
.window-dots i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #c5d2de;
}
.window-expand {
  font-size: 1rem;
}
.ai-window-body {
  display: flex;
}
.ai-rail {
  display: none;
}
.ai-workspace {
  flex: 1;
  min-width: 0;
  padding: 0.9rem;
}
.ai-conversation-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.65rem;
}
.ai-conversation {
  position: relative;
  min-height: 13rem;
  display: grid;
  place-items: center;
  padding: 1.5rem 0.25rem;
}
.assistant-intro {
  text-align: center;
}
.assistant-mark,
.rail-logo {
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
}
.assistant-mark {
  margin: 0 auto 0.75rem;
}
.assistant-intro h3 {
  font-size: 1.2rem;
}
.assistant-intro p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
}
.assistant-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem;
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
}
.assistant-result .prompt-status {
  font-size: 0.7rem;
  margin: 0 0 0.9rem;
}
.app-file {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #cbdff0;
  border-radius: 0.7rem;
  padding: 1rem 0.7rem;
  background: #f3f8fc;
}
.app-file > svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--blue);
}
.app-file strong {
  display: block;
  font-size: 0.8rem;
}
.app-file small {
  display: block;
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.file-check {
  margin-left: auto;
  color: var(--blue);
}
.ai-composer {
  background: #f7f9fb;
  border: 1px solid #ccdbe8;
  border-radius: 0.85rem;
  padding: 0.75rem;
}
.ai-composer .prompt-field {
  min-height: 2.8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ai-composer .prompt-text {
  font-size: clamp(0.8rem, 3.7vw, 1.15rem);
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #73869a;
  padding-top: 0.6rem;
  font-size: 1.2rem;
}
.composer-mode {
  font-size: 0.6rem;
}
.ai-composer .prompt-send {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.15rem;
}
.demo-enhanced:not([data-state="ready"]) .assistant-result {
  opacity: 0;
  transform: translateY(0.5rem);
}
.creation-demo:not(.demo-enhanced) .assistant-intro,
.creation-demo[data-state="ready"] .assistant-intro {
  visibility: hidden;
}
@media (min-width: 768px) {
  .ai-workspace {
    padding: 1rem;
  }
  .ai-conversation {
    min-height: 17rem;
  }
  .ai-composer .prompt-text {
    font-size: clamp(0.8rem, 1.3vw, 1.15rem);
  }
}
@media (min-width: 1024px) {
  .ai-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 3.5rem;
    flex-shrink: 0;
    padding: 1rem 0.5rem;
    border-right: 1px solid #e0e8f0;
    background: #f9fbfd;
    color: #8b9aab;
    font-size: 1.4rem;
  }
  .ai-rail .rail-logo {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
  }
  .ai-rail svg {
    width: 1.2rem;
    height: 1.2rem;
  }
  .ai-workspace {
    padding: 1.2rem;
  }
  .ai-conversation {
    min-height: 19rem;
  }
  .assistant-intro h3 {
    font-size: 1.5rem;
  }
  .assistant-result .prompt-status {
    font-size: 0.8rem;
  }
  .app-file strong {
    font-size: 0.95rem;
  }
  .app-file small {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* The headline sits between the AI window and its generated app on desktop. */
.creation-demo {
  max-width: none;
  margin-top: 0;
}
.creation-scene {
  grid-template-columns: minmax(0, 1fr);
}
.creation-scene > .ai-story-title {
  grid-column: 1;
  grid-row: 1;
}
.creation-scene > .ai-window {
  grid-column: 1;
  grid-row: 2;
}
.creation-scene > .creation-arrow {
  grid-column: 1;
  grid-row: 3;
}
.creation-scene > .phone-shell {
  grid-column: 1;
  grid-row: 4;
}
.assistant-mark,
.rail-logo {
  font-style: normal;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.ai-rail .rail-logo {
  font-size: 0.75rem;
}
@media (min-width: 768px) {
  .creation-scene {
    grid-template-columns: minmax(0, 1.7fr) 4rem minmax(0, 1fr);
    gap: 2rem 1.5rem;
  }
  .creation-scene > .ai-story-title {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .creation-scene > .ai-window {
    grid-column: 1;
    grid-row: 2;
  }
  .creation-scene > .creation-arrow {
    grid-column: 2;
    grid-row: 2;
  }
  .creation-scene > .phone-shell {
    grid-column: 3;
    grid-row: 2;
  }
}
@media (min-width: 1024px) {
  .ai-story > .container:first-child {
    width: min(100% - 4rem, 86rem);
  }
  .creation-scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
  .creation-scene > .ai-window {
    grid-column: 1;
    grid-row: 1/3;
  }
  .creation-scene > .ai-story-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: clamp(1.75rem, 2.8vw, 3.1rem);
    line-height: 1.7;
  }
  .creation-scene > .creation-arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 85%;
    height: 4rem;
    margin: 0 auto;
  }
  .creation-scene > .phone-shell {
    grid-column: 3;
    grid-row: 1/3;
  }
  .ai-conversation {
    min-height: 15rem;
  }
  .ai-rail {
    display: none;
  }
  .ai-workspace {
    padding: 0.8rem;
  }
  .ai-composer .prompt-text {
    font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  }
  .assistant-intro h3 {
    font-size: 1.1rem;
  }
  .assistant-result {
    padding: 0;
  }
  .app-file {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }
  .app-file strong {
    font-size: 0.75rem;
  }
  .app-file small {
    font-size: 0.55rem;
  }
  .assistant-result .prompt-status {
    font-size: 0.65rem;
  }
}
@media (min-width: 1280px) {
  .ai-rail {
    display: flex;
    width: 2.5rem;
  }
}

/* Keep the transition word directly under the curved arrow. */
.creation-scene > .creation-arrow {
  width: 100%;
  height: auto;
  transform: none;
  text-align: center;
}
.creation-arrow svg {
  width: 7rem;
  height: 4rem;
  margin: 1.5rem auto;
  transform: rotate(90deg);
  stroke-width: 10;
}
.creation-arrow .story-pivot {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .creation-arrow svg {
    width: 100%;
    height: 4rem;
    margin: 0 auto;
    transform: none;
  }
  .creation-arrow .story-pivot {
    font-size: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .creation-arrow svg {
    height: auto;
  }
  .creation-arrow .story-pivot {
    margin: 0.5rem 0 0;
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  }
}
.responsibility-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}
.explanation-art {
  width: min(100%, 28rem);
  margin-inline: auto;
}
.explanation-art img {
  display: block;
  width: 100%;
  height: auto;
}
.responsibility-body .responsibility-copy {
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .responsibility-body {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2.5rem;
    margin-top: 3rem;
  }
  .explanation-art {
    max-width: 31rem;
  }
  .responsibility-body .responsibility-copy {
    text-align: left;
  }
}
/* Lesson introduction: large heading and staggered illustrated columns. */
.lessons-container {
  width: 90%;
  max-width: 1600px;
}
.lessons-heading {
  color: var(--blue);
  font-size: clamp(1.35rem, 7vw, 7.8rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4.5rem;
  margin-top: 4rem;
}
.lesson-card {
  background: #fff;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding-top: clamp(4.5rem, 6.5vw, 6.5rem);
}
.lesson-number {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  top: 0.65rem;
  right: 0.22em;
  padding-inline: 0.08em;
  background: transparent;
  color: #d8eafa;
  font:
    800 clamp(3rem, 5vw, 5rem) / 1 Arial,
    sans-serif;
  letter-spacing: -0.07em;
}
.lesson-number small {
  font-size: clamp(0.65rem, 1vw, 0.9rem);
  letter-spacing: 0.12em;
  color: var(--blue);
}
.lesson-scene {
  position: relative;
  height: 20rem;
  margin: 0 1rem;
}
.lesson-scene > img {
  position: absolute;
  height: 91%;
  width: 54%;
  object-fit: contain;
  bottom: 0;
  right: -1%;
  z-index: 1;
}
.lesson-screen {
  position: absolute;
  width: 62%;
  left: 0;
  top: 2rem;
  background: #f3f9ff;
  border: 2px solid #a9d5fa;
  border-radius: 0.85rem;
  padding: 1rem;
  transform: rotate(-5deg);
  box-shadow: 0.5rem 0.6rem 0 #e6f1fb;
}
.screen-chrome {
  display: flex;
  gap: 0.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #c9dff2;
  margin-bottom: 0.7rem;
}
.screen-chrome i {
  width: 0.3rem;
  height: 0.3rem;
  background: #97bedf;
  border-radius: 50%;
}
.screen-label {
  display: block;
  color: var(--blue-dark);
  font:
    800 0.7rem/1.4 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.mission-progress {
  height: 0.4rem;
  background: #d4e6f6;
  border-radius: 1rem;
  margin-bottom: 0.7rem;
}
.mission-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  border-radius: inherit;
}
.mission-check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
  margin-block: 0.35rem;
}
.mission-check span {
  color: var(--ink);
  font-size: 0.8rem;
}
.mission-complete {
  display: inline-block;
  color: white;
  background: var(--blue);
  border-radius: 0.3rem;
  padding: 0.15rem 0.65rem;
  margin-top: 0.5rem;
  font:
    800 0.9rem/1.6 Arial,
    sans-serif;
}
.build-screen {
  transform: rotate(4deg);
}
.component-node {
  border: 1px solid #9dcbf5;
  border-radius: 0.4rem;
  background: white;
  text-align: center;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem;
}
.component-link {
  color: var(--blue);
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
}
.portfolio-preview {
  display: grid;
  place-items: center;
  height: 5rem;
  background: #d9edff;
  border-radius: 0.4rem;
  color: var(--blue);
  font: 700 2.4rem/1 monospace;
}
.portfolio-line {
  width: 85%;
  height: 0.3rem;
  background: #abcfee;
  border-radius: 1rem;
  margin-top: 0.75rem;
}
.portfolio-line.short {
  width: 55%;
  margin-top: 0.4rem;
}
.portfolio-ready {
  display: block;
  margin-top: 1rem;
  color: var(--blue-dark);
  font:
    700 0.65rem/1.5 Arial,
    sans-serif;
}
.lesson-copy {
  position: relative;
  background: #e8f3ff;
  padding: 1.7rem 1.5rem 2rem;
  border-radius: 0.85rem 0.85rem 1rem 1rem;
}
.lesson-copy h3 {
  position: relative;
  font-size: 1.35rem;
  line-height: 1.65;
  letter-spacing: -0.025em;
}
.lesson-copy p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .lesson-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
    margin-top: 6rem;
  }
  .lesson-card:nth-child(2) {
    margin-top: 3rem;
  }
  .lesson-card:nth-child(3) {
    margin-top: 6rem;
  }
  .lesson-scene {
    height: clamp(15rem, 25vw, 27rem);
    margin-inline: 0.5rem;
  }
  .lesson-screen {
    padding: 0.7rem;
    top: 1rem;
  }
  .lesson-copy {
    padding: 1.5rem 1rem 2rem;
  }
  .lesson-copy h3 {
    font-size: clamp(1rem, 1.7vw, 1.8rem);
  }
  .lesson-copy p {
    font-size: clamp(0.875rem, 1.15vw, 1.15rem);
  }
}
@media (min-width: 1024px) {
  .lesson-grid {
    gap: 2.5rem;
  }
  .lesson-scene {
    margin-inline: 1.5rem;
  }
  .lesson-screen {
    top: 2.5rem;
    padding: 1rem;
  }
  .lesson-copy {
    padding: 2rem 2rem 2.5rem;
  }
  .screen-label {
    font-size: 0.8rem;
  }
}

/* Speech bubbles expand from opposite edges of the viewport. */
.learning-bridge {
  background: var(--soft);
  padding: clamp(3rem, 6vw, 6rem) 0 1rem;
  overflow: hidden;
}
.bridge-row {
  width: 100%;
}
.bridge-question-row {
  transform-origin: calc(100% - var(--frame-inset) - 0.75rem) 50%;
}
.bridge-answer-row {
  transform-origin: calc(var(--frame-inset) + 0.75rem) 50%;
  margin-top: clamp(1.5rem, 3vw, 3rem);
}
.bridge-bubble {
  position: relative;
  width: 78%;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(0.75rem, 3.5vw, 3.5rem);
  border-radius: 3rem;
  text-align: center;
}
.bridge-question {
  margin-left: auto;
  margin-right: calc(1.5rem + var(--frame-inset) + 0.75rem);
  background: #cce5ff;
  color: var(--ink);
  border-bottom-right-radius: 1rem;
}
.bridge-answer {
  margin-left: calc(1.5rem + var(--frame-inset) + 0.75rem);
  background: var(--blue);
  color: #fff;
  border-bottom-left-radius: 1rem;
}
.bridge-bubble::after {
  content: "";
  position: absolute;
  width: 4rem;
  height: 3rem;
  top: 50%;
  background: inherit;
}
.bridge-question::after {
  right: -1.5rem;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.bridge-answer::after {
  left: -1.5rem;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.bridge-question p {
  font-size: clamp(1.05rem, 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.65;
}
.bridge-answer h2 {
  color: inherit;
  font-size: clamp(1rem, 2.8vw, 2.8rem);
  line-height: 1.6;
  letter-spacing: -0.035em;
}
.bridge-motion .bridge-row:not(.is-revealed) {
  opacity: 0;
}
.learning-bridge + .features {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 768px) {
  .bridge-bubble {
    width: 66%;
    border-radius: 6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-motion .bridge-row {
    transition: none;
  }
  .bridge-motion .bridge-row:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
/* Outcomes are visually distinct from the steps and FAQ. */
.learning-outcomes {
  background: var(--soft);
}
.outcomes-container {
  max-width: 72rem;
}
.learning-outcomes h2 {
  color: var(--blue);
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.outcomes-list article {
  display: grid;
  gap: 0.8rem;
  padding: 1.75rem 0;
  border-top: 1px solid #b9d8f0;
}
.outcomes-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.65;
}
.outcomes-list p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--muted);
  line-height: 2;
}
@media (min-width: 1024px) {
  .outcomes-list article {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3rem;
    padding-block: 2.25rem;
  }
}
/* Sit across the gray/white boundary without changing either section's height. */
.section-scroll-cue {
  position: relative;
  height: 0;
  z-index: 1;
}
.scroll-cue-button {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px #0865c51a;
  transition: background-color 180ms ease-out;
}
.scroll-cue-button:hover {
  background: var(--blue-dark);
}
.scroll-cue-button:active svg {
  transform: translateY(3px);
}
.scroll-cue-button svg {
  animation: scroll-cue-nudge 2.2s ease-in-out infinite;
  animation-play-state: paused;
}
.scroll-cue-button.is-visible svg {
  animation-play-state: running;
}
@keyframes scroll-cue-nudge {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (min-width: 768px) {
  .scroll-cue-button {
    width: 4rem;
    height: 4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-button svg {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* JS opts in to motion; text stays visible with JS disabled or reduced motion. */
.text-reveal-pending {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .text-reveal-pending {
    opacity: 1;
  }
}
@media print {
  .text-reveal-pending {
    opacity: 1 !important;
  }
}

.faq-list .plus::after {
  transition: transform 300ms ease;
}
.faq-list details[data-expanded="false"] .plus::after {
  transform: rotate(90deg);
}
.faq-list details[data-expanded="true"] .plus::after {
  transform: rotate(0);
}
@media (prefers-reduced-motion: reduce) {
  .faq-list .plus::after {
    transition: none;
  }
}

/* Phone-only refinements keep the desktop composition unchanged. */
@media (max-width: 767px) {
  .hero-description > p:first-child {
    font-size: 1.05rem;
    line-height: 1.9;
  }
  .hero-description > p:first-child > span + span {
    margin-top: 0.6rem;
  }
  .responsibility-copy {
    font-size: 0.95rem;
    line-height: 1.95;
  }
  .responsibility-copy p + p {
    margin-top: 1.5rem;
  }
  .lesson-grid {
    margin-top: 2.5rem;
    gap: 2rem;
  }
  .lesson-card {
    padding-top: 3.75rem;
  }
  .lesson-scene {
    height: 18rem;
  }
  .lesson-copy {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .lesson-copy p {
    line-height: 1.9;
  }
  .outcomes-list p {
    line-height: 1.9;
  }
  .site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .company-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* A consistent reading scale for phones; desktop typography is untouched. */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 3rem);
  }
  .lessons-container {
    width: calc(100% - 2.5rem);
  }
  .section {
    padding-block: 3.5rem;
  }
  .hero-description > p:first-child {
    font-size: 1rem;
    line-height: 1.8;
  }
  .responsibility h3 {
    font-size: clamp(1.4rem, 6vw, 1.65rem);
    line-height: 1.55;
  }
  .responsibility-copy {
    font-size: 1rem;
    line-height: 1.85;
  }
  .responsibility-copy br {
    display: none;
  }
  .responsibility-copy p + p {
    margin-top: 1.4rem;
  }
  .responsibility-copy strong {
    font-weight: 700;
  }
  .responsibility-body {
    gap: 1.5rem;
  }
  .lessons-heading {
    white-space: normal;
    font-size: 1.75rem;
    line-height: 1.5;
    letter-spacing: -0.035em;
  }
  .lesson-copy h3,
  .outcomes-list h3 {
    font-size: 1.25rem;
    line-height: 1.6;
  }
  .lesson-copy p,
  .outcomes-list p {
    font-size: 1rem;
    line-height: 1.85;
  }
  .lesson-copy {
    padding: 1.5rem 1.25rem;
  }
  .lesson-scene {
    height: 16.5rem;
  }
  .learning-outcomes h2,
  .faq-heading h2 {
    font-size: 1.75rem;
    line-height: 1.5;
  }
  .outcomes-list article {
    padding-block: 1.5rem;
  }
  .bridge-question p,
  .bridge-answer h2 {
    font-size: 1.0625rem;
    line-height: 1.65;
  }
  .bridge-bubble {
    padding: 1.5rem 0.75rem;
  }
  .faq-list summary {
    font-size: 1rem;
    line-height: 1.65;
    padding: 1.25rem 1rem;
    gap: 0.65rem;
  }
  .faq-list details > p {
    font-size: 1rem;
    line-height: 1.85;
    padding: 0 1.25rem 1.5rem;
  }
  .faq-heading > p:not(.eyebrow),
  .apply-inner > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.85;
  }
  .apply-inner h2 {
    font-size: 1.85rem;
    line-height: 1.55;
  }
}
@media (max-width: 767px) {
  .lesson-scene { height: 18rem; }
  .responsibility-copy strong { display: block; margin-bottom: .5rem; }
}
