:root {
  --ink: #18231f;
  --muted: #65736d;
  --paper: #f4f7f2;
  --panel: #ffffff;
  --line: #d9e3db;
  --accent: #2c7b58;
  --accent-dark: #1e5f43;
  --accent-soft: #e3f1e8;
  --warm: #e8c76e;
  --gap: clamp(1rem, 2vw, 1.45rem);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Avenir Next", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 2.4rem)); margin: 0 auto; }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.3rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.eyebrow, .kicker, .card-label { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: .55rem; }
.signal-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 .22rem #f6eac5; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Avenir Next", "Segoe UI", sans-serif; }
h1 { max-width: 730px; margin: 1.15rem 0 1.2rem; font-size: clamp(3rem, 8vw, 7.4rem); line-height: .9; letter-spacing: -.085em; }
h1 em { color: var(--accent); font-style: normal; }
.hero > p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1rem, 4vw, 3.5rem); padding: clamp(2rem, 5vw, 4.5rem) 0; }
.panel { padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.source-panel { align-self: start; }
.section-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.55rem; }
.step-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: .72rem; font-weight: 800; }
.section-heading .kicker { margin: .1rem 0 .3rem; color: var(--accent); }
h2 { margin-bottom: 0; font-size: 1.35rem; letter-spacing: -.045em; }
label { display: block; margin: 1.15rem 0 .45rem; font-size: .8rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
select, textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; color: var(--ink); outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
select { height: 2.8rem; padding: 0 .8rem; }
textarea { min-height: 18rem; padding: .85rem; line-height: 1.55; resize: vertical; }
select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.action-row { display: flex; gap: .65rem; margin-top: 1rem; }
.button { border: 1px solid transparent; border-radius: 9px; padding: .72rem 1rem; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.button-quiet:hover { color: var(--ink); background: #f8fbf8; }
.hint { margin: .8rem 0 0; color: var(--muted); font-size: .75rem; }
kbd { padding: .12rem .3rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: white; font-size: .68rem; }
.insight-panel { min-width: 0; }
.score-card { display: flex; align-items: center; justify-content: space-between; min-height: 8.8rem; padding: 1.5rem; border-radius: 16px; background: var(--ink); color: #eff7f0; transition: background .2s ease; }
.score-card[data-level="strong"] { background: var(--accent-dark); }
.score-card[data-level="review"] { background: #514f3a; }
.score-card .card-label { color: #b6c9bc; }
.score-card strong { display: block; margin-top: .5rem; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: .85; letter-spacing: -.08em; }
.card-mark { color: var(--warm); font-size: 2rem; }
.summary { margin: 1.2rem 0; color: var(--muted); line-height: 1.55; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.2rem; }
.metrics div { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem; border-top: 1px solid var(--line); }
.metrics span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.metrics strong { font-size: 1.1rem; }
.signal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signal-section { padding-top: .95rem; border-top: 2px solid var(--line); }
.signal-section.supported { border-color: var(--accent); }
.signal-section.gaps { border-color: var(--warm); }
.signal-title { display: flex; align-items: center; gap: .5rem; }
.signal-title h3 { margin: 0; font-size: .9rem; letter-spacing: -.02em; }
.mini-mark { color: var(--accent); font-size: 1.1rem; font-weight: 800; }
.gaps .mini-mark { color: #9b7b24; }
ul { margin: .8rem 0 0; padding-left: 1.1rem; }
li { margin-bottom: .6rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.next-step { margin-top: 1.25rem; padding: 1rem; border-radius: 12px; background: var(--accent-soft); }
.next-step .kicker { margin-bottom: .45rem; color: var(--accent-dark); }
.next-step p:last-child { margin-bottom: 0; line-height: 1.5; }
.examples { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.4rem 0 3rem; border-top: 1px solid var(--line); }
.examples .kicker { margin-bottom: .35rem; color: var(--accent); }
.examples h2 { font-size: 1.2rem; }
.example-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.example-list button { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: .8rem; font-weight: 700; }
.example-list button:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.example-list span { margin-left: .5rem; color: var(--accent); }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 2rem; color: var(--muted); font-size: .72rem; }
.footer span:first-child { color: var(--ink); font-weight: 800; }
@media (max-width: 780px) {
  .shell { width: min(100% - 1.2rem, 680px); }
  .workbench { grid-template-columns: 1fr; }
  .signal-columns { grid-template-columns: 1fr; }
  .examples { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .footer { flex-direction: column; }
}
