/* Codex Tracker site. Palette and type follow docs/DESIGN.md: cold neutrals, one indigo accent,
   green/orange/red only for states, Roboto only. No scripts, no external resources. */

@font-face { font-family: Roboto; src: url(/fonts/Roboto-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Roboto; src: url(/fonts/Roboto-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Roboto; src: url(/fonts/Roboto-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F4F5F7; --chrome: #ECEEF1; --panel: #FFFFFF; --raised: #ECEEF2; --track: #E4E6EB; --line: #E1E3E8;
  --text: #16171A; --muted: #5D616A; --subtle: #868A93;
  --accent: #4F57E3; --accent-soft: #ECEDFC; --primary: #4F57E3; --primary-hover: #434BD3; --on-primary: #FFFFFF;
  --good: #1C8456; --good-soft: #E5F4EC; --warn: #A4660C; --warn-soft: #FBF0DF; --danger: #C94545; --danger-soft: #FBEAEA;
  --shadow: 0 1px 2px rgba(22, 23, 26, .05), 0 18px 40px -18px rgba(22, 23, 26, .22);
  --shadow-lg: 0 2px 6px rgba(22, 23, 26, .06), 0 40px 80px -30px rgba(22, 23, 26, .32);
  --sans: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --wrap: 1160px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114; --chrome: #0D0E10; --panel: #17181C; --raised: #1F2126; --track: #2A2C33; --line: #272930;
    --text: #ECEDF0; --muted: #989BA4; --subtle: #6F727B;
    --accent: #8E96FF; --accent-soft: #1F2244; --primary: #5C64F0; --primary-hover: #6D75F5; --on-primary: #FFFFFF;
    --good: #5FCF9C; --good-soft: #13261D; --warn: #E8B65F; --warn-soft: #2A2214; --danger: #F27B7B; --danger-soft: #2B191B;
    --shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 22px 44px -20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 0 0 1px rgba(0, 0, 0, .3), 0 50px 90px -30px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:lang(ja) body, body:lang(ja) { font-family: Roboto, "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Sans", system-ui, sans-serif; line-break: strict; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 500; }
code { font-family: var(--mono); font-size: .88em; background: var(--raised); border-radius: 5px; padding: .1em .35em; }
::selection { background: var(--accent-soft); color: var(--text); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.num { font-variant-numeric: tabular-nums; }
svg .track { stroke: var(--track); }
svg .arc { stroke: currentColor; }

/* Headings: one family, contrast through weight, size and tracking */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -0.038em; }
h2 { font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18em; }
h3 { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.3; word-break: auto-phrase; }
:lang(ja) h1 { font-size: clamp(32px, 5vw, 58px); }
:lang(ja) h2 { font-size: clamp(26px, 3.4vw, 38px); }
:lang(de) h1, :lang(de) h2 { hyphens: auto; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 24px 0 0; }
.sub { font-size: 18px; color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.sub strong, .lead strong { color: var(--text); }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.langs { display: flex; gap: 2px; padding: 3px; background: var(--raised); border-radius: 10px; }
.langs a { display: block; min-width: 32px; padding: 4px 7px; border-radius: 7px; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
@media (max-width: 820px) { .links .opt { display: none; } }

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 96px); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 2fr; gap: 28px 48px; }
.site-footer p { margin: 10px 0 0; max-width: 30em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 10px;
  font: 500 16px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn:hover { background: var(--raised); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); border-color: transparent; color: var(--on-primary); box-shadow: 0 8px 22px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, transform .08s ease; }
  .btn:active { transform: scale(.98); }
}
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 16px; font-weight: 500; color: var(--muted); }
.kicker img { width: 22px; height: 22px; border-radius: 6px; }
.ask-line { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.ask-line a { font-weight: 500; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.facts li:first-child { color: var(--text); font-weight: 500; }

/* Hero: the flyout above the taskbar */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px 64px; align-items: end; }
.stage { position: relative; display: flex; justify-content: flex-end; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { justify-content: flex-start; }
}

.flyout { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 18px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; }
.flyout-title { color: var(--accent); font-weight: 500; font-size: 13px; }
.flyout-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 16px; font-weight: 500; }
.chip { flex: none; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 2px 9px; }
.rings { display: flex; justify-content: center; gap: 34px; margin: 18px 0 16px; }
.ring { position: relative; width: 92px; text-align: center; color: var(--muted); font-size: 12px; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring .track { stroke: var(--track); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; }
.ring b { position: absolute; top: 0; left: 0; right: 0; height: 92px; display: grid; place-items: center; font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring span { display: block; margin-top: 6px; }
.flyout dl { margin: 0; border-top: 1px solid var(--line); }
.flyout dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.flyout dt { color: var(--muted); }
.flyout dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.flyout dd small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.flyout .fake-btn { margin-top: 14px; border-radius: 8px; background: var(--primary); color: var(--on-primary); text-align: center; padding: 9px; font-weight: 500; }

.taskbar { margin-top: 28px; background: var(--chrome); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.taskbar .wrap { display: flex; align-items: center; height: 52px; gap: 6px; }
.tb-apps { display: flex; gap: 6px; margin: 0 auto; }
.tb-app { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; }
.tb-app i { display: block; width: 20px; height: 20px; border-radius: 5px; background: var(--track); }
.tb-app.start svg { width: 18px; height: 18px; fill: var(--muted); }
.tb-app.open { position: relative; }
.tb-app.open::after { content: ""; position: absolute; bottom: 1px; width: 6px; height: 3px; border-radius: 2px; background: var(--subtle); }
.tb-tray { display: flex; align-items: center; gap: 2px; color: var(--text); }
.tb-tray > span { height: 40px; min-width: 32px; display: grid; place-items: center; border-radius: 6px; }
.tb-tray svg { width: 16px; height: 16px; }
.tb-icon { position: relative; width: 40px; background: var(--raised); }
.tb-icon svg { width: 26px; height: 26px; }
.tb-icon::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--accent); }
.tb-tray > .tb-clock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 8px; font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .tb-apps { display: none; } .tb-tray { margin-left: auto; } }

/* Hero motion: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .flyout { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .flyout .arc { animation: fill 1.2s cubic-bezier(.3, .7, .2, 1) .45s both; }
  .tb-icon::after { animation: glow 1.6s ease-out .9s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fill { from { stroke-dasharray: 0 100; } }
@keyframes glow { 0% { opacity: 0; transform: scaleX(.2); } 40% { opacity: 1; transform: scaleX(1.6); } 100% { opacity: 1; transform: scaleX(1); } }

/* Screenshot showcase */
.showcase { margin: 0; }
.showcase img { margin: 0 auto; width: 100%; max-width: 1020px; }
.showcase figcaption, figure.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: clamp(64px, 10vw, 124px) 0 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
#showcase { padding-top: clamp(40px, 6vw, 72px); }

/* Three questions: one instrument panel split in three */
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.readout { padding: 28px clamp(20px, 2.6vw, 34px) 30px; display: flex; flex-direction: column; }
.readout + .readout { border-left: 1px solid var(--line); }
.readout p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.gauge { min-height: 148px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.big { font-size: clamp(56px, 6.6vw, 92px); font-weight: 400; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big small { font-size: .42em; letter-spacing: -0.01em; color: var(--muted); margin-left: .12em; }
.big .day { font-size: .42em; letter-spacing: 0; color: var(--muted); margin-right: .22em; vertical-align: .55em; }
.gauge-note { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.tray-mini { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--chrome); color: var(--text); }
.tray-mini svg { width: 24px; height: 24px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.week i { height: 6px; border-radius: 3px; background: var(--track); }
.week i.on { background: var(--accent); }
.accts { display: grid; gap: 9px; font-size: 13px; }
.acct { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 2px 12px; }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.acct b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.acct .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.acct .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.acct.low b { color: var(--danger); } .acct.low .bar i { background: var(--danger); }
.acct.best span { color: var(--text); }
@media (max-width: 880px) {
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .readout + .readout { border-left: 0; border-top: 1px solid var(--line); }
  .gauge { min-height: 0; }
}

/* Feature rows: screenshot beside text */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature.flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.feature.flip .feature-media { order: 2; }
.feature-media img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); }
.feature-media.tall img { max-height: 620px; width: auto; margin: 0 auto; }
.feature-text h3 { font-size: clamp(22px, 2.3vw, 27px); font-weight: 700; letter-spacing: -0.02em; }
.feature-text h3 + p { margin-top: 12px; }
.feature-text p { color: var(--muted); margin: 0; max-width: 32em; }
.feature-text p + h3 { margin-top: 32px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(56px, 8vw, 104px); }
.pair + .feature { margin-top: clamp(56px, 8vw, 104px); }
.plate-media { aspect-ratio: 760 / 620; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); margin-bottom: 22px; }
.plate-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.plate h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.plate p { margin: 10px 0 0; color: var(--muted); max-width: 32em; }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-media { order: 0; }
}

/* Reminders: one panel, four surfaces */
.surfaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.surface { padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
.surface:nth-child(-n+2) { border-top: 0; }
.surface:nth-child(even) { border-left: 1px solid var(--line); }
.surface h3 + p { margin: 8px 0 0; color: var(--muted); font-size: 16px; max-width: 30em; }
.scene { height: 200px; margin-bottom: 26px; border-radius: 12px; background: var(--bg); position: relative; overflow: hidden; display: grid; place-items: center; padding: 16px; }
@media (max-width: 820px) {
  .surfaces { grid-template-columns: minmax(0, 1fr); }
  .surface:nth-child(2) { border-top: 1px solid var(--line); }
  .surface:nth-child(even) { border-left: 0; }
}
.triggers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; }
.triggers li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); }
.triggers li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Mock surfaces (decorative copies of the real UI, demo data) */
.mock { font-size: 13px; line-height: 1.4; color: var(--text); text-align: left; }
.toast { width: min(100%, 330px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.toast-app { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.toast-app img { width: 16px; height: 16px; border-radius: 4px; }
.toast b, .phone-note b { display: block; font-weight: 500; font-size: 14px; }
.toast span, .phone-note span { color: var(--muted); }
.phone { position: absolute; top: 16px; width: 230px; height: 240px; border-radius: 30px 30px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--panel); padding: 14px 12px; }
.phone::before { content: ""; display: block; width: 68px; height: 16px; margin: 0 auto 10px; border-radius: 10px; background: var(--raised); }
.phone-time { text-align: center; font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.phone-dnd { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--muted); font-size: 11px; }
.phone-dnd svg { width: 12px; height: 12px; }
.phone-note { background: var(--raised); border-radius: 14px; padding: 10px 12px; font-size: 12px; }
.phone-note small { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.pill { width: min(100%, 320px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.pill-head { font-weight: 500; }
.pill p { margin: 2px 0 0; color: var(--muted); }
.pill .advice { color: var(--accent); }
.pill-actions { display: flex; gap: 8px; margin: 10px 0; }
.pill-actions span { border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font-weight: 500; }
.pill-actions span + span { border-color: transparent; }
.pill-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex: none; }
.dot.warn { background: var(--warn); }
.sms { width: min(100%, 300px); display: grid; gap: 8px; }
.bubble { justify-self: start; max-width: 92%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 13px; box-shadow: var(--shadow); }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.bubble.mail { justify-self: end; border-radius: 16px 16px 4px 16px; }

/* Coding agents */
.agents { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prompts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.prompts li { background: var(--accent-soft); color: var(--text); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 15px; max-width: 30em; }
.console { --c-bg: #17181C; --c-line: #272930; --c-text: #ECEDF0; --c-muted: #989BA4; --c-accent: #8E96FF;
  background: var(--c-bg); color: var(--c-text); border-radius: 16px; border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); overflow: hidden; position: sticky; top: 24px; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 13px; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2C33; }
.console-bar span { margin-left: 8px; }
.console h3 { color: var(--c-muted); font-size: 13px; font-weight: 500; letter-spacing: 0; padding: 18px 20px 0; }
.console pre { margin: 0; padding: 10px 20px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.65 var(--mono); tab-size: 2; }
.console pre + h3 { border-top: 1px solid var(--c-line); }
.console code { background: none; padding: 0; font-size: inherit; border-radius: 0; color: inherit; }
.console .p { color: var(--c-muted); user-select: none; }
.console .k { color: var(--c-accent); }
.console .s { color: var(--c-text); }
.console p { margin: 0; padding: 0 20px 18px; color: var(--c-muted); font-size: 13px; }
@media (max-width: 900px) { .agents { grid-template-columns: minmax(0, 1fr); } .console { position: static; } }

/* Install options: ask Codex, PowerShell, installer */
.options { display: grid; gap: 14px; }
.option { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px 40px; align-items: center; padding: 26px 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.option-text p { margin-top: 8px; }
.option-action { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.option.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.option-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.option-head h3 { font-weight: 700; }
.option p { margin: 0; color: var(--muted); font-size: 16px; }

.chip.accent { background: var(--accent-soft); color: var(--accent); }
pre.copy { justify-self: stretch; margin: 0; padding: 14px 16px; border-radius: 10px; background: #17181C; color: #ECEDF0; border: 1px solid #272930;
  font: 15px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; cursor: text; }
pre.copy code { background: none; padding: 0; font-size: inherit; color: inherit; user-select: all; -webkit-user-select: all; }
pre.copy .u { white-space: nowrap; }
.option .hint { font-size: 13px; color: var(--muted); }
.after { margin-top: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; }
.after h3 { font-size: 17px; }
.after .ticks { margin: 0; }
.after .more { margin: 0; }
@media (max-width: 860px) { .option { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } .after { grid-template-columns: minmax(0, 1fr); } pre.copy { font-size: 14px; overflow-wrap: anywhere; } pre.copy .u { white-space: normal; } }

/* Tour and screenshot pairs */
.tour { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.tour .section-head { margin: 0; }
.tour-frame { margin: 0; padding: clamp(10px, 1.6vw, 16px); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tour-frame img { width: 100%; border-radius: 10px; }
@media (max-width: 860px) { .tour { grid-template-columns: minmax(0, 1fr); } }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.duo figure, .agents-shot { margin: 0; }
.duo img, .agents-shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.duo figcaption, .agents-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.agents-shot { margin-top: 32px; }
@media (max-width: 700px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Privacy */
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pledges > div { border-top: 1px solid var(--line); padding-top: 20px; }
.pledges svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.pledges p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .pledges { grid-template-columns: minmax(0, 1fr); } }
.more { margin: 28px 0 0; font-weight: 500; }

/* Comparison */
.compare-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
table.compare th, table.compare td { text-align: left; padding: 16px 22px; border-top: 1px solid var(--line); vertical-align: top; }
table.compare thead th { border-top: 0; font-size: 14px; font-weight: 500; color: var(--muted); padding-top: 18px; padding-bottom: 14px; }
table.compare thead th.us { color: var(--accent); }
table.compare tbody th { font-weight: 500; width: 28%; }
table.compare td.us { background: var(--accent-soft); color: var(--text); font-weight: 500; }
table.compare thead th.us { background: var(--accent-soft); }
table.compare td:last-child { color: var(--muted); }
@media (max-width: 680px) {
  table.compare thead { display: none; }
  table.compare tr { display: block; padding: 16px 18px; border-top: 1px solid var(--line); }
  table.compare tbody tr:first-child { border-top: 0; }
  table.compare th, table.compare td { display: block; border: 0; padding: 0; width: auto; }
  table.compare tbody th { margin-bottom: 8px; }
  table.compare td { padding: 6px 10px; border-radius: 8px; font-size: 15px; }
  table.compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
  table.compare td.us::before { color: var(--accent); }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 24px; margin: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout .section-head { position: static; } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-of-type { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; color: var(--muted); }
.faq-list details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; color: var(--accent); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { margin: -4px 0 22px; color: var(--muted); max-width: 38em; }

/* Guides teaser */
.guide-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-links li { border-bottom: 1px solid var(--line); }
.guide-links a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 20px; gap: 6px 32px; align-items: baseline; padding: 24px 0; color: var(--text); text-decoration: none; }
.guide-links a:hover h3 { color: var(--accent); }
.guide-links h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.guide-links p { margin: 0; color: var(--muted); font-size: 16px; }
.guide-links svg { width: 18px; height: 18px; color: var(--muted); align-self: center; }
.guide-links a:hover svg { color: var(--accent); }
@media (max-width: 760px) { .guide-links a { grid-template-columns: minmax(0, 1fr) 18px; } .guide-links p { grid-column: 1; } .guide-links svg { grid-row: 1; grid-column: 2; } }
.lang-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Final call to action */
.final { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 6vw, 72px); }
.final h2 { max-width: 14em; }
.final .actions { margin-top: 28px; }
.final-ring { width: clamp(150px, 18vw, 220px); height: auto; }
.final-ring .track { stroke: var(--track); }
.final-ring .arc { stroke: var(--accent); }
.final-ring text { fill: var(--text); font: 500 30px var(--sans); letter-spacing: -0.02em; }
@media (max-width: 760px) { .final { grid-template-columns: minmax(0, 1fr); } .final-ring { order: -1; width: 120px; } }

/* Articles: guides and privacy */
.article { padding-top: clamp(16px, 4vw, 40px); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--subtle); }
.crumbs a { color: var(--muted); }
.prose { font-size: 18px; line-height: 1.7; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.06; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 56px 0 14px; max-width: none; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--subtle); }
.prose code { font-size: .85em; }
.answer { margin: 28px 0 0 !important; padding: 22px 24px; border-radius: 14px; background: var(--accent-soft); font-size: 19px; line-height: 1.6; }
.updated { font-size: 14px; color: var(--muted); margin: 16px 0 0 !important; }
.prose figure { margin: 36px 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; }
.cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; margin: 48px 0; padding: 26px 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta > svg { grid-row: span 3; width: 64px; height: 64px; }
.cta > svg .track { stroke: var(--track); } .cta > svg .arc { stroke: var(--accent); }
.cta > svg text { fill: var(--text); font: 500 30px var(--sans); }
.prose .cta h2 { margin: 0; font-size: 22px; }
.prose .cta p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cta .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 560px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta > svg { grid-row: auto; width: 52px; height: 52px; } }
.prose .faq-list summary { font-size: 18px; }
.prose .faq-list details p { font-size: 17px; }
.sources li { font-size: 15px; color: var(--muted); }
.guide-cards { list-style: none; margin: 36px 0; padding: 0; border-top: 1px solid var(--line); }
.guide-cards li { border-bottom: 1px solid var(--line); padding: 26px 0; margin: 0; }
.prose .guide-cards h2 { margin: 0 0 8px; font-size: 24px; }
.guide-cards h2 a { color: var(--text); text-decoration: none; }
.guide-cards h2 a:hover { color: var(--accent); text-decoration: underline; }
.guide-cards p { margin: 0; color: var(--muted); font-size: 16px; }

/* Not found */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: start; gap: 0; padding: 48px 0; }
.lost svg { width: 120px; height: 120px; margin-bottom: 32px; }
.lost .track { stroke: var(--track); }
.lost text { fill: var(--muted); font: 500 30px var(--sans); }
.lost .actions { margin-top: 28px; }

/* Screen-reader only */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pages still written with the earlier markup (header.top, nav.top, .button, plain footer) */
header.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 0; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; padding: 4px 0; }
nav.top a:hover, nav.top a[aria-current] { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 10px;
  font: 500 16px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.button:hover { background: var(--raised); }
.button.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); box-shadow: 0 8px 22px -10px var(--primary); }
.button.primary:hover { background: var(--primary-hover); }
body > footer:not(.site-footer) { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 96px); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
body > footer:not(.site-footer) .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
body > footer:not(.site-footer) a { color: var(--muted); }
.prose > h1 { margin: 8px 0 0; }
.prose > .lead { margin-bottom: 8px; }
.prose pre { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #17181C; color: #ECEDF0; border: 1px solid #272930;
  font: 14.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
