:root {
  --bg: #eef3f0;
  --card: #ffffff;
  --text: #15231c;
  --muted: #5b6b63;
  --accent: #0f6b4c;
  --accent-hover: #0c563d;
  --danger: #9b1c1c;
  --border: #d5e0da;
  --shadow: 0 10px 30px rgba(21, 35, 28, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9ebe2 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #cfe0f2 0%, transparent 50%),
    var(--bg);
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: min(100%, 34rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
}

.page-header .lead {
  margin: 0;
  max-width: 28rem;
}

.logo {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.45;
}

.status-box {
  background: #f5faf7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.status-box p { margin: 0.2rem 0; }

.help {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.55rem !important;
}

.hint {
  background: #f7faf8;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.muted { color: var(--muted); font-size: 0.92rem; }

.actions {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

button:hover { background: var(--accent-hover); }

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

button.secondary:hover { background: #f3f7f5; }

.error {
  color: var(--danger);
  background: #fdecec;
  border: 1px solid #f3c1c1;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
}

.privacy {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 0.35rem 0;
  user-select: none;
}

.privacy > summary::-webkit-details-marker {
  display: none;
}

.privacy > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.privacy[open] > summary::before {
  content: "▾ ";
}

.privacy-body {
  margin-top: 0.75rem;
}

.privacy ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.45;
}

.disclaimer {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--border);
  background: #f7faf8;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.disclaimer-action {
  margin: 0.85rem 0 0;
  text-align: center;
}

a.btn-link {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

a.btn-link:hover {
  background: var(--accent-hover);
}

@media (min-width: 640px) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }
}
