/* Rafał Błażejewski — Master Herbalist brief
 * Paleta: forest deep + amber + cream warm (mistrz, autorytet, tradycja)
 */

:root {
  --bg: #FAF7EE;
  --bg-card: #FFFFFF;
  --ink: #1E2A22;
  --ink-soft: #3D4D44;
  --ink-muted: #7A857E;
  --forest: #2F6B3A;
  --forest-deep: #1F3A2E;
  --amber: #C4A55A;
  --amber-soft: #E8D7A8;
  --burgundy: #7C2D3E;
  --border: #E3DCC7;
  --error: #B23A3A;
  --shadow: 0 1px 3px rgba(31,42,34,0.04), 0 4px 16px rgba(31,42,34,0.06);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* PLACEHOLDER */
body.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #FAF7EE 0%, #F0E8D2 100%);
}
.placeholder-main { padding: 40px 24px; }
.placeholder-inner { text-align: center; max-width: 520px; }
.placeholder-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  letter-spacing: -0.02em;
  color: var(--forest-deep);
  line-height: 1.1;
  margin: 16px 0 12px;
}
.placeholder-inner .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.placeholder-inner .divider {
  width: 48px;
  height: 1px;
  background: var(--amber);
  margin: 0 auto 32px;
}
.placeholder-inner .note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* HERO (brief) */
.hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #F0E8D2 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  margin: 12px 0 16px;
}
.hero h1 .hl { color: var(--burgundy); font-style: italic; }
.hero .lead {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.hero .lead.muted { color: var(--ink-muted); font-size: 0.92rem; }

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 4px 0;
  border-bottom: 1px solid var(--amber-soft);
}

.progress-bar {
  margin-top: 24px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber) 0%, var(--forest) 100%);
  transition: width 0.3s ease;
}

/* MAIN / FORM */
main { padding: 32px 0 80px; }

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 20px auto;
  max-width: 720px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--forest-deep);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.card-intro {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 12px 0 24px;
  padding-left: 12px;
  border-left: 2px solid var(--amber-soft);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.field { margin-top: 24px; }
.field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}
.qnum {
  display: inline-block;
  min-width: 26px;
  height: 26px;
  background: var(--forest-deep);
  color: var(--amber-soft);
  border-radius: 50%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 26px;
  margin-right: 8px;
  vertical-align: 1px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47,107,58,0.10);
  background: white;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }

/* SUBMIT */
.submit-card {
  text-align: center;
  background: var(--forest-deep);
  color: var(--bg);
  border: none;
}
.submit-card h2 { color: var(--amber-soft); }
.submit-card p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 0.95rem; }
.btn-primary {
  display: inline-block;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--amber);
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--amber-soft); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--ink-muted); cursor: wait; transform: none; }
.fineprint { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.form-error {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--error);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* FOOTER */
.footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer a { color: var(--ink-soft); }

/* THANK YOU */
body.thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, #F0E8D2 100%);
}
.thanks-main { text-align: center; max-width: 520px; padding: 48px 32px; }
.thanks-main .checkmark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--amber);
  font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
}
.thanks-main h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--forest-deep);
  margin-bottom: 20px;
  line-height: 1.15;
}
.thanks-main p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.thanks-main .next-steps {
  margin-top: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.thanks-main .next-steps h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.thanks-main .next-steps ul { list-style: none; padding: 0; }
.thanks-main .next-steps li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
}
.thanks-main .next-steps li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}
