:root {
  --bg: #f7f1e8;
  --ink: #2f243d;
  --muted: #665b71;
  --soft: #fffaf2;
  --line: #d9cdbf;
  --plum: #65406f;
  --plum-dark: #432849;
  --sage: #627566;
  --gold: #b9873c;
  --gold-soft: #f1dfbf;
  --shadow: 0 18px 60px rgba(47, 36, 61, 0.16);
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.82), rgba(247, 241, 232, 0.95)),
    repeating-linear-gradient(90deg, rgba(101, 64, 111, 0.045) 0, rgba(101, 64, 111, 0.045) 1px, transparent 1px, transparent 72px);
}

.app-shell {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px 16px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.tool-card {
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(217, 205, 191, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
}

.intro-card,
.capture-card {
  text-align: center;
}

.eyebrow,
.step-kicker,
.result-badge {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--plum-dark);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
}

.subtitle {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--plum);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
}

.intro-copy {
  max-width: 620px;
  margin: 28px auto 32px;
  color: var(--muted);
  text-align: left;
}

.intro-copy p,
.step-body,
.capture-copy,
.result-body p,
.answer-recap p,
.closing-line {
  font-size: 1rem;
}

.progress-wrap {
  width: 100%;
  height: 8px;
  margin: 0 0 18px;
  overflow: hidden;
  background: rgba(67, 40, 73, 0.12);
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--sage);
  transition: width 0.25s ease;
}

.step-card h2 {
  margin-bottom: 14px;
}

.step-body {
  margin: 0 0 24px;
  color: var(--muted);
}

.textarea-label {
  display: block;
  margin-bottom: 8px;
  color: var(--plum-dark);
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 16px;
}

textarea:focus,
.choice-button:focus,
.button:focus {
  outline: 3px solid rgba(185, 135, 60, 0.35);
  outline-offset: 2px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 16px 18px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-button:hover,
.choice-button.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(185, 135, 60, 0.16);
}

.nav-row,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.result-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover:not(:disabled),
.button:focus:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--plum);
  color: #fffaf2;
}

.button-primary:hover:not(:disabled),
.button-primary:focus:not(:disabled) {
  background: var(--plum-dark);
}

.button-secondary {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum-dark);
}

.button-secondary:hover:not(:disabled),
.button-secondary:focus:not(:disabled) {
  background: rgba(101, 64, 111, 0.08);
}

.button:disabled,
.button-disabled {
  border-color: rgba(102, 91, 113, 0.26);
  background: rgba(102, 91, 113, 0.08);
  color: rgba(102, 91, 113, 0.78);
  cursor: not-allowed;
}

.kajabi-form-slot {
  max-width: 520px;
  margin: 24px auto 0;
  overflow: visible;
}

.kajabi-form-slot .kajabi-form--inline {
  box-shadow: none;
}

.kajabi-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.capture-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.capture-placeholder {
  border: 1px dashed rgba(101, 64, 111, 0.55);
  border-radius: 8px;
  background: rgba(241, 223, 191, 0.28);
  color: var(--muted);
  padding: 18px;
  text-align: left;
}

.preview-unlock {
  margin-top: 18px;
}

.answer-recap,
.result-body {
  margin-top: 22px;
  border-left: 4px solid var(--gold);
  background: rgba(241, 223, 191, 0.22);
  padding: 16px 18px;
}

.answer-recap span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-recap p,
.result-body p {
  margin: 8px 0 0;
}

.closing-line {
  margin: 32px 0 0;
  color: var(--plum-dark);
  font-weight: 700;
}

.signature {
  margin: 8px 0 0;
  color: var(--muted);
}

.grecaptcha-badge {
  right: 0 !important;
}

@media (max-width: 560px) {
  .app-shell {
    padding: 16px 12px;
  }

  .tool-card {
    padding: 22px 18px;
  }

  .nav-row,
  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
