* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --page: #faf8f1;
  --surface: #fffefa;
  --surface-muted: #fbf8ef;
  --line: #eae3d2;
  --text: #29271f;
  --muted: #756f60;
  --accent: #a87310;
  --accent-strong: #80540a;
  --accent-soft: #f8efcf;
  --shadow: 0 18px 50px rgb(57 45 18 / 7%);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -18%, rgb(246 229 178 / 60%), transparent 58%),
    var(--page);
  color: var(--text);
  font: 15px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.topbar,
.status,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e7cd83;
  border-radius: 9px;
  background: #f6e8bd;
  color: #72510c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-country {
  margin-left: -5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.status {
  justify-content: flex-start;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3a331;
  content: "";
}

.hero {
  padding: 76px 0 30px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 7vw, 66px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero h1 span {
  color: var(--accent);
}

.intro {
  max-width: 560px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.panel,
.results {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgb(224 230 222 / 90%);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.panel > p:not(.message) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 700;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.safety-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.safety-tips li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.safety-tips li > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.safety-tips li p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.message {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
}

.privacy-note strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.privacy-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(168 115 16 / 25%);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.results {
  margin-top: 18px;
}

.results-heading {
  margin-bottom: 22px;
}

.results-heading .eyebrow {
  margin-bottom: 7px;
}

.pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #d5e9da;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 650;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.metric {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.metric small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.note {
  margin: 17px 0;
  color: var(--muted);
  font-size: 12px;
}

.secondary {
  width: auto;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary:hover:not(:disabled) {
  border-color: #c6d3c8;
  background: var(--surface-muted);
}

.field-label {
  display: block;
  margin: 20px 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

input[type="password"] {
  width: 100%;
  min-height: 46px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #dce3db;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

input[type="password"]::placeholder {
  color: #98a39a;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.035em;
}

td {
  color: var(--text);
}

tbody tr:last-child td {
  border-bottom: 0;
}

h3 {
  margin: 28px 0 11px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

footer {
  padding: 25px 4px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 32px, 840px);
    padding-top: 18px;
  }

  .hero {
    padding: 58px 0 24px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .status {
    font-size: 11px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .safety-tips {
    grid-template-columns: 1fr;
  }

  .results-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
