/* ==========================================================================
   What's Your Next Team Move? — The Marigold Collective
   "Cozy October" palette / "Modern Homestead" type system
   ========================================================================== */

:root {
  /* Cozy October palette */
  --cream: #F5F1E8;
  --marigold: #D4955B;
  --marigold-deep: #B5763A; /* darker variant used only where text sits on it, for contrast */
  --dusty-blue: #A8B5C4;
  --sage: #A4AC96;
  --navy: #4A5364;
  --navy-soft: #5C6579;
  --taupe: #C9B8A8;

  --ink: var(--navy);
  --bg: var(--cream);
  --card-bg: #FFFFFF;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 8px 24px rgba(74, 83, 100, 0.10);
  --shadow-softer: 0 4px 14px rgba(74, 83, 100, 0.07);

  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  line-height: 1.55;
}

h1, h2, h3 { margin: 0; font-weight: 700; }

button { font-family: inherit; cursor: pointer; }

.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ---------------- Progress header ---------------- */
.progress-header {
  padding: 20px 0 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(168, 181, 196, 0.35); /* dusty blue tint */
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--marigold);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.progress-label {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy-soft);
  text-transform: uppercase;
}

/* ---------------- Screen root & transitions ---------------- */
.screen-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 48px;
}

.screen {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.screen-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Botanical accent ---------------- */
.accent-mark {
  display: block;
  margin: 0 auto 20px;
  width: 46px;
  height: 46px;
}

.divider {
  border: none;
  border-top: 1px solid var(--sage);
  opacity: 0.55;
  margin: 28px 0;
  width: 100%;
}

/* ---------------- Landing screen ---------------- */
.landing {
  text-align: center;
}

.brand-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto 26px;
  box-shadow: var(--shadow-softer);
}

.landing .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin: 0 0 14px;
}

.landing h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
}

.landing .tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  color: var(--marigold-deep);
  margin-bottom: 18px;
  line-height: 1.4;
}

.landing .subhead {
  font-size: 1rem;
  color: var(--navy-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.landing .meta-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--navy-soft);
}

/* ---------------- Buttons ---------------- */
.btn-primary {
  display: inline-block;
  background: var(--marigold-deep);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 36px;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  max-width: 360px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 83, 100, 0.16);
  background: #A5692F;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-soft);
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- Question screen ---------------- */
.question-prompt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  color: var(--navy);
  margin-bottom: 26px;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.option-card {
  text-align: left;
  background: var(--card-bg);
  border: 1.5px solid rgba(168, 181, 196, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  box-shadow: var(--shadow-softer);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.option-card:hover,
.option-card:focus-visible {
  border-color: var(--marigold);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--marigold-deep);
  background: #FBF3E9;
}

.back-row {
  margin-top: 22px;
}

/* ---------------- Email capture screen ---------------- */
.email-screen h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.email-screen p {
  color: var(--navy-soft);
  margin-bottom: 26px;
  line-height: 1.65;
}

.field-group {
  margin-bottom: 16px;
  text-align: left;
}

.field-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(168, 181, 196, 0.5);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
}

.field-group input:focus {
  outline: none;
  border-color: var(--marigold);
}

.form-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--navy-soft);
  text-align: center;
  margin-top: 4px;
}

.field-error {
  color: #A15A3E;
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ---------------- Result screen ---------------- */
.result-header {
  text-align: center;
  margin-bottom: 8px;
}

.result-header .result-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.result-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.7rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 12px;
}

.result-header .bottleneck-line {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--marigold-deep);
}

.result-section {
  margin-bottom: 26px;
}

.result-section h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.result-section p {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.7;
  margin: 0 0 10px;
}

.result-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--navy);
  line-height: 1.75;
}

.result-section li { margin-bottom: 6px; }

.week-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: baseline;
}

.week-item .week-tag {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: #FFFFFF;
  background: var(--sage);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.week-item p { margin: 0; font-size: 0.97rem; color: var(--navy); }

.inbox-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EFEAE0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--navy-soft);
  margin: 26px 0 30px;
}

.cta-block {
  text-align: center;
  margin-top: 10px;
}

.cta-block .reassurance {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--navy-soft);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Footer ---------------- */
.app-footer {
  text-align: center;
  padding: 18px 0 26px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------------- Small screens polish ---------------- */
@media (max-width: 380px) {
  .app-shell { padding: 0 16px; }
  .btn-primary { font-size: 1.05rem; padding: 15px 26px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .screen, .progress-fill, .btn-primary, .option-card {
    transition: none !important;
  }
}
