/* DuoLauncher - dark, two-panel identity. Accent #4F8DFD.
   One coherent system for every app template; the landing page carries its
   own inline styles but shares these tokens. Mobile-first throughout. */

:root {
  --bg: #0b1017;
  --bg-raise: #121a26;
  --bg-raise-2: #182335;
  --line: #233247;
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #4f8dfd;
  --accent-strong: #72a5ff;
  --accent-soft: rgba(79, 141, 253, 0.14);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 1.7rem; margin: 0.4em 0; }
h2 { font-size: 1.25rem; margin: 0.4em 0 0.6em; }
h3 { font-size: 1.05rem; margin: 0.3em 0; }

code {
  background: var(--bg-raise-2);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
}

/* ------------------------------------------------------------- nav */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn { color: #fff; }

.credits-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(79, 141, 253, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ------------------------------------------------------- layout */

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.2rem 1rem 3rem;
}

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
}

.hint { color: var(--muted); font-size: 0.92rem; }
.empty-hint { text-align: center; margin: 2rem 0; }

.device-line {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--accent-soft); }

.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.88rem; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------- hero */

.hero { text-align: center; padding: 2.2rem 0 1rem; }
.hero h1 { font-size: 2rem; margin: 0.4em auto; max-width: 22ch; }
.hero > p { max-width: 58ch; margin: 0.6rem auto; color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 141, 253, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.1rem 0 0.6rem;
}

/* ------------------------------------------------------ features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.4rem 0;
}
.feature-card { margin: 0; }
.feature-card h3 { color: var(--accent-strong); }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.feature-icon { font-size: 1.4rem; }

.steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: 0.94rem; }

/* ------------------------------------------------- studio & forms */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.studio-grid .card { margin: 0; }

.upload-card h2 { margin-top: 0; }

.field { display: block; margin: 0.75rem 0; }
.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.field input[type="file"] { padding: 0.4rem; }
.field textarea { resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0 0.8rem; }

.contact-form { max-width: 480px; }
.hp-field { position: absolute; left: -9999px; height: 0; opacity: 0; }

/* ------------------------------------------------------- banners */

.success-banner {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--ok);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}

.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--bad);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}

.verify-banner {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}
.verify-banner form { margin-top: 0.6rem; }

.dev-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px dashed rgba(251, 191, 36, 0.5);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  text-align: center;
  font-size: 0.9rem;
}

/* -------------------------------------------------------- account */

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.account-grid .card { margin: 0; }

.big-number { font-size: 2.2rem; font-weight: 800; margin: 0.2rem 0; }

.progress {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 0.6rem 0;
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------- jobs */

.table-wrap { overflow-x: auto; }

table.jobs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.jobs th,
table.jobs td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.jobs th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.actions-col { white-space: nowrap; }
.actions-col form select {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  padding: 0.15rem 0.3rem;
}

.inline-form { display: inline; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-queued { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.badge-processing { background: var(--accent-soft); color: var(--accent-strong); }
.badge-done { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.badge-error { background: rgba(248, 113, 113, 0.12); color: var(--bad); }

/* --------------------------------------------------------- folders */

.folder-bar { margin-bottom: 0.8rem; }
.breadcrumbs { margin-bottom: 0.5rem; }
.folder-children {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.folder-chip {
  background: var(--bg-raise-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.new-folder { display: inline-flex; gap: 0.4rem; align-items: center; }
.new-folder input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  font-size: 0.88rem;
  width: 10rem;
}

/* ------------------------------------------------------ job status */

.status-card { max-width: 720px; margin: 1.5rem auto; }
.stage { color: var(--muted); }

pre.report {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-wrap;
}

.restore-steps { margin-top: 1.2rem; }
.restore-steps h2 { font-size: 1.05rem; }

/* --------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
  align-items: stretch;
}
.price-card {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-big { font-size: 2rem; font-weight: 800; margin: 0.2rem 0; }
.price-per { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-unit { color: var(--muted); font-size: 0.85rem; margin: 0; }
.price-desc { color: var(--muted); font-size: 0.93rem; }
.price-feats {
  padding-left: 1.1rem;
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.price-feats li { margin: 0.3rem 0; }
.price-card .btn { align-self: flex-start; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); }

/* ----------------------------------------------------- buy options */

.buy-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.buy-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg);
}
.buy-option.featured { border-color: var(--accent); }
.buy-price { color: var(--accent-strong); font-weight: 700; }
.buy-desc { color: var(--muted); font-size: 0.88rem; }
.buy-option .btn { align-self: flex-start; margin-top: 0.3rem; }

/* ------------------------------------------------------ auth/content */

.auth-card { max-width: 440px; margin: 2rem auto; }

.content-page { max-width: 720px; margin: 1.5rem auto; }
.content-page h2 { margin-top: 1.6rem; }
.content-page p, .content-page li { color: var(--muted); }
.content-page h1 + p { color: var(--text); }

.notfound { text-align: center; padding: 3rem 0; }
.notfound-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

/* --------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #070b11;
  padding: 2rem 1rem 1.4rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col b { color: var(--text); font-size: 0.85rem; margin-bottom: 0.2rem; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  max-width: 1020px;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ---------------------------------------------------- breakpoints */

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: repeat(3, 1fr); }
  .buy-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 880px) {
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
