:root {
  --bg: #f3ecdf;
  --ink: #241c16;
  --muted: #6f6256;
  --line: #e4d5c2;
  --card: rgba(255, 250, 243, 0.92);
  --saffron: #e06a1f;
  --saffron-deep: #c25112;
  --teal: #1e5c52;
  --gold: #e2a322;
  --rose: #8d3b44;
  --shadow: 0 24px 60px rgba(68, 38, 14, 0.1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(224, 106, 31, 0.18), transparent 60%),
    radial-gradient(700px 420px at 110% 8%, rgba(30, 92, 82, 0.14), transparent 55%),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: auto -80px -120px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 40px solid rgba(224, 106, 31, 0.08);
  pointer-events: none;
}
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 8px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--saffron);
  display: grid;
  place-items: center;
  background: rgba(255, 250, 243, 0.7);
  animation: breathe 5.5s ease-in-out infinite;
}
.mark span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(30, 92, 82, 0.15);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.brand strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 560; }
.brand small { color: var(--muted); letter-spacing: 0.04em; }
.quiet-link { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.quiet-link:hover { color: var(--ink); }

.hero { padding: 42px 0 28px; }
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--saffron-deep);
  font-weight: 600;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.95; max-width: 12ch; margin-top: 10px; }
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--muted); line-height: 1.55; }

.panel {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(8px);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.step { padding: 18px; }
.step b { display: block; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 6px; }
.step span { color: var(--muted); line-height: 1.45; display: block; }

.row { display: flex; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field span, .label {
  font-size: 0.92rem;
  font-weight: 600;
}
.hint, .field .hint { color: var(--muted); font-size: 0.84rem; font-weight: 400; }
input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30, 92, 82, 0.12); }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fffaf3;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.saffron { background: linear-gradient(180deg, #f18434, var(--saffron-deep)); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.tiny { padding: 8px 12px; font-size: 0.88rem; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.file-btn input { display: none; }

.card-list { display: grid; gap: 12px; }
.course-card, .response, .program-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}
.course-card { display: grid; gap: 8px; }
.meta { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f7f1e7;
  border-radius: 14px;
  padding: 8px 8px 8px 12px;
}
.link-box code { flex: 1; overflow-wrap: anywhere; font-size: 0.92rem; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf3; border-color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .choice, .star {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
}
.chip { padding: 8px 10px 8px 12px; display: inline-flex; gap: 8px; align-items: center; }
.chip button { border: 0; background: transparent; color: var(--rose); font-weight: 700; }
.choice, .star { padding: 10px 14px; }
.choice[aria-pressed="true"], .star[aria-pressed="true"], .star.on {
  background: #1e5c52;
  color: #fffaf3;
  border-color: #1e5c52;
}
.stars { display: flex; gap: 8px; }
.star { width: 52px; height: 52px; border-radius: 16px; font-size: 1.3rem; }
.star.on { background: #f4c15d; color: #4a3208; border-color: #e2a322; }

.section-title { margin: 22px 0 12px; font-size: 1.55rem; }
.banner {
  background: #1e5c52;
  color: #f4fff8;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 16px;
}
.banner a, .banner code { color: #fff; }
.error {
  background: #fff1f0;
  color: #8d3b44;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.thanks { text-align: center; padding: 48px 12px 24px; }
.thanks h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 12px auto; }
.hidden { display: none !important; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat {
  background: #f7f1e7;
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 90px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }
.photo-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; }
.response img { width: min(100%, 280px); border-radius: 16px; }
.quote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin: 8px 0; }
footer { color: var(--muted); padding: 28px 0 40px; font-size: 0.88rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
hr.fade { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

@media (max-width: 800px) {
  .steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  h1 { max-width: none; }
}
