@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&display=swap");

:root {
  --ink: #174f52;
  --ink-deep: #0d3d40;
  --aqua: #8bd4d0;
  --aqua-light: #dff5f2;
  --aqua-pale: #f1fbf9;
  --pink: #ef4f9a;
  --coral: #f17a6d;
  --yellow: #ffdf67;
  --white: #fffdf9;
  --hero-teal: #2f9fa7;
  --hero-teal-deep: #237f86;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--aqua-pale);
  font-family:
    "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}

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

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.art-cloud {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.floating-art {
  position: absolute;
  display: block;
  width: clamp(86px, 10vw, 156px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background: #fff;
  opacity: 0.4;
  box-shadow: 0 12px 30px rgba(23, 79, 82, 0.13);
  transform: rotate(var(--turn, -5deg));
}

.floating-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-1 {
  top: 160px;
  left: -52px;
  --turn: -11deg;
}

.art-2 {
  top: 510px;
  right: -42px;
  --turn: 9deg;
}

.art-3 {
  top: 1040px;
  left: -54px;
  --turn: 8deg;
}

.art-4 {
  top: 1350px;
  right: -36px;
  --turn: -7deg;
}

.art-5 {
  top: 1750px;
  left: 2%;
  --turn: -8deg;
}

.art-6 {
  top: 2050px;
  right: 2%;
  --turn: 10deg;
}

.art-7 {
  top: 2450px;
  left: -38px;
  --turn: 7deg;
}

.art-8 {
  top: 2840px;
  right: -24px;
  --turn: -6deg;
}

.art-9 {
  top: 3240px;
  left: 3%;
  --turn: -9deg;
}

.art-10 {
  top: 3540px;
  right: 3%;
  --turn: 8deg;
}

.art-11 {
  top: 3900px;
  left: -34px;
  --turn: 7deg;
}

.topbar,
.hero,
.how-it-works,
.language-section,
.closing,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 79, 82, 0.16);
  background: rgba(241, 251, 249, 0.96);
  box-shadow: 0 1px 0 rgba(23, 79, 82, 0.08);
  backdrop-filter: blur(12px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 2px solid rgba(23, 79, 82, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.site-language-switcher button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.site-language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--hero-teal);
  box-shadow: 0 3px 0 var(--hero-teal-deep);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand strong {
  color: var(--pink);
  font-weight: 900;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(23, 79, 82, 0.12);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.65);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-link:hover {
  transform: translateY(-2px);
  background: #fff;
}

.auth-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-header-actions[hidden] {
  display: none;
}

.auth-header-button {
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: #45555b;
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(23, 79, 82, 0.2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.auth-header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(23, 79, 82, 0.2);
}

.auth-header-button.is-signup,
.auth-header-button.is-logout {
  color: #fff;
  background: #f68a61;
}

.auth-header-button.is-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: #fff;
}

.auth-header-button.is-account span:first-child {
  color: #55b9b8;
  font-size: 1rem;
}

.auth-dialog {
  width: min(94vw, 720px);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.auth-dialog:not([open]) {
  display: none;
}

.auth-dialog::backdrop {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.2) 0 80px, transparent 82px),
    radial-gradient(circle at 84% 42%, rgba(255, 255, 255, 0.16) 0 130px, transparent 132px),
    rgba(88, 176, 178, 0.88);
  backdrop-filter: blur(5px);
}

html.has-fallback-modal {
  overflow: hidden;
}

.auth-dialog.is-fallback-modal[open] {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 3vh 3vw;
  place-items: center;
  border-radius: 0;
  background: rgba(88, 176, 178, 0.94);
}

.auth-dialog.is-fallback-modal .auth-dialog-card {
  width: min(94vw, 720px);
}

.auth-dialog-card {
  position: relative;
  max-height: 94vh;
  padding: 38px clamp(24px, 6vw, 72px) 34px;
  overflow-y: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 0 rgba(20, 93, 97, 0.3);
}

.auth-dialog-card h2 {
  margin: 0 0 10px;
  color: #61b8b7;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.auth-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--aqua-light);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.auth-person-icon {
  position: relative;
  width: 58px;
  height: 64px;
  margin: 0 auto 8px;
  overflow: hidden;
  color: #71c2c3;
  font-size: 38px;
  line-height: 27px;
  text-align: center;
}

.auth-person-icon::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 31px;
  border-radius: 28px 28px 8px 8px;
  background: currentColor;
}

.auth-dialog-lead {
  max-width: 540px;
  margin: 0 auto 24px;
  color: #536f73;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 3px solid #d4d8d8;
  border-radius: 13px;
  color: #263d42;
  background: #eef4ff;
  font: inherit;
  font-size: 1rem;
}

.auth-form input:focus {
  border-color: #49adb2;
  outline: 4px solid rgba(73, 173, 178, 0.18);
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #168dab;
  box-shadow: 0 4px 0 rgba(23, 79, 82, 0.2);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit.is-logout {
  max-width: 420px;
  margin: 22px auto 0;
  background: #f17a6d;
}

.auth-submit:disabled,
.auth-form input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-reset,
.auth-switch-row button,
.auth-guest {
  border: 0;
  color: #1186a4;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.auth-reset {
  min-height: 34px;
  margin-top: -4px;
}

.auth-switch-row {
  margin: 18px 0 8px;
  color: #536f73;
  font-size: 0.88rem;
  text-align: center;
}

.auth-switch-row button {
  padding: 6px;
}

.auth-guest {
  display: block;
  min-height: 42px;
  margin: 0 auto;
}

.auth-message {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.auth-message.is-error {
  color: #9f3434;
  background: #fff0f0;
}

.auth-message.is-success {
  color: #247346;
  background: #e9f8ef;
}

.auth-account-view {
  text-align: center;
}

.auth-account-view[hidden] {
  display: none;
}

.auth-account-email {
  margin: 6px 0 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.auth-unavailable .auth-header-actions {
  display: none;
}

.hero {
  width: 100%;
  min-height: min(820px, calc(100svh - 92px));
  margin: 0;
  padding: clamp(64px, 8vw, 108px) max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-teal);
}

.hero-collage {
  position: absolute;
  inset: -12% -8%;
  z-index: -3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  overflow: hidden;
  transform: rotate(-4deg) scale(1.08);
}

.collage-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 2vw, 26px);
  will-change: transform;
}

.collage-track-1 {
  animation: collage-flow-left 58s linear infinite;
}

.collage-track-2 {
  animation: collage-flow-right 72s linear infinite;
}

.collage-track-3 {
  animation: collage-flow-left 64s linear infinite;
}

.collage-card {
  display: block;
  width: clamp(180px, 19vw, 330px);
  aspect-ratio: 1.45;
  overflow: hidden;
  flex: 0 0 auto;
  border: clamp(4px, 0.5vw, 8px) solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(16px, 2vw, 28px);
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.collage-track-1 .collage-card:nth-child(3n + 2),
.collage-track-3 .collage-card:nth-child(3n + 1) {
  width: clamp(150px, 16vw, 276px);
}

.collage-track-2 .collage-card:nth-child(3n) {
  width: clamp(210px, 22vw, 370px);
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.94) contrast(1.02);
}

.hero-clouds {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: -1;
  width: max(1250px, 112vw);
  max-width: none;
  opacity: 0.82;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-character-line {
  position: absolute;
  left: 50%;
  bottom: -18px;
  z-index: 2;
  width: min(1520px, 95vw);
  max-width: none;
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

@keyframes collage-flow-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 13px), 0, 0);
  }
}

@keyframes collage-flow-right {
  from {
    transform: translate3d(calc(-50% - 13px), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-panel {
  width: min(650px, 58vw);
  padding: clamp(34px, 5vw, 62px);
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(28px, 4vw, 48px);
  color: #fff;
  background: var(--hero-teal);
  box-shadow:
    0 14px 0 rgba(35, 127, 134, 0.92),
    0 32px 80px rgba(13, 61, 64, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #278d94;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--pink);
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.hero h1 span {
  position: relative;
  color: #fff;
}

.hero h1 span::after {
  display: none;
}

.hero-lead {
  margin: 30px 0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 2;
  font-weight: 650;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 100%;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  color: var(--ink-deep);
  background: #fff;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.32);
  font-weight: 900;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.32);
}

.primary-button > span:first-child {
  min-width: 0;
  white-space: nowrap;
}

.primary-button > span:last-child {
  flex: 0 0 31px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.course-note {
  margin: 26px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
}

.course-note span {
  color: var(--yellow);
}

.hero-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.hero-picture {
  width: min(100%, 470px);
  aspect-ratio: 0.87;
  overflow: hidden;
  border: 14px solid #fff;
  border-radius: 44% 56% 52% 48% / 48% 43% 57% 52%;
  background: #fff9e8;
  box-shadow:
    0 22px 0 rgba(23, 79, 82, 0.12),
    0 32px 70px rgba(23, 79, 82, 0.2);
  transform: rotate(2deg);
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-note {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 0 rgba(23, 79, 82, 0.12);
  font-size: 2rem;
  font-weight: 900;
}

.note-one {
  top: 46px;
  right: 20px;
  width: 76px;
  height: 76px;
  background: var(--pink);
  transform: rotate(8deg);
}

.note-two {
  bottom: 36px;
  left: 0;
  width: 64px;
  height: 64px;
  background: #5ab5b5;
  transform: rotate(-8deg);
}

.speech-bubble {
  position: absolute;
  z-index: 3;
  padding: 9px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 0 rgba(23, 79, 82, 0.14);
  font-weight: 900;
}

.bubble-one {
  top: 80px;
  left: -16px;
  transform: rotate(-8deg);
}

.bubble-two {
  right: -18px;
  bottom: 128px;
  transform: rotate(8deg);
}

.bubble-three {
  left: 38px;
  bottom: 8px;
  transform: rotate(-3deg);
}

.how-it-works {
  position: relative;
  overflow: hidden;
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: #76a7a8;
}

.how-it-works .section-heading,
.method-layout {
  position: relative;
  z-index: 1;
}

.how-character {
  position: absolute;
  z-index: 2;
  width: clamp(110px, 10vw, 168px);
  opacity: 1;
  pointer-events: none;
}

.how-character-lily {
  left: -24px;
  bottom: -42px;
  transform: rotate(8deg);
}

.how-character-orange {
  right: -20px;
  bottom: -46px;
  transform: rotate(-8deg);
}

.compact-heading {
  max-width: 1040px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  font-weight: 650;
}

.how-it-works .section-kicker {
  color: var(--yellow);
}

.how-it-works .section-heading h2 {
  color: #fff;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.35fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 48px;
}

.method-overview {
  min-height: 100%;
  margin: 0;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background: rgba(13, 61, 64, 0.15);
}

.method-overview img {
  width: 100%;
  max-width: 520px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.method-steps article {
  position: relative;
  min-height: 220px;
  padding: 32px 28px 28px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.method-steps article > img {
  width: 86px;
  height: 89px;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 900;
}

.method-steps h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.method-steps h3 small {
  display: block;
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
  font-size: 0.86rem;
}

.language-section {
  scroll-margin-top: 92px;
  padding: 112px max(24px, calc((100vw - 1180px) / 2)) 48px;
  background: linear-gradient(
    180deg,
    rgba(223, 245, 242, 0.96) 0%,
    rgba(241, 251, 249, 0.98) 100%
  );
}

.language-section .section-heading {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.language-section .section-kicker {
  color: var(--pink);
}

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

.language-card {
  position: relative;
  min-height: 190px;
  padding: 30px 30px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 16px 20px;
  align-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: var(--card-soft);
  box-shadow: 0 9px 0 rgba(35, 127, 134, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.language-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  background: var(--card-accent);
}

.language-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-accent);
  box-shadow: 0 14px 0 rgba(35, 127, 134, 0.16);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  color: color-mix(in srgb, var(--card-accent) 55%, white);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.flag {
  grid-row: 1 / 3;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 79, 82, 0.1);
  font-size: 2.35rem;
}

.script-mark {
  color: var(--card-accent);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

.language-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.language-copy strong {
  color: var(--ink-deep);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.language-copy > span {
  color: var(--card-accent);
  font-size: 0.88rem;
  font-weight: 900;
}

.hello {
  align-self: end;
  color: color-mix(in srgb, var(--card-accent) 68%, var(--ink));
  font-size: 0.95rem;
  font-weight: 800;
}

.card-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--card-accent);
  font-size: 1.45rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.language-card:hover .card-arrow {
  transform: translateX(4px);
}

.language-card:last-child {
  grid-column: 1 / -1;
  width: calc((100% - 18px) / 2);
  justify-self: center;
}

.culture-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: #4f7478;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}

.closing {
  width: min(1080px, calc(100% - 48px));
  margin: 90px auto;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  color: #fff;
  background: #2da0a7;
  box-shadow: 0 14px 0 #238188;
}

.closing > img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
}

.closing .section-kicker {
  margin-bottom: 8px;
  color: var(--yellow);
}

.closing h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.7vw, 2.2rem);
  letter-spacing: -0.05em;
}

.closing > a {
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

footer {
  min-height: 104px;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: #76a7a8;
}

.footer-brand {
  color: #fff;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

.language-card:focus-visible,
.primary-button:focus-visible,
.header-link:focus-visible,
.auth-header-button:focus-visible,
.auth-dialog button:focus-visible,
.site-language-switcher button:focus-visible,
.closing a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .header-link {
    display: none;
  }

  .auth-header-button {
    padding-inline: 13px;
    font-size: 0.75rem;
  }

  .hero {
    min-height: 720px;
    justify-content: center;
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .hero-panel {
    width: min(680px, 88vw);
  }

  .hero-character-line {
    width: 1280px;
    opacity: 1;
  }

  .method-layout {
    grid-template-columns: 1fr;
  }

  .method-overview {
    min-height: 0;
  }

  .method-overview img {
    max-width: 560px;
  }

  .method-steps article {
    min-height: 210px;
  }

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

  .language-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .closing {
    grid-template-columns: auto 1fr;
  }

  .closing > a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .floating-art {
    opacity: 0.2;
  }
}

@media (max-width: 600px) {
  .topbar {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 76px;
  }

  .brand {
    gap: 8px;
    font-size: 1.03rem;
  }

  .brand > span {
    display: none;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .header-link {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .site-language-switcher button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .site-language-switcher {
    display: none;
  }

  .auth-header-button {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.7rem;
  }

  .auth-dialog-card {
    padding: 30px 20px 26px;
    border-radius: 22px;
  }

  .auth-dialog-lead {
    font-size: 0.86rem;
  }

  .auth-form input {
    min-height: 52px;
  }

  .hero {
    min-height: 680px;
    padding: 50px 16px 62px;
  }

  .eyebrow {
    font-size: 0.63rem;
    letter-spacing: 0.11em;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-panel {
    width: 100%;
    padding: 34px 22px 38px;
    border-radius: 28px;
  }

  .hero-collage {
    inset: -8% -70%;
    gap: 14px;
    transform: rotate(-5deg) scale(1.05);
  }

  .hero-clouds {
    top: 12px;
    width: 1500px;
    opacity: 0.72;
  }

  .hero-character-line {
    bottom: 0;
    width: 1040px;
    opacity: 1;
  }

  .collage-card {
    width: 190px;
    border-width: 5px;
    border-radius: 18px;
  }

  .collage-track-1 .collage-card:nth-child(3n + 2),
  .collage-track-3 .collage-card:nth-child(3n + 1) {
    width: 158px;
  }

  .collage-track-2 .collage-card:nth-child(3n) {
    width: 218px;
  }

  .hero-lead br {
    display: none;
  }

  .primary-button {
    width: min(100%, 320px);
    min-height: 60px;
    gap: 12px;
    padding-inline: 16px;
    font-size: clamp(0.78rem, 3.8vw, 0.95rem);
  }

  .course-note {
    font-size: 0.76rem;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-picture {
    width: 88%;
    border-width: 9px;
  }

  .speech-bubble {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .bubble-one {
    left: 0;
  }

  .bubble-two {
    right: 0;
  }

  .bubble-three {
    left: 24px;
  }

  .how-it-works,
  .language-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .how-it-works {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .method-layout {
    margin-top: 30px;
  }

  .language-section {
    scroll-margin-top: 76px;
    padding-top: 82px;
    padding-bottom: 44px;
  }

  .language-card {
    min-height: 160px;
    padding: 24px 20px 22px;
    grid-template-columns: auto 1fr auto;
    gap: 12px 14px;
    border-radius: 23px;
  }

  .flag {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 1.9rem;
  }

  .language-copy strong {
    font-size: 1.35rem;
  }

  .card-arrow {
    width: 42px;
    height: 42px;
  }

  .closing {
    width: calc(100% - 36px);
    margin: 64px auto;
    padding: 30px 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .closing > img {
    margin: 0 auto;
  }

  .closing > a {
    grid-column: auto;
  }

  footer {
    min-height: 116px;
    padding-top: 26px;
    padding-bottom: 26px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .floating-art {
    width: 80px;
    border-width: 3px;
    border-radius: 18px;
    opacity: 0.18;
  }

  .art-3,
  .art-6,
  .art-9 {
    display: none;
  }

  .how-character {
    display: none;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps article {
    min-height: 0;
    grid-template-columns: 72px 1fr;
    padding: 26px 22px;
  }

  .method-steps article > img {
    width: 72px;
    height: 74px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
