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

/* ── Base ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #111;
  min-height: 100vh;
}

/* ── Header ── */
.header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header img { height: 28px; }
.header-right {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.5px;
}

/* ── Shared typography ── */
.hero-eyebrow,
.output-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D5BB69;
  margin-bottom: 20px;
}

/* ── Landing page ── */
.hero {
  max-width: 600px;
  margin: 80px auto 0;
  padding: 0 24px;
  text-align: center;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.hero-title span { color: #19285C; }

.hero-subtitle {
  font-size: 19px;
  font-weight: 400;
  color: #555;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.hero-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.btn-start {
  display: inline-block;
  background: #19285C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-start:hover { background: #1e3370; transform: translateY(-1px); }

.hero-note {
  font-size: 12px;
  color: #bbb;
  margin-top: 14px;
}

/* ── G Cards ── */
.cards {
  max-width: 600px;
  margin: 64px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.g-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.g-badge {
  display: inline-block;
  background: #D5BB69;
  color: #19285C;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.g-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #19285C;
  margin-bottom: 8px;
}

.g-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
}

.divider {
  max-width: 560px;
  margin: 56px auto 0;
  padding: 40px 24px 80px;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.divider-text {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}
.divider-text strong { color: #555; font-weight: 500; }

/* ── Form page ── */
.page {
  max-width: 560px;
  margin: 56px auto 80px;
  padding: 0 24px;
}

/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}

.step.done .step-dot { background: #19285C; color: #D5BB69; }
.step.active .step-dot { background: #D5BB69; color: #19285C; }
.step.pending .step-dot { background: #f0f0f0; color: #aaa; }

.step-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.3px;
}
.step.done .step-label { color: #19285C; }
.step.active .step-label { color: #19285C; font-weight: 600; }
.step.pending .step-label { color: #bbb; }

.step-line {
  flex: 1; height: 1px; background: #e0e0e0; margin: 0 8px;
}
.step-line.done { background: #19285C; }

/* Section heading */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D5BB69;
  margin-bottom: 10px;
}

.section-title {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Fields */
.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.field .optional {
  font-weight: 400;
  color: #aaa;
}

.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: #bbb; }
.field input:focus,
.field textarea:focus {
  border-color: #19285C;
  box-shadow: 0 0 0 3px rgba(25, 40, 92, 0.08);
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #ebebeb;
}

.btn-back {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.btn-back:hover { color: #555; }

.btn-next {
  background: #19285C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s;
}
.btn-next:hover { background: #1e3370; transform: translateY(-1px); }
.btn-next:disabled { background: #aaa; cursor: not-allowed; transform: none; }

.progress-note {
  font-size: 12px;
  color: #bbb;
  margin-top: 20px;
  text-align: center;
}

/* Hidden form steps */
.form-step.hidden { display: none; }

/* Generating spinner */
.generating-wrap {
  text-align: center;
  padding: 80px 0;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid #ebebeb;
  border-top-color: #19285C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.generating-text {
  font-size: 18px;
  font-weight: 600;
  color: #19285C;
  margin-bottom: 8px;
}
.generating-sub {
  font-size: 13px;
  color: #aaa;
}

/* Validation error */
.field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
}
.field input.invalid,
.field textarea.invalid {
  border-color: #c0392b;
}

/* ── Login page ── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 24px;
}
.login-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}
.login-error {
  font-size: 13px;
  color: #c0392b;
  background: #fdf0ef;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.login-card .field { text-align: left; }

/* ── Output page ── */
.output-wrap {
  max-width: 600px;
  margin: 64px auto 80px;
  padding: 0 24px;
  text-align: center;
}

.output-eyebrow { margin-bottom: 16px; }

.output-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 40px 36px;
  text-align: left;
  margin-bottom: 28px;
}

.output-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D5BB69;
  margin-bottom: 20px;
}

.output-text {
  font-size: 16px;
  color: #222;
  line-height: 1.8;
  white-space: pre-wrap;
}

.output-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-copy {
  background: #19285C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-copy:hover { background: #1e3370; }

.btn-print {
  background: #fff;
  color: #19285C;
  border: 1.5px solid #19285C;
  border-radius: 8px;
  padding: 13px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-print:hover { background: #f5f7fc; }

.output-hint {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 32px;
}

.btn-back-link {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  font-weight: 500;
}
.btn-back-link:hover { color: #555; }

/* ── Print styles ── */
@media print {
  .no-print { display: none !important; }
  .header { display: none !important; }
  .output-wrap { margin: 0; padding: 0; }
  .output-card {
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .output-text { font-size: 14px; line-height: 1.7; }
  body { background: #fff; }
}
