:root {
  --hl-green: #7ac143;
  --hl-green-dark: #5fa032;
  --hl-green-soft: rgba(122, 193, 67, 0.12);
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e2e8e0;
  --bg: #fafafa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.row {
  margin-bottom: 1rem;
}

.row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.row input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.row input:focus {
  outline: none;
  border-color: var(--hl-green);
  box-shadow: 0 0 0 3px var(--hl-green-soft);
}

button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--hl-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--hl-green-dark);
}

.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.results {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.results h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--hl-green-soft);
  border-bottom: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

td:first-child {
  color: var(--muted);
  font-size: 0.8125rem;
  width: 42%;
}

.results td.cell-num {
  text-align: right;
  font-weight: 500;
}

.results td.cell-copy {
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
  width: 1%;
  padding-left: 0.35rem;
  padding-right: 1rem;
}

tr:last-child td {
  border-bottom: none;
}

.row-retail td:first-child {
  color: var(--muted);
}

.highlight {
  background: var(--hl-green-soft);
}

.highlight td {
  font-weight: 600;
  color: var(--text);
  border-color: rgba(122, 193, 67, 0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.highlight td:first-child {
  color: var(--text);
}

.btn-copy-price {
  padding: 0.45rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hl-green-dark);
  background: #fff;
  border: 1px solid var(--hl-green);
  border-radius: 6px;
  cursor: pointer;
  max-width: 11rem;
  text-align: center;
}

.btn-copy-price:hover {
  background: var(--hl-green);
  color: #fff;
}

.highlight .btn-copy-price {
  background: #fff;
}

.copy-toast {
  display: none;
  text-align: center;
  font-size: 0.75rem;
  color: var(--hl-green-dark);
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
}

.copy-toast.show {
  display: block;
}
