:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142737;
  background: #faf9f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #142737;
  --muted: #536575;
  --line: #d6dadc;
  --peach: #f3c5af;
  --sky: #edf3f4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1d5278; text-underline-offset: 4px; }
a:hover { color: #143b59; }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #4d89ae; outline-offset: 3px; }
.site-header { min-height: 70px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(20px, 4vw, 72px); gap: 16px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 1.55rem; font-weight: 800; letter-spacing: -.055em; }
.edition { font-size: .84rem; color: var(--muted); }
main { max-width: 1510px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 72px) 72px; }
.intro { padding: 70px 0 58px; max-width: 900px; }
h1 { font-size: clamp(2.5rem, 5.2vw, 5.7rem); letter-spacing: -.065em; line-height: 1.035; font-weight: 700; margin: 0; }
.intro > p { font-size: clamp(1.08rem, 1.5vw, 1.38rem); line-height: 1.55; max-width: 760px; color: #354f60; margin: 30px 0; }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .86rem; }
.tag { display: inline-flex; background: #e6ecf0; padding: 9px 14px; border-radius: 100px; color: #26485c; font-weight: 600; }
.scenario-picker { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-top: 1px solid #afbac1; padding: 27px 0 34px; }
h2 { margin: 0; }
.scenario-picker h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.scenario-picker p { color: var(--muted); margin: 7px 0 0; }
.picker-field { display: flex; flex-direction: column; gap: 8px; min-width: 310px; }
.picker-field label, .field-label { color: var(--muted); font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .065em; }
select, input[type=text], input[type=number] { padding: 13px 14px; border: 1px solid #a9b7c0; color: var(--ink); background: #fff; border-radius: 7px; width: 100%; }
.patterns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #b7c2c6; border: 1px solid #b7c2c6; }
.panel { background: #fff; padding: clamp(22px, 2.7vw, 40px); min-width: 0; }
.panel-number { color: #647783; font-variant-numeric: tabular-nums; font-size: .83rem; font-weight: 700; }
.panel h2 { font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -.045em; margin: 12px 0; }
.panel h3 { font-size: 1rem; margin: 29px 0 15px; }
.panel-explain { margin: 0 0 29px; color: var(--muted); line-height: 1.48; min-height: 80px; }
.field-label { margin: 24px 0 8px; }
.panel .field-label:first-of-type { margin-top: 0; }
.hero-fact { font-size: 1.12rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; margin: 0; }
.fact { line-height: 1.46; margin: 0; }
.option-list, .shared-list { list-style: none; padding: 0; margin: 3px 0 0; }
.option-list li, .shared-list li { padding: 10px 0; border-bottom: 1px solid #e2e7e9; line-height: 1.4; }
.option-list li:last-child, .shared-list li:last-child { border: 0; }
.quiet-rule { border-top: 1px solid var(--line); margin: 24px 0; }
.fine { font-size: .84rem; line-height: 1.5; color: #4b5d69; margin: 11px 0; }
.amount-row { display: flex; align-items: center; gap: 13px; }
.amount-row input { max-width: 160px; }
.amount-row span { color: var(--muted); }
.terms-summary { background: var(--sky); padding: 18px; margin: 23px 0 14px; line-height: 1.45; }
.terms-summary strong { font-size: .92rem; }
.terms-summary p { margin: 10px 0 0; }
.revoke { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; line-height: 1.3; }
.revoke input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #244e69; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
button { border-radius: 6px; border: 1px solid #748895; padding: 11px 14px; cursor: pointer; font-weight: 630; font-size: .9rem; line-height: 1.3; }
button.primary { background: #233e53; color: #fff; border-color: #233e53; }
button.secondary { background: #fff; color: #243d51; }
button:disabled { cursor: not-allowed; opacity: .39; }
button.text-button { padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; background: transparent; color: #1a537b; border: 0; text-align: left; }
.check-result { border-left: 3px solid #c38152; padding: 8px 12px; margin: 16px 0 0; font-size: .88rem; background: #fff4ed; line-height: 1.5; }
.check-result[data-allowed="true"] { background: #eaf2ed; border-color: #54866c; }
.status { padding: 20px; background: #f6eee7; border-left: 4px solid #d39968; line-height: 1.45; min-height: 90px; font-weight: 610; }
.step-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { border-left: 2px solid #7b9bab; margin-left: 5px; padding: 0 0 17px 17px; position: relative; }
.timeline li::before { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #42718b; left: -5px; top: 6px; }
.timeline li strong, .timeline li small { display: block; }
.timeline li strong { font-size: .88rem; line-height: 1.45; }
.timeline li small { font-size: .77rem; color: var(--muted); padding-top: 3px; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; border-top: 1px solid var(--line); padding-top: 17px; }
.note { background: #f2f4f4; padding: 15px; }
.try-it { margin-top: 46px; padding: 34px 0; border-top: 1px solid #b5bfc5; max-width: 1000px; }
.try-it h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); letter-spacing: -.04em; }
.try-it p { font-size: 1.07rem; line-height: 1.65; color: #344e5c; }
.link-row { display: flex; flex-wrap: wrap; gap: 13px 26px; margin-top: 30px; }
.link-row a { font-weight: 700; }
footer { padding: 25px clamp(20px, 4vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .patterns-grid { grid-template-columns: 1fr 1fr; } .panel:last-child { grid-column: 1 / -1; } .panel-explain { min-height: unset; } }
@media (max-width: 700px) { .site-header { align-items: flex-start; } .edition { text-align: right; } .intro { padding: 50px 0 38px; } .scenario-picker { align-items: stretch; flex-direction: column; } .picker-field { min-width: 0; } .patterns-grid { grid-template-columns: 1fr; } .panel:last-child { grid-column: auto; } .panel { padding: 26px 22px; } .panel-explain { margin-bottom: 22px; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s, opacity .15s; } }
