/* gauk-ai-feedback: the web page. Plain CSS, system fonts, no third-party requests. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1c2321;
  --muted: #5b6461;
  --line: #dfddd5;
  --accent: #234e52;
  --accent-ink: #ffffff;
  --accent-soft: #e3eeec;
  --warn: #8a4b0f;
  --warn-soft: #f8ecdc;
  --bad: #9b2c2c;
  --bad-soft: #f7e3e1;
  --ok-soft: #e6f0e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 16px rgba(20, 30, 28, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a19;
    --surface: #1c2422;
    --ink: #e9ecea;
    --muted: #a3ada9;
    --line: #2e3936;
    --accent: #7fc4bb;
    --accent-ink: #0f1a18;
    --accent-soft: #20332f;
    --warn: #f0b36b;
    --warn-soft: #3a2c1a;
    --bad: #f19a92;
    --bad-soft: #3c2221;
    --ok-soft: #1f3322;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand rect { fill: var(--accent); }
.brand path { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill { font-size: 13px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.lang { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button, .seg button {
  font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted);
  padding: 4px 12px; border-radius: 99px; cursor: pointer;
}
.lang button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* hero */
.hero { padding-block: 44px 16px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 19px; margin: 0 0 14px; max-width: 42em; }
.byline { margin: 0 0 10px; color: var(--muted); }
.byline a { font-weight: 600; }
.note { margin: 0; font-size: 15px; color: var(--muted); max-width: 46em; }

.section-h { font-size: 20px; margin: 32px 0 14px; }

/* the three choices */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.choice {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .15s;
}
.choice:hover { border-color: var(--accent); }
.choice[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice-n {
  width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.choice-title { font-weight: 650; font-size: 18px; line-height: 1.3; }
.choice-text { color: var(--muted); font-size: 15px; line-height: 1.45; }
.badge {
  position: absolute; top: 16px; right: 14px; font-size: 12px; padding: 1px 9px;
  border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.badge-rec { border-color: var(--accent); color: var(--accent); }
.badge-exp { border-style: dashed; }

.choice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.choice .badge { position: static; }
.choice-slim {
  margin-top: 12px; width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap;
  gap: 6px 12px; padding: 12px 16px; box-shadow: none; background: transparent;
}
.choice-slim .choice-n { width: 26px; height: 26px; font-size: 14px; background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.choice-slim .choice-title { font-size: 16px; }
.choice-slim .choice-text { flex: 1 1 200px; }
.expired { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 12px 14px; margin: 18px 0 0; font-weight: 600; }
.points { margin: 0 0 14px; max-width: 42em; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.dl { font-weight: 600; }
.linkish { font: inherit; font-size: 15px; border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.why { margin: 0 0 10px; }
.why summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; }
.why p { font-size: 15px; margin: 6px 0 0; }
.sub-h { font-size: 17px; margin: 20px 0 4px; }
.plain { padding-left: 22px; }
.plain li { margin-bottom: 6px; }
.slots { list-style: none; margin: 8px 0 6px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.slot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); transition: background .15s; }
.slot:first-child { border-top: 0; }
.slot.over { background: var(--accent-soft); }
.slot-name { flex: 1 1 230px; font-weight: 600; }
.slot-file { flex: 1 1 200px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.slot-file.has { color: var(--ink); }
.slot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slot .btn { padding: 6px 14px; font-size: 15px; }

/* panels */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 26px; margin-top: 18px; box-shadow: var(--shadow);
}
.panel > h2 { margin: 0 0 8px; font-size: 22px; }
.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps > li { position: relative; padding: 14px 0 16px 48px; border-top: 1px solid var(--line); counter-increment: s; }
.steps > li:first-child { border-top: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 99px;
  border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700;
}
.steps h3 { margin: 2px 0 4px; font-size: 18px; }
.steps p { margin: 0 0 10px; }
.steps-plain > li { padding-left: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; padding: 10px 18px;
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  text-decoration: none; display: inline-block;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-big { font-size: 18px; padding: 14px 26px; margin: 6px 0 4px; }
.btn-ghost { background: transparent; color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.seg { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 0 0 10px; }
.seg-label { font-size: 14px; color: var(--muted); padding: 0 6px 0 10px; }
.hint { font-size: 14px; color: var(--muted); }
.status { font-size: 15px; font-weight: 600; color: var(--accent); min-height: 1.4em; margin: 4px 0 0; }
.fallback summary, .more summary, .list summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.fallback textarea { width: 100%; margin-top: 8px; font: 13px/1.4 ui-monospace, Consolas, monospace; }
.aside { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.privacy { background: var(--ok-soft); border-radius: 10px; padding: 10px 14px; font-size: 15px; }

/* the formal check */
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; margin: 14px 0 8px;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-main { font-weight: 650; font-size: 18px; }
.drop-hint { font-size: 14px; color: var(--muted); }
.files { list-style: none; margin: 0 0 10px; padding: 0; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.files .fname { flex: 1 1 220px; overflow-wrap: anywhere; }
.files .fsize { color: var(--muted); font-size: 14px; }
.files select { max-width: 100%; }
.files .rm { font: inherit; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 10px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.field input, .field select, .field textarea, .files select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.field textarea { resize: vertical; }
.more { margin: 6px 0 12px; }
.more[open] { padding-bottom: 4px; }

.results { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { padding: 4px 12px; border-radius: 99px; font-size: 15px; font-weight: 600; }
.chip-b { background: var(--bad-soft); color: var(--bad); }
.chip-a { background: var(--warn-soft); color: var(--warn); }
.chip-u { background: var(--accent-soft); color: var(--muted); }
.finding { border-left: 4px solid var(--line); padding: 8px 12px; margin: 0 0 12px; background: var(--bg); border-radius: 0 8px 8px 0; }
.finding.k-BLOCKING { border-color: var(--bad); }
.finding.k-ADVISORY { border-color: var(--warn); }
.finding h4 { margin: 0 0 4px; font-size: 16px; }
.finding .kind { font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-left: 6px; color: var(--muted); }
.finding dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 14.5px; }
.finding dt { color: var(--muted); }
.finding dd { margin: 0; overflow-wrap: anywhere; }
.list { margin: 8px 0; }
.list ul { font-size: 14.5px; padding-left: 20px; }

.limits ul { padding-left: 20px; color: var(--muted); font-size: 15.5px; }

/* footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); padding-block: 22px 30px; font-size: 15px; color: var(--muted); }
.foot p { margin: 0 0 8px; }
.foot .author { color: var(--ink); }
.foot .author a { font-weight: 650; }
.small { font-size: 13.5px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .panel { padding: 18px 16px 20px; }
  .steps > li { padding-left: 42px; }
  .hero { padding-top: 28px; }
  .lang { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
