/* Runclip web: monochrome + Hyper Blue, photo-first editorial.
   Keep source assets flat: web/legal/build.sh copies assets/* into the build. */
:root {
  --bg: #ffffff; --ink: #14161c; --ink-soft: #39404e; --muted: #58616f;
  --blue: #2b6bff; --blue-ink: #2056cf; --blue-soft: #edf3ff;
  --line: #e3e7ee; --panel: #f5f7fa; --btn: #16181f; --on-media: #ffffff;
  --canvas: #11141a; --canvas-line: #303742; --canvas-muted: #b4bdcc;
  --f: -apple-system, system-ui, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --radius: 12px; --ease: cubic-bezier(.2,.7,.3,1); --micro: 160ms; --normal: 260ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--f); letter-spacing: -.025em; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
button,a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: var(--blue); color: var(--on-media); }
.wrap { max-width: 1248px; padding-inline: var(--space-6); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { width: 118px; height: auto; }
.nav-r { display: flex; align-items: center; gap: 28px; }
.navlink { font-size: .875rem; font-weight: 650; padding-block: 12px; }
.navlink:hover { color: var(--blue-ink); }
.dl { display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--ink); color: var(--on-media); border-radius: var(--radius); font-size: .875rem; font-weight: 650; }
.dl:hover { background: var(--blue-ink); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-8); padding-block: 56px var(--space-8); }
.eyebrow { color: var(--blue-ink); font-size: .75rem; font-weight: 750; letter-spacing: .08em; margin-bottom: var(--space-5); }
h1 { font-size: clamp(2.75rem,5.9vw,5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.07em; }
h1 span { color: var(--blue); }
.lede { margin-top: 28px; font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft); word-break: keep-all; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.store { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 13px 20px; min-height: 56px; border-radius: var(--radius); background: var(--btn); color: var(--on-media); transition: background var(--micro); }
.store:hover { background: var(--blue-ink); }
.store svg { flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; gap: 4px; }
.store .t small { font-size: .75rem; }
.store .t b { font-size: .9375rem; font-weight: 650; letter-spacing: -.01em; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: .875rem; font-weight: 650; padding-block: 12px; text-decoration: underline; text-underline-offset: 5px; margin-top: 12px; }
.text-link:hover { color: var(--blue-ink); }
.hero-note { font-size: .8125rem; color: var(--muted); max-width: 28em; margin-top: 24px; word-break: keep-all; }
.run-photo { position: relative; overflow: hidden; background: var(--canvas); color: var(--on-media); isolation: isolate; }
.run-photo > img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 4/5; border-radius: 4px; }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14), transparent 36%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.75)); pointer-events: none; }
.photo-top { position: absolute; top: 28px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font: 650 .75rem/1.2 var(--f); letter-spacing: .08em; }
.photo-top img { width: 76px; height: auto; }
.photo-record { position: absolute; left: 7%; right: 7%; bottom: 6%; font-variant-numeric: tabular-nums; }
.metric > span { display: block; font-size: .8125rem; line-height: 1.4; }
.metric strong { display: block; font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; margin-top: 3px; }
.metric strong small { font-size: .48em; font-weight: 650; letter-spacing: -.02em; }
.metric-distance strong { font-size: clamp(3rem,5.4vw,4.5rem); }
.metric-pair { display: flex; gap: 32px; margin-top: 16px; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .75rem; color: var(--muted); }
.hero-figure figcaption > span:first-child { color: var(--ink); font-weight: 650; }
.gallery-section { padding-block: 64px var(--space-9); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 16px; }
h2 { font-size: clamp(2rem,3.4vw,2.875rem); line-height: 1.22; letter-spacing: -.055em; font-weight: 750; }
.section-heading > p { color: var(--muted); font-size: 1rem; word-break: keep-all; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.gallery-photo { aspect-ratio: 4/5; border-radius: 4px; }
.gallery figcaption { margin-top: 16px; font-size: .875rem; font-weight: 650; }
.gallery figcaption span { color: var(--blue-ink); margin-right: 12px; font: 500 .75rem var(--f-mono); }
.gallery-record { position: absolute; inset: auto 8% 8%; font-variant-numeric: tabular-nums; }
.gallery-record > span { font-size: .75rem; letter-spacing: .07em; }
.gallery-record strong { display: block; font-size: clamp(2.25rem,4.2vw,3.5rem); line-height: 1.2; font-weight: 750; letter-spacing: -.045em; }
.gallery-record strong small { font-size: .42em; }
.gallery-record p { font-size: .875rem; line-height: 1.5; margin-top: 8px; }
.record-bold strong { font-size: clamp(2.5rem,4.7vw,4rem); letter-spacing: -.045em; white-space: nowrap; }
.record-stack { text-align: right; }
.fine-print { margin-top: 20px; font-size: .75rem; color: var(--muted); line-height: 1.7; word-break: keep-all; }
.editor-section { padding-block: var(--space-8); background: var(--canvas); color: var(--on-media); }
.editor-layout { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 100px; }
.editor-preview { max-width: 420px; width: 100%; border: 1px solid var(--canvas-line); border-radius: var(--radius); padding: 16px; }
.editor-bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; font-size: .8125rem; color: var(--canvas-muted); }
.demo-photo { aspect-ratio: 4/5; border-radius: 4px; }
.editor-preview figcaption { font-size: .8125rem; margin-top: 14px; min-height: 1.7em; color: var(--canvas-muted); }
.editor-copy .eyebrow { color: var(--canvas-muted); }
.demo-steps { display: grid; gap: 4px; margin-block: 28px 16px; }
.demo-steps button { text-align: left; display: flex; gap: 18px; border: 1px solid transparent; border-radius: var(--radius); padding: 18px 16px; background: transparent; color: var(--canvas-muted); }
.demo-steps button:hover { background: var(--canvas-line); }
.demo-steps button[aria-pressed="true"] { background: var(--canvas-line); border-color: var(--canvas-muted); color: var(--on-media); }
.step-no { font: 500 .75rem/1.8 var(--f-mono); }
.demo-steps b { display: block; font-size: 1rem; font-weight: 650; }
.demo-steps small { display: block; margin-top: 4px; font-size: .875rem; color: var(--canvas-muted); }
.demo-toggle { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--on-media); text-decoration: underline; text-underline-offset: 5px; font-size: .875rem; }
.editor-copy .fine-print { color: var(--canvas-muted); }
.demo-record .metric-distance, .demo-record .metric-pair, .demo-photo .photo-shade { transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease); }
[data-stage="photo"] .demo-record .metric-distance, [data-stage="photo"] .demo-record .metric-pair { opacity: 0; transform: translateY(12px); }
[data-stage="photo"] .demo-photo .photo-shade { opacity: 0; }
[data-stage="record"] .demo-record .metric-distance { outline: 1px dashed var(--on-media); outline-offset: 6px; width: fit-content; }
[data-stage="record"] .demo-record .metric-pair { opacity: 0; transform: translateY(12px); }
.tools-section { padding-block: var(--space-9); }
.tool-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.tool-links > a { display: block; border-top: 1px solid var(--ink); padding: 24px 0; }
.tool-index { font: 500 .75rem var(--f-mono); color: var(--muted); }
.tool-links h3 { font-size: 1.5rem; margin-top: 28px; font-weight: 700; letter-spacing: -.04em; }
.tool-links p { color: var(--muted); font-size: 1rem; margin-top: 10px; }
.tool-cta { display: flex; justify-content: space-between; color: var(--blue-ink); font-size: .875rem; font-weight: 650; margin-top: 24px; }
.tool-links > a:hover .tool-cta { text-decoration: underline; text-underline-offset: 4px; }
.news-link { color: var(--muted); }
.download-section { background: var(--panel); padding-block: var(--space-8); text-align: center; }
.download-icon { margin: 0 auto 24px; border-radius: var(--radius); }
.download-section > .wrap > p:not(.fine-print) { margin-top: 20px; color: var(--muted); }
.download-section .store-links { justify-content: center; }
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-direction: column; gap: 24px; padding-block: 40px 24px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.flogo { height: 24px; width: auto; }
.foot .links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .875rem; color: var(--ink-soft); }
.foot .links a { padding-block: 8px; }
.foot .biz,.foot .cr { color: var(--muted); font-size: .75rem; line-height: 1.8; }
.foot .biz a { text-decoration: underline; text-underline-offset: 3px; }
/* Keep the closed launcher outside the photos and policy text at every size. */
body > .jchat:not(.open) { position: relative; right: auto; bottom: auto; width: fit-content; margin: 16px max(24px, calc((100vw - 1184px) / 2)) calc(32px + env(safe-area-inset-bottom)) auto; }
body > .jchat.open { bottom: max(14px, env(safe-area-inset-bottom)); }
@media (max-width: 1000px) {
  .hero { gap: 40px; }
  .editor-layout { gap: 48px; }
  .nav-r { gap: 18px; }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 20px; }
  .nav { min-height: 72px; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
  .logo { width: 92px; }
  .nav-r { gap: 12px; }
  .navlink { font-size: .8125rem; }
  .navlink:first-child { display: none; }
  .dl { padding: 10px 12px; gap: 8px; font-size: .8125rem; min-height: 44px; }
  .hero { grid-template-columns: 1fr; padding-block: 28px 48px; gap: 24px; }
  h1 { font-size: clamp(2.5rem,10.8vw,4rem); line-height: 1.14; letter-spacing: -.045em; }
  .hero h1 br:nth-of-type(2) { display: none; }
  .eyebrow { margin-bottom: 16px; }
  .lede { font-size: 1rem; margin-top: 20px; }
  .store-links { margin-top: 24px; gap: 8px; }
  .store { padding: 12px 16px; flex: 1 1 140px; max-width: 220px; }
  .hero-note, .hero-copy > .text-link { display: none; }
  .hero-photo { aspect-ratio: 1; max-height: 570px; }
  .hero-photo > img { object-position: 50% 20%; }
  .metric strong { font-size: 1.625rem; }
  .metric-distance strong { font-size: 3.5rem; }
  .gallery-section { padding-block: 32px 64px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; font-size: .9375rem; }
  .gallery { grid-template-columns: 1fr; gap: 32px; }
  .gallery-photo { aspect-ratio: 4/5; max-height: 560px; }
  .gallery-record strong { font-size: 3rem; }
  .record-bold strong { font-size: clamp(2.5rem,12vw,5rem); }
  .editor-section { padding-block: 56px; }
  .editor-layout { grid-template-columns: 1fr; gap: 18px; }
  .editor-copy { display: contents; }
  .editor-copy > .eyebrow { grid-row: 1; margin-bottom: 0; }
  .editor-copy > h2 { grid-row: 2; margin-bottom: 10px; }
  .editor-preview { grid-row: 3; margin-inline: auto; max-width: 380px; }
  .demo-photo { aspect-ratio: 1; }
  .demo-steps { grid-row: 4; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
  .demo-steps button { padding: 12px 8px; gap: 6px; flex-direction: column; }
  .demo-steps b { font-size: .875rem; word-break: keep-all; }
  .demo-steps small { display: none; }
  .editor-copy > .demo-toggle { grid-row: 5; justify-self: start; }
  .editor-copy > .fine-print { grid-row: 6; margin: 0; }
  .tools-section { padding-block: 64px; }
  .tool-links { grid-template-columns: 1fr; gap: 16px; }
  .tool-links h3 { margin-top: 20px; }
  .download-section { padding-block: 56px; }
  .foot { padding-block: 32px 24px; }
  body > .jchat:not(.open) { margin: 24px 20px calc(24px + env(safe-area-inset-bottom)) auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-stage="photo"] .demo-record .metric-distance, [data-stage="photo"] .demo-record .metric-pair, [data-stage="record"] .demo-record .metric-pair { transform: none; }
}
