@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --cream: #F7F0DD;
  --sage: #667B6A;
  --gold: #C7A15A;
  --dark: #2F3E34;
  --sage-light: #8FA393;
  --sage-pale: #EAF0EB;
  --gold-light: #E8D4A8;
  --gold-dark: #A8834A;
  --cream-dark: #EDE4CA;
  --card-bg: #FDFAF3;
  --shadow: 0 2px 16px rgba(47,62,52,0.10);
  --shadow-lg: 0 8px 32px rgba(47,62,52,0.14);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--sage);
  line-height: 1.25;
}

a {
  color: var(--gold);
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 860px;
}

/* ─── HEADER ─────────────────────────────────────────────── */

.site-header {
  background: var(--dark);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.site-logo span {
  color: var(--gold);
}

/* ─── HERO ───────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--dark) 0%, #3d5445 100%);
  color: var(--cream);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667B6A' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(247,240,221,0.82);
  max-width: 540px;
  margin: 0 auto 36px;
}

.verse {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding: 10px 18px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ─── CARDS ──────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  margin-bottom: 28px;
}

@media (max-width: 500px) {
  .card {
    padding: 24px 18px;
  }
}

.card__title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.card__desc {
  color: #4a5c50;
  margin-bottom: 24px;
  font-size: 0.97rem;
}

/* ─── FORM ───────────────────────────────────────────────── */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199,161,90,0.18);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #aab4ad;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 14px 32px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(199,161,90,0.28);
  width: 100%;
}

.btn--primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(199,161,90,0.36);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn--dark {
  background: var(--dark);
  color: var(--cream);
}

.btn--dark:hover {
  background: #3d5445;
}

/* ─── FRUITS GRID ────────────────────────────────────────── */

.fruits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

@media (max-width: 480px) {
  .fruits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.fruit-chip {
  background: var(--sage-pale);
  border: 1.5px solid rgba(102,123,106,0.2);
  border-radius: 100px;
  padding: 8px 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.02em;
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.step {
  text-align: center;
  padding: 20px 14px;
}

.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: #5a6b60;
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */

.progress-bar-wrap {
  background: var(--cream-dark);
  border-radius: 100px;
  height: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: 100px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 600;
  text-align: right;
}

/* ─── QUESTION SECTION ───────────────────────────────────── */

.q-section {
  margin-bottom: 36px;
}

.q-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dark);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}

.q-section__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.q-section__title {
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
}

.q-section__subtitle {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-family: 'Open Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  margin-top: 2px;
}

.q-list {
  background: var(--card-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.q-item {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(102,123,106,0.12);
}

.q-item:last-child {
  border-bottom: none;
}

.q-item__text {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.55;
}

.q-item__num {
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}

.scale-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--sage-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.scale-btn {
  flex: 1;
  min-width: 44px;
  padding: 10px 6px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a8c80;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}

.scale-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(199,161,90,0.06);
}

.scale-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ─── SUBMIT BAR ─────────────────────────────────────────── */

.submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--cream-dark);
  padding: 14px 0;
  box-shadow: 0 -4px 20px rgba(47,62,52,0.10);
  z-index: 50;
}

.submit-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.submit-bar__info {
  font-size: 0.87rem;
  color: var(--sage);
}

.submit-bar__info strong {
  color: var(--dark);
}

.submit-bar .btn {
  width: auto;
  flex-shrink: 0;
}

/* ─── RESULTS ────────────────────────────────────────────── */

.results-hero {
  background: linear-gradient(160deg, var(--dark) 0%, #3d5445 100%);
  padding: 56px 0 64px;
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.results-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667B6A' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.results-hero__inner {
  position: relative;
  z-index: 1;
}

.results-hero__name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.results-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 12px;
}

.results-hero p {
  color: rgba(247,240,221,0.78);
  font-size: 1rem;
}

/* Surrender spotlight */

.surrender-section {
  margin-bottom: 36px;
}

.surrender-section h2 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.surrender-section .section-sub {
  font-size: 0.9rem;
  color: #5a6b60;
  margin-bottom: 22px;
}

.surrender-cards {
  display: grid;
  gap: 16px;
}

.surrender-card {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.surrender-card__rank {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.surrender-card__fruit {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--sage);
  margin-bottom: 4px;
}

.surrender-card__score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.surrender-card__score {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a8c80;
}

.mini-bar-wrap {
  flex: 1;
  background: var(--cream-dark);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
}

.surrender-card__reflection {
  font-size: 0.87rem;
  color: #4a5c50;
  font-style: italic;
  border-left: 3px solid var(--gold-light);
  padding-left: 12px;
  line-height: 1.55;
}

/* Full results table */

.all-results h2 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.fruit-result-row {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.fruit-result-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fruit-result-row__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--sage);
}

.fruit-result-row__score {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.fruit-result-row__bar-wrap {
  background: var(--cream-dark);
  border-radius: 100px;
  height: 7px;
  overflow: hidden;
}

.fruit-result-row__bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}

.strength { background: linear-gradient(90deg, var(--sage), #8ab899); }
.moderate { background: linear-gradient(90deg, var(--gold), #d4b36a); }
.grow { background: linear-gradient(90deg, #b87070, #c98080); }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 10px;
}

.badge--strength { background: rgba(102,123,106,0.15); color: var(--sage); }
.badge--moderate { background: rgba(199,161,90,0.15); color: var(--gold-dark); }
.badge--grow { background: rgba(184,112,112,0.12); color: #9a4a4a; }

/* ─── FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  color: rgba(247,240,221,0.6);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.82rem;
  margin-top: 60px;
}

.site-footer strong {
  color: var(--gold);
}

/* ─── UTILITY ────────────────────────────────────────────── */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-sage { color: var(--sage); }
.text-gold { color: var(--gold); }
.text-dark { color: var(--dark); }

.section-pad { padding: 48px 0; }

.divider {
  border: none;
  border-top: 1px solid rgba(102,123,106,0.18);
  margin: 32px 0;
}

/* ─── ALERT / INFO BOX ───────────────────────────────────── */

.info-box {
  background: var(--sage-pale);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #3d5445;
  margin-bottom: 24px;
}

.warning-box {
  background: #fff8ec;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 18px;
  display: none;
}

.warning-box.visible {
  display: block;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.5s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .submit-bar .container {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-bar .btn {
    width: 100%;
  }

  .surrender-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 18px 16px;
  }

  .hero {
    padding: 52px 0 60px;
  }

  .section-pad {
    padding: 36px 0;
  }
}
