/* ReelText intake — dark mode, Graphite × Chrome gradient, sister to ReelTag */

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

:root {
  --g-start:  #334155;
  --g-mid:    #60A5FA;
  --g-end:    #E0F2FE;
  --accent:   #60A5FA;
  --accent-soft: rgba(96,165,250,.12);
  --accent-line: rgba(96,165,250,.35);

  --bg:       #08080A;
  --surface:  #111318;
  --surface-2:#15181F;
  --border:   #1e2530;
  --border-2: #283042;

  --ink:      #E2E8F0;
  --ink-dim:  #94A3B8;
  --ink-mute: #64748B;

  --danger:   #F87171;
  --ok:       #4ADE80;

  --gradient-180: linear-gradient(180deg, var(--g-start), var(--g-mid), var(--g-end));
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  background: rgba(17,19,24,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.top .wrap { display: flex; align-items: center; gap: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 24px; height: 24px; }
.brand-wm {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  background-image: var(--gradient-180);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tag {
  color: var(--ink-mute);
  font-size: 12px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-left: auto;
}
@media (max-width: 560px) { .tag { display: none; } }

/* Hero */
.hero { padding: 40px 0 18px; }
.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  background-image: var(--gradient-180);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lede { color: var(--ink-dim); font-size: 16px; margin: 0 0 20px; max-width: 60ch; }

.tier-banner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
}
.tier-banner .tier-label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: var(--ink-dim);
}
.tier-banner .tier-price { font-weight: 700; color: var(--g-end); }

/* Form card */
.intake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

fieldset { border: none; padding: 0; margin: 0 0 28px; }
fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 24px; }
legend {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
  padding: 0;
  letter-spacing: -0.01em;
}

.req { color: var(--danger); }
.opt { color: var(--ink-mute); font-weight: 400; font-size: 12.5px; }

label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input[type="file"] {
  padding: 9px 13px;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink-dim);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

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

.hint { display: block; margin-top: 6px; color: var(--ink-mute); font-weight: 400; font-size: 12px; }
.hint.warn { color: var(--danger); }

/* Source type pills */
.source-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .source-choice { grid-template-columns: 1fr; } }

.pill {
  position: relative;
  display: block;
  padding: 13px 14px 13px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin: 0;
}
.pill input { position: absolute; top: 16px; left: 14px; margin: 0; accent-color: var(--accent); }
.pill span { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink); font-family: 'Unbounded', sans-serif; letter-spacing: -0.005em; }
.pill small { display: block; margin-top: 3px; color: var(--ink-mute); font-weight: 400; font-size: 12px; }
.pill:hover { border-color: var(--accent-line); }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.source-field { margin-top: 10px; }

/* Actions */
.actions { padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }

button[type="submit"] {
  display: inline-block;
  padding: 12px 26px;
  font-family: 'Unbounded', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a0f1c;
  background: var(--gradient-180);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: transform .06s, box-shadow .2s, filter .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 4px 14px rgba(96,165,250,.25);
}
button[type="submit"]:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 22px rgba(96,165,250,.4); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"][disabled] { background: var(--border-2); color: var(--ink-mute); cursor: not-allowed; box-shadow: none; }

.fine { color: var(--ink-mute); font-size: 12px; margin: 10px 0 0; }

.status {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
}
.status.error { background: rgba(248,113,113,.08); color: var(--danger); border: 1px solid rgba(248,113,113,.25); }
.status.loading { background: var(--accent-soft); color: var(--ink-dim); border: 1px solid var(--accent-line); }

/* Success / error screens */
.screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.screen h2 {
  margin: 0 0 12px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  background-image: var(--gradient-180);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.screen p { color: var(--ink-dim); max-width: 48ch; margin: 0 auto 8px; }
.screen.error h2 { background: none; -webkit-text-fill-color: var(--danger); color: var(--danger); }
.screen .order { font-size: 12.5px; margin-top: 20px; color: var(--ink-mute); }
.screen code { background: var(--bg); padding: 3px 7px; border-radius: 5px; font-size: 12px; color: var(--ink); border: 1px solid var(--border); }

/* Footer */
.bottom {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0;
  color: var(--ink-mute);
  font-size: 12.5px;
}
.bottom .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bottom a { color: var(--ink-mute); text-decoration: none; }
.bottom a:hover { color: var(--accent); }
