/* Caption YOYU / Caption YOYU Plus — introduction, install guide, release notes. No external fonts or scripts besides the shared GA snippet.
   Base copied from /lecture-caption/style.css (same family as /mdyohaku/). The header, footer and light-only look come from /yukiotsue.css.
   Brand blue #3A7FF7 (the app icon) is used only for shapes; text and buttons use #1F63D6 (5.5:1 on white, white on it 5.5:1). */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --grouped: #f2f2f7;
  --cell: #ffffff;
  --rule: #e5e5ea;
  --accent: #1F63D6;
  --brand: #3A7FF7;
  --brand-tint: #EAF1FE;
  --accent-text: #1F63D6;
  --shot-border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.85 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
}
:lang(ja) { word-break: auto-phrase; }
h1, h2, h3, .tagline, .lead, p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
:lang(en) body, body:lang(en) { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.text { max-width: 640px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }


/* Hero */
.hero { text-align: center; padding: 96px 0 56px; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08)) drop-shadow(0 8px 24px rgba(0,0,0,0.12)); }
.hero h1 { font-size: 44px; line-height: 1.2; margin: 0 0 12px; letter-spacing: 0.01em; }
.hero .tagline { font-size: 22px; margin: 0 0 12px; }
.hero .lead { color: var(--secondary); max-width: 34em; margin: 0 auto 36px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.cta .note { font-size: 14px; color: var(--secondary); margin: 0; }
.platforms { font-size: 14px; color: var(--secondary); margin: 20px 0 0; }
@media (max-width: 480px) {
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 19px; }
}

/* Screenshots */
.shots { padding: 24px 0 24px; }
.mac-shot { border-radius: 12px; border: 1px solid var(--shot-border); box-shadow: var(--shadow); overflow: hidden; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--secondary); text-align: center; margin-top: 14px; line-height: 1.5; }

/* Sections */
section.block { padding: 96px 0; border-top: 1px solid var(--rule); }
section.block:first-of-type { border-top: 0; }
@media (max-width: 480px) { section.block { padding: 64px 0; } }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-text); letter-spacing: 0; margin: 0 0 8px; }
h2 { font-size: 30px; line-height: 1.35; margin: 0 0 16px; }
h3 { font-size: 18px; line-height: 1.5; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.sub { color: var(--secondary); }
@media (max-width: 480px) { h2 { font-size: 25px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 800px) { .split, .split.wide-media { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.media { margin-top: 48px; }

/* Grouped list, like iOS Settings */
.grouped { list-style: none; margin: 24px 0 0; padding: 4px 0; background: var(--grouped); border-radius: 14px; }
.grouped li { padding: 12px 18px; margin: 0; line-height: 1.6; position: relative; }
.grouped li + li::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; border-top: 1px solid var(--rule); }
.grouped li small { display: block; color: var(--secondary); font-size: 14px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--grouped); border-radius: 18px; padding: 24px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--secondary); font-size: 16px; }
@media (max-width: 800px) { .cards, .cards.two { grid-template-columns: minmax(0, 1fr); } }

code, kbd { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--grouped); padding: 0.1em 0.35em; border-radius: 5px; white-space: nowrap; }

/* Caption example: confirmed text and unconfirmed text (dotted underline), as in the app */
.caption-card { background: var(--grouped); border-radius: 18px; padding: 24px; }
.caption-card .label { font-size: 14px; color: var(--secondary); margin: 0 0 10px; }
.caption-sample { background: #111114; color: #ffffff; border-radius: 12px; padding: 18px 20px; font-size: 21px; line-height: 1.6; font-weight: 600; margin: 0; }
.caption-sample .partial { color: #c9c9d2; text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.caption-sample .en { display: block; font-size: 17px; font-weight: 500; color: #c9c9d2; margin-top: 6px; }
.caption-card .note { font-size: 14px; color: var(--secondary); margin: 12px 0 0; }

/* Color schemes: swatches use the app's own colors */
.theme { padding: 0; overflow: hidden; }
.theme .swatch { padding: 18px 20px; font-size: 19px; font-weight: 600; line-height: 1.5; border-bottom: 1px solid var(--rule); }
.theme .swatch .partial { font-weight: 600; text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.theme .body { padding: 18px 20px 22px; }
.theme.standard .swatch { background: #111114; color: #ffffff; }
.theme.standard .partial { color: #c9c9d2; }
.theme.contrast .swatch { background: #000000; color: #ffe45c; }
.theme.contrast .partial { color: #ffffff; }
.theme.light .swatch { background: #f7f7f4; color: #111111; }
.theme.light .partial { color: #4a4a52; }

/* Caution */
.caution { margin-top: 32px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 14px; padding: 20px 24px; }
.caution p:last-child { margin-bottom: 0; }

/* Credits */
.credits { font-size: 15px; color: var(--secondary); }
.credits p { margin: 0 0 8px; }

/* FAQ */
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--secondary); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 12px; }
.contact { margin-top: 48px; background: var(--grouped); border-radius: 18px; padding: 24px; }
.contact h3 { margin-top: 0; }
.contact .mail { font-size: 20px; font-weight: 600; }

/* ------------------------------------------------------------------ Caption YOYU */
/* Hero with two icons */
.hero .icons { display: flex; justify-content: center; gap: 24px; margin: 0 auto 28px; }
.hero .icons img { width: 112px; height: 112px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08)) drop-shadow(0 8px 24px rgba(0,0,0,0.12)); }
@media (max-width: 480px) { .hero .icons img { width: 88px; height: 88px; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 100ms ease-out, background 200ms ease; }
.button:hover { background: #1953b8; }
.button:active { transform: scale(0.97); }
.button.secondary { background: var(--brand-tint); color: var(--accent-text); }
.button.secondary:hover { background: #dce8fd; }
.button[aria-disabled="true"] { background: var(--cell); color: var(--secondary); border: 1px solid var(--rule); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Two apps side by side */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
@media (max-width: 800px) { .apps { grid-template-columns: minmax(0, 1fr); } }
.app-card { background: var(--grouped); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.app-card .head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.app-card .head img { width: 64px; height: 64px; flex: none; }
.app-card h3 { margin: 0; font-size: 22px; }
.app-card .kind { margin: 0; color: var(--secondary); font-size: 15px; }
.app-card > p { font-size: 16px; }
.app-card .grouped { background: var(--cell); margin-top: 8px; }
.app-card .actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.app-card .actions .file { font-size: 14px; color: var(--secondary); margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--rule); border-radius: 14px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 1.6; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; background: var(--grouped); font-size: 15px; }
.compare tbody th { font-weight: 600; width: 22%; color: var(--secondary); font-size: 15px; }
.compare td small { display: block; color: var(--secondary); font-size: 14px; }
.compare .no { color: var(--secondary); }

/* Install steps */
ol.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--rule); }
ol.steps > li:first-child { border-top: 0; padding-top: 0; }
ol.steps > li > div > h3 { margin-top: 0; font-size: 21px; display: flex; gap: 12px; align-items: baseline; }
ol.steps > li > div > h3::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; transform: translateY(-2px); }
ol.steps .figure svg { width: 100%; height: auto; display: block; }
ol.steps .figure { background: var(--grouped); border-radius: 18px; padding: 20px; }
@media (max-width: 800px) { ol.steps > li { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 0; } }
.note-box { background: var(--brand-tint); border-radius: 14px; padding: 16px 20px; font-size: 16px; margin-top: 16px; }
.note-box p:last-child { margin-bottom: 0; }

/* Release notes */
.release-app { margin-top: 48px; }
.release-app h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.release-app h2 img { width: 40px; height: 40px; }
.release { border-top: 1px solid var(--rule); padding: 20px 0 8px; }
.release h3 { margin: 0; }
.release .sub { font-weight: 400; font-size: 15px; }
.release .date { color: var(--secondary); font-size: 15px; margin: 0 0 8px; }
.release ul { margin: 0 0 12px; padding-left: 1.3em; }

/* Long legal text */
.doc h2 { font-size: 22px; margin-top: 48px; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 1.3em; }
.updated { color: var(--secondary); font-size: 15px; }
pre.license { white-space: pre-wrap; font: 14px/1.7 -apple-system, "Hiragino Sans", sans-serif; background: var(--grouped); border-radius: 14px; padding: 20px; max-height: 480px; overflow: auto; }

/* Drawn macOS dialogs for the install guide (not screenshots) */
.figure.desk { background: linear-gradient(160deg, #dfe9fb, #f3f6fb 60%, #e8eefa); display: grid; place-items: center; padding: 32px 20px; }
.mac-alert { width: 100%; max-width: 300px; background: rgba(250, 250, 252, 0.96); border-radius: 22px; padding: 22px 20px 18px; text-align: center;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12), 0 18px 50px rgba(0,0,0,0.18); font-size: 13px; line-height: 1.5; }
.mac-alert img { width: 64px; height: 64px; margin: 0 auto 10px; }
.mac-alert .t { font-weight: 700; margin: 0 0 6px; font-size: 14px; }
.mac-alert .m { margin: 0 0 16px; color: #3c3c43; font-size: 12px; }
.mac-alert .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mac-alert .btns span { display: block; padding: 6px 8px; border-radius: 980px; background: rgba(0,0,0,0.06); font-weight: 500; }
.mac-alert .btns .default { background: var(--brand); color: #fff; }
.figure .fig-note { font-size: 13px; color: var(--secondary); text-align: center; margin: 12px 0 0; }
.dmg-file { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
ol.steps .dmg-file svg, .dmg-file svg { width: 88px; height: auto; }

/* Hero background drawn with Codex image generation (site/README.md). Bottom edge fades into the white page */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/hero-bg.jpg") center / cover no-repeat;
  background-image: image-set(url("img/hero-bg.webp") type("image/webp"), url("img/hero-bg.jpg") type("image/jpeg"));
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent); }
