/* mojinosekai.com, on top of the shared theme's tokens.
 *
 * Plain CSS: theme.css is written for Tailwind, but its colours are ordinary
 * custom properties, and the Tailwind-only rules in it are skipped by the
 * browser as unknown at-rules. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Polish letters (ą, ę, ł, ś, ż) live in latin-ext. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

main,
.top,
.bottom {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  main,
  .top,
  .bottom {
    padding: 0 2rem;
  }
}

/* Top: the name and the other language, nothing else yet. */
/* Stays at the top while the page scrolls, like the app's bar: the page
   shows through it, blurred, so it never reads as a solid block. */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
}

.wordmark span {
  margin-left: 0.4rem;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", ui-serif, serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--faint);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language: a <details> dropdown, so it opens without any script. */
.languages {
  position: relative;
}

.languages summary,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid var(--input);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.languages summary::-webkit-details-marker {
  display: none;
}

.languages summary:hover,
.theme-toggle:hover {
  color: var(--foreground);
  border-color: var(--muted-foreground);
}

.languages svg {
  width: 1.25rem;
  height: 0.85rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
  flex-shrink: 0;
}

.languages ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  min-width: 10rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--popover);
  border: 1px solid var(--input);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}

.languages li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.languages li a:hover {
  background: var(--muted);
}

.languages li a[aria-current] {
  font-weight: 800;
  color: var(--primary);
}

/* Theme: the moon in light mode, the sun in dark, each saying where a click goes. */
.theme-toggle {
  width: 2.25rem;
  padding: 0;
  justify-content: center;
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  max-width: 44rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 6rem 0 4.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-foreground);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.lead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted-foreground);
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--deep-foreground);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
}

.button:hover {
  opacity: 0.9;
}

.section-heading {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Cards: one per part of the platform. The one that exists leads. */
.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
}

.card:not(.card-live) h3,
.card:not(.card-live) p {
  opacity: 0.75;
}

.card-live {
  border-color: var(--input);
  box-shadow: 0 10px 30px rgb(20 34 77 / 0.08);
}

.card-link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 700;
  color: var(--accent-foreground);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-live {
  background: var(--ok-tint);
  color: var(--ok);
}

/* Steps on the Sensei page */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 800;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.step p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.975rem;
}

.note {
  margin-top: 4rem;
  max-width: 44rem;
}

.note p {
  margin: 0 0 0.75rem;
}

.status {
  color: var(--muted-foreground);
}

.note .button {
  margin-top: 1rem;
}

/* Bottom */
.bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.bottom p {
  margin: 0 0 0.4rem;
}

.bottom a {
  font-weight: 700;
}

.faint {
  color: var(--faint);
}

/* Demo video */
.demo {
  margin: 0 0 4rem;
}

/* Never taller than the screen leaves under the bar, so all of it is in view. */
.demo-frame {
  position: relative;
  width: min(100%, 880px, calc((100svh - 10rem) * 16 / 9));
  margin: 0 auto;
}

/* Hook on the left, demo on the right, once there is room for both side by side. */
@media (min-width: 1000px) {
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
    padding: 5.5rem 0 5rem;
  }

  .intro .hero {
    padding: 0;
  }

  .intro h1 {
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  }

  .intro .demo {
    margin: 0;
  }

  .intro .demo-frame {
    width: 100%;
  }
}

.demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
}

.demo-play {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem 0.85rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: var(--deep-foreground);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
}

.demo-play svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.demo-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.demo-frame.ready .demo-play {
  display: inline-flex;
}

.demo-frame.playing .demo-play {
  display: none;
}
