:root {
  --bg: #f4ede1;
  --card: #fffaf3;
  --ink: #221c14;
  --muted: #6b5f4d;
  --accent: #7a1f2b;
  --accent-ink: #fff;
  --line: #e4d8c4;
  --ok: #2f6b3a;
  --err: #a12b1e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px 40px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(60, 40, 10, 0.08);
}

.brand { text-align: center; margin-bottom: 28px; }
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}
.brand-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 0 0 12px;
}
h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.lede { margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 14px; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 14px;
}
input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
button.linkish {
  background: none;
  color: var(--muted);
  padding: 8px 0;
  font-weight: 400;
  text-decoration: underline;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  background: #fffdf9;
}

.levels { display: flex; flex-direction: column; gap: 10px; }
.level-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.level-name { font-weight: 700; }
.level-fee { font-size: 18px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.level-fee small { font-weight: 400; color: var(--muted); font-size: 13px; }

.terms { margin: 0; padding-left: 20px; }
.terms li { margin-bottom: 8px; }

.tips { color: var(--muted); }
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin: 8px 0 16px;
}
.checkline input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.error { color: var(--err); font-size: 14px; margin: 10px 0 0; }

.tick {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
#step-done, #step-already { text-align: center; }

.foot { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 480px) {
  .card { padding: 22px; }
  .level-row { flex-direction: column; gap: 4px; }
}
