@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font: inherit; }

/* ── Tokens ── */
:root {
  --bg:           #f5f5f0;
  --fabrica:      #215045;
  --surface:      #ffffff;
  --surface-2:    #ecece6;
  --surface-3:    #e0e0d8;
  --border:       rgba(0,0,0,0.09);
  --border-2:     rgba(0,0,0,0.16);
  --text:         #0a0a0a;
  --text-2:       #555;
  --text-3:       #888;
  --accent:       #215045;
  --accent-dk:    #80a854;
  --accent-glow:  rgba(238,118,0,0.2);
  --success:      #16a34a;
  --danger:       #dc2626;
  --blue:         #1d6fde;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  --r:            10px;
  --r-lg:         14px;
  --shadow:       0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 22px rgba(0,0,0,0.1);
}

/* ── Base ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header ── */
.site-header {
  width: 100%;
  background: var(--fabrica);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.site-header img { height: 46px; width: auto; }

/* ── Page heading ── */
.page-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}
.subtitle {
  color: var(--text-2);
  font-size: .88rem;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.7;
}
.subtitle strong { color: var(--accent); font-weight: 700; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  width: 100%;
  max-width: 720px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 18px;
}

/* ── Info rows ── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-3); font-size: .84rem; flex: 0 0 185px; }
.info-value  { font-size: .9rem; word-break: break-all; text-align: right; }
.info-value.mono      { font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.info-value.highlight { color: var(--accent); font-weight: 800; font-size: 1.05rem; }

/* ── Hash box ── */
.hash-box {
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  border-radius: var(--r);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: .77rem;
  color: var(--accent-dk);
  word-break: break-all;
  line-height: 1.7;
  margin-top: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 9999px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 150ms ease;
  text-decoration: none;
}
.btn-primary   { background: var(--accent); color: #fff; box-shadow: 0 3px 12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-blue      { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #175ec0; transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text-2); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface-3); color: var(--text); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: middle;
  margin-left: 8px;
}
.badge-green  { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

/* ── Error ── */
.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: var(--danger);
  border-radius: var(--r);
  padding: 13px 17px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 720px;
  font-size: .9rem;
}

/* ── Forms ── */
label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
}

input[type=date],
input[type=number],
input[type=text],
select,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  padding: 10px 13px;
  font-size: .93rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea { resize: vertical; min-height: 100px; font-family: var(--font); }

.form-row { display: flex; gap: 14px; }
.form-row > div { flex: 1; }

/* ── Info note ── */
.info-note {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--r);
  padding: 12px 15px;
  color: var(--text-2);
  font-size: .83rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.info-note strong { color: var(--accent-dk); }

/* ── Separator ── */
.separator { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 720px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--r);
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}
.tab-btn:hover  { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Verification pair cards ── */
.verify-pair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.verify-card {
  flex: 1;
  min-width: 200px;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 14px 16px;
}
.verify-card.ok   { border: 1.5px solid #86efac; }
.verify-card.next { border: 1.5px solid #fca5a5; }
.verify-card .vc-label  { font-size: .72rem; font-weight: 700; margin-bottom: 6px; }
.verify-card.ok   .vc-label { color: var(--success); }
.verify-card.next .vc-label { color: var(--danger); }
.verify-card .vc-height { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.verify-card .vc-date   { color: var(--text-2); font-size: .82rem; margin-top: 3px; }
.verify-card a { color: var(--accent); font-size: .79rem; margin-top: 8px; display: inline-block; }
.verify-arrow { display: flex; align-items: center; color: var(--text-3); font-size: 1.3rem; }

.verify-how {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 13px 15px;
  font-size: .81rem;
  color: var(--text-2);
  line-height: 1.75;
}
.verify-how strong { color: var(--text); }

/* ── Winner box ── */
.winner-box {
  text-align: center;
  padding: 24px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--r-lg);
  margin-top: 18px;
}
.winner-box .big   { font-size: 1.9rem; font-weight: 800; color: #15803d; }
.winner-box .label { color: var(--text-3); font-size: .84rem; margin-top: 7px; }

/* ── Calc details ── */
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--text-3); font-size: .84rem; user-select: none; }
.calc-box {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 13px 15px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.9;
  color: var(--text-2);
}
.calc-box strong { color: var(--success); }

/* ── Links ── */
.verify-link { margin-top: 14px; text-align: center; }
.verify-link a { color: var(--accent); font-size: .84rem; }
.verify-link a:hover { text-decoration: underline; }

.timestamp { color: var(--text-3); font-size: .76rem; margin-top: 7px; text-align: right; }

/* ── Action row ── */
.action-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin-bottom: 20px;
}
.action-row form { flex: 1; }
.action-row .btn { width: 100%; }

/* ── Footer ── */
.site-footer {
  color: var(--text-3);
  font-size: .75rem;
  margin: 24px 0 36px;
  text-align: center;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .card         { padding: 20px 16px; }
  .form-row     { flex-direction: column; gap: 0; }
  .info-label   { flex: 0 0 130px; }
  .action-row   { flex-direction: column; }
  .verify-pair  { flex-direction: column; }
  .verify-arrow { display: none; }
}
