:root {
  --bg: #ece6e7;
  --ink: #1e1e1e;
  --earth: #544840;
  --sand: #d6cab6;
  --surface: #ffffff;
  --line: color-mix(in srgb, var(--earth) 22%, transparent);
  --line-soft: color-mix(in srgb, var(--earth) 12%, transparent);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --track-wide: 0.18em;
  --track-label: 0.14em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 5vw, 2rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 32rem;
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.5rem, 6vw, 2.25rem);
  border: 1px solid var(--line-soft);
  text-align: left;
}

.card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--earth);
  margin-bottom: 1.35rem;
  opacity: 0.85;
}

.badge {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--earth);
  margin: 0 0 1rem;
  padding: 0 0 0.85rem;
  display: block;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

h1 {
  font-size: clamp(1.05rem, 3.2vw, 1.22rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 1rem;
  color: var(--earth);
  line-height: 1.4;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
}

.ai-block {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.ai-label {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--earth);
  margin-bottom: 0.65rem;
}

.ai-text {
  margin: 0;
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
}

.tips-label {
  margin: 0 0 0.25rem;
  font-weight: 500;
  font-size: clamp(0.92rem, 2.7vw, 1.02rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--earth);
  line-height: 1.5;
}

.badge-stack {
  margin: 0 0 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.badge-stack .badge {
  margin: 0;
  padding: 0;
  border-bottom: none;
  display: block;
}

.badge-stack .badge + .badge {
  margin-top: 0.45rem;
}

.badge--muted {
  font-size: 0.58rem;
  opacity: 0.72;
  letter-spacing: var(--track-wide);
}

ul.tips {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

ul.tips li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  line-height: 1.55;
  position: relative;
  padding-left: 0.85rem;
}

ul.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 3px;
  height: 3px;
  background: var(--earth);
  opacity: 0.55;
}

ul.tips li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.error {
  text-align: left;
  padding: 0;
}

.error p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.error.card::before {
  background: var(--earth);
  opacity: 0.35;
}
