:root {
  --green-dark: #1f3b2e;
  --green-mid: #2c5040;
  --cream: #dde6df;
  --maroon: #451820;
  --lavender: #d6a3ee;
  --ink: #1a1a1a;
  --radius: 28px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--green-dark);
  color: var(--cream);
  font-family: var(--font-body);
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  min-height: 100vh;
}

.stage {
  animation: fade-in 0.35s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.75;
  margin: 0 0 16px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--cream);
}

.sub {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.85;
  max-width: 46ch;
  margin: 0 0 40px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.7;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 32px;
}
.back-btn:hover { opacity: 1; }

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 620px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
}

.tile {
  text-align: left;
  background: var(--green-mid);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 22px 22px;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile:hover {
  background: #35604c;
  transform: translateY(-2px);
}

.tile-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.tile-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

.freehand-launch {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(221, 230, 223, 0.2);
}

.freehand-prompt {
  margin: 0 0 8px;
  opacity: 0.85;
}

.pdf-link {
  margin-top: 20px;
  font-size: 0.9rem;
}

.pdf-link a {
  color: var(--cream);
  opacity: 0.7;
  text-decoration: none;
}

.pdf-link a:hover {
  opacity: 1;
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--lavender);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

textarea#freehand-input {
  width: 100%;
  background: var(--green-mid);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px;
  resize: vertical;
  margin-bottom: 20px;
}

textarea#freehand-input::placeholder {
  color: rgba(221, 230, 223, 0.55);
}

.cta-btn {
  display: inline-block;
  background: var(--lavender);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.cta-btn:hover { background: #e2b8f5; }

button.cta-btn { width: 100%; }

.freehand-status {
  margin-top: 12px;
  opacity: 0.8;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.result-price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 0 28px;
}

.result-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--cream);
}

.result-price-note {
  opacity: 0.75;
  font-size: 0.95rem;
}

.result-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-includes li {
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
  opacity: 0.92;
}

.result-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender);
}

.cta-pill {
  max-width: 320px;
}

.fallback-note {
  margin-top: 24px;
  opacity: 0.8;
  line-height: 1.5;
  max-width: 50ch;
}
