/* Abide Within — Free Guide Styles */
/* Design tokens from brand system: sage green, gold/amber, cream, warm earth tones */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;700&display=swap');

:root {
  --sage:         #8B9D77;
  --sage-mid:     #7A8B6F;
  --sage-light:   #A3B495;
  --sage-bg:      #F4F7F0;
  --sage-dark:    #3D4F35;

  --gold:         #C5A55A;
  --gold-light:   #E8CE8A;

  --cream:        #F5F0E1;
  --cream-light:  #FBF8F2;
  --warm-white:   #FDFBF7;

  --earth:        #4A3C2A;
  --earth-light:  #6B5A44;
  --earth-muted:  #9A8673;
  --mist:         #E8E2D6;

  --deep-green:   #3D4F35;

  --border:       #ddd4c5;
  --shadow:       rgba(92, 74, 58, 0.1);
  --radius:       10px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--earth);
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.guide-header {
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 8px rgba(74, 60, 42, 0.06);
}

.guide-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-green);
  text-decoration: none;
  font-family: var(--font-heading);
}

.guide-logo span {
  color: var(--sage);
}

/* ===== MAIN CONTAINER ===== */
.guide-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ===== OFFER SECTION ===== */
.guide-offer {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--warm-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

.guide-visual {
  flex: 0 0 220px;
}

.guide-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(92, 74, 58, 0.15);
}

.guide-info {
  flex: 1;
}

.guide-badge {
  display: inline-block;
  background: var(--sage-bg);
  color: var(--deep-green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.guide-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--earth);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.guide-info p {
  color: var(--earth-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== FORM ===== */
.guide-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--earth);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.guide-form input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.15);
}

.guide-form input::placeholder {
  color: #b0a498;
}

.btn-guide {
  padding: 0.9rem 1.5rem;
  background: var(--deep-green);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn-guide:hover {
  background: var(--sage);
}

.btn-guide:active {
  transform: scale(0.98);
}

.guide-privacy {
  font-size: 0.8rem;
  color: var(--earth-light);
  opacity: 0.8;
  margin-top: 0.25rem;
}

.form-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid #fecaca;
}

/* ===== FEATURES LIST ===== */
.guide-features {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--sage-bg);
  border-radius: 12px;
}

.guide-features h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--deep-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.guide-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.guide-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--earth);
}

.guide-features li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== GUIDE CONTENT (post-submission) ===== */
.guide-content {
  background: var(--warm-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
  overflow: hidden;
}

.guide-content-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--mist);
}

.guide-content-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 0.5rem;
}

.guide-content-header p {
  color: var(--earth-light);
}

.guide-intro {
  padding: 1.5rem 2rem;
  background: var(--sage-bg);
  font-size: 1.05rem;
  color: var(--earth);
  line-height: 1.7;
}

.guide-intro strong {
  color: var(--deep-green);
}

.guide-section {
  padding: 2rem;
  border-bottom: 1px solid var(--mist);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section-number {
  display: inline-block;
  background: var(--deep-green);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
  margin-bottom: 0.75rem;
}

.guide-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 0.5rem;
}

.guide-section p {
  color: var(--earth-light);
  font-size: 0.975rem;
  line-height: 1.7;
}

.guide-tip {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.guide-tip strong {
  color: var(--earth);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.guide-tip p {
  font-size: 0.95rem;
}

.guide-cta {
  padding: 2rem;
  text-align: center;
  background: var(--sage-bg);
}

.guide-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
}

.guide-cta p {
  color: var(--earth-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.guide-cta .btn-guide {
  font-size: 1rem;
  padding: 0.95rem 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--sage);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .guide-offer {
    flex-direction: column;
    padding: 1.5rem;
  }
  .guide-visual {
    flex: none;
    width: 100%;
  }
  .guide-visual img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
  .guide-features ul {
    grid-template-columns: 1fr;
  }
  .guide-container {
    padding: 2rem 1rem 4rem;
  }
}