/* rakugakibeast.com v2 — モダンゲームサイト × ラクガキ(ダーク地にチョーク/クレヨン)
   参考にした定石: フルビューポートのシネマティックヒーロー / 固定ガラスヘッダー /
   常時ウィッシュリストCTA / スクロールリビール / 大判メディア交互配置 /
   ライトボックス / ダーク基調に彩度の高い差し色。 */

/* テーマは <head> のインラインスクリプトが data-theme を確定させてから CSS が乗る。
   既定値をダークにしてあるので、JS が無い環境では従来どおりダークで完結する。 */
:root {
  color-scheme: dark;
  --bg: #14110e;
  --bg-raise: #1c1814;
  --bg-card: #211c17;
  --line: rgba(243, 236, 221, 0.14);
  --ink: #f3ecdd;
  --muted: #b6aa95;

  /* 固定ヘッダーのすりガラス */
  --glass: rgba(20, 17, 14, 0.55);
  --glass-solid: rgba(20, 17, 14, 0.86);
  /* モバイル nav のドロップダウン。半透明だと下の文字が透けて読めない */
  --nav-panel: #171310;
  /* シールの切り抜き縁。ボタンは両テーマとも白フチで浮かせる */
  --sticker-edge: #f3ecdd;
  /* 図版のマット。本編 UI が紙色なのでライトでは白フチだと地に溶けて消える。
     紙より一段濃い線に替えてスクショの輪郭を残す */
  --media-edge: #f3ecdd;
  /* ゴーストボタン等、地の上に薄く敷く面 */
  --tint-weak: rgba(243, 236, 221, 0.04);
  /* マーキーのチップ。本編コレクション画面の紙色を模しているので両テーマとも紙。
     ただしライトでは地とほぼ同色になるため、地より一段明るくして浮かせる */
  --chip-paper: #efe5d2;
  /* 影。明るいテーマで純黒を落とすと汚れに見えるので暖色に振る。
     hard = ぼかし 0 のシール状オフセット、drop/lift = 拡散する落ち影 */
  --shadow-hard: rgba(0, 0, 0, 0.5);
  --shadow-drop: rgba(0, 0, 0, 0.5);
  --shadow-lift: rgba(0, 0, 0, 0.45);
  /* 紙の粒子 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");

  /* 差し色はブランド色なので両テーマ共通 */
  --red: #ff5a3c;
  --red-button: #cf452f;
  --blue: #5b93ff;
  --gold: #ffb02e;
  --green: #7fc86a;
  --pink: #ff7ab0;
  /* 金や青の明るい差し色に乗せる文字。差し色自体が両テーマで同じ明るさなので、
     この色はテーマで反転させない。--bg を流用すると明るいテーマで白抜けする */
  --on-accent: #14110e;
  /* 逆に、差し色を「文字として地の上に置く」ときの色。上の5色はダークの地を
     前提に彩度を上げてあるので、紙の上ではどれも 3:1 を切って読めない
     (--gold は実測 1.7:1)。面や大見出しには元の色、小さな文字にはこちらを使う */
  --gold-ink: #ffb02e;
  --red-ink: #ff5a3c;
  --blue-ink: #5b93ff;
  --green-ink: #7fc86a;
  --bridge-arrow: #ffcf5b;
  --bridge-arrow-edge: #14110e;
  /* 金の細線・薄い面を rgba() で引くための三つ組。--gold-ink と同じ色で、
     グローや発光には使わない (あちらは両テーマとも明るい金のまま) */
  --gold-rgb: 255, 176, 46;

  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Inter", sans-serif;
  --measure: 72rem;
  --header-h: 4.25rem;
}

/* ライトテーマ。本編の UI が紙色なので、地を紙に寄せるとスクショと地続きになる */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6efe1;
  --bg-raise: #fffaf0;
  --bg-card: #fffdf6;
  --line: rgba(58, 44, 28, 0.18);
  --ink: #2b2319;
  --muted: #6d6152;

  --glass: rgba(246, 239, 225, 0.72);
  --glass-solid: rgba(246, 239, 225, 0.93);
  --nav-panel: #fffaf0;
  --sticker-edge: #fffdf6;
  --media-edge: #d5c8b2;
  --tint-weak: rgba(58, 44, 28, 0.05);
  --chip-paper: #fffdf6;
  --shadow-hard: rgba(120, 80, 40, 0.45);
  --shadow-drop: rgba(120, 95, 60, 0.28);
  --shadow-lift: rgba(120, 95, 60, 0.18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");

  /* いずれも紙 (#f6efe1) に対して 4.5:1 以上。色相はブランド色から動かしていない */
  --gold-ink: #8f5a06;
  --red-ink: #c02d12;
  --blue-ink: #2a62d6;
  --green-ink: #3d7a2c;
  --bridge-arrow: #8f5a06;
  --bridge-arrow-edge: #fffaf0;
  --gold-rgb: 143, 90, 6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--bg);
  /* 地の粒子。ダークでは黒板のチョーク粉、ライトでは紙の繊維 */
  background-image: var(--grain);
  line-height: 1.9;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }

/* Dela Gothic One は 400 の単一ウェイト。UA の h1-h3 bold 等が乗ると
   疑似ボールド合成で字がつぶれるため、display 書体は常に 400 で使う */
h1, h2, h3,
.brand, .header-cta, .cta, .hero-tagline, .section-title,
.feature-num, .trailer-frame p, .footer-brand, .notfound h1 {
  font-weight: 400;
}

.heading-phrase { display: inline-block; }
.word-keep { white-space: nowrap; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.6rem); }

::selection { background: var(--red); color: var(--on-accent); }

/* ───────── header (fixed glass) ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { background: var(--glass-solid); border-color: var(--line); }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; gap: 1.1rem;
}
.brand {
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem; flex: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand svg.brand-mark {
  width: 32px; height: 32px; flex: none;
  filter: drop-shadow(0 2px 5px var(--shadow-lift));
}
.site-nav {
  display: flex; align-items: center; gap: 1.25rem;
  margin-left: auto;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.lang-switch {
  border: 2px solid var(--line); border-radius: 999px;
  padding: 0.18em 0.85em; font-size: 0.82rem !important;
  color: var(--ink) !important;
}
.lang-switch:hover { border-color: var(--ink); }
.header-cta {
  flex: none;
  font-family: var(--font-display); font-size: 0.82rem;
  color: var(--on-accent) !important; background: var(--gold);
  text-decoration: none; border-radius: 999px;
  padding: 0.5em 1.15em;
  box-shadow: 0 2px 0 var(--shadow-hard);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nav-toggle {
  display: none;
  margin-left: auto; flex: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 2px solid var(--line); border-radius: 10px;
  color: var(--ink); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
/* テーマ切り替え。囲みボタンでヘッダーに常駐させると、押す頻度のわりに主張が強い。
   nav の中に入れて他のメニュー項目と同じ重みにする。切り替え先のアイコンを出す
   (ダーク表示中は太陽=これを押すとライトへ) */
.theme-toggle {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; border-radius: 0; padding: 0;
  color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.92rem;
  transition: color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; flex: none; }
/* 横並びのヘッダーは 6項目+EN で既に 1040px までしか収まらないので、
   デスクトップではアイコンだけ。ボタン名は aria-label が担う */
.theme-toggle-label { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme] .theme-toggle.is-manual .icon-sun,
:root[data-theme] .theme-toggle.is-manual .icon-moon { display: block; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ───────── hero (full viewport cinematic) ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}
/* 背後の色глow */
.hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -2;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(91, 147, 255, 0.16), transparent 70%),
    radial-gradient(40% 32% at 70% 26%, rgba(255, 90, 60, 0.15), transparent 70%),
    radial-gradient(30% 26% at 52% 60%, rgba(255, 176, 46, 0.10), transparent 70%);
}
/* 同じ強さのグローがライトでは紙のシミに見える。半分以下まで薄める */
:root[data-theme="light"] .hero::before {
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(91, 147, 255, 0.07), transparent 70%),
    radial-gradient(40% 32% at 70% 26%, rgba(255, 90, 60, 0.06), transparent 70%),
    radial-gradient(30% 26% at 52% 60%, rgba(255, 176, 46, 0.05), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(14rem, 30svh, 20rem); }
.hero-logo {
  width: min(640px, 82vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 34px var(--shadow-drop));
}
/* ロゴ画像のラテン副題 "RAKUGAKI BEAST" はクリーム (#f3ecdd) で焼き込まれていて、
   紙 (#f6efe1) の上では 1.03:1 = ほぼ見えない。画像なので CSS では色を変えられず、
   縁取りを足す手も試したが副題はスマホで高さ 5px しかなく潰れて効かなかった。
   副題ストリップだけを濃色に差し替えた同寸の派生アセットへ入れ替える
   (カタカナ・色帯・アルファは 1bit も変えていない。press kit 用の logo.png は原版のまま)。
   content: url() が効かない環境では従来どおり logo.png が出るだけで崩れはしない */
:root[data-theme="light"] .hero-logo {
  content: url("/assets/img/logo-light.png");
  filter: drop-shadow(0 8px 20px rgba(120, 95, 60, 0.2));
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 2.1rem);
  margin-top: 1.4rem; letter-spacing: 0.04em;
}
.hero-tagline span { display: inline-block; }
/* 差し色そのままだと紙の上で 2.6:1 / 2.7:1 しか出ず、大見出しの 3:1 にも届かない。
   ダークでは *-ink は元の差し色と同値なので見た目は変わらない */
.hero-tagline .accent-draw { color: var(--blue-ink); }
.hero-tagline .accent-battle { color: var(--red-ink); }
.hero-lede {
  max-width: 40em; margin: 1.2rem auto 0;
  color: var(--muted); font-size: 0.98rem; text-wrap: pretty;
}
.hero-cta-row {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.platform-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
/* 最下部の風景帯。クリーチャーは風景の住人であって
   主役の並びではないので、素材 (1920x370) を拡大しない高さに抑える。
   340px だと 1280 幅で 1.38 倍に引き伸ばされ、3体が主役級の大きさに戻る。
   上下のマスクで現在の背景色へ溶かし、明るい絵にはページ固有の地色を焼き込まない */
.hero-band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  pointer-events: none;
}
.hero-band img {
  display: block; width: 100%;
  /* 高さは「幅から決めて、上限だけ svh で抑える」。素材が 1920x370 の横長なので、
     高さを svh だけで決めると幅が狭い画面ほど object-fit: cover の拡大率が上がる。
     390px 幅では中央 36% を 2.8 倍に引き伸ばした帯になり、何の絵か分からなくなっていた。
     aspect-ratio で高さを幅に連動させると、狭い画面では絵の横幅がほぼそのまま収まる。
     上限の式は従来と同じなので、これが効く 1000px 前後より広い表示は今までと同じ見え方 */
  height: auto;
  aspect-ratio: 1500 / 370;
  max-height: clamp(150px, 26svh, 264px);
  object-fit: cover; object-position: 50% bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.75) 26%, black 42%, black 90%, rgba(0, 0, 0, 0.75) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.75) 26%, black 42%, black 90%, rgba(0, 0, 0, 0.75) 95%, transparent 100%);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 3;
  color: var(--ink); opacity: 0.75; font-size: 1.5rem; text-decoration: none;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ───────── CTA buttons ───────── */
.cta {
  font-family: var(--font-display); font-size: 1.02rem;
  background: var(--red); color: #fff;
  border: 3px solid var(--sticker-edge);
  border-radius: 14px;
  padding: 0.85em 1.9em;
  text-decoration: none; display: inline-block; position: relative;
  transform: rotate(-0.8deg);
  box-shadow: 0 6px 0 var(--shadow-hard), 0 14px 34px rgba(255, 90, 60, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover { color: #fff; transform: rotate(0.4deg) translateY(-2px); box-shadow: 0 8px 0 var(--shadow-hard), 0 18px 40px rgba(255, 90, 60, 0.32); }
.cta.is-soon { cursor: default; }
.cta .soon-badge {
  position: absolute; top: -1.15em; right: -1.2em;
  font-size: 0.6em; letter-spacing: 0.05em;
  background: var(--gold); color: var(--on-accent);
  border: 2px solid var(--on-accent); border-radius: 999px;
  padding: 0.3em 0.9em; transform: rotate(7deg);
  box-shadow: 0 3px 0 var(--shadow-hard);
}
.btn-ghost {
  font-weight: 800; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  border: 2.5px solid var(--line); border-radius: 12px;
  padding: 0.75em 1.5em; background: var(--tint-weak);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
/* 体験版は「いま押せる唯一のボタン」。ウィッシュリストが Coming Soon の間、
   ゴーストボタン群に埋もれさせず青で立てる */
.btn-demo {
  border-color: rgba(91, 147, 255, 0.55);
  background: rgba(91, 147, 255, 0.14);
  color: var(--ink);
}
.btn-demo:hover { border-color: var(--blue); background: rgba(91, 147, 255, 0.22); }
.btn-demo .btn-play { color: var(--blue-ink); margin-right: 0.5em; font-size: 0.85em; }

/* ───────── sections ───────── */
section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.28em;
  color: var(--gold-ink); text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.35;
  display: inline-block; position: relative; margin-top: 0.3rem;
}
.section-title::after {
  content: "";
  display: block; height: 12px; margin-top: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 2, 70 14, 110 8 S 190 4, 230 10 S 280 12, 297 6' fill='none' stroke='%23ff5a3c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left / min(280px, 90%) 100%;
}

/* リビール (JSで .in 付与) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── feature rows (大判交互) ───────── */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5rem); }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img {
  width: 100%; border-radius: 14px;
  border: 3px solid var(--media-edge);
  transform: rotate(-1deg);
  box-shadow: 0 18px 50px var(--shadow-drop);
}
.feature-row:nth-child(even) .feature-media img { transform: rotate(1deg); }
.feature-num {
  position: absolute; top: -1.1rem; left: -1.1rem; z-index: 2;
  font-family: var(--font-display); font-size: 1rem;
  width: 2.6em; height: 2.6em;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-accent); background: var(--gold);
  border: 3px solid var(--bg);
  border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%;
  box-shadow: 0 6px 18px var(--shadow-lift);
}
.feature-num.fn-blue { background: var(--blue); color: #fff; }
.feature-num.fn-gold { background: var(--gold); color: var(--on-accent); }
.feature-num.fn-red { background: var(--red); color: #fff; }
.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.45; margin-bottom: 0.7rem;
}
.feature-copy p { color: var(--muted); font-size: 0.98rem; }

/* サブ特徴 (小さめ2列) */
.subfeatures {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}
.subfeature {
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.subfeature h3 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.55rem; }
.subfeature .dot { width: 0.6em; height: 0.6em; flex: none; border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%; background: var(--green); }
.subfeature:nth-child(2) .dot { background: var(--pink); }
.subfeature p { color: var(--muted); font-size: 0.92rem; }

/* ───────── 体験版への誘導バンド ───────── */
.demo-invite {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-card);
  padding: clamp(1.7rem, 4.5vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
}
.demo-invite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 130% at 6% 0%, rgba(91, 147, 255, 0.20), transparent 72%),
    radial-gradient(40% 120% at 94% 100%, rgba(255, 122, 176, 0.14), transparent 72%);
}
.demo-invite > * { position: relative; }
.demo-invite .section-eyebrow { color: var(--blue-ink); }
.demo-invite h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.3vw, 2rem);
  line-height: 1.45; margin-top: 0.25rem;
}
.demo-invite p { color: var(--muted); margin-top: 0.85rem; max-width: 34em; text-wrap: pretty; }
.demo-points {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem;
  margin-top: 1rem; font-size: 0.9rem; font-weight: 700;
}
.demo-points li { display: flex; align-items: center; gap: 0.5rem; }
.demo-points li::before {
  content: ""; width: 0.6em; height: 0.6em; flex: none;
  border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%; background: var(--blue);
}
.demo-invite-action { display: grid; justify-items: center; gap: 0.75rem; }
.demo-invite-action .note { font-size: 0.78rem; color: var(--muted); text-align: center; }
/* --blue は明度が高く、白抜きだと Dela Gothic の太い縦画がにじむ。
   金の .header-cta と同じく地色に沈む濃色を乗せる */
.cta-demo, .cta-demo:hover {
  background: var(--blue);
  color: #0d1830;
  font-size: 1.12rem; padding: 0.95em 2.1em;
  box-shadow: 0 6px 0 var(--shadow-hard), 0 14px 34px rgba(91, 147, 255, 0.25);
  white-space: nowrap;
}
.cta-demo:hover { box-shadow: 0 8px 0 var(--shadow-hard), 0 18px 40px rgba(91, 147, 255, 0.34); }

/* ウィッシュリストが押せない間、実際に押せる唯一の CTA がゴーストボタンだと
   死んでいる赤スラブに負ける。同じ .cta 寸法の青スラブへ格上げして対にする */
.cta-play, .cta-play:hover {
  background: var(--blue);
  color: #0d1830;
  transform: rotate(0.8deg);
  box-shadow: 0 6px 0 var(--shadow-hard), 0 14px 34px rgba(91, 147, 255, 0.25);
}
.cta-play:hover { transform: rotate(-0.4deg) translateY(-2px); box-shadow: 0 8px 0 var(--shadow-hard), 0 18px 40px rgba(91, 147, 255, 0.34); }
.cta-play .btn-play { margin-right: 0.5em; font-size: 0.85em; }

/* ───────── FAQ ───────── */
.faq-list { display: grid; gap: 1rem; max-width: 52rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card); padding: clamp(1.1rem, 3vw, 1.6rem);
}
.faq-item h2 {
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.6;
  display: flex; gap: 0.65rem;
}
.faq-item h2 > span { min-width: 0; }
.faq-item h2::before { content: "Q."; color: var(--gold-ink); flex: none; }
.faq-item p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.faq-item p + p { margin-top: 0.7rem; }

/* ───────── creature marquee ───────── */
.marquee {
  margin-top: clamp(3.4rem, 7vw, 5rem);
  overflow: hidden; padding: 1.2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  --mq-gap: clamp(2.4rem, 6vw, 4.5rem);
  display: flex; gap: var(--mq-gap); width: max-content;
  animation: marquee 46s linear infinite;
}
/* チップは実機コレクション画面と同じ「属性色の淡い円の上にラクガキ」の見せ方。 */
.mq-chip {
  flex: none; width: clamp(62px, 8.4vw, 92px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgb(var(--mq-rgb) / 0.26), rgb(var(--mq-rgb) / 0.06) 68%),
    var(--chip-paper);
  box-shadow:
    inset 0 0 0 1px rgb(var(--mq-rgb) / 0.34),
    0 6px 16px var(--shadow-lift);
}
.mq-chip img { width: 90%; height: 90%; object-fit: contain; display: block; }
.mq-chip.e-fire  { --mq-rgb: 214 80 43; }
.mq-chip.e-ice   { --mq-rgb: 95 182 214; }
.mq-chip.e-water { --mq-rgb: 53 102 176; }
.mq-chip.e-light { --mq-rgb: 216 194 62; }
.mq-chip.e-dark  { --mq-rgb: 106 63 176; }
/* トラックは同じ並びを2周分持つ。半ギャップ分ずらさないと繋ぎ目で飛ぶ。 */
@keyframes marquee { to { transform: translateX(calc(-50% - var(--mq-gap) / 2)); } }

/* ───────── trailer slot ───────── */
.trailer-frame {
  position: relative; aspect-ratio: 16 / 9;
  border: 3px dashed var(--line); border-radius: 16px;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); background: var(--bg-raise);
}
.trailer-frame .play {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  border: 3px solid var(--muted); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
}
.trailer-frame p { font-family: var(--font-display); font-size: 1rem; }

/* ───────── gallery + lightbox ───────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.shot {
  display: block; padding: 0; cursor: zoom-in;
  border: 2.5px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.shot:hover { transform: translateY(-4px); border-color: var(--ink); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lightbox { border: none; border-radius: 14px; padding: 0; background: var(--bg); max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; display: block; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1rem; color: var(--muted); font-size: 0.9rem; }
.lightbox-close { background: none; border: 2px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.3em 1em; font: inherit; cursor: pointer; }
.lightbox-close:hover { border-color: var(--ink); }

/* ───────── news ───────── */
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.news-card {
  display: block; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem 1.3rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.news-date {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--on-accent); background: var(--gold);
  border-radius: 999px; padding: 0.1em 0.75em; margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.news-card h3 { color: var(--ink); font-size: 1.02rem; font-weight: 700; line-height: 1.6; }
.news-more { margin-top: 1.2rem; font-weight: 700; }

/* ───────── release table ───────── */
.release-table { border-collapse: collapse; min-width: min(36rem, 100%); }
.release-table th, .release-table td {
  text-align: left; padding: 0.6rem 1.2rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem; vertical-align: top;
}
.release-table th { color: var(--muted); font-weight: 800; white-space: nowrap; }

/* ───────── article / press / contact ───────── */
.page-main { padding-top: var(--header-h); }
.article { max-width: 47em; }
.article h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 2.6rem 0 0.7rem; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--muted); }
.article p + p { margin-top: 0.9em; }
.article .news-date { margin-bottom: 0.8rem; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.press-grid figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.press-grid figcaption { font-size: 0.8rem; font-weight: 700; padding: 0.5em 0.9em; border-top: 1px solid var(--line); color: var(--muted); }

/* contact form */
.contact-form { max-width: 40em; display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
.contact-form .req { color: var(--red-ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink);
  background: var(--bg-card);
  border: 2px solid var(--line); border-radius: 10px;
  padding: 0.65em 0.9em;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue);
}
.contact-form textarea { min-height: 10em; resize: vertical; }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button {
  justify-self: start; cursor: pointer;
  font-family: var(--font-display); font-size: 0.98rem;
  color: #fff; background: var(--red);
  border: 3px solid var(--sticker-edge); border-radius: 12px;
  padding: 0.75em 1.9em;
  box-shadow: 0 5px 0 var(--shadow-hard);
  transition: transform 0.12s ease;
}
.contact-form button:hover { transform: translateY(-2px); }
.contact-form button:disabled { opacity: 0.6; transform: none; cursor: wait; }
.form-status { font-weight: 700; }
.form-status.ok { color: var(--green-ink); }
.form-status.err { color: var(--red-ink); }
.contact-note { color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }

/* ───────── footer ───────── */
.footer-cta {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 90, 60, 0.10), transparent 70%);
}
.footer-cta h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.4rem); margin-bottom: 1.6rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-cols { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer-brand { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: 0.9rem; font-weight: 700; }
.footer-nav a[aria-current="page"] { color: var(--ink); }
.footer-note { margin-top: 1.5rem; font-size: 0.78rem; }

/* ───────── legal pages ───────── */
.legal-article { max-width: 52rem; }
.legal-article h2 { margin-top: 2.8rem; color: var(--ink); font-size: 1.25rem; }
.legal-article h2 + p { margin-top: 0.75rem; }
.legal-article p + p { margin-top: 0.9rem; }
.draft-note {
  margin-top: 1.5rem;
  border: 1px dashed rgba(var(--gold-rgb), 0.65);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.08);
  font-weight: 700;
}
.legal-updated { margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }

/* ───────── misc ───────── */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6em 1em; z-index: 60; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.notfound { text-align: center; padding: 8rem 1rem 6rem; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 5rem); }
.notfound p { margin-top: 1rem; color: var(--muted); }

@media (max-width: 900px) {
  .demo-invite { grid-template-columns: 1fr; }
  .demo-invite-action { justify-items: start; }
  .cta-demo { white-space: normal; }
}

/* ヘッダーだけ先にたたむ。項目6つ+EN+CTA は実測 1000px で余白 18px、
   970px で 13px はみ出して EN ピルが CTA の下に潜る。.site-nav は
   overflow-x が無音でスクロールするため欠けても気付けない。余裕を見て 1040px */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  /* モバイルnav: ヘッダー下のドロップダウンパネル (toggleで開閉)。
     header 自体が backdrop-filter で containing block になるため、
     fixed ではなく header 基準の absolute で全幅に張る */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0.3rem 1.4rem 1.1rem;
    background: var(--nav-panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px var(--shadow-drop);
    white-space: normal; overflow: visible;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    font-size: 1.02rem; padding: 0.8em 0.2em;
    border-bottom: 1px dashed var(--line);
  }
  .site-nav a.lang-switch {
    align-self: flex-start; margin-top: 0.8rem;
    padding: 0.3em 1.1em; border-bottom: none;
  }
  /* ドロワーの中では他のリンクと同じ一行として並べる。ここだけ文字ラベルも出す */
  .theme-toggle {
    width: 100%; justify-content: flex-start;
    font-size: 1.02rem; padding: 0.8em 0.2em;
    border-bottom: 1px dashed var(--line);
  }
  .theme-toggle .label-to-light { display: inline; }
  :root[data-theme="light"] .theme-toggle .label-to-light { display: none; }
  :root[data-theme="light"] .theme-toggle .label-to-dark { display: inline; }
}

@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-num { top: -0.9rem; left: 0.4rem; }
  /* 帯が絵の比率どおりに薄くなるぶん、それをよけるための下余白も詰める */
  .hero-inner { padding-bottom: clamp(7rem, 16svh, 10rem); }
  /* 縦積みでは幅がバラバラだと段違いに見える。同幅で中央に揃える */
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row > .cta { width: min(100%, 21rem); text-align: center; }
  .platform-note span { white-space: nowrap; display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue { animation: none; }
  .cta, .btn-ghost, .shot, .news-card, .header-cta { transition: none; }
}

/* ───────── 2026-07-26 design reset ─────────
   The site now leads with the game's cause-and-effect: a real doodle becomes
   a readable beast record. This layer replaces the old logo-first cinematic
   composition and gives every page one editorial paper-and-ink system. */

body {
  line-height: 1.78;
  letter-spacing: 0.012em;
}

.wrap {
  max-width: 76rem;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.site-header {
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 10px 34px var(--shadow-lift);
}

.site-header .wrap { gap: clamp(0.85rem, 2vw, 1.4rem); }

.brand {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.brand svg.brand-mark {
  width: 29px;
  height: 29px;
  filter: none;
}

.site-nav { gap: clamp(0.8rem, 1.55vw, 1.2rem); }
.site-nav a,
.theme-toggle { font-size: 0.88rem; }

.lang-switch {
  border-width: 1px;
  border-radius: 4px;
  padding: 0.22em 0.72em;
}

.header-cta {
  border-radius: 4px;
  padding: 0.54em 1em;
  box-shadow: 3px 3px 0 var(--shadow-hard);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-width: 1px;
  border-radius: 4px;
}

/* Hero: one continuous illustrated stage, not a text panel plus a detached band. */
.hero {
  position: relative;
  min-height: 0;
  padding: calc(var(--header-h) + clamp(1rem, 2.4vw, 1.7rem)) 0 clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, 0.91) 0%, rgba(20, 17, 14, 0.78) 38%, rgba(20, 17, 14, 0.3) 70%, rgba(20, 17, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 17, 14, 0.4), transparent 42%);
}

:root[data-theme="light"] .hero::before {
  background:
    linear-gradient(90deg, rgba(246, 239, 225, 0.93) 0%, rgba(246, 239, 225, 0.83) 38%, rgba(246, 239, 225, 0.32) 70%, rgba(246, 239, 225, 0.12) 100%),
    linear-gradient(0deg, rgba(246, 239, 225, 0.32), transparent 42%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.86) brightness(0.84);
  transform: scale(1.01);
}

:root[data-theme="light"] .hero-scene {
  filter: saturate(0.9) brightness(1.01);
}

.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21.5rem);
  grid-template-areas:
    "copy actions"
    "demo demo";
  align-items: end;
  gap: clamp(1.2rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.75rem);
}

.hero-copy { grid-area: copy; align-self: end; }

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.hero-copy h1 {
  margin-top: 0.7rem;
  max-width: 9.4em;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="ja"] .hero-copy h1 span {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy h1 span {
  color: var(--blue-ink);
  text-shadow: 0 2px 18px rgba(91, 147, 255, 0.18);
}

.hero-lede {
  max-width: 34em;
  margin: 1.15rem 0 0;
  color: var(--ink);
  font-size: clamp(0.94rem, 1.2vw, 1.04rem);
  line-height: 1.82;
  text-wrap: pretty;
}

.hero-actions {
  grid-area: actions;
  align-self: end;
  justify-self: end;
  margin-top: 0;
}

.hero .hero-cta-row {
  width: min(100%, 21.5rem);
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 0.7rem;
  margin: 0;
}

.hero .hero-cta-row > .cta { width: 100%; }

.hero .platform-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.78rem;
  opacity: 0.78;
}

.hero .platform-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero .platform-note span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
  border-radius: 50%;
}

.birth-demo {
  grid-area: demo;
  min-width: 0;
  margin: 0;
}

.birth-comparison {
  margin: 0;
}

.birth-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3.4rem, 5vw, 4.6rem) minmax(0, 1fr);
  align-items: center;
  filter: drop-shadow(0 18px 30px rgba(20, 17, 14, 0.24));
}

.doodle-sheet,
.result-overview {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #2b2319;
  background-color: #fffaf0;
  background-image:
    linear-gradient(rgba(90, 70, 44, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 70, 44, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 2px solid #5b4631;
  border-radius: 3px;
  box-shadow: 7px 8px 0 rgba(46, 35, 24, 0.28);
}

.doodle-sheet {
  padding: 0.9rem;
  display: grid;
  place-items: center;
  transform: rotate(-0.4deg);
}

.birth-step {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.birth-step span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  color: #fffaf0;
  background: #2b2319;
  border-radius: 50%;
  font-size: 0.66rem;
}

.doodle-sheet img {
  width: 66%;
  max-width: none;
  image-rendering: auto;
}

.sheet-note {
  position: absolute;
  inset: auto 0 0.75rem;
  color: #766550;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.birth-bridge {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-inline: -0.35rem;
  color: var(--ink);
}

.birth-bridge span {
  width: max-content;
  max-width: 10rem;
  padding: 0.28rem 0.5rem;
  color: #2b2319;
  background: #ffcf5b;
  border: 1px solid #2b2319;
  box-shadow: 2px 2px 0 rgba(43, 35, 25, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: rotate(1deg);
}

.birth-bridge span > b {
  display: inline-block;
  font: inherit;
  white-space: nowrap;
}

.birth-bridge i {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bridge-arrow);
  box-shadow:
    0 -1px 0 var(--bridge-arrow-edge),
    0 1px 0 var(--bridge-arrow-edge),
    0 2px 5px rgba(0, 0, 0, 0.42);
  transform: rotate(-2deg);
}

.birth-bridge i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 4px solid var(--bridge-arrow);
  border-right: 4px solid var(--bridge-arrow);
  filter:
    drop-shadow(1px 0 0 var(--bridge-arrow-edge))
    drop-shadow(0 -1px 0 var(--bridge-arrow-edge))
    drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.42));
  transform: translateY(-50%) rotate(45deg);
}

.result-overview {
  display: block;
  width: 100%;
  padding: 0.42rem;
  font: inherit;
  text-align: initial;
  cursor: zoom-in;
  appearance: none;
  background-image: none;
  transform: rotate(0.4deg);
}

.result-overview.shot {
  border: 2px solid #5b4631;
  border-radius: 3px;
  background-color: #fffaf0;
  box-shadow: 7px 8px 0 rgba(46, 35, 24, 0.28);
}

.result-overview.shot:hover {
  border-color: #5b4631;
  transform: translateY(-2px) rotate(0.4deg);
}

.result-overview.shot:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 4px;
}

.doodle-sheet .birth-step,
.result-overview .birth-step {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.5rem;
  background: #fffaf0;
  border: 1px solid #5b4631;
  box-shadow: 2px 2px 0 rgba(43, 35, 25, 0.3);
}

.result-overview-frame,
.result-overview-frame picture,
.result-overview-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.result-overview-frame {
  overflow: hidden;
  background: #f7e7c5;
  border: 1px solid rgba(76, 56, 36, 0.55);
}

.result-overview-frame img {
  object-fit: contain;
}

.result-next {
  position: relative;
  min-width: 0;
  width: min(100%, 40rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
  margin: clamp(1.2rem, 2.8vw, 2rem) auto 0;
  transform: rotate(-0.25deg);
}

.result-next-label {
  position: absolute;
  top: -0.55rem;
  left: 0.65rem;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0.25rem 0.6rem;
  color: #2b2319;
  background: #ffcf5b;
  border: 1px solid #5b4631;
  box-shadow: 2px 2px 0 rgba(46, 35, 24, 0.28);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-1deg);
}

.result-next figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 2.08 / 1;
  margin: 0;
  padding: 0.42rem;
  overflow: hidden;
  background: #fffaf0;
  border: 2px solid #5b4631;
  box-shadow: 3px 3px 0 rgba(46, 35, 24, 0.28);
}

.result-next img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.result-next figcaption {
  position: absolute;
  inset: auto 0.42rem 0.42rem;
  margin: 0;
  padding: 1rem 0.45rem 0.28rem;
  color: #fffaf0;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 14, 0.9));
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 1px 2px #14110e;
}

.birth-comparison > figcaption {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-shadow: 0 1px 10px var(--bg);
}

/* Buttons: squared paper labels with deliberate hierarchy. */
.cta {
  min-height: 3.25rem;
  padding: 0.78em 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 2px;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.35;
  transform: none;
  background: var(--red-button);
  box-shadow: 4px 5px 0 var(--shadow-hard);
}

.cta:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 7px 0 var(--shadow-hard);
}

.cta .soon-badge {
  position: static;
  flex: 0 0 auto;
  margin-left: 0.55rem;
  border-width: 1px;
  border-radius: 3px;
  box-shadow: 2px 2px 0 var(--shadow-hard);
  font-size: 0.75rem;
  line-height: 1.2;
  transform: rotate(2deg);
}

.cta.is-soon {
  gap: 0.35rem;
  color: #fff;
  background: var(--red-button);
  opacity: 0.88;
}

.cta-play,
.cta-play:hover {
  color: #0d1830;
  background: #6aa1ff;
  transform: none;
  box-shadow: 4px 5px 0 var(--shadow-hard);
}

.cta-play:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 7px 0 var(--shadow-hard);
}

.cta-play small {
  margin-left: 0.45rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(13, 24, 48, 0.38);
  font: inherit;
  font-size: 0.75rem;
}

.cta-play .btn-play { font-size: 0.75rem; }

.btn-ghost {
  border-radius: 3px;
  background: transparent;
}

/* Editorial section rhythm shared by the landing and inner pages. */
section {
  padding: clamp(4.8rem, 9vw, 7.5rem) 0;
}

.hero + .marquee { margin-top: 0; }

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }

.section-eyebrow {
  color: var(--gold-ink);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.section-title {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-title::after {
  width: clamp(5rem, 18vw, 10rem);
  height: 4px;
  margin-top: 0.35em;
  background: var(--red);
  transform: rotate(-1deg);
}

#about {
  position: relative;
  background: color-mix(in srgb, var(--bg-raise) 42%, transparent);
  border-bottom: 1px solid var(--line);
}

.feature-row {
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.feature-row + .feature-row { margin-top: clamp(4.5rem, 10vw, 8.5rem); }

.feature-media {
  padding: clamp(0.45rem, 1vw, 0.75rem);
  background: var(--media-edge);
  box-shadow: 0 22px 52px var(--shadow-drop);
}

.feature-media img,
.feature-row:nth-child(even) .feature-media img {
  border: 0;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.feature-num {
  top: -1.1rem;
  left: -0.7rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-size: 0.9rem;
  box-shadow: 4px 5px 0 var(--shadow-hard);
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.feature-copy p {
  max-width: 35em;
  color: var(--muted);
  font-size: 1rem;
}

.subfeatures {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subfeature {
  padding: 1.5rem clamp(0.5rem, 3vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.subfeature + .subfeature { border-left: 1px solid var(--line); }

.subfeature h3 { font-size: 0.98rem; }

.demo-invite {
  border: 1px solid rgba(243, 236, 221, 0.22);
  border-radius: 4px;
  color: #f3ecdd;
  background:
    linear-gradient(120deg, rgba(91, 147, 255, 0.16), transparent 44%),
    #17202b;
  box-shadow: 8px 10px 0 var(--shadow-hard);
}

.demo-invite::before {
  background:
    linear-gradient(105deg, transparent 0 72%, rgba(255, 176, 46, 0.11) 72% 73%, transparent 73%),
    radial-gradient(40% 120% at 96% 100%, rgba(255, 122, 176, 0.14), transparent 72%);
}

.demo-invite h2,
.demo-invite .section-eyebrow { color: #f3ecdd; }
.demo-invite p,
.demo-invite .note { color: #c5bdad; }
.demo-points { color: #f3ecdd; }

.cta-demo,
.cta-demo:hover {
  color: #0d1830;
  background: #6aa1ff;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.65);
}

.living-proof {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.living-proof-frame {
  display: grid;
  grid-template-columns: minmax(24rem, 0.95fr) minmax(0, 1.05fr);
  min-height: 0;
  overflow: hidden;
  border: clamp(0.45rem, 1vw, 0.75rem) solid var(--media-edge);
  background: var(--bg-card);
  box-shadow: 0 26px 62px var(--shadow-drop);
}

.living-proof-frame::after {
  content: none;
}

.living-proof-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(91, 147, 255, 0.08), transparent 45%),
    var(--bg-card);
  border-right: 1px solid var(--line);
}

.living-proof-copy .section-eyebrow { color: var(--gold-ink); }

.living-proof-copy h2 {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.living-proof-copy p:last-child {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.living-proof-media {
  min-width: 0;
  margin: 0;
  padding: clamp(0.55rem, 1vw, 0.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2b2319;
  background: var(--media-edge);
}

.living-proof-media img {
  width: 100%;
  aspect-ratio: 1120 / 600;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(43, 35, 25, 0.42);
}

.living-proof-media figcaption {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.65rem 0.35rem 0.1rem;
  color: #5d4a35;
  font-size: 0.75rem;
  line-height: 1.5;
}

.living-proof-media figcaption span {
  flex: 0 0 auto;
  color: #2b2319;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.marquee {
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
  border-color: var(--line);
}

.mq-chip {
  width: clamp(56px, 7vw, 78px);
  border-radius: 4px;
  transform: rotate(-2deg);
}

.mq-chip:nth-child(even) { transform: rotate(2deg); }

.gallery { gap: clamp(0.8rem, 2vw, 1.4rem); }

.shot {
  border: clamp(0.3rem, 0.7vw, 0.5rem) solid var(--media-edge);
  border-radius: 0;
  box-shadow: 0 12px 32px var(--shadow-drop);
}

.shot:hover {
  transform: translateY(-3px) rotate(-0.25deg);
  border-color: var(--media-edge);
}

.news-card,
.faq-item,
.press-grid figure {
  border-radius: 3px;
  box-shadow: 4px 5px 0 var(--shadow-lift);
}

.news-date { border-radius: 3px; }

.release-table { width: min(42rem, 100%); }

.release-table th,
.release-table td {
  padding-block: 0.8rem;
  border-color: var(--line);
}

.page-main {
  min-height: calc(100svh - var(--header-h));
  padding-top: var(--header-h);
}

.page-main > section {
  position: relative;
}

.page-main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(10rem, 28vw, 24rem);
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(91, 147, 255, 0.08), transparent 48%),
    linear-gradient(250deg, rgba(255, 176, 46, 0.07), transparent 44%);
  border-bottom: 1px solid var(--line);
}

.article { max-width: 52em; }
.article p { color: var(--muted); }

.article h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.article .draft-note {
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.08);
}

.press-grid figure {
  border-color: var(--line);
  background: var(--bg-card);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 3px;
}

.contact-form button {
  border-radius: 3px;
  background: var(--red-button);
  box-shadow: 4px 5px 0 var(--shadow-hard);
}

.footer-cta {
  margin-top: 0;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    linear-gradient(115deg, rgba(255, 90, 60, 0.08), transparent 50%),
    color-mix(in srgb, var(--bg-raise) 55%, transparent);
}

.site-footer {
  background: color-mix(in srgb, var(--bg-card) 68%, transparent);
}

.footer-brand { font-size: 1.05rem; }

@media (max-width: 1040px) {
  .site-header .wrap { padding-inline: 1rem; }

  .site-nav {
    padding: 0.35rem 1rem 1.2rem;
    background: var(--nav-panel);
    box-shadow: 0 18px 34px var(--shadow-drop);
  }

  .site-nav a,
  .theme-toggle { font-size: 0.96rem; }
}

@media (max-width: 1040px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 0.8rem);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 17, 14, 0.78) 0%, rgba(20, 17, 14, 0.66) 48%, rgba(20, 17, 14, 0.54) 100%);
  }

  :root[data-theme="light"] .hero::before {
    background:
      linear-gradient(180deg, rgba(246, 239, 225, 0.94) 0%, rgba(246, 239, 225, 0.76) 48%, rgba(246, 239, 225, 0.52) 100%);
  }

  .hero-scene {
    object-position: 60% center;
    filter: saturate(0.86) brightness(0.82);
  }

  :root[data-theme="light"] .hero-scene {
    filter: saturate(0.84) brightness(1.02);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "actions"
      "demo";
    gap: 0;
  }

  .hero-copy { max-width: 36rem; }
  .hero-copy h1 { max-width: 11em; }

  .birth-demo {
    width: min(100%, 64rem);
    margin: 1.4rem auto 0;
  }

  .hero-actions {
    justify-self: start;
    margin-top: 1.4rem;
  }
}

@media (max-width: 760px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-row:nth-child(even) .feature-copy { order: 1; }

  .subfeatures { display: block; }
  .subfeature + .subfeature {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .living-proof-frame { grid-template-columns: 1fr; }

  .living-proof-copy {
    padding: clamp(1.6rem, 7vw, 2.5rem);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  body { font-size: 0.96rem; }

  .brand {
    max-width: calc(100vw - 5.4rem);
    font-size: 0.83rem;
  }

  .brand svg.brand-mark {
    width: 26px;
    height: 26px;
  }

  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 0.7rem) 0 0.65rem;
  }

  .hero-copy h1 {
    margin-top: 0.35rem;
    font-size: clamp(2rem, 10.6vw, 2.55rem);
    line-height: 1.12;
  }

  html[lang="en"] .hero-copy h1 {
    font-size: clamp(2rem, 9.2vw, 2.25rem);
  }

  .hero-kicker { font-size: 0.75rem; }

  .hero-lede {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.62;
  }

  .birth-demo { margin-top: 0.5rem; }

  .birth-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    filter: drop-shadow(0 8px 14px rgba(20, 17, 14, 0.22));
  }

  .doodle-sheet {
    padding: 0.5rem 0.65rem;
    box-shadow: 4px 5px 0 rgba(46, 35, 24, 0.25);
    transform: rotate(-0.3deg);
  }

  .birth-step {
    gap: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .birth-step span {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
  }

  .sheet-note {
    inset: auto 0 0.55rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .birth-bridge {
    min-height: 2.8rem;
    margin: -0.1rem 0;
    gap: 0.15rem;
  }

  .birth-bridge span {
    position: static;
    width: auto;
    max-width: none;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
  }

  .birth-bridge i {
    width: 4px;
    height: 1.15rem;
    transform: none;
  }

  .birth-bridge i::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    width: 0.65rem;
    height: 0.65rem;
    border-width: 0 4px 4px 0;
    transform: translateX(50%) rotate(45deg);
  }

  .result-overview {
    padding: 0.28rem;
    transform: rotate(0.3deg);
  }

  .result-overview.shot {
    box-shadow: 4px 5px 0 rgba(46, 35, 24, 0.25);
  }

  .doodle-sheet .birth-step,
  .result-overview .birth-step {
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.2rem 0.35rem;
  }

  .result-next { gap: 0.3rem; }

  .result-next figure { padding: 0.28rem; }

  .result-next-label {
    top: -0.45rem;
    left: 0.45rem;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0;
  }

  .result-next figcaption {
    inset: auto 0.28rem 0.28rem;
    padding: 0.85rem 0.3rem 0.22rem;
    line-height: 1.2;
  }

  .birth-comparison > figcaption {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .hero-actions {
    width: 100%;
    justify-self: stretch;
    margin-top: 0.75rem;
  }

  .hero .hero-cta-row {
    width: 100%;
    gap: 0.55rem;
    display: grid;
    align-items: stretch;
  }

  .hero .hero-cta-row > .cta {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.66em 0.75em;
    font-size: 0.76rem;
  }

  .hero .platform-note {
    justify-content: center;
    gap: 0.2rem 0.8rem;
    margin-top: 0.6rem;
    font-size: 0.75rem;
  }

  section { padding-block: 4.25rem; }

  .section-title { font-size: clamp(1.75rem, 9vw, 2.4rem); }

  .feature-copy h3 { font-size: 1.4rem; }

  .demo-invite {
    padding: 1.35rem;
    box-shadow: 5px 6px 0 var(--shadow-hard);
  }

  .living-proof-frame { min-height: 0; }
  .living-proof-copy h2 { font-size: 2rem; }
  .living-proof-copy p:last-child { font-size: 0.82rem; }
  .living-proof-media figcaption {
    display: block;
    font-size: 0.75rem;
  }
  .living-proof-media figcaption span {
    display: block;
    margin-bottom: 0.15rem;
  }

  .gallery { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (max-width: 520px) {
  .hero-lede { display: none; }
  .hero-copy h1 { font-size: 2rem; }
  .birth-demo { margin-top: 0.5rem; }
  .hero-actions { margin-top: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene { transform: none; }
}
