:root {
  --cabin-navy: #10334a;
  --deep-navy: #0a2638;
  --sky-paper: #f5fafc;
  --cloud: #ffffff;
  --seat-blue: #dfeef4;
  --line-blue: #b9d3df;
  --signal-amber: #f2ad3d;
  --cabin-teal: #1e8b83;
  --passenger: #a0345b;
  --attendant: #177b75;
  --ink: #132a3a;
  --muted: #5f7280;
  --success: #197348;
  --error: #b23b3b;
  --shadow: 0 18px 55px rgba(16, 51, 74, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content-width: 960px;
  --base-font: 21px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--sky-paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 238, 244, 0.72), transparent 340px),
    var(--sky-paper);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: var(--base-font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 5px solid rgba(242, 173, 61, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: -9999px;
  z-index: 100;
  padding: 12px 18px;
  color: white;
  background: var(--deep-navy);
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 12px max(20px, calc((100vw - var(--content-width)) / 2));
  background: rgba(245, 250, 252, 0.95);
  border-bottom: 1px solid rgba(185, 211, 223, 0.8);
  backdrop-filter: blur(14px);
}

.brand-button {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 4px 4px 4px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-left: 5px solid var(--signal-amber);
  border-radius: 4px 14px 14px 4px;
  cursor: pointer;
  text-align: left;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.journey-bar {
  position: sticky;
  top: 84px;
  z-index: 19;
  padding: 9px max(20px, calc((100vw - var(--content-width)) / 2));
  color: white;
  background: var(--cabin-navy);
}

.journey-meta {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.progress-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal-amber);
  border-radius: inherit;
  transition: width 220ms ease;
}

main {
  width: min(100%, calc(var(--content-width) + 40px));
  margin: 0 auto;
  padding: 34px 20px 140px;
}

main:focus {
  outline: none;
}

.library-view,
.catalog-view {
  display: grid;
  gap: 30px;
}

.library-hub-nav {
  position: sticky;
  top: 96px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--line-blue);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 51, 74, 0.1);
  backdrop-filter: blur(14px);
}

.library-hub-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.library-hub-nav button:hover {
  color: var(--cabin-navy);
  background: var(--seat-blue);
}

.library-hub-nav button.selected {
  color: white;
  background: var(--cabin-navy);
}

.library-hub-nav button span {
  color: var(--cabin-teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.library-hub-nav button.selected span {
  color: var(--signal-amber);
}

.library-hub-nav button strong {
  font-size: 16px;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 340px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(120deg, rgba(16, 51, 74, 0.98), rgba(10, 38, 56, 0.92)),
    var(--cabin-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.library-hero-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(34px, 6vw, 62px);
}

.library-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--signal-amber);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.library-hero h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 66px);
}

.library-hero h1 span {
  color: var(--signal-amber);
}

.library-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 2.5vw, 25px);
}

.hopeful-hero {
  min-height: 430px;
}

.hopeful-hero .library-hero-copy {
  padding-right: clamp(30px, 4vw, 48px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-primary,
.hero-secondary {
  min-height: 58px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.hero-primary {
  color: var(--deep-navy);
  background: var(--signal-amber);
}

.hero-secondary {
  color: var(--cabin-navy);
  background: white;
  border-color: var(--line-blue);
}

.hopeful-hero .hero-secondary {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px);
}

.first-win-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px;
  color: var(--deep-navy);
  background: var(--signal-amber);
}

.first-win-card > span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.first-win-card > strong {
  margin-top: 18px;
  font-size: 39px;
  letter-spacing: -0.04em;
}

.first-win-card h2 {
  margin: 3px 0 12px;
  font-size: 29px;
  line-height: 1.35;
}

.first-win-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.first-win-card button {
  min-height: 54px;
  margin-top: 25px;
  padding: 11px 15px;
  color: white;
  background: var(--cabin-navy);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.hope-message {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 28px 32px;
  background: white;
  border: 2px solid var(--line-blue);
  border-left: 9px solid var(--cabin-teal);
  border-radius: 8px 20px 20px 8px;
}

.hope-message span {
  color: var(--cabin-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.hope-message p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.destination-card {
  min-height: 270px;
  padding: 30px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 22px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.destination-card:hover {
  border-color: var(--cabin-teal);
  box-shadow: 0 15px 35px rgba(16, 51, 74, 0.12);
  transform: translateY(-3px);
}

.destination-card > span {
  color: var(--cabin-teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.destination-card > strong {
  display: block;
  max-width: 390px;
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.45;
}

.destination-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.destination-card b {
  color: var(--cabin-navy);
  font-size: 17px;
}

.roadmap-destination {
  border-top-color: var(--signal-amber);
}

.topics-destination {
  border-top-color: var(--cabin-teal);
}

.subpage-hero {
  padding: clamp(34px, 6vw, 64px);
  color: white;
  background: var(--cabin-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.subpage-hero > span {
  color: var(--signal-amber);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.subpage-hero h1 {
  max-width: 800px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
}

.subpage-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 2.5vw, 24px);
}

.topics-page-hero {
  background: var(--cabin-teal);
}

.topics-page-hero > span {
  color: white;
}

.subpage-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 2px;
}

.library-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 34px;
  color: var(--deep-navy);
  background: var(--signal-amber);
  text-align: center;
}

.library-total strong {
  font-size: clamp(76px, 11vw, 118px);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.library-total span {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.library-total small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
}

.library-section-heading,
.lesson-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.library-section-heading span,
.lesson-catalog-heading span {
  color: var(--cabin-teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.library-section-heading h2,
.lesson-catalog-heading h2 {
  margin: 2px 0 0;
}

.library-section-heading p,
.lesson-catalog-heading p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.program-promise,
.program-roadmap {
  padding: clamp(30px, 5vw, 52px);
  background: var(--cloud);
  border: 2px solid var(--line-blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(16, 51, 74, 0.07);
}

.promise-heading {
  max-width: 920px;
}

.promise-heading > span,
.investment-heading > div > span {
  color: var(--cabin-teal);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.promise-heading h2,
.investment-heading h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 4.4vw, 50px);
}

.promise-heading p {
  max-width: 900px;
  margin: 0;
  color: var(--cabin-navy);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 850;
  line-height: 1.55;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.benefit-card {
  position: relative;
  min-height: 210px;
  padding: 28px 28px 26px;
  overflow: hidden;
  background: #f5fafb;
  border: 2px solid #d7e7ec;
  border-radius: 20px;
}

.benefit-index {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #c8dce3;
  font-size: 54px;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.benefit-card small {
  position: relative;
  z-index: 1;
  color: var(--cabin-teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 23px 0 10px;
  font-size: 28px;
}

.benefit-card p {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.promise-note {
  margin: 20px 0 0;
  padding: 18px 22px;
  color: var(--cabin-navy);
  background: var(--seat-blue);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 850;
  text-align: center;
}

.learning-investment {
  padding: clamp(30px, 5vw, 52px);
  color: white;
  background: var(--cabin-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.investment-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.investment-heading > div > span {
  color: var(--signal-amber);
}

.investment-heading h2 {
  color: white;
}

.investment-heading p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.investment-total {
  color: var(--signal-amber);
  font-size: clamp(54px, 8vw, 88px);
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}

.investment-total small {
  margin-left: 8px;
  font-size: 21px;
  letter-spacing: 0;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.cycle-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.cycle-card > span {
  color: var(--signal-amber);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.cycle-card > strong {
  display: block;
  margin-top: 14px;
  color: white;
  font-size: 34px;
}

.cycle-card h3 {
  margin: 2px 0 5px;
  color: white;
  font-size: 24px;
}

.cycle-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.cycle-equation {
  margin: 18px 0 0;
  padding: 16px 20px;
  color: var(--cabin-navy);
  background: var(--signal-amber);
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.stage-roadmap {
  display: grid;
  gap: 12px;
}

.stage-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(210px, 0.65fr);
  gap: 24px;
  align-items: center;
  min-height: 150px;
  padding: 22px 24px;
  background: #f8fbfc;
  border: 2px solid #dce8ec;
  border-left: 8px solid var(--cabin-teal);
  border-radius: 8px 18px 18px 8px;
}

.stage-number {
  color: var(--cabin-teal);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.stage-copy small {
  color: var(--cabin-teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.stage-copy h3 {
  margin: 3px 0 5px;
  font-size: 25px;
}

.stage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.stage-milestone {
  padding: 16px 18px;
  color: var(--cabin-navy);
  background: var(--seat-blue);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.45;
}

.stage-milestone span {
  display: block;
  margin-bottom: 3px;
  color: var(--cabin-teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.milestone-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 20px 22px;
  color: white;
  background: var(--cabin-teal);
  border-radius: 15px;
}

.milestone-note strong {
  font-size: 18px;
}

.milestone-note span {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

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

.category-shelf {
  --shelf-color: var(--cabin-teal);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 22px 24px 22px 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--cloud);
  border: 2px solid transparent;
  border-left: 12px solid var(--shelf-color);
  border-radius: 6px 18px 18px 6px;
  box-shadow: 0 8px 26px rgba(16, 51, 74, 0.07);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-shelf:hover {
  border-color: var(--shelf-color);
  border-left-width: 12px;
  box-shadow: 0 15px 34px rgba(16, 51, 74, 0.13);
  transform: translateY(-2px);
}

.category-index {
  color: var(--shelf-color);
  font-size: 17px;
  font-weight: 950;
  text-align: center;
}

.category-copy {
  display: flex;
  flex-direction: column;
}

.category-copy small {
  color: var(--shelf-color);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-copy strong {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.25;
}

.category-copy > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.category-range {
  display: flex;
  flex-direction: column;
  align-items: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.category-range b {
  margin-top: 7px;
  color: var(--cabin-navy);
  font-size: 13px;
}

.tone-teal { --shelf-color: #1e8b83; }
.tone-blue { --shelf-color: #3876a6; }
.tone-amber { --shelf-color: #b76d00; }
.tone-rose { --shelf-color: #a0345b; }
.tone-violet { --shelf-color: #7457a6; }
.tone-green { --shelf-color: #3f7d52; }
.tone-red { --shelf-color: #a8473f; }
.tone-navy { --shelf-color: #10334a; }

.library-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: var(--cabin-navy);
  background: var(--seat-blue);
  border-radius: 16px;
}

.library-status strong {
  font-size: 17px;
}

.library-status span {
  color: var(--muted);
  font-size: 14px;
}

.catalog-back {
  justify-self: start;
  padding: 10px 16px;
  color: var(--cabin-navy);
  background: var(--cloud);
  border: 2px solid var(--line-blue);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.catalog-header {
  --shelf-color: var(--cabin-teal);
  display: grid;
  grid-template-columns: 1fr 190px;
  min-height: 230px;
  overflow: hidden;
  color: white;
  background: var(--cabin-navy);
  border-bottom: 12px solid var(--shelf-color);
  border-radius: var(--radius-lg);
}

.catalog-header > div:first-child {
  align-self: center;
  padding: 38px 46px;
}

.catalog-header > div:first-child > span {
  color: var(--signal-amber);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.catalog-header h1 {
  margin: 5px 0 10px;
  font-size: clamp(38px, 5vw, 55px);
}

.catalog-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.catalog-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cabin-navy);
  background: var(--signal-amber);
}

.catalog-range strong {
  font-size: 64px;
  line-height: 1;
}

.catalog-range span,
.catalog-range small {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--cloud);
  border: 1px solid var(--line-blue);
  border-radius: 18px;
}

.catalog-sidebar > strong {
  margin: 0 6px 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.catalog-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 9px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.catalog-sidebar button:hover,
.catalog-sidebar button.selected {
  color: white;
  background: var(--cabin-navy);
}

.catalog-sidebar button small {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  color: var(--muted);
  background: var(--seat-blue);
  border-radius: 999px;
  font-size: 11px;
}

.lesson-catalog-heading h2 {
  font-size: clamp(29px, 4vw, 38px);
}

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

.catalog-lesson {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  color: var(--ink);
  background: var(--cloud);
  border: 2px solid var(--line-blue);
  border-radius: 15px;
  text-align: left;
}

.catalog-lesson.available {
  background: #eef9f7;
  border-color: var(--cabin-teal);
  box-shadow: 0 8px 24px rgba(30, 139, 131, 0.12);
  cursor: pointer;
}

.catalog-lesson.available:hover {
  border-color: var(--signal-amber);
  transform: translateY(-1px);
}

.catalog-lesson.coming-soon {
  cursor: default;
  opacity: 0.68;
}

.catalog-lesson-number {
  color: var(--cabin-teal);
  font-size: 28px;
  font-weight: 950;
}

.catalog-lesson-copy {
  display: flex;
  flex-direction: column;
}

.catalog-lesson-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.catalog-lesson-copy strong {
  font-size: 17px;
  line-height: 1.35;
}

.catalog-status {
  display: flex;
  flex-direction: column;
  align-items: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-lesson.available .catalog-status {
  color: var(--success);
}

.catalog-status small {
  font-size: 10px;
  font-weight: 700;
}

.lesson-back {
  margin-bottom: -12px;
}

.home-view {
  display: grid;
  gap: 30px;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: white;
  background: var(--cabin-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 28, 43, 0.94) 0%, rgba(5, 28, 43, 0.78) 48%, rgba(5, 28, 43, 0.16) 100%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  width: min(630px, 78%);
  padding: clamp(28px, 6vw, 64px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--deep-navy);
  background: var(--signal-amber);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(24px, 3.5vw, 31px);
  line-height: 1.35;
}

.hero-goal {
  max-width: 560px;
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.mode-heading {
  margin: 0 0 6px;
  font-size: clamp(27px, 4vw, 38px);
}

.mode-heading-en {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.mode-explanation {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: var(--seat-blue);
  border-left: 6px solid var(--cabin-teal);
  border-radius: 0 16px 16px 0;
}

.mode-explanation p {
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.mode-explanation p + p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.mode-explanation .mode-flow {
  align-items: center;
  flex-wrap: wrap;
}

.mode-explanation .mode-flow > span {
  color: var(--cabin-teal);
  font-weight: 900;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 25px 26px 24px;
  color: var(--ink);
  background: var(--cloud);
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(16, 51, 74, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.mode-card.preview,
.mode-card.review {
  border-top: 7px solid var(--cabin-teal);
}

.mode-card.tutor {
  border-top: 7px solid var(--signal-amber);
}

.mode-card:hover {
  border-color: var(--signal-amber);
  transform: translateY(-3px);
}

.mode-audience {
  min-height: 22px;
  margin-bottom: 20px;
  color: var(--cabin-teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.35;
}

.mode-card.tutor .mode-audience {
  color: #9a5e00;
}

.mode-card strong {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 27px;
  line-height: 1.25;
}

.mode-card strong small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.mode-card .duration {
  margin-top: auto;
  padding-top: 22px;
  color: var(--cabin-teal);
  font-size: 17px;
  font-weight: 900;
}

.mode-open {
  display: block;
  margin-top: 14px;
  padding-top: 18px;
  color: var(--cabin-navy);
  border-top: 1px solid var(--line-blue);
  font-size: 14px;
  font-weight: 900;
}

.lesson-id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.lesson-id-row .eyebrow {
  margin: 0;
}

.lesson-number {
  display: inline-flex;
  padding: 6px 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-series {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 800;
}

.lesson-card {
  overflow: hidden;
  background: var(--cloud);
  border: 1px solid rgba(185, 211, 223, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lesson-card-header {
  padding: clamp(26px, 5vw, 50px) clamp(24px, 6vw, 64px) 22px;
}

.step-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cabin-teal);
  font-size: 17px;
  font-weight: 900;
}

.lesson-card-body {
  padding: 0 clamp(24px, 6vw, 64px) clamp(30px, 6vw, 60px);
}

.lead-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05em;
}

.big-instruction {
  margin: 22px 0;
  padding: 24px 28px;
  color: var(--ink);
  background: var(--seat-blue);
  border-left: 8px solid var(--cabin-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.45;
}

.task-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  background: var(--sky-paper);
  border: 1px solid var(--line-blue);
  border-radius: 16px;
}

.task-list .number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--cabin-navy);
  border-radius: 50%;
  font-weight: 900;
}

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

.mission-grid,
.listen-rounds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.mission-card,
.listen-rounds section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 118px;
  padding: 20px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: var(--radius-md);
}

.mission-card > span,
.listen-rounds section > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--cabin-navy);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}

.mission-card p,
.listen-rounds p {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.quiet-note {
  margin-top: 18px;
  padding: 16px 20px;
  color: var(--muted);
  background: #f4f7f8;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}

.image-prompt {
  position: relative;
  min-height: 300px;
  margin: 22px 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.image-prompt img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.audio-panel {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 24px;
  color: white;
  background: var(--cabin-navy);
  border-radius: var(--radius-md);
}

.play-button {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  color: var(--deep-navy);
  background: var(--signal-amber);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 34px;
}

.audio-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 27px;
}

.audio-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.dialogue {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.dialogue-line {
  max-width: 86%;
  padding: 20px 22px;
  border: 3px solid;
  border-radius: 20px;
}

.dialogue-line.passenger {
  justify-self: start;
  background: #fff1f6;
  border-color: rgba(160, 52, 91, 0.55);
}

.dialogue-line.attendant {
  justify-self: end;
  background: #eaf8f6;
  border-color: rgba(30, 139, 131, 0.55);
}

.speaker-label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.passenger .speaker-label {
  color: var(--passenger);
}

.attendant .speaker-label {
  color: var(--attendant);
}

.english-line {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.55;
}

.japanese-line {
  display: none;
  margin: 12px 0 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(95, 114, 128, 0.2);
  font-size: 18px;
}

.dialogue.show-meaning .japanese-line {
  display: block;
}

.wide-action,
.outline-action {
  width: 100%;
  min-height: 62px;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

.wide-action {
  color: white;
  background: var(--cabin-teal);
  border: 3px solid var(--cabin-teal);
}

.outline-action {
  color: var(--cabin-navy);
  background: white;
  border: 3px solid var(--line-blue);
}

.pattern-grid,
.scenario-grid,
.category-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.pattern-card {
  padding: 24px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: var(--radius-md);
}

.pattern-label {
  color: var(--passenger);
  font-size: 17px;
  font-weight: 900;
}

.pattern-english {
  margin: 10px 0 8px;
  color: var(--cabin-navy);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.example-box {
  margin-top: 16px;
  padding: 16px 18px;
  background: white;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.vocab-card {
  min-height: 120px;
  padding: 20px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.vocab-card strong {
  display: block;
  color: var(--cabin-navy);
  font-size: 25px;
}

.vocab-card span {
  display: block;
  margin-top: 8px;
  color: transparent;
  font-size: 18px;
  transition: color 120ms ease;
}

.vocab-card.revealed {
  border-color: var(--cabin-teal);
  background: #effaf8;
}

.vocab-card.revealed span {
  color: var(--muted);
}

.pronunciation-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.pronunciation-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 16px;
}

.pronunciation-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--cabin-teal);
  border-radius: 14px;
  font-weight: 900;
}

.pronunciation-card p {
  margin: 0 0 5px;
  color: var(--cabin-navy);
  font-size: clamp(23px, 3.6vw, 31px);
  font-weight: 900;
  line-height: 1.35;
}

.pronunciation-card small {
  color: var(--muted);
  font-size: 16px;
}

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

.scenario-button {
  min-height: 88px;
  padding: 16px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 16px;
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
  text-align: left;
}

.scenario-button span {
  margin-right: 9px;
  font-size: 28px;
}

.scenario-button.selected {
  background: #effaf8;
  border-color: var(--cabin-teal);
}

.timer-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 34px;
  color: white;
  background: var(--cabin-navy);
  border-radius: var(--radius-lg);
  text-align: center;
}

.timer-number {
  font-size: clamp(72px, 15vw, 120px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-button {
  min-width: 240px;
  min-height: 64px;
  color: var(--deep-navy);
  background: var(--signal-amber);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.can-do-panel {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 2px solid var(--line-blue);
}

.can-do-panel h3 {
  margin-bottom: 14px;
}

.can-do-options {
  display: grid;
  gap: 12px;
}

.can-do-button {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 16px 18px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
}

.can-do-button strong {
  font-size: 20px;
}

.can-do-button span {
  color: var(--muted);
  font-size: 15px;
}

.can-do-button.selected {
  background: #edf9f2;
  border-color: var(--success);
}

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

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 20px 22px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.category-button strong {
  display: block;
  font-size: 24px;
}

.category-button small {
  color: var(--muted);
  font-size: 15px;
}

.category-button .arrow {
  color: var(--cabin-teal);
  font-size: 28px;
}

.category-button.recommended {
  width: 100%;
  min-height: 132px;
  margin: 22px 0;
  color: white;
  background: var(--cabin-navy);
  border-color: var(--cabin-navy);
}

.category-button.recommended b {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--deep-navy);
  background: var(--signal-amber);
  border-radius: 999px;
  font-size: 13px;
}

.category-button.recommended small {
  color: rgba(255, 255, 255, 0.75);
}

.category-button.recommended .arrow {
  color: var(--signal-amber);
}

.optional-practice {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 16px;
}

.optional-practice summary {
  cursor: pointer;
  color: var(--cabin-navy);
  font-weight: 900;
}

.question-card {
  margin-top: 22px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: var(--radius-md);
}

.question-number {
  color: var(--cabin-teal);
  font-size: 16px;
  font-weight: 900;
}

.question-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cabin-teal);
  font-size: 15px;
  font-weight: 900;
}

.question-prompt {
  margin: 16px 0 24px;
  font-size: clamp(28px, 4.7vw, 42px);
  font-weight: 850;
  line-height: 1.45;
}

.choice-list {
  display: grid;
  gap: 13px;
}

.choice-button {
  min-height: 68px;
  padding: 13px 18px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-size: 22px;
  font-weight: 800;
}

.choice-button.correct {
  color: var(--success);
  background: #edf9f2;
  border-color: var(--success);
}

.choice-button.incorrect {
  color: var(--error);
  background: #fff1f1;
  border-color: var(--error);
}

.feedback-box {
  margin-top: 18px;
  padding: 18px 20px;
  background: white;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
}

.feedback-box.success {
  border-left: 8px solid var(--success);
}

.feedback-box.retry {
  border-left: 8px solid var(--error);
}

.reveal-answer {
  display: none;
  margin-top: 20px;
  padding: 22px;
  color: var(--deep-navy);
  background: #fff6e5;
  border: 3px solid var(--signal-amber);
  border-radius: 16px;
  font-size: clamp(23px, 3.5vw, 31px);
  font-weight: 850;
}

.reveal-answer.visible {
  display: block;
}

.mini-next {
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  color: white;
  background: var(--cabin-navy);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.shadowing-box {
  margin: 20px 0;
  padding: 22px;
  color: var(--cabin-navy);
  background: #fff6e5;
  border-left: 8px solid var(--signal-amber);
  border-radius: 0 16px 16px 0;
}

.shadowing-box span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.shadowing-box p {
  margin: 9px 0 0;
  font-size: clamp(22px, 3.5vw, 29px);
  font-weight: 900;
}

.final-mission {
  margin: 22px 0;
  padding: 26px;
  color: white;
  background: var(--deep-navy);
  border-radius: 20px;
}

.final-mission > span {
  color: var(--signal-amber);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.final-mission h3 {
  margin: 8px 0 14px;
  font-size: clamp(26px, 4vw, 36px);
}

.final-mission ul {
  margin: 0;
  padding-left: 25px;
}

body[data-mode="tutor"] .step-kicker {
  color: #b16d00;
}

body[data-mode="tutor"] .progress-track span {
  background: var(--signal-amber);
}

.lesson-mission-shared {
  margin: 18px 0 24px;
  padding: 28px;
  color: white;
  background: var(--deep-navy);
  border-radius: 20px;
}

.lesson-mission-shared > span {
  color: var(--signal-amber);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lesson-mission-shared h3 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 40px);
}

.lesson-mission-shared p {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.lesson-mission-shared small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}

.lesson-route {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.lesson-route span {
  padding: 12px 8px;
  color: var(--cabin-navy);
  background: var(--seat-blue);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.shared-word-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.shared-word-grid section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 14px;
}

.shared-word-grid strong {
  font-size: 21px;
}

.shared-word-grid span {
  color: var(--muted);
  font-size: 15px;
}

.grammar-check-grid,
.composition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.grammar-check-grid section,
.composition-grid section {
  padding: 22px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 16px;
}

.grammar-check-grid span,
.composition-grid > section > span {
  color: var(--cabin-teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.grammar-check-grid p,
.composition-grid p {
  margin: 12px 0;
  font-size: 21px;
  font-weight: 750;
}

.grammar-check-grid small {
  color: var(--muted);
  font-size: 15px;
}

.composition-grid details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-blue);
}

.composition-grid summary {
  color: var(--cabin-teal);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.composition-grid details strong {
  display: block;
  margin-top: 12px;
  color: var(--cabin-navy);
  font-size: 18px;
  line-height: 1.45;
}

.instant-translation-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.instant-translation-list section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 15px;
}

.instant-translation-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--cabin-teal);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.instant-translation-list p {
  margin: 0;
  color: var(--cabin-navy);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.5;
}

.instant-translation-list.answer-list section {
  background: #f2fbf8;
  border-color: #9bcfc5;
}

.similar-request-list p strong,
.similar-request-list p small {
  display: block;
}

.similar-request-list p small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.roleplay-brief {
  margin: 22px 0;
  padding: 26px;
  color: white;
  background: var(--deep-navy);
  border-radius: 20px;
}

.roleplay-brief > span {
  color: var(--signal-amber);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.roleplay-brief h3 {
  margin: 8px 0 18px;
  font-size: clamp(25px, 4vw, 35px);
  line-height: 1.35;
}

.roleplay-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.roleplay-roles p {
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  font-size: 17px;
}

.roleplay-roles b {
  display: block;
  color: var(--signal-amber);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.roleplay-brief ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 29px;
  font-size: 18px;
}

.transfer-roleplay {
  background: #164b59;
}

.preview-action-box {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #fff6e5;
  border-left: 7px solid var(--signal-amber);
  border-radius: 0 14px 14px 0;
}

.preview-action-box strong {
  color: #985d00;
  font-size: 15px;
}

.preview-action-box p {
  margin: 5px 0 0;
  color: var(--cabin-navy);
  font-size: 20px;
  font-weight: 800;
}

.self-study-roleplay {
  margin: 22px 0;
  padding: 24px 26px;
  color: white;
  background: var(--deep-navy);
  border-radius: 19px;
}

.self-study-roleplay > span {
  color: var(--signal-amber);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.self-study-roleplay ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 30px;
  font-size: 19px;
  font-weight: 750;
}

.transfer-self-study {
  background: #164b59;
}

.self-check-answers {
  margin: 18px 0;
  padding: 17px 20px;
  background: #f2fbf8;
  border: 2px solid #9bcfc5;
  border-radius: 14px;
}

.self-check-answers summary {
  color: var(--cabin-teal);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.self-check-answers p {
  margin: 12px 0 0;
  color: var(--cabin-navy);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.5;
}

.compact-instruction {
  margin-top: 16px;
}

.correction-replay-list {
  display: grid;
  gap: 13px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.correction-replay-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 17px 19px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 14px;
}

.correction-replay-list li > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--cabin-teal);
  border-radius: 50%;
  font-weight: 900;
}

.correction-replay-list p {
  margin: 0;
  color: var(--cabin-navy);
  font-size: 18px;
}

.correction-replay-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
}

.similar-request-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.similar-request-grid button {
  min-height: 104px;
  padding: 18px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line-blue);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
}

.similar-request-grid button.selected {
  background: #e7f6f3;
  border-color: var(--cabin-teal);
}

.similar-request-grid strong,
.similar-request-grid small {
  display: block;
}

.similar-request-grid strong {
  font-size: 22px;
}

.similar-request-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.tutor-guide {
  margin: 24px 0;
  overflow: hidden;
  color: white;
  background: var(--deep-navy);
  border-radius: 20px;
}

.tutor-guide > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  color: var(--deep-navy);
  background: var(--signal-amber);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.tutor-guide-rows {
  display: grid;
}

.tutor-guide-rows > div {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tutor-guide-rows > div:last-child {
  border-bottom: 0;
}

.tutor-guide-rows b {
  color: var(--signal-amber);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.tutor-guide-rows p {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.5;
}

.student-task {
  margin: 24px 0;
  padding: 24px 26px;
  background: white;
  border: 4px solid var(--cabin-teal);
  border-radius: 20px;
}

.student-task > span {
  color: var(--cabin-teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.student-task-english {
  margin: 8px 0;
  color: var(--cabin-navy);
  font-size: clamp(25px, 4vw, 35px);
  font-weight: 900;
  line-height: 1.4;
}

.student-task-japanese {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.student-task small {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line-blue);
  font-size: 15px;
}

.free-talk-list,
.feedback-frame {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.free-talk-list section {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 16px;
}

.free-talk-list section > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--cabin-navy);
  border-radius: 50%;
  font-weight: 900;
}

.free-talk-list p {
  margin: 0;
  color: var(--cabin-navy);
  font-size: 22px;
  font-weight: 850;
}

.free-talk-list small {
  color: var(--muted);
  font-size: 16px;
}

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

.feedback-frame section {
  padding: 20px;
  background: var(--sky-paper);
  border: 2px solid var(--line-blue);
  border-radius: 16px;
}

.feedback-frame span {
  color: var(--cabin-teal);
  font-size: 14px;
  font-weight: 900;
}

.feedback-frame p {
  margin: 8px 0 0;
  color: var(--cabin-navy);
  font-size: 19px;
  font-weight: 800;
}

.shared-checklist {
  display: grid;
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.shared-checklist label {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.shared-checklist input {
  width: 24px;
  height: 24px;
  accent-color: var(--signal-amber);
}

.question-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.question-controls button {
  flex: 1;
}

.tutor-cue {
  margin: 20px 0;
  padding: 22px 24px;
  color: white;
  background: var(--deep-navy);
  border-radius: 18px;
}

.tutor-cue strong {
  display: block;
  margin-bottom: 8px;
  color: var(--signal-amber);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.tutor-cue p {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.role-card {
  padding: 24px;
  border: 3px solid;
  border-radius: 18px;
}

.role-card.student {
  background: #fff1f6;
  border-color: rgba(160, 52, 91, 0.55);
}

.role-card.tutor {
  background: #eaf8f6;
  border-color: rgba(30, 139, 131, 0.55);
}

.role-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.lesson-navigation {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px max(20px, calc((100vw - var(--content-width)) / 2));
  background: rgba(245, 250, 252, 0.96);
  border-top: 1px solid var(--line-blue);
  backdrop-filter: blur(14px);
}

.nav-button {
  width: min(46%, 330px);
  min-height: 64px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.nav-button-primary {
  color: white;
  background: var(--cabin-navy);
  border: 3px solid var(--cabin-navy);
}

.nav-button-secondary {
  color: var(--cabin-navy);
  background: white;
  border: 3px solid var(--line-blue);
}

.nav-button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .investment-heading {
    grid-template-columns: 1fr;
  }

  .investment-total {
    justify-self: start;
  }

  .stage-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .stage-milestone {
    grid-column: 2;
  }

  .milestone-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .category-shelf-grid,
  .lesson-catalog-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-sidebar {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
  }

  .catalog-sidebar > strong {
    display: none;
  }

  .catalog-sidebar button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mode-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .task-list.compact,
  .feedback-frame,
  .grammar-check-grid,
  .composition-grid {
    grid-template-columns: 1fr;
  }

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

  .shared-word-grid,
  .similar-request-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 250px;
  }

  .hero,
  .hero-copy {
    min-height: 480px;
  }

  .hero-copy {
    width: 88%;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(5, 28, 43, 0.96), rgba(5, 28, 43, 0.66));
  }
}

@media (max-width: 640px) {
  :root {
    --base-font: 20px;
  }

  .site-header {
    min-height: 72px;
    padding: 8px 12px;
  }

  .brand-copy {
    display: flex;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .mode-explanation p {
    display: grid;
    gap: 0;
  }

  .mode-explanation p span {
    display: none;
  }

  .journey-bar {
    top: 72px;
  }

  main {
    padding: 18px 12px 128px;
  }

  .library-view,
  .catalog-view {
    gap: 22px;
  }

  .library-hub-nav {
    top: 80px;
    gap: 5px;
    padding: 6px;
    border-radius: 15px;
  }

  .library-hub-nav button {
    min-height: 50px;
    padding: 7px 5px;
  }

  .library-hub-nav button span {
    display: none;
  }

  .library-hub-nav button strong {
    font-size: 13px;
    line-height: 1.3;
  }

  .library-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .library-hero-copy {
    padding: 32px 24px;
  }

  .library-hero h1 {
    font-size: 38px;
  }

  .hopeful-hero .library-hero-copy {
    padding: 32px 24px;
  }

  .hero-actions,
  .subpage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-primary,
  .hero-secondary {
    width: 100%;
  }

  .first-win-card {
    padding: 28px 24px;
  }

  .first-win-card > strong {
    font-size: 34px;
  }

  .first-win-card h2 {
    font-size: 26px;
  }

  .hope-message {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 21px;
  }

  .hope-message span {
    font-size: 22px;
  }

  .hope-message p {
    font-size: 17px;
  }

  .home-destinations {
    grid-template-columns: 1fr;
  }

  .roleplay-roles {
    grid-template-columns: 1fr;
  }

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

  .destination-card > strong {
    font-size: 25px;
  }

  .subpage-hero {
    padding: 34px 24px;
  }

  .subpage-hero h1 {
    font-size: 37px;
  }

  .subpage-hero p {
    font-size: 19px;
  }

  .library-kicker {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .library-total {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    justify-content: start;
    padding: 20px 24px;
    text-align: left;
  }

  .library-total strong {
    grid-row: 1 / 3;
    font-size: 58px;
  }

  .library-total span {
    align-self: end;
    margin: 0;
  }

  .library-total small {
    align-self: start;
    margin: 0;
  }

  .library-section-heading,
  .lesson-catalog-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }

  .program-promise,
  .program-roadmap,
  .learning-investment {
    padding: 28px 20px;
  }

  .promise-heading h2,
  .investment-heading h2 {
    font-size: 32px;
  }

  .promise-heading p {
    font-size: 23px;
  }

  .benefit-grid,
  .cycle-grid {
    grid-template-columns: 1fr;
  }

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

  .benefit-card h3 {
    margin-top: 18px;
    font-size: 25px;
  }

  .benefit-card p {
    padding-right: 16px;
    font-size: 17px;
  }

  .benefit-index {
    font-size: 46px;
  }

  .promise-note,
  .cycle-equation {
    font-size: 16px;
    text-align: left;
  }

  .investment-heading p {
    font-size: 18px;
  }

  .investment-total {
    font-size: 58px;
  }

  .cycle-card {
    min-height: 0;
  }

  .stage-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 16px;
  }

  .stage-number {
    align-self: start;
    font-size: 32px;
  }

  .stage-copy h3 {
    font-size: 23px;
  }

  .stage-copy p {
    font-size: 16px;
  }

  .stage-milestone {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .milestone-note strong {
    font-size: 17px;
  }

  .milestone-note span {
    font-size: 15px;
  }

  .category-shelf {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    min-height: 142px;
    padding: 19px 17px 19px 0;
  }

  .category-copy strong {
    font-size: 23px;
  }

  .category-range {
    grid-column: 2;
    align-items: start;
  }

  .library-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .catalog-header {
    grid-template-columns: 1fr;
  }

  .catalog-header > div:first-child {
    padding: 30px 24px;
  }

  .catalog-range {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    justify-content: start;
    padding: 16px 24px;
  }

  .catalog-range strong {
    font-size: 44px;
  }

  .catalog-lesson {
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 16px;
  }

  .catalog-status {
    grid-column: 2;
    align-items: start;
  }

  .hero,
  .hero-copy {
    min-height: 500px;
  }

  .hero-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 28px 24px 36px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(5, 28, 43, 0.98) 0%, rgba(5, 28, 43, 0.72) 58%, rgba(5, 28, 43, 0.18) 100%);
  }

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

  .mode-audience {
    min-height: 0;
    margin-bottom: 14px;
  }

  .mission-grid,
  .listen-rounds {
    grid-template-columns: 1fr;
  }

  .mission-card,
  .listen-rounds section {
    min-height: 96px;
    padding: 16px;
  }

  .lesson-card-header {
    padding: 28px 20px 14px;
  }

  .lesson-card-body {
    padding: 0 20px 34px;
  }

  .audio-panel {
    grid-template-columns: 78px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .audio-panel strong {
    font-size: 23px;
  }

  .dialogue-line {
    max-width: 96%;
  }

  .vocab-grid,
  .scenario-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .pronunciation-card {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 17px 15px;
  }

  .pronunciation-number {
    width: 40px;
    height: 40px;
  }

  .tutor-guide-rows > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 14px 18px;
  }

  .student-task {
    padding: 20px 18px;
  }

  .question-progress {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

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

  .question-controls {
    flex-direction: column;
  }

  .lesson-navigation {
    gap: 8px;
    padding: 10px 12px;
  }

  .nav-button {
    width: 50%;
    min-height: 58px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
