/* Layout: a hero (a lesson's two voices behind the side panel), then feature rows with real screenshots. */
:root {
  --bg: #fdf8f1;
  --surface: #ffffff;
  --text: #2b2723;
  --muted: #6f675e;
  --line: #efe6da;
  --tint: #f5efe6;
  --accent: #2f9e6f;
  --accent-deep: #217a54;
  --accent-soft: #e2f5ea;
  --accent-text: #ffffff;
  --teacher: #c9bba8;
  --display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --body: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --surface: #26231f;
    --text: #f1ece4;
    --muted: #b0a79b;
    --line: #3a352f;
    --tint: #2b2823;
    --accent: #5fcf9b;
    --accent-deep: #3b9c70;
    --accent-soft: #20372b;
    --accent-text: #0f2419;
    --teacher: #5c544a;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px / 1.75 var(--body);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--accent-deep);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo {
  position: relative;
  width: 26px;
  height: 22px;
}
.logo i {
  position: absolute;
  width: 17px;
  height: 14px;
  border-radius: 9px 9px 9px 3px;
  background: var(--accent);
}
.logo i + i {
  right: 0;
  bottom: 0;
  border-radius: 9px 9px 3px 9px;
  background: var(--accent-deep);
}
.bar-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.bar-links a {
  color: var(--muted);
  text-decoration: none;
}
.bar-links a:hover {
  color: var(--accent-deep);
}
@media (max-width: 640px) {
  .bar-links {
    display: none;
  }
}

/* Hero: the waveform canvas fills it; copy on the left, the side panel on the right. */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  /* The bottom is left to the two voices drawn on the canvas. */
  padding: 72px max(20px, env(safe-area-inset-right, 0px)) 180px max(20px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
    gap: 20px;
  }
}
.hero-copy {
  display: grid;
  gap: 20px;
}
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
}
/* Japanese wraps anywhere; the headline wraps only between its phrases. */
.hero h1 span {
  display: inline-block;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--accent-deep);
  cursor: default;
}
.cta small {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-text) 22%, transparent);
}
.cta-ghost {
  font-family: var(--display);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--accent-deep);
}
.cta-ghost:hover {
  background: var(--accent-soft);
}
.cta-ghost:focus-visible,
.bar-links a:focus-visible,
.foot-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The side panel as it looks in Chrome, and a few judgments from one lesson floating around it. */
.hero-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  margin: 0;
  padding: 28px 0 36px;
}
.side-panel {
  width: min(100%, 320px);
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 6px solid var(--surface);
  outline: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 80px -36px color-mix(in srgb, #000 45%, transparent);
}
/* The panel's lower part is empty; crop it. */
.side-panel img {
  width: 100%;
  aspect-ratio: 360 / 470;
  object-fit: cover;
  object-position: top;
}
.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floater {
  position: absolute;
  display: grid;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: 0 16px 36px -18px color-mix(in srgb, #000 40%, transparent);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  animation: float 6s ease-in-out infinite alternate;
}
.aspect {
  grid-auto-flow: column;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
}
.aspect b {
  font-family: var(--display);
  font-size: 18px;
  color: var(--accent-deep);
}
.accuracy {
  top: 30%;
  left: 0;
  animation-delay: -2s;
}
.interaction {
  top: 52%;
  right: 0;
  animation-delay: -4s;
}
.interaction b {
  color: var(--accent-text);
  background: var(--accent);
  padding: 0 8px;
  border-radius: 999px;
}
/* One slip from the lesson, with when it was said. */
.fix {
  bottom: 0;
  left: 4%;
  gap: 2px;
  padding: 12px 16px;
}
.fix .said s {
  text-decoration-color: #e5533d;
}
.fix .better {
  font-family: var(--display);
  font-size: 16px;
  color: var(--text);
}
.fix .better b {
  color: var(--accent-deep);
}
.fix .when {
  justify-self: start;
  margin-top: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
}
@media (max-width: 480px) {
  .side-panel {
    width: 78%;
  }
  .aspect b {
    font-size: 16px;
  }
}
@keyframes float {
  to {
    transform: translateY(-10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none;
  }
}

/* Sections */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}
.section > h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 32px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--line);
}
.step-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-family: var(--display);
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-text);
}
.steps h3 {
  font-size: 19px;
}
.steps p,
.feature-copy > p,
.trust p,
.faq p {
  color: var(--muted);
  font-size: 15px;
}

.features {
  display: grid;
  gap: 96px;
}
.features > h2 {
  margin-bottom: -40px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.feature-copy {
  display: grid;
  gap: 14px;
}
.feature.flip .feature-copy {
  order: 2;
}
@media (max-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .feature.flip .feature-copy {
    order: 0;
  }
}
.feature h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}
.ticks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow:
    inset 0 0 0 4px var(--accent-soft),
    inset 0 0 0 8px var(--accent);
}
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px -30px color-mix(in srgb, #000 35%, transparent);
}
.shot.wide {
  max-height: 560px;
}

/* A real review right under the hero: the CEFR estimate in a browser frame, numbered points beside it. */
.sample-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}
.sample-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}
.sample-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .sample-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
.browser {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px -32px color-mix(in srgb, #000 40%, transparent);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teacher);
}
.browser-url {
  flex: 1;
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The screenshot sits right of a gutter that holds the numbered pins, so they never cover its text. */
.browser-view {
  position: relative;
  padding-left: 36px;
  background: var(--tint);
}
@media (max-width: 640px) {
  /* Phones get a crop of the top of the estimate; fade its cut edge out (the screenshot is light in either theme). */
  .browser-view img {
    mask-image: linear-gradient(#000 calc(100% - 48px), transparent);
  }
}
.pin,
.callouts li::before {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  background: var(--accent);
  color: var(--accent-text);
}
.pin {
  position: absolute;
  left: 18px;
  z-index: 1;
  top: var(--y);
  transform: translate(-50%, -50%);
}
@media (max-width: 640px) {
  .pin {
    top: var(--y-narrow);
  }
}
.callouts {
  list-style: none;
  counter-reset: callout;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.callouts li {
  counter-increment: callout;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 14px;
  row-gap: 4px;
}
.callouts li::before {
  content: counter(callout);
  grid-row: span 2;
}
.callouts h3 {
  font-size: 19px;
}
.callouts p {
  color: var(--muted);
  font-size: 15px;
}
.shot.phone {
  justify-self: center;
  width: min(100%, 340px);
}

/* Price */
.plan {
  max-width: 460px;
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.plan-name {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent-deep);
}
.plan-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .yen {
  font-size: 28px;
  margin-right: 2px;
}
.plan-price .per {
  font-size: 16px;
  color: var(--muted);
  margin-left: 6px;
}
.plan .cta {
  justify-self: start;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.trust-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
}
.trust h3 {
  font-size: 18px;
}

/* FAQ */
.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.faq details p {
  margin-top: 10px;
}

/* Footer */
.foot {
  max-width: 1160px;
  margin: 96px auto 0;
  padding: 32px max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
}

/* Hero chips: what the product does, at a glance; CEFR leads. */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
/* One column: the panel comes right after the lead, before the chips and buttons, so phones see it early. */
@media (max-width: 900px) {
  .hero-copy {
    display: contents;
  }
  .hero .chips,
  .hero .cta-row {
    order: 1;
  }
}
.chips li b {
  color: var(--accent-deep);
}

/* The CEFR scale: every level in order, where the learner was and where they are now. */
.scale {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
}
.scale li {
  position: relative;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--tint);
  color: var(--muted);
}
.scale li.was {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.scale li.now {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 3px 0 var(--accent-deep);
}
.scale li span {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  font-size: 11px;
  white-space: nowrap;
  color: var(--accent-deep);
}
.aspects {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
@media (max-width: 480px) {
  .aspects {
    grid-template-columns: minmax(0, 1fr);
  }
  .scale li {
    font-size: 11px;
  }
}
.aspects div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.aspects dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
}
.aspects dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Pains: what learners recognize in themselves, each answered in one line. */
.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.pain-list li {
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--line);
}
.pain {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.55;
}
.pain::before {
  content: "“";
  display: block;
  font-size: 34px;
  line-height: 0.6;
  color: var(--line);
}
.relief {
  font-size: 14px;
  color: var(--accent-deep);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.relief::before {
  content: "→ ";
}
