:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e2db;
  --accent: #7a2e4d;
  --accent-soft: #f6eaef;
  --ok: #166534;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.topbar {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

main { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }

h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; line-height: 1.3; margin: 0 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.hero { margin-bottom: 20px; }

.status { text-align: center; padding: 56px 0; }

.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.module summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.module[open] summary::after { content: "–"; }
.module[open] summary { border-bottom: 1px solid var(--line); }

.module-title { font-weight: 700; flex: 1; }
.module-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.module-intro { padding: 14px 16px 0; color: var(--muted); }

.block { padding: 14px 16px; border-top: 1px solid var(--line); }
.module-intro + .block { border-top: 0; }

.prompt {
  margin: 0 0 10px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.tip { font-size: 14px; color: var(--muted); }

.copy, .button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.copy { background: var(--ink); color: #fff; }
.copy.copied { background: var(--ok); }
.button { background: var(--accent); color: #fff; }
.button:disabled { opacity: .6; }
.button-secondary { background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
:is(a, button, summary, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.offers { margin-top: 28px; }
.offer {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.offer .button { margin-bottom: 10px; }
.offer .tip { margin: 0; }

.recover { max-width: 380px; margin: 20px auto 0; }
.recover input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
}
.recover .tip { margin-top: 10px; }

.footer { margin-top: 32px; font-size: 14px; color: var(--muted); text-align: center; }
.footer a { color: inherit; }

.upsell .eyebrow { font-size: 14px; font-weight: 700; color: var(--ok); margin-bottom: 6px; }
.upsell ul { padding-left: 20px; margin: 0 0 20px; }
.upsell li { margin-bottom: 8px; }
.price { font-size: 30px; font-weight: 800; margin: 0 0 12px; }
.decline { display: block; margin-top: 18px; padding: 10px; font-size: 14px; color: var(--muted); text-align: center; }
