:root {
  --navy: #101b2d;
  --navy-soft: #1a2a42;
  --ink: #162033;
  --muted: #637083;
  --cream: #fffaf0;
  --paper: #ffffff;
  --gold: #f4bd35;
  --gold-soft: #fff1bf;
  --rose: #9c3f59;
  --line: #dfe4eb;
  --shadow: 0 18px 50px rgba(16, 27, 45, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 189, 53, 0.24), transparent 26rem),
    linear-gradient(180deg, #fffdf8 0%, #fff8e9 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(16, 27, 45, 0.1);
}

.brand {
  border: 0;
  background: transparent;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px rgba(244, 189, 53, 0.18);
}

.brand strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand small { display: block; color: var(--muted); margin-top: 2px; font-size: 0.78rem; }

.quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.quiet-button:hover, .quiet-button:focus-visible { color: var(--rose); }

main {
  width: 100%;
  flex: 1;
  display: grid;
  align-items: center;
  padding: 44px 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--rose);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  color: var(--navy);
  font-size: clamp(2.55rem, 7vw, 5.35rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  max-width: 11ch;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: #3c485b;
  max-width: 38rem;
  margin-bottom: 28px;
}

.gold-rule {
  width: 90px;
  height: 5px;
  border-radius: 10px;
  background: var(--gold);
  margin-bottom: 22px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 27, 45, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.promise-card {
  background: var(--navy);
  color: #edf2fa;
  position: relative;
  overflow: hidden;
}

.promise-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 2px solid rgba(244, 189, 53, 0.18);
  border-radius: 50%;
  right: -90px;
  bottom: -90px;
  box-shadow: 0 0 0 28px rgba(244, 189, 53, 0.05), 0 0 0 58px rgba(244, 189, 53, 0.03);
}

.promise-card h3 { color: var(--gold); font-size: 1.45rem; }
.promise-card p { position: relative; z-index: 1; }
.promise-card ul { padding-left: 1.2rem; margin: 22px 0 28px; position: relative; z-index: 1; }
.promise-card li { margin: 10px 0; }

.field { margin: 22px 0; position: relative; z-index: 1; }
.field label, .question label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  border: 1px solid #cbd3de;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

textarea { min-height: 112px; resize: vertical; }

input:focus, textarea:focus {
  border-color: #c38a00;
  box-shadow: 0 0 0 4px rgba(244, 189, 53, 0.2);
}

.primary-button, .secondary-button {
  min-height: 50px;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 9px 22px rgba(244, 189, 53, 0.22);
}

.primary-button:hover, .primary-button:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(244, 189, 53, 0.3); }
.primary-button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }

.secondary-button {
  border: 1px solid #c9d0d9;
  background: #fff;
  color: var(--navy);
}

.journey {
  width: min(100%, 820px);
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: #e6e9ee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc9e08, var(--gold));
  border-radius: inherit;
  transition: width 300ms ease;
}

.reflection {
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  color: #4c5666;
  font-style: italic;
  margin: 0 0 30px;
}

.question { margin: 25px 0; }
.question-number { color: var(--rose); margin-right: 6px; }
.helper { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.86rem; margin-top: 7px; }

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.actions-right { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

.report {
  width: min(100%, 900px);
  margin: 0 auto;
}

.report-header {
  background: var(--navy);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(28px, 6vw, 52px);
  position: relative;
}

.report-header .eyebrow { color: var(--gold); }
.report-header h1 { color: white; font-size: clamp(2.4rem, 7vw, 4.8rem); max-width: 13ch; }
.report-header p { color: #ced7e5; max-width: 38rem; font-size: 1.1rem; margin-bottom: 0; }

.report-body {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  background: white;
  padding: clamp(26px, 6vw, 52px);
}

.report-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.report-section:last-of-type { border-bottom: 0; }
.report-section h3 {
  font-family: Arial, sans-serif;
  color: var(--rose);
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.report-section p { white-space: pre-wrap; font-size: 1.08rem; }

.declaration {
  background: var(--gold-soft);
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.invitation {
  margin-top: 34px;
  background: #f5f7fa;
  border-radius: 18px;
  padding: 24px;
}

.invitation h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 10px; }

footer {
  padding: 26px 0 34px;
  text-align: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

footer p { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.14em; margin-bottom: 4px; }
footer p span { color: var(--gold); }
footer small { font-size: 0.78rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: white;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .app-shell { padding: 0 16px; }
  .topbar { min-height: 72px; }
  .brand strong { font-size: 0.9rem; }
  .brand small { display: none; }
  .quiet-button { padding-right: 0; }
  main { padding: 28px 0; align-items: start; }
  .welcome-grid { grid-template-columns: 1fr; gap: 26px; }
  h1 { max-width: 12ch; }
  .card { padding: 23px; border-radius: 18px; }
  .actions { align-items: stretch; }
  .report-actions { flex-direction: column; }
  .actions-right { width: 100%; margin-left: 0; }
  .actions-right .secondary-button,
  .actions-right .primary-button { flex: 1; }
  .secondary-button { padding-inline: 17px; }
}

@media print {
  body { background: white; }
  .topbar, footer, .report-actions, .invitation { display: none !important; }
  .app-shell, main { display: block; padding: 0; width: 100%; }
  .report { width: 100%; }
  .report-header, .report-body { box-shadow: none; border-radius: 0; }
  .report-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
