/* ── TOKENS ── */
:root {
  --inkwell:  #2C3639;
  --lunar:    #3F4E4F;
  --creme:    #A27B5B;
  --au-lait:  #DCD7C9;

  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --surface-warm: #F8F4EE;
  --surface-card: #F2EDE4;
  --border:       #E5DDD3;

  --text:   #2C3639;
  --muted:  #7A8A8C;

  --green-bg:   #E6F4EC;
  --green-text: #1A5E38;
  --red-bg:     #FDEDEC;
  --red-text:   #A31515;

  --font-head:  'Georgia', 'Times New Roman', serif;
  --font-body:  'Figtree', system-ui, sans-serif;
  --font-label: 'Gotu', system-ui, sans-serif;

  --r:   4px;
  --r-l: 8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container { max-width: 800px; margin: 0 auto; padding: 0 32px; }

/* ── HEADER ── */
.site-header {
  background: var(--inkwell);
  border-bottom: 3px solid var(--creme);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-jk {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--au-lait);
  line-height: 1;
}
.brand-name {
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--creme);
  letter-spacing: 0.16em;
}
.header-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  color: rgba(220,215,201,0.5);
  letter-spacing: 0.08em;
}

/* ── HERO ── */
.hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  color: var(--creme);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--inkwell);
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-sub {
  font-family: var(--font-label);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── TYPE SELECTOR ── */
.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
}
.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  cursor: pointer;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.type-btn:last-child { border-right: none; }
.type-btn.active {
  background: var(--inkwell);
  color: var(--au-lait);
}
.type-btn:not(.active):hover {
  background: var(--surface-warm);
  color: var(--text);
}

/* ── DROP ZONE ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-l);
  padding: 52px 32px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 28px;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--creme); background: var(--surface-warm); }
.drop-zone.has-file { border-style: solid; border-color: var(--creme); background: var(--surface-warm); }
.drop-icon { color: var(--border); margin-bottom: 14px; transition: color 0.2s; }
.drop-zone:hover .drop-icon, .drop-zone.has-file .drop-icon { color: var(--creme); }
.drop-title { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.drop-hint { font-size: 0.82rem; color: var(--muted); }

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--surface-card);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text);
}
.pill-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0;
}
.pill-remove:hover { color: var(--inkwell); }

/* ── FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  color: var(--creme);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--creme); }
.field input::placeholder { color: var(--muted); }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  padding: 17px 32px;
  background: var(--inkwell);
  color: var(--au-lait);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover:not(:disabled) { background: var(--lunar); }
.btn-primary:disabled { background: var(--surface-card); color: var(--muted); cursor: not-allowed; }
.btn-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-download {
  padding: 11px 22px;
  background: var(--creme);
  color: #fff;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.btn-download:hover { opacity: 0.85; }

.btn-ghost {
  display: block;
  margin: 20px auto 0;
  padding: 10px 28px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--creme); }

/* ── STATUS CARDS ── */
#sec-progress, #sec-result, #sec-error { padding: 12px 0 56px; }

.status-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--creme);
  border-radius: var(--r-l);
  margin-bottom: 28px;
}
.status-card.success { border-left-color: var(--green-text); }
.status-card.error   { border-left-color: var(--red-text); }
.status-title { font-weight: 600; color: var(--inkwell); margin-bottom: 3px; }
.status-sub   { font-size: 0.82rem; color: var(--muted); }

.status-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; flex-shrink: 0;
}
.success-icon { background: var(--green-bg); color: var(--green-text); }
.error-icon   { background: var(--red-bg);   color: var(--red-text); }

/* Spinner */
.spinner {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 3px solid var(--border);
  border-top-color: var(--creme);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0 4px; }
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 0.3s;
}
.step::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}
.step.active { color: var(--text); font-weight: 500; }
.step.active::before, .step.done::before { background: var(--creme); }
.step.done { color: var(--creme); }

/* ── FEATURES ── */
.features {
  background: var(--inkwell);
  padding: 60px 0;
  margin-top: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card { border-left: 2px solid rgba(162,123,91,0.35); padding-left: 24px; }
.feature-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: rgba(162,123,91,0.25);
  line-height: 1;
  margin-bottom: 6px;
}
.feature-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--creme);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.feature-text {
  font-size: 0.88rem;
  color: var(--au-lait);
  line-height: 1.55;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--inkwell);
  border-top: 1px solid rgba(220,215,201,0.08);
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-label);
  font-size: 0.62rem;
  color: var(--creme);
  letter-spacing: 0.1em;
}
.footer-contact { font-size: 0.68rem; color: rgba(220,215,201,0.4); }
