:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --lime: #d2fb2e;
  --lime-dark: #b9e800;
  --purple: #6b3fe0;
  --lilac: #c9b6ff;
  --lavender: #efe8ff;
  --line: #dcd9db;
  --bg: #faf7f8;
  --danger: #c62b34;
  --display: "Archivo", "Noto Sans JP", sans-serif;
  --code: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
pre {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}
.skip:focus {
  left: 8px;
}
.ph {
  display: inline-block;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.narrow {
  max-width: 44rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ---- pieces ---- */
.logo {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.35rem;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo.light {
  color: #fff;
}
.logo .dot {
  color: var(--lime);
}
a:has(> .logo) {
  text-decoration: none;
}
.tag {
  display: inline-block;
  transform: rotate(-1deg);
  background: var(--lime);
  border-radius: 4px;
  padding: 0.35rem 1rem;
  font-family: var(--code);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.5;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.16s var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn .arrow {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.btn.ink {
  background: var(--ink);
  color: #fff;
}
.btn.lime {
  background: var(--lime);
  color: var(--ink);
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn.sm {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}
.btn.md {
  padding: 0.8rem 1.4rem;
  font-size: 0.9rem;
}
.btn.lg {
  padding: 1rem 1.4rem;
  font-size: 1rem;
}
@media (hover: hover) {
  .btn.ink:hover:not(:disabled) {
    background: var(--lime);
    color: var(--ink);
  }
  .btn.lime:hover:not(:disabled) {
    background: var(--ink);
    color: var(--lime);
  }
  .btn.ghost:hover:not(:disabled) {
    box-shadow: inset 0 0 0 2px var(--ink);
  }
}
.link-btn {
  background: none;
  border: 0;
  padding: 0.4rem 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 1.5rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.trust li {
  border: 1px solid rgb(17 17 17 / 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
}
.note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.body {
  margin-top: 1.25rem;
  font-size: 0.97rem;
  line-height: 2;
}
.h-xl,
.h-lg,
.h-sm {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.h-xl {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 11vw, 4.4rem);
  line-height: 1.14;
}
.h-lg {
  font-size: clamp(1.45rem, 6.6vw, 2.4rem);
  line-height: 1.35;
}
.h-lg.light {
  color: #fff;
}
.h-sm {
  font-size: 1.15rem;
  line-height: 1.5;
}
.heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.section {
  padding: 3rem 0;
  scroll-margin-top: 80px;
}
.num {
  display: inline-block;
  transform: rotate(-2deg);
  background: var(--lime);
  padding: 0 0.6rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1.5;
}
.burst {
  color: var(--lime);
}

/* ---- header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid rgb(17 17 17 / 0.06);
}
.header-in {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.nav {
  display: none;
  gap: 2.2rem;
}
.nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--lime-dark);
}
.nav a:hover {
  text-decoration-line: underline;
}
.closed-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
}

/* ---- hero ---- */
.hero {
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
}
.hero-title {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 9.4vw, 3.9rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.mark {
  position: relative;
  display: inline-block;
  margin-right: 0.12em;
  padding: 0 0.14em;
  isolation: isolate;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.04em;
  z-index: -1;
  background: var(--lime);
  transform: skewX(-8deg) rotate(-1.5deg);
}
.hero-lead {
  margin-top: 1.5rem;
  font-size: 0.97rem;
}
.hero-cta {
  margin-top: 1.75rem;
}
.hero-art {
  position: relative;
  aspect-ratio: 10 / 9;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}
.code-win {
  position: absolute;
  left: 4%;
  top: 9%;
  width: 62%;
  transform: rotate(8deg);
  border: 3px solid var(--lime);
  border-radius: 1.1rem;
  background: #161616;
  padding: 4% 4% 17%;
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.6);
}
.code-win .dots {
  display: flex;
  gap: 0.4em;
  font-size: clamp(0.5rem, 1.5vw, 0.8rem);
}
.code-win .dots i {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #ff5147;
}
.code-win .dots i:nth-child(2) {
  background: #9be21b;
}
.code-win .dots i:nth-child(3) {
  background: #1fb6f5;
}
.code-win pre {
  margin-top: 9%;
  font-family: var(--code);
  font-weight: 500;
  font-size: clamp(0.62rem, 2.6vw, 1.02rem);
  line-height: 1.75;
  color: rgb(255 255 255 / 0.8);
}
.c0 {
  color: #8e7bff;
}
.c1 {
  color: var(--lilac);
}
.c2 {
  color: #ffe45c;
}
.c3 {
  color: #b8f53a;
}
.c4 {
  color: #5be36a;
}
.hero-burst {
  position: absolute;
  right: -1%;
  top: -3%;
  width: 34%;
  transform: rotate(-7deg);
}
.hero-burst svg {
  display: block;
  width: 100%;
}
.hero-burst p {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(0.45rem, 1.9vw, 0.8rem);
  line-height: 1.15;
}
.hero-burst b {
  display: block;
  font-size: 2.4em;
  line-height: 1;
}
.hero-a {
  position: absolute;
  right: 2%;
  bottom: -2%;
  width: 70%;
  filter: drop-shadow(0 24px 30px rgb(107 63 224 / 0.22));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}
.marquee {
  margin: 0 -2vw;
  transform: rotate(-1.8deg);
  background: var(--lime);
  padding: 0.75rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee ul {
  display: flex;
  flex: none;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}
.marquee li {
  display: flex;
  align-items: center;
}
.marquee li span:first-child {
  padding: 0 1.5rem;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---- about ---- */
#about {
  padding-top: 4.5rem;
}
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.for-whom {
  padding: 1.75rem 1.5rem;
  background: var(--lavender);
  border-color: var(--lavender);
}
.checks {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.checks li {
  position: relative;
  padding-left: 2.1rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2FB2E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

/* ---- plan ---- */
.plan {
  display: grid;
  border-radius: 2rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}
.plan-price {
  background: var(--ink);
  color: #fff;
  padding: 2rem 1.5rem;
}
.plan-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lime);
}
.price {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
}
.price-num {
  font-size: clamp(3rem, 15vw, 4.4rem);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  font-size: 1.15rem;
}
.price-tax {
  font-size: 0.85rem;
  font-weight: 700;
}
.plan-sub {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.8);
}
.plan-cta {
  margin-top: 1.5rem;
}
.plan-points {
  padding: 0.75rem 1.5rem;
}
.plan-points > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.plan-points > div:last-child {
  border-bottom: 0;
}
.plan-points dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.15rem;
}
.plan-points dd b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.5;
}
.plan-points dd span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- curriculum ---- */
.months {
  display: grid;
  gap: 1rem;
}
.month {
  padding: 1.5rem 1.25rem;
}
.month-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
}
.month ol {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}
.month li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
}
.step {
  font-family: var(--code);
  font-weight: 700;
  color: var(--purple);
}

/* ---- flow / rules ---- */
.flow,
.rules {
  display: grid;
  gap: 1rem;
}
.flow li,
.rules > div {
  padding: 1.5rem 1.4rem;
}
.flow .num {
  font-size: 1.5rem;
}
.flow h3 {
  margin-top: 0.9rem;
}
.flow p,
.rules dd {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgb(17 17 17 / 0.8);
}
.rules dt {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
}

/* ---- instructor ---- */
.instructor {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 19rem;
  margin: 0 auto;
}
.photo-frame .burst {
  position: absolute;
  left: -16%;
  top: -12%;
  width: 46%;
}
.photo {
  position: relative;
  transform: rotate(-3deg);
  background: #fff;
  border-radius: 1.8rem;
  padding: 3.5%;
  box-shadow: 0 22px 40px -20px rgb(0 0 0 / 0.45);
}
.photo img,
.photo-empty {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.3rem;
  object-fit: cover;
}
.photo-empty {
  display: grid;
  place-items: center;
  border: 2px dashed rgb(17 17 17 / 0.3);
  background: var(--lavender);
  font-family: var(--code);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgb(17 17 17 / 0.6);
}
.name-en {
  position: absolute;
  right: -0.75rem;
  bottom: -1rem;
  transform: rotate(5deg);
  background: var(--ink);
  color: var(--lime);
  padding: 0.4rem 1rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 0.875rem;
}
.instructor .h-lg {
  margin-top: 1.25rem;
}
.instructor-name {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
}
.instructor-name span {
  margin-left: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.instructor .body {
  margin-top: 0.75rem;
}

/* ---- faq ---- */
.faq {
  max-width: 56rem;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  padding: 1rem 1.25rem;
}
.faq details[open] {
  border-color: var(--ink);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.6;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary > span:first-child {
  display: flex;
  gap: 0.75rem;
}
.q {
  font-family: var(--code);
  color: var(--purple);
}
.plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s var(--ease-out);
}
details[open] .plus {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 0.75rem;
  padding-left: 2rem;
  font-size: 0.9rem;
  color: rgb(17 17 17 / 0.8);
}

/* ---- consult + chat ---- */
.consult {
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
  padding: 3.5rem 0 4rem;
  margin-top: 2rem;
}
.consult-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.consult-copy .h-lg {
  margin-top: 1.25rem;
}
.consult-copy > p {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.consult .trust li {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}
.consult-mail {
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.65);
}
.chat {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--lime);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.chat-head b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
}
.chat-head span {
  font-size: 0.72rem;
  color: var(--muted);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: min(26rem, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  background: var(--bg);
}
.msg {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
  animation: msg-in 0.22s var(--ease-out);
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 0.3rem;
}
.msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}
.msg.panel {
  max-width: 100%;
  width: 100%;
  white-space: normal;
}
.typing {
  display: flex;
  gap: 0.3rem;
  padding: 0.95rem;
}
.typing i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}
.panel-title {
  font-family: var(--display);
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.slot-day + .slot-day {
  margin-top: 0.8rem;
}
.slot-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.slot {
  min-width: 4.2rem;
  min-height: 2.75rem;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.16s var(--ease-out);
}
.slot:active {
  transform: scale(0.97);
}
.slot:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (hover: hover) {
  .slot:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--lime);
  }
}
.slot-note {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.mini-form {
  display: grid;
  gap: 0.35rem;
}
.mini-form label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
}
.mini-form input[type="text"],
.mini-form input[type="email"],
.admin input {
  width: 100%;
  border: 1.5px solid rgb(17 17 17 / 0.2);
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  background: #fff;
}
.mini-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 0.6rem;
}
.consent input {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: 0.15rem;
  accent-color: var(--ink);
}
.consent a {
  color: var(--purple);
  font-weight: 700;
}
.form-error {
  min-height: 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--danger);
}
.booked-when {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
}
.booked p + p {
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.booked-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.booked a {
  color: var(--purple);
  font-weight: 700;
  text-underline-offset: 4px;
}
.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.chips button {
  flex: none;
  min-height: 2.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.chips button:first-child {
  background: var(--lime);
}
.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgb(17 17 17 / 0.2);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-size: 1rem;
  background: #fff;
}
.chat-form button {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.chat-form .arrow {
  width: 1.2rem;
  height: 1.2rem;
}
.chat-note {
  padding: 0 1rem 0.9rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- footer ---- */
.footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.8);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding: 3.5rem 0 7rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
}
.footer-lead {
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.7);
  line-height: 1.7;
}
.footer-op {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.6);
}
.footer ul {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer ul a {
  text-decoration: none;
}
.footer ul a:hover {
  color: var(--lime);
}
.copyright {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
}
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  background: var(--bg);
  border-top: 1px solid rgb(17 17 17 / 0.1);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
}
.mobile-bar .btn {
  width: 100%;
}

/* ---- manage / admin ---- */
.narrow .h-lg {
  margin: 1rem 0 1.5rem;
}
.manage {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.manage-notice {
  background: var(--lavender);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.admin {
  padding-top: 2rem;
  padding-bottom: 4rem;
  display: grid;
  gap: 1.25rem;
}
.admin .card {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.admin h2 {
  font-size: 1.05rem;
  margin: 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin table {
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 100%;
}
.admin th,
.admin td {
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.transcript {
  font-size: 0.82rem;
  display: grid;
  gap: 0.3rem;
}
.tr-user {
  font-weight: 700;
}
.warn {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
}
.admin pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin-top: 0.4rem;
}
.challenge:not(:empty) {
  margin-top: 0.5rem;
}

/* ---- wider screens ---- */
@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
  .logo {
    font-size: 1.6rem;
  }
  .header-in {
    height: 84px;
  }
  .btn.sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  .btn.lg {
    padding: 1.15rem 2.5rem;
    font-size: 1.2rem;
  }
  .section {
    padding: 4rem 0;
  }
  .tag {
    font-size: 0.875rem;
  }
  .hero-lead,
  .body {
    font-size: 1.05rem;
  }
  .marquee ul {
    font-size: 1.05rem;
  }
  .flow,
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-price,
  .plan-points {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
  .footer {
    padding-bottom: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .mobile-bar {
    display: none;
  }
}
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .heading {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
  .hero-art {
    max-width: none;
  }
  .code-win pre {
    font-size: 1.02rem;
  }
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
  .plan {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .plan-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .months,
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .rules {
    grid-template-columns: repeat(4, 1fr);
  }
  .instructor {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
  .consult-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
  .consult-copy {
    position: sticky;
    top: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-a,
  .marquee-track,
  .msg,
  .typing i {
    animation: none;
  }
  .btn,
  .slot,
  .plus {
    transition: none;
  }
}
