/* Mokizen product page stylesheet — modelled on kaicam.css: dark, calm, one accent colour.
   Lives beside the vendored hero engine files in /mokizen/; do not rename those. */
:root {
  --bg: #04100f;
  --surface: #0b1c1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #9bb3b0;
  --teal: #3fe0c5;
  --brand-mark: var(--teal);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--text); text-decoration: none; }

.mk-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 24px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Inline text links in body copy */
.mk-prose a, .mk-card a.mk-text-link, .mk-note a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mk-prose a:hover, .mk-card a.mk-text-link:hover, .mk-note a:hover { text-decoration-thickness: 2px; }

/* Hero */
.mk-hero {
  position: relative;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.mk-hero-glow {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(63, 224, 197, 0.10) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.mk-hero .mk-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.mk-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line-bright);
  display: block;
}
.mk-hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  margin-bottom: 14px;
}
.mk-hero-subtitle {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--teal);
  margin-bottom: 22px;
}
.mk-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}
.mk-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--line-bright);
  transition: transform .15s ease, background .15s ease;
}
.mk-btn:hover, .mk-btn:focus-visible { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.mk-btn--primary { background: var(--teal); border-color: var(--teal); color: #03211d; }
.mk-btn--primary:hover, .mk-btn--primary:focus-visible { background: #6df0da; }
.mk-note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.mk-note + .mk-note { margin-top: 6px; }

/* Screens */
.mk-visual { position: relative; padding-bottom: 40px; }
.mk-desktop {
  border-radius: 14px;
  background: #0a0f0f;
  border: 1px solid var(--line-bright);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.mk-desktop-bar { display: flex; gap: 6px; padding: 10px 12px; background: #101a19; border-bottom: 1px solid var(--line); }
.mk-desktop-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mk-desktop img { display: block; width: 100%; height: auto; }
.mk-phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 26%;
  min-width: 96px;
  border-radius: 1.6rem;
  padding: 4px;
  background: #111;
  box-shadow: inset 0 0 0 1px #333, 0 24px 50px rgba(0, 0, 0, 0.65);
}
.mk-phone img { display: block; width: 100%; height: auto; border-radius: calc(1.6rem - 4px); }

/* Sections */
.mk-section { padding: 90px 0; border-top: 1px solid var(--line); }
.mk-section h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.mk-section-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 680px; margin-bottom: 44px; }

.mk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mk-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mk-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color .3s;
}
.mk-card:hover { border-color: var(--line-bright); }
.mk-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--teal); }
.mk-card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.mk-card p + p { margin-top: 12px; }
.mk-card--accent {
  background: linear-gradient(145deg, var(--surface), rgba(63, 224, 197, 0.06));
  border-color: rgba(63, 224, 197, 0.22);
}

.mk-reads { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mk-reads li {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mk-reads a { color: var(--text); font-size: 18px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(63, 224, 197, 0.6); text-underline-offset: 4px; }
.mk-reads a:hover { text-decoration-color: var(--teal); }
.mk-reads span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.mk-footer p + p { margin-top: 6px; }
.mk-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 992px) {
  .mk-hero .mk-container { grid-template-columns: 1fr; text-align: center; }
  .mk-app-icon { margin-left: auto; margin-right: auto; }
  .mk-hero-lead { margin-left: auto; margin-right: auto; }
  .mk-actions { justify-content: center; }
  .mk-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mk-grid-2, .mk-reads { grid-template-columns: 1fr; }
  .mk-section { padding: 64px 0; }
  .mk-phone { right: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-btn, .mk-card { transition: none; }
  .mk-btn:hover, .mk-btn:focus-visible { transform: none; }
}

/* Japanese: break at phrase boundaries, not mid-word */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li, :lang(ja) span { word-break: auto-phrase; line-break: strict; }

/* Japanese: keep the brand stack first, then CJK fallbacks. */
body:lang(ja) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}
