/* StageLink app styles. Pico.css provides the base; this file holds only
   StageLink-specific tweaks. Mobile-first. */

.hero {
  padding: 3rem 0;
}

/* --- Toasts --- */
#toasts {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 26rem);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.7rem 1rem;
  border-radius: var(--pico-border-radius);
  color: #fff;
  background: #333;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.9rem;
}
.toast-out { opacity: 0; transform: translateY(-8px); }
.toast-success { background: #1a7f4b; }
.toast-error { background: #b3261e; }
.toast-info { background: #2b5fb3; }

/* --- Footer + cookie banner --- */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--pico-card-background-color, #fff);
  border-top: 1px solid var(--pico-muted-border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  font-size: 0.9rem;
}
.cookie-banner button { width: auto; margin: 0; padding: 0.35rem 1rem; }
.legal { max-width: 44rem; margin: 1rem auto; }
.legal h3 { margin-top: 1.5rem; }

/* --- Landing page --- */
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.lp-brand { font-size: 1.25rem; }
.lp-hero { padding: 2rem 0 2.5rem; text-align: center; max-width: 42rem; margin: 0 auto; }
.lp-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.1; }
.lp-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.lp-cta a[role="button"] { width: auto; margin: 0; }
.lp-note { opacity: 0.7; font-size: 0.85rem; margin-top: 1rem; }
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.lp-steps article { margin: 0; padding: 1.25rem; }
.lp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--pico-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.lp-steps h3 { margin: 0 0 0.35rem; }
.lp-steps p { margin: 0; opacity: 0.85; }
@media (min-width: 48rem) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
}

/* --- Auth --- */
.auth-card {
  max-width: 26rem;
  margin: 3rem auto;
}
.form-error {
  color: var(--pico-del-color);
}

/* --- Verify email banner --- */
.verify-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--pico-mark-background-color, #fff3cd);
  color: #663c00;
  padding: 0.5rem 0.85rem;
  border-radius: var(--pico-border-radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.verify-banner form { margin: 0; }
.linklike {
  width: auto; margin: 0; padding: 0;
  background: none; border: none;
  color: inherit; text-decoration: underline; font-weight: 600;
}

/* --- Studio chrome --- */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.studio-topbar nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.inline-logout {
  margin: 0;
}
.inline-logout button {
  margin: 0;
  padding: 0.3rem 0.75rem;
  width: auto;
}

/* --- Pipeline editor --- */
.stage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  counter-reset: stage;
}
.stage-item {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.stage-item form { margin: 0; }
.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;
}
.stage-grid label { margin: 0; }
.stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.stage-controls button {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.9rem;
}
.add-stage { margin-top: 1rem; }
.empty { opacity: 0.7; }

/* Wider layout: put the five fields on one row. */
@media (min-width: 48rem) {
  .stage-grid {
    grid-template-columns: 1fr 1fr 9rem 1fr 8rem;
    align-items: end;
  }
}

/* --- Jobs list --- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-head a[role="button"] { width: auto; margin: 0; }
.filters { display: inline-flex; margin-bottom: 1rem; }
.filters button { width: auto; margin: 0; }
.job-rows { list-style: none; padding: 0; margin: 0; }
.job-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.job-link {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  text-decoration: none;
}
.job-link:hover { background: var(--pico-card-sectioning-background-color); }
.job-copy { width: auto; margin: 0; padding: 0.4rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }
.job-admin { margin-top: 1rem; }
.job-admin form { margin: 0; }
.job-admin button { width: auto; margin: 0; }
.job-title { font-weight: 600; }
.job-stage { justify-self: end; opacity: 0.85; }
.job-meta { grid-column: 1 / -1; opacity: 0.7; }

.narrow-form { max-width: 30rem; }
.public-link a { word-break: break-all; }

/* --- Job detail stage buttons --- */
.stage-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.stage-buttons button { width: auto; margin: 0; }
.eta-form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.eta-form label { margin: 0; }
.eta-form button { width: auto; margin: 0; }
.updated { opacity: 0.6; font-size: 0.85rem; margin-top: 0.75rem; }

/* --- Public client page --- */
.public-card { max-width: 32rem; margin: 1.5rem auto; }
.brand-logo { max-height: 48px; max-width: 60%; margin-bottom: 0.5rem; }
.public-head .studio-name {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.public-head h1 { margin: 0; }
.current-stage {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pico-primary);
  margin: 1rem 0 0.5rem;
}
.pipeline .label { flex: 1; }
.eta { margin-top: 1rem; }

/* --- Photos --- */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}
.photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.photo { margin: 0; }
.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}
.photo figcaption { font-size: 0.75rem; opacity: 0.7; }
.photo-del { width: 100%; margin: 0.25rem 0 0; padding: 0.2rem; font-size: 0.8rem; }

/* --- Client-turn block --- */
.turn {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 2px solid var(--pico-primary);
  border-radius: var(--pico-border-radius);
}
.turn.thanks { border-color: var(--pico-muted-border-color); }
.turn-prompt { font-weight: 600; margin-top: 0; }
.turn-primary { width: 100%; }
.decline-link {
  display: inline;
  width: auto;
  margin: 0.5rem 0 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--pico-muted-color);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* --- Trello section --- */
.trello {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
/* --- Activation + setup nav --- */
.activation {
  border: 1px solid var(--pico-primary);
  border-radius: var(--pico-border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.activation h3 { margin-top: 0; }
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.35rem; }
.setup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  font-size: 0.9rem;
}

/* --- Workspace settings + team --- */
.ws-settings {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.member-list form { margin: 0; }
.member-list button { width: auto; margin: 0; padding: 0.25rem 0.75rem; font-size: 0.8rem; }
.role { text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; font-size: 0.7rem; }

.trello-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trello-actions button { width: auto; margin: 0; }
.ok-note { color: var(--pico-ins-color, green); font-weight: 600; }
.danger { border-top-color: var(--pico-del-color, #b3261e); }
.danger h2 { color: var(--pico-del-color, #b3261e); }

/* --- Share + usage --- */
.share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.share-actions button, .share-actions a[role="button"] { width: auto; margin: 0; }
.qr summary { cursor: pointer; }
.qr img { margin-top: 0.5rem; background: #fff; padding: 0.5rem; border-radius: var(--pico-border-radius); }
.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-free { background: var(--pico-muted-border-color); }
.badge-paid { background: var(--pico-primary); color: #fff; }
.usage { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; opacity: 0.9; margin-top: -0.5rem; }
.usage .upgrade-form { margin: 0; }
.usage .upgrade-btn { width: auto; display: inline-block; margin: 0; padding: 0.2rem 0.9rem; font-size: 0.85rem; }

/* Pipeline dots on the public page (built out in Slice 2). */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.pipeline li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}
.pipeline .dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--pico-muted-border-color);
  flex: 0 0 auto;
}
.pipeline .done .dot { background: var(--pico-primary); border-color: var(--pico-primary); }
.pipeline .now  .dot { box-shadow: 0 0 0 3px var(--pico-primary-focus); border-color: var(--pico-primary); }
.pipeline .now  { font-weight: 600; }
.pipeline .next { opacity: 0.6; }
/* Text label carries the state too, so it is never color-only. */
.pipeline .state-label {
  margin-left: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
