/* PaintQuote — a paint-chip card from the counter at the paint store: white stock,
   teal from the app icon, the answer printed on a swatch. Deliberately unlike the hub
   and unlike every other section. */
:root {
  --bg: #f5f7f6;
  --paper: #ffffff;
  --fg: #16201d;
  --muted: #5f6d68;
  --line: #dde4e1;
  --line-2: #c5d0cc;
  --accent: #0f7d68;
  --accent-ink: #0b5e4f;
  --chip: #d9efe9;
  --chip-2: #b4ded3;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 20px; }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--fg); }
.bar .id { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.bar .id img { width: 26px; height: 26px; border-radius: 7px; display: block; }

.hero { padding: clamp(34px, 8vw, 60px) 0 clamp(18px, 5vw, 30px); }
h1 { font-size: clamp(1.95rem, 6.2vw, 2.85rem); line-height: 1.09; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700; }
h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -0.02em; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.08rem; margin: 1.6em 0 0.4em; }
.sub { font-size: clamp(1.04rem, 3.2vw, 1.2rem); color: var(--muted); margin: 0 0 24px; max-width: 35rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 650; font: inherit; font-weight: 650;
  text-decoration: none; padding: 12px 20px; border-radius: 11px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* calculator */
.calc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; margin: 26px 0; box-shadow: 0 1px 2px rgba(22, 32, 29, 0.04);
}
.calc h2 { margin-top: 0; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; width: max-content; margin-bottom: 18px; }
.seg button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 0.92rem;
  padding: 8px 16px; cursor: pointer; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 12px; }
.grid label, .field { display: block; }
.lbl { font-size: 0.76rem; color: var(--muted); display: block; margin-bottom: 4px; letter-spacing: 0.01em; }
input, select {
  font: inherit; font-size: 0.98rem; padding: 9px 10px; border: 1px solid var(--line-2);
  border-radius: 9px; background: var(--paper); color: var(--fg); width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; margin-top: 14px; }
.check input { width: auto; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }
.divider { border: 0; border-top: 1px dashed var(--line-2); margin: 20px 0; }

/* the answer, printed on a paint chip */
.chip {
  display: grid; grid-template-columns: 12px 1fr; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--chip-2); margin-top: 20px; background: var(--paper);
}
.chip::before { content: ""; background: linear-gradient(var(--chip-2), var(--accent)); }
.chip .body { padding: 18px 20px; }
.chip .big { font-family: var(--mono); font-size: clamp(1.9rem, 7vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.chip .cap { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.buy { list-style: none; padding: 0; margin: 14px 0 0; }
.buy li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; font-size: 0.97rem; }
.buy li span:last-child { font-family: var(--mono); white-space: nowrap; }
.buy li.sum { font-weight: 650; }

table.lines { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 14px; }
table.lines td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.lines .sub td { color: var(--muted); }

/* content */
section { margin: 2.4em 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: 0.4em 0; }
.tablewrap { overflow-x: auto; margin: 1em -4px; padding: 0 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.data td.n { font-family: var(--mono); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--chip); padding: 1px 5px; border-radius: 5px; }
.note { background: var(--chip); border-radius: 11px; padding: 14px 16px; margin: 20px 0; font-size: 0.94rem; }

.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; margin: 1.1em 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.05em;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--chip);
  color: var(--accent-ink); font-weight: 650; font-size: 0.88rem; display: grid; place-items: center;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 0.96rem; }

.reviewed { color: var(--muted); font-size: 0.85rem; }
footer { border-top: 1px solid var(--line); margin-top: 3em; padding: 20px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

.shots { display: flex; gap: 14px; overflow-x: auto; padding: 0 20px 6px; margin: 0 -20px; }
.shots img { width: 232px; height: auto; border-radius: 14px; border: 1px solid var(--line); flex: none; }
table.data td.wrap-ok { white-space: normal; }
