/* Context Capture LP
   色: 撮影枠のコバルトと、macOS のマイク使用中インジケータのオレンジ。
   アプリの実画面とサンプル記録を紹介する。 */
:root {
  --paper: #f2f4f7;
  --surface: #ffffff;
  --ink: #18202f;
  --graphite: #576072;
  --line: #d9dee6;
  --capture: #2f5bea;
  --capture-soft: #e4eafd;
  --mic: #ff9f0a;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-window: 12px;
  --radius-control: 8px;
  --measure: 38em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], .scene[id] { scroll-margin-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--capture); }
:focus-visible { outline: 3px solid var(--capture); outline-offset: 3px; border-radius: 4px; }

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.5em;
  margin: 0 0.12em;
  font: 500 0.82em/1.6 var(--font);
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.4em;
  font: 700 1rem/1.2 var(--font);
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-control);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--capture); }
.btn-small { padding: 0.55em 1em; font-size: 0.875rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgb(242 244 247 / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 18px; height: 14px; border: 2px solid var(--capture); border-radius: 3px; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: -5px; top: -5px; width: 7px; height: 7px; border-radius: 50%; background: var(--mic);
}
.site-header nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.9rem; }
.site-header nav a { color: var(--graphite); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

main > section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 4rem); max-width: 1240px; margin: 0 auto; }

.section-head { max-width: var(--measure); margin-bottom: 3rem; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35; font-weight: 700; }
h2 + p { margin: 1rem 0 0; color: var(--graphite); }
h3 { font-size: 1.15rem; line-height: 1.5; }
.note { color: var(--graphite); font-size: 0.875rem; margin-top: 1.5rem; }
.muted { color: var(--graphite); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 span { display: block; white-space: nowrap; }
.lead { margin: 1.8rem 0 2.2rem; font-size: 1.075rem; color: #2c3445; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.req { font-size: 0.875rem; color: var(--graphite); }

/* Actual application views; keep their original aspect ratio and opaque background. */
.eyebrow { margin: 0 0 1rem; color: var(--capture); font-size: 0.85rem; font-weight: 700; }
.hero-follow { color: var(--graphite); margin: -0.8rem 0 2rem; }
.hero-screen { margin: 0; min-width: 0; }
.screenshot-link { display: block; border-radius: var(--radius-window); }
.app-screen {
  width: 100%; background: #fff; border-radius: var(--radius-window);
  box-shadow: 0 1px 3px rgb(24 32 47 / 0.12), 0 20px 44px -24px rgb(24 32 47 / 0.35);
}
.sample-note { color: var(--graphite); font-size: 0.78rem; line-height: 1.7; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: #fff; padding: 0.5rem 1rem; }
.skip-link:focus { top: 0.5rem; }
.table-wrap { overflow-x: auto; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0 0 3.5rem; padding: 0; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; }
.steps li::before { content: counter(step); font: 500 0.85rem var(--mono); color: var(--capture); }
.steps b { font-size: 1.5rem; }
.steps span { color: var(--graphite); }

/* scenes */
.scene { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); }
.scene img { border-radius: var(--radius-window); box-shadow: 0 14px 30px -18px rgb(24 32 47 / 0.45); }
.scene .quote { font-size: 1.25rem; font-weight: 500; line-height: 1.6; margin: 0.6rem 0; }
.scene p { color: var(--graphite); margin: 0; max-width: 30em; }

/* handoff */
.handoff-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.terminal {
  margin: 0; padding: 1.3rem 1.4rem;
  background: #1b2130; color: #d7dce5;
  border-radius: var(--radius-window);
  font: 0.83rem/1.75 var(--mono);
  white-space: pre-wrap; overflow-x: auto;
}
.t-prompt { color: var(--mic); }
.t-tool { color: #8fb0ff; }
.tools { margin: 0; }
.tools > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.tools dt code { font: 500 0.9rem var(--mono); color: var(--capture); }
.tools dd { margin: 0.15rem 0 0; color: var(--graphite); font-size: 0.9rem; }

/* privacy */
.guard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 3.5rem; }
.guard-shot { margin: 0; }
.guard p { color: var(--graphite); max-width: 30em; }
.scene .note { font-size: 0.875rem; margin-top: 1rem; }
.guard h3 { margin-bottom: 0.6rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.8rem; }
th { text-align: left; font-weight: 500; color: var(--graphite); font-size: 0.82rem; }
th, td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child, .perms td:first-child { font-weight: 500; white-space: nowrap; }

/* faq */
.faq-list { max-width: 46em; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 500; font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--capture); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.3rem; color: #343c4c; max-width: var(--measure); }

/* beta */
.beta { text-align: left; }
.beta p { color: var(--graphite); max-width: var(--measure); }
.site-footer { padding: 2.5rem clamp(1.25rem, 5vw, 4rem); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--graphite); }
.site-footer p { max-width: 1240px; margin: 0 auto; }

/* responsive */
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .hero, .scene, .handoff-grid, .guard { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 3rem; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
  .site-header { gap: 0.7rem; flex-wrap: wrap; }
  .brand { font-size: 0.95rem; }
  .btn-small { font-size: 0.75rem; padding: 0.55em 0.75em; }
  .spec td:first-child, .perms td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Original-size image viewer: preserve transparency on a readable white background. */
.screen-viewer { max-width: 1000px; margin: 0 auto; padding: 2rem 1.25rem; }
.screen-viewer h1 { font-size: 1.5rem; }
.screen-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.screen-viewer figure { display: none; margin: 0; }
.screen-viewer figure:target, .screen-viewer:not(:has(figure:target)) figure:first-of-type { display: block; }
.original-image { overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.original-image img { max-width: none; background: #fff; }
