/* Colours from design/game-style/tokens.json; same game style as the app: round, chunky, depth. */
:root {
  --page: #FFFFFF; --text: #2B3A44; --muted: #6F7E89; --border: #E3E8EC; --card: #FFFFFF;
  --primary: #0F9A8A; --primary-depth: #0B7468; --primary-soft: #D7F3EE; --primary-text: #0B6359;
  --board: #DFF4EF; --board-edge: #B5E3DA; --sun: #FFC933; --locked: #E5E9EC; --locked-icon: #A3AEB8;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #131F24; --text: #F1F7FB; --muted: #A0B0BA; --border: #37464F; --card: #131F24;
  --primary: #2BC2AD; --primary-depth: #1B8F80; --primary-soft: #173A3A; --primary-text: #5FE0CC;
  --board: #163339; --board-edge: #24494F; --locked: #37464F; --locked-icon: #6F808B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 18px/1.6 Nunito, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); font-weight: 800; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }

.top { display: flex; align-items: center; gap: 10px; padding: 20px 0; text-decoration: none; color: var(--text); }
.top img { width: 40px; }
.top span { font-weight: 900; font-size: 26px; }

.eyebrow { font-weight: 900; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-text); }

.pill {
  display: inline-block; padding: 14px 24px; border-radius: 16px; font-weight: 900; font-size: 16px;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  background: var(--locked); color: var(--locked-icon); border-bottom: 5px solid var(--border);
}

.card { background: var(--card); border: 2px solid var(--border); border-bottom-width: 5px; border-radius: 24px; padding: 24px; }

footer { border-top: 2px solid var(--border); margin-top: 64px; padding: 24px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Onepager */
.hero { display: grid; gap: 32px; align-items: center; padding-block: 24px 48px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); margin: 8px 0 16px; }
.hero p { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-art { position: relative; width: min(300px, 78%); margin: 0 auto; }
.hero-art .koma { position: absolute; width: 46%; left: -30%; bottom: -4%; }

/* A phone: the app's own screens and clips inside a rounded dark bezel. */
.phone { aspect-ratio: 1206 / 2622; border: 10px solid #1B2A33; border-radius: 46px; overflow: hidden; background: #1B2A33; box-shadow: 0 24px 48px rgba(27, 42, 51, .18); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; display: block; }

.shots { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 0 -16px; }
.shots figure { flex: 0 0 min(240px, 66vw); margin: 0; scroll-snap-align: center; }
.shots figcaption { text-align: center; font-weight: 800; color: var(--muted); margin-top: 14px; font-size: 16px; }
@media (min-width: 1000px) { .shots { justify-content: center; overflow: visible; } }
@media (min-width: 760px) { .hero { grid-template-columns: 1.2fr 1fr; } }

.band { background: var(--board); border-block: 2px solid var(--board-edge); padding: 56px 0; }
section h2 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 24px; }

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .phone { width: min(220px, 70%); margin: 0 auto 20px; border-width: 8px; border-radius: 36px; box-shadow: none; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }

.bots { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .bots { grid-template-columns: repeat(4, 1fr); } }
.bots .card { padding: 16px; text-align: center; }
.bots img { width: 120px; margin: 0 auto 8px; }
.bots .soon img { filter: grayscale(1); opacity: .55; }
.tag { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.split { padding-top: 56px; }
.split p { color: var(--muted); margin: 0 0 12px; max-width: 40em; }
.growth { display: grid; gap: 16px; margin: 24px 0 8px; max-width: 640px; }
.growth figure { margin: 0; }
.growth img { width: 100%; border-radius: 16px; }
.growth figcaption { margin-top: 6px; color: var(--muted); font-size: 15px; }
.growth b { color: var(--primary-text); font-weight: 900; margin-right: 6px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.langs span { padding: 6px 14px; border-radius: 12px; border: 2px solid var(--border); border-bottom-width: 4px; font-weight: 800; font-size: 15px; }

/* Theme and language switches, top right */
header.wrap { display: flex; align-items: center; justify-content: space-between; }
.switches { display: flex; gap: 8px; align-items: center; }
.theme-switch { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; cursor: pointer; color: var(--text); border-radius: 12px; border: 2px solid var(--border); border-bottom-width: 4px; }
.theme-switch:active, .lang-switch:active { border-bottom-width: 2px; transform: translateY(2px); }
.theme-switch svg { pointer-events: none; }
.theme-switch .sun, [data-theme="dark"] .theme-switch .moon { display: none; }
[data-theme="dark"] .theme-switch .sun { display: block; }
.lang-switch { padding: 8px 14px; border-radius: 12px; border: 2px solid var(--border); border-bottom-width: 4px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--text); }

/* Media that exists in a light and an evening version */
.dark-only { display: none !important; }
[data-theme="dark"] .dark-only { display: block !important; }
[data-theme="dark"] .light-only { display: none !important; }

/* Japanese: the app's rounded Japanese face, and line breaks between phrases */
:lang(ja) body, body:lang(ja) { font-family: "M PLUS Rounded 1c", Nunito, system-ui, sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) figcaption { word-break: auto-phrase; }
:lang(ja) .eyebrow, :lang(ja) .tag, :lang(ja) .pill { letter-spacing: .5px; }
[data-theme="dark"] .phone { border-color: #2E3C45; background: #2E3C45; box-shadow: 0 24px 48px rgba(0, 0, 0, .4); }
