/* web/public.css — styles for the public marketing + auth surfaces.
   Extends the dark broadcast palette from styles.css. */

:root {
  --max-w: 1080px;
  --pad-x: clamp(20px, 5vw, 48px);
}

body.public {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}
.nav__link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  background: var(--accent);
  color: #0c0d0e;
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.nav__cta:hover { background: var(--accent-hi); }

main {
  flex: 1;
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
}
.section--narrow { max-width: 640px; }

h1.headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 24px;
}
h1.headline em { font-style: italic; color: var(--accent); }

.sub {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0c0d0e;
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.feature h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--accent-hi);
}
.feature p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.tier {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tier--featured { border-color: var(--accent); }
.tier__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  margin: 0 0 4px;
}
.tier__desc {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 20px;
  min-height: 36px;
}
.tier__price {
  font-size: 36px;
  margin: 0 0 4px;
  font-weight: 600;
}
.tier__price span { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.tier__credits {
  color: var(--accent-hi);
  font-size: 13px;
  margin: 0 0 4px;
}
.tier__expiry {
  color: var(--text-faint);
  font-size: 12px;
  margin: 0 0 24px;
}
.tier__buy {
  margin-top: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tier__buy:hover { border-color: var(--accent); color: var(--accent); }
.tier--featured .tier__buy { background: var(--accent); color: #0c0d0e; border-color: var(--accent); }
.tier--featured .tier__buy:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

/* Auth forms */
.form-wrap {
  max-width: 420px;
  margin: 64px auto;
  padding: 40px var(--pad-x);
}
.form-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.form-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  margin: 0 0 8px;
}
.form-sub {
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 13px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.form-submit {
  width: 100%;
  background: var(--accent);
  color: #0c0d0e;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.form-submit:hover { background: var(--accent-hi); }
.form-submit:disabled { background: var(--text-faint); cursor: not-allowed; }
.form-err {
  background: rgba(233, 84, 96, 0.1);
  border: 1px solid var(--bad);
  color: var(--bad);
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
}
.form-ok {
  background: rgba(126, 194, 122, 0.1);
  border: 1px solid var(--good);
  color: var(--good);
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
}
.form-foot {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.form-foot a { color: var(--accent); }

/* Account dashboard */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.card__value {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}
.card__hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 8px 0 0;
}

.batches-table, .history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.batches-table th, .batches-table td,
.history-table th, .history-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.batches-table th, .history-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--text-dim);
}
.tag--good { background: rgba(126, 194, 122, 0.12); color: var(--good); }
.tag--bad  { background: rgba(233, 84, 96, 0.12); color: var(--bad); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 32px var(--pad-x);
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}
footer a { color: var(--text-dim); margin: 0 8px; }
footer a:hover { color: var(--accent); }

/* Legal docs (terms + privacy) */
.doc h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  margin: 0 0 4px;
}
.doc .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 32px;
}
.doc h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  margin: 32px 0 12px;
  color: var(--accent-hi);
}
.doc p, .doc li {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc th, .doc td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.doc th { color: var(--text); font-weight: 600; }
