:root {
  --ink: #15171a;
  --muted: #626871;
  --paper: #ffffff;
  --surface: #f4f6f7;
  --surface-strong: #e9edef;
  --line: #d9dde1;
  --codex: #008f98;
  --codex-soft: #dff5f5;
  --claude: #c65d24;
  --claude-soft: #fff0e7;
  --ok: #18794e;
  --warning: #9a6700;
  --danger: #b42318;
  --max-width: 1180px;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; line-break: strict; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--codex); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--codex);
  outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; word-break: normal; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; text-wrap: pretty; }
li, figcaption, .check-value { text-wrap: pretty; }
code, .digest { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.shell { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); padding: 8px 10px; text-decoration: none; font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.button:hover { background: var(--codex); border-color: var(--codex); }
.button.secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.button.secondary:hover { border-color: var(--codex); color: var(--codex); }
.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  background: #101417;
  color: #fff;
  border-bottom: 1px solid #2c3237;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.8fr); gap: 68px; align-items: center; padding-block: 72px 88px; }
.hero-content { min-width: 0; }
.hero-visual { justify-self: end; width: min(100%, 560px); margin: 0; }
.hero-visual-frame { overflow: hidden; border: 1px solid #394147; border-radius: 8px; background: #000; box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42); }
.hero-visual-frame img { width: 100%; }
.hero-visual figcaption { margin-top: 12px; color: #aeb8bd; font-size: 0.78rem; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #b9c4c8; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--codex); }
.hero h1 { margin-top: 16px; }
.hero-copy { max-width: 620px; margin-top: 24px; color: #dde4e7; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .button { background: #fff; color: #111; border-color: #fff; }
.hero .button:hover { background: var(--codex-soft); border-color: var(--codex-soft); }
.hero .button.secondary { color: #fff; border-color: #778188; background: rgba(0, 0, 0, 0.24); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: #b9c4c8; font-size: 0.88rem; }
.band { padding-block: 88px; border-bottom: 1px solid var(--line); }
.band.muted { background: var(--surface); }
.section-head { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr); gap: 56px; align-items: start; margin-bottom: 48px; }
.section-head p { color: var(--muted); max-width: 720px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.metric { padding: 26px; min-height: 176px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .number { display: block; margin-top: 22px; font-size: 2rem; font-weight: 850; line-height: 1; }
.metric p { margin-top: 14px; color: var(--muted); font-size: 0.94rem; }
.service-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; }
.service-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--codex); }
.service-label.claude::before { background: var(--claude); }
.screen-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 64px; align-items: center; }
.screen-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); box-shadow: 0 24px 70px rgba(8, 16, 20, 0.13); }
.screen-frame img { width: 100%; }
.feature-list { display: grid; gap: 28px; }
.feature { padding-left: 22px; border-left: 4px solid var(--line); }
.feature.codex { border-color: var(--codex); }
.feature.claude { border-color: var(--claude); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.path { min-height: 210px; padding: 30px; background: var(--paper); }
.path h3 { margin-bottom: 12px; }
.path p { color: var(--muted); margin-bottom: 22px; }
.path a { font-weight: 750; }
.page-hero { padding-block: 74px 58px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 4.7rem); max-width: 900px; }
.page-hero p { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: 1.1rem; }
.page-hero .meta { margin-top: 24px; }
.content { padding-block: 72px 104px; }
.content-grid { display: grid; grid-template-columns: minmax(220px, 0.33fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid var(--line); }
.toc strong { margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--codex); }
.article { min-width: 0; }
.article > section { padding-block: 8px 54px; }
.article h2 { margin-bottom: 18px; }
.article h3 { margin-block: 28px 10px; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { margin-block: 16px; padding-left: 1.35rem; }
.article li + li { margin-top: 9px; }
.steps { list-style: none; padding: 0 !important; counter-reset: steps; border-top: 1px solid var(--line); }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(steps); width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-weight: 800; }
.steps strong { display: block; margin-bottom: 4px; }
.guide-steps { display: grid; gap: 56px; margin: 28px 0 0; padding: 0 !important; list-style: none; counter-reset: guide-step; }
.guide-step { counter-increment: guide-step; display: grid; grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr); gap: 42px; align-items: start; padding: 0 0 56px; border-bottom: 1px solid var(--line); }
.guide-step::before { content: counter(guide-step, decimal-leading-zero); grid-column: 1; display: block; width: fit-content; padding-bottom: 5px; color: var(--codex); border-bottom: 3px solid currentColor; font-size: 0.86rem; font-weight: 850; line-height: 1; }
.guide-copy { grid-column: 1; margin-top: -24px; }
.guide-copy h3 { margin: 0 0 10px; font-size: 1.34rem; }
.guide-copy p { color: var(--muted); }
.guide-copy .step-check { display: block; margin-top: 15px; color: var(--ink); font-size: 0.9rem; font-weight: 750; }
.guide-figure { grid-column: 2; grid-row: 1 / span 2; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 52px rgba(8, 16, 20, 0.10); }
.guide-figure img { width: 100%; max-height: 720px; object-fit: contain; background: #fff; }
.guide-figure.compact img { max-height: 500px; }
.guide-figure figcaption { padding: 11px 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); font-size: 0.78rem; }
.iphone-device { position: relative; padding: 8px 8px 0; background: #090b0d; }
.iphone-device img { display: block; border-radius: 24px 24px 0 0; }
.iphone-device::before { content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; width: min(25%, 132px); height: 28px; border-radius: 999px; background: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); transform: translateX(-50%); pointer-events: none; }
.notice { padding: 18px 20px; border-left: 4px solid var(--warning); background: color-mix(in srgb, var(--warning) 9%, var(--paper)); }
.notice.danger { border-color: var(--danger); }
.notice.ok { border-color: var(--ok); }
.download-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.download-panel h2 { margin-bottom: 8px; }
.download-panel p { color: var(--muted); }
.release-data { width: 100%; border-collapse: collapse; margin-block: 24px; }
.release-data th, .release-data td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.release-data th { width: 31%; color: var(--muted); font-weight: 650; }
.status-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.status-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.status-table th, .status-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.status-table th { background: var(--surface); }
.status-table tr:last-child td { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 8px; font-size: 1.08rem; font-weight: 750; }
.faq details > div { padding: 0 8px 24px; color: var(--muted); }
.support-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0; border-block: 1px solid var(--line); }
.site-footer { padding-block: 56px; background: #101417; color: #cbd2d5; }
.footer-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); gap: 50px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.site-footer a { color: #f2f6f7; }
.fine-print { margin-top: 34px; padding-top: 24px; border-top: 1px solid #333b40; color: #9da7ab; font-size: 0.8rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 4px 9px; border: 1px solid var(--line); background: var(--paper); font-size: 0.8rem; font-weight: 700; }
.meta { color: var(--muted); font-size: 0.9rem; }
.compact-head { display: block; margin-bottom: 34px; }
.compact-head p, .space-top { margin-top: 16px; }
.muted-text { color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.check-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.check-block:first-child { border-top: 1px solid var(--line); }
.check-label { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.check-value { display: block; margin-top: 3px; font-weight: 750; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-row { align-items: flex-start; padding-block: 14px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 7px 8px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-block: 64px 72px; }
  .hero-visual { justify-self: center; width: min(100%, 440px); }
  .section-head, .screen-layout, .content-grid, .footer-row { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .content { padding-top: 48px; }
  .guide-step { grid-template-columns: 1fr; gap: 22px; padding-bottom: 42px; }
  .guide-step::before, .guide-copy, .guide-figure { grid-column: 1; grid-row: auto; margin-top: 0; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--max-width)); }
  .nav-row { display: block; }
  .site-nav { justify-content: flex-start; margin-top: 10px; }
  .hero-grid { padding-block: 54px 62px; }
  .page-hero h1 { font-size: 2rem; }
  .hero-actions .button { width: 100%; }
  .band { padding-block: 64px; }
  .path-grid { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .download-panel { grid-template-columns: 1fr; }
  .download-panel .button { width: 100%; }
  .support-callout { align-items: flex-start; flex-direction: column; }
  .iphone-device::before { top: 16px; width: min(27%, 116px); height: 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .release-data th, .release-data td { display: block; width: 100%; padding-inline: 0; }
  .release-data th { padding-bottom: 2px; border-bottom: 0; }
  .release-data td { padding-top: 2px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f6f7;
    --muted: #aab2b7;
    --paper: #111518;
    --surface: #1a2024;
    --surface-strong: #222a2f;
    --line: #343d43;
    --codex: #45cbd1;
    --codex-soft: #173b3d;
    --claude: #f39058;
    --claude-soft: #3c281e;
    --ok: #63c99a;
    --warning: #e7b84d;
    --danger: #ff8a82;
  }
  .button { color: #101417; background: #f3f6f7; border-color: #f3f6f7; }
  .button.secondary { color: var(--ink); background: var(--surface); }
  .screen-frame { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
