/* ClimbCoach website — static, system fonts only, no external requests. */

:root {
  --bg: #0b0f17;
  --bg-2: #111827;
  --card: #151c2b;
  --card-2: #1a2336;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef2f8;
  --ink-soft: #a8b3c7;
  --ink-mute: #7d889c;
  --blue: #3b82ff;
  --cyan: #2fd3f0;
  --grad: linear-gradient(120deg, #3b82ff 0%, #2fd3f0 100%);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --container: 1120px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* Language: Japanese is the default markup; JS sets data-lang. */
html[data-lang="ja"] [data-l="en"], html[data-lang="en"] [data-l="ja"] { display: none !important; }
html[data-lang="en"] body { line-height: 1.65; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--card-2); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-icon { width: 34px; height: 34px; border-radius: 22%; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.lang-switch:hover { border-color: rgba(255, 255, 255, 0.25); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; text-align: center;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--grad); color: #04121c; }
.btn-outline { border-color: rgba(255, 255, 255, 0.28); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.5); }

/* Hero: original board illustration, darkened so the app UI stays the focus */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/board.svg") center / cover no-repeat;
  transform: scale(1.04); filter: saturate(0.9) brightness(1.25);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 15, 23, 0.9) 0%, rgba(11, 15, 23, 0.62) 45%, rgba(11, 15, 23, 0.32) 100%),
    linear-gradient(180deg, rgba(11, 15, 23, 0) 60%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 96px; }
.eyebrow { font-size: 0.85rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.06em; margin-bottom: 14px; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: 0.005em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 22px; font-size: 1.04rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 0.84rem; color: var(--ink-mute); }

/* Phone mockups */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; }
.phone {
  margin: 0; position: relative; width: 232px; aspect-ratio: 9 / 19.5;
  border-radius: 40px; padding: 9px; background: #05070b;
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone::before {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 21px; border-radius: 12px; background: #000; z-index: 2;
}
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #f2f2f7; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-center { z-index: 2; }
.phone-side { width: 196px; opacity: 0.92; }
.phone-left { margin-right: -36px; transform: translateY(26px) rotate(-4deg); }
.phone-right { margin-left: -36px; transform: translateY(26px) rotate(4deg); }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
.section-head::after { content: ""; display: block; width: 52px; height: 3px; margin: 18px auto 0; border-radius: 2px; background: var(--grad); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Value */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 26px 24px; }
.value h3 { font-size: 1.06rem; font-weight: 800; }
.value p { margin-top: 10px; color: var(--ink-soft); font-size: 0.94rem; }
.value-num { display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; margin-bottom: 8px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 26px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start; }
.feature-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(59, 130, 255, 0.14); color: var(--cyan); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.04rem; font-weight: 800; }
.feature p { color: var(--ink-soft); font-size: 0.93rem; }
.also-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.also-list li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.88rem; color: var(--ink-soft); }
.fine-print { margin-top: 18px; text-align: center; font-size: 0.82rem; color: var(--ink-mute); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.step-phone { flex: 0 0 104px; aspect-ratio: 9 / 19.5; border-radius: 20px; border: 5px solid #05070b; overflow: hidden; background: #f2f2f7; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.step-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #04121c; font-weight: 800; font-size: 0.82rem; margin-bottom: 10px; }
.step h3 { font-size: 1.02rem; font-weight: 800; }
.step p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }

/* Beta */
.beta-card { padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  background: radial-gradient(600px 260px at 100% 0%, rgba(47, 211, 240, 0.14), transparent 70%), var(--card); }
.beta-icon { width: 104px; height: 104px; border-radius: 22%; box-shadow: var(--shadow); }
.beta-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; }
.beta-copy > p { margin-top: 12px; color: var(--ink-soft); }
.req-list { margin: 18px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 0.93rem; }
.req-list li + li { margin-top: 4px; }
.beta-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.beta-note { font-size: 0.84rem; color: var(--ink-mute); }

/* Contact */
.contact { padding: 32px; text-align: center; }
.contact p { color: var(--ink-soft); }
.mail { display: inline-block; margin-top: 14px; font-size: 1.08rem; font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-mute); font-size: 0.86rem; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 22%; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--ink-soft); }

/* Privacy page */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 800; }
.legal .meta { margin-top: 12px; color: var(--ink-mute); font-size: 0.9rem; }
.legal h2 { margin-top: 40px; padding-top: 8px; font-size: 1.18rem; font-weight: 800; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 20px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
.legal .notice { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); }
.toc { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { color: var(--ink); }
.back-link { display: inline-block; margin-top: 40px; }

/* Tablet */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 64px; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-inner { gap: 36px; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 15, 23, 0.86) 0%, rgba(11, 15, 23, 0.6) 55%, var(--bg) 100%); }
  .hero-actions .btn { width: 100%; }
  .phone { width: 196px; border-radius: 34px; padding: 8px; }
  .phone .screen { border-radius: 27px; }
  .phone::before { top: 14px; width: 60px; height: 18px; }
  .phone-side { display: none; }
  .step { padding: 18px; }
  .step-phone { flex-basis: 84px; border-width: 4px; border-radius: 16px; }
  .beta-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .beta-icon { width: 80px; height: 80px; }
  .beta-actions .btn { width: 100%; }
  .contact { padding: 26px 20px; }
  .toc ol { columns: 1; }
  .legal { padding-top: 40px; }
}
