/* Modern theme, orange accent, rings background. Source design: design/Modern.dc.html */
:root {
  --ink: #0B0B0F;
  --muted: #5A5A66;
  --soft: #3F3F48;
  --ground: #F7F7F8;
  --line: #E7E7EC;
  --edge: #CFCFD6;
  --chip: #F0F0F3;
  --tint: #F1F1F4;
  --accent: #C4500A;
  --hi: #FFB877;
  --card: rgba(255, 255, 255, 0.7);
  --mono: 'Geist Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.5 Geist, Inter, system-ui, sans-serif;
  background-color: var(--ground);
  background-image:
    linear-gradient(180deg, rgba(247, 247, 248, 0) 0, var(--ground) 900px),
    repeating-radial-gradient(circle at 100% 0, transparent 0, transparent 46px, #FFB877B3 46px, #FFB877B3 47px);
  background-repeat: no-repeat;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
a { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.top, main { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top { padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
main { padding-top: 64px; padding-bottom: 96px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--hi); display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

.pills { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #E9E9EE; border-radius: 26px; align-self: flex-start; }
.pills button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: transparent; color: var(--soft); font-size: 15px; font-weight: 600; }
.pills button[aria-current="page"], .pills button[aria-selected="true"] { background: var(--ink); color: #fff; }

.banner { max-width: 1112px; margin: 16px auto 0; padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 15px; }

.stack { display: flex; flex-direction: column; gap: 28px; }
.narrow { max-width: 760px; margin: 0 auto; }
.article { max-width: 920px; margin: 0 auto; gap: 44px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
h1.small { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
h2.section { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; }
.lede { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.small-text { font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card.pad-lg { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.card.dark { background: var(--ink); color: #fff; border: 0; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.card.dark .kicker { color: var(--hi); }
.card.dark p:first-of-type { font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.card.dark p { font-size: 18px; line-height: 1.55; color: #D6D6DE; }
.card.dark p:first-of-type { color: #fff; }

.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }
.row.tight { gap: 8px; }
.grow { flex: 1 1 260px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--edge); background: #fff; border-radius: 14px; padding: 0 18px; height: 56px; font-size: 17px;
}
.textarea { height: auto; padding: 14px 16px; font-size: 15px; line-height: 1.5; resize: vertical; }
.input.sm, .select.sm { height: 44px; border-radius: 22px; padding: 0 16px; font-size: 15px; }
.select.md { height: 48px; padding: 0 14px; font-size: 15px; }

.btn { min-height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid var(--edge); background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.hi { background: var(--hi); color: var(--ink); border-color: var(--hi); }
.btn.lg { min-height: 56px; padding: 0 32px; border-radius: 28px; font-size: 17px; }
.btn.link { border: 0; background: transparent; color: var(--accent); padding: 0 8px; }
.btn.icon { width: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.btn.round { width: 44px; padding: 0; font-size: 20px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.option { flex: 1 1 200px; min-height: 80px; padding: 16px 20px; text-align: left; background: #fff; border: 2px solid var(--edge); border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.option strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.option span { font-size: 14px; color: var(--muted); }
.toggle-chip { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--edge); background: #fff; font-size: 15px; font-weight: 500; }
.toggle-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 14px; background: var(--chip); color: var(--soft); font-size: 13px; font-weight: 500; }
.chip.hi { background: var(--hi); color: var(--ink); font-weight: 600; }
.chip.dark { background: var(--ink); color: #fff; font-weight: 600; }
.chip.accent { background: var(--accent); color: #fff; font-weight: 600; }
.chip.soon { background: transparent; border: 1px dashed #A9A9B4; color: var(--muted); font-weight: 600; }
.chip.lg { padding: 6px 12px; border-radius: 16px; font-size: 14px; }
.chip.removable { padding: 0 0 0 14px; border-radius: 22px; font-size: 14px; gap: 4px; }

.divide { border-top: 1px solid var(--line); }
.list-card { padding: 8px 28px; }
.list-row { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-row .text strong { font-size: 16px; font-weight: 600; }
.list-row .text span { font-size: 14px; color: var(--muted); }
.list-row.soon .text strong, .list-row.soon .text span { color: #74747F; }
.wrap-row { flex-wrap: wrap; gap: 12px 24px; }

.switch { flex: none; width: 56px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; }
.switch span { width: 52px; height: 30px; border-radius: 15px; background: #8C8C99; display: flex; align-items: center; padding: 3px; }
.switch span::after { content: ""; width: 24px; height: 24px; border-radius: 12px; background: #fff; }
.switch[aria-checked="true"] span { background: var(--accent); justify-content: flex-end; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; }
.steps li + li { border-top: 1px solid var(--line); }
.dot { flex: none; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--edge); background: #fff; color: var(--muted); font-size: 14px; font-weight: 700; }
.steps li.done .dot { background: var(--ink); border-color: var(--ink); color: var(--hi); }
.steps li.active .dot { border-color: var(--accent); color: var(--accent); }
.steps li.waiting strong { color: var(--muted); }
.steps .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.steps .text strong { font-size: 17px; font-weight: 600; }
.steps .text span { font-size: 14px; color: var(--muted); }

.comp-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.comp-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.comp-card p { font-size: 15px; color: var(--soft); }
.bullets { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.bullets .head { font-size: 13px; font-weight: 700; color: var(--muted); }
.bullets .head.accent { color: var(--accent); }
.note { font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; padding: 0; }
.matrix { min-width: 680px; display: grid; }
.matrix div { padding: 16px 20px; font-size: 15px; background: #fff; color: var(--muted); }
.matrix div.head { color: var(--ink); font-weight: 600; }
.matrix div.yes { color: var(--accent); font-weight: 600; }
.matrix div.own { background: var(--tint); }
.matrix div.line { border-top: 1px solid var(--line); }

.gap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; padding: 24px; }
.gap .num { font-family: var(--mono); font-size: 14px; color: var(--accent); padding-top: 3px; }
.gap .body { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gap h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.gap p { font-size: 15px; color: var(--soft); }
.gap .meta { flex: 1 1 200px; display: flex; gap: 24px; }
.gap .meta span { display: block; font-size: 13px; color: var(--muted); }
.gap .meta strong { font-size: 16px; }
.strategy { font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.panel { flex: 1 1 280px; background: var(--ground); border-radius: 16px; padding: 20px; }

.step-pick { min-height: 68px; padding: 12px 16px; text-align: left; background: transparent; border: 2px solid var(--line); border-radius: 18px; display: flex; align-items: center; gap: 14px; }
.step-pick[aria-pressed="true"] { border-color: var(--accent); background: #fff; }
.step-pick .num { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.step-pick strong { display: block; font-size: 16px; font-weight: 600; }
.step-pick small { font-size: 13px; color: var(--muted); }
code.var { padding: 3px 10px; border-radius: 10px; background: var(--chip); color: var(--soft); font-family: var(--mono); font-size: 13px; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); }
.spread { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

@media print {
  body { background: #fff; }
  .top, .banner, .no-print { display: none !important; }
  main { padding-top: 0; }
  .card { border-color: #ccc; background: #fff; }
}
