/* Website Launcher — journey surfaces (preview, launch, live, ownership).
   Palette and type come from styles.css, which maps the First Signal brand tokens onto the
   semantic names used here. No colour is hard-coded in this file. */

.preview-panel, .launch-panel, .live-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.preview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.preview-toolbar h4, .launch-panel h4, .live-panel h4, .action-card h4 {
  font-family: var(--fs-font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.preview-toolbar h4, .launch-panel h4, .live-panel h4 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0.2rem 0;
}

.button.compact { width: auto; padding: 0.6rem 1rem; font-size: 0.8rem; }

/* The preview frame shows the customer's own website, which has its own light design — the
   chrome around it stays in our palette, the page inside must not be tinted by it. */
.preview-browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}
.browser-bar {
  height: 42px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--fs-midnight-950);
  border-bottom: 1px solid var(--line);
}
.browser-bar span { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar b {
  margin-left: 0.55rem;
  padding: 0.3rem 0.75rem;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--fs-silver-300);
  font-family: var(--fs-font-mono);
  font-size: 0.7rem;
  font-weight: 400;
}
.preview-browser iframe { display: block; width: 100%; height: min(68vh, 680px); border: 0; background: #fff; }

.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 1.4rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.action-card.approval-card { background: var(--panel); border-color: var(--line-strong); }
.action-card h4 { font-size: 1.45rem; margin: 0; }
.action-card > p:not(.plan-label) { margin: 0; color: var(--muted); font-size: 0.9rem; }
.action-card > label:not(.confirmation) { display: grid; gap: 0.4rem; width: 100%; font-size: 0.85rem; font-weight: 600; }
.action-card .button { margin-top: auto; }

.launch-panel > p:not(.step-count) { max-width: 760px; color: var(--muted); }

.domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.domain-grid form { display: grid; gap: 0.8rem; }
.domain-grid label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }

.dns-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}
.dns-type {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--fs-midnight-950);
  font-family: var(--fs-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}
.dns-card small, .dns-card strong { display: block; }
.dns-card small { color: var(--muted); }
.dns-card strong { overflow-wrap: anywhere; font-family: var(--fs-font-mono); font-size: 0.85rem; }
.pending-pill {
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--fs-font-mono);
  font-size: 0.68rem;
}

.publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: var(--fs-green-950);
  border: 1px solid var(--line-strong);
}
.publish-row strong, .publish-row small { display: block; }
.publish-row small { color: var(--muted); margin-top: 0.2rem; }

.live-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; }
.live-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--fs-midnight-950);
  font-size: 1.4rem;
  font-weight: 700;
}
.live-panel p { margin: 0.25rem 0; color: var(--muted); }
.live-panel code { display: inline-block; margin-top: 0.5rem; color: var(--fs-silver-300); font-family: var(--fs-font-mono); font-size: 0.72rem; }

.is-busy { opacity: 0.6; pointer-events: none; }

@media (max-width: 800px) {
  .decision-grid, .domain-grid { grid-template-columns: 1fr; }
  .preview-toolbar, .publish-row, .live-panel { align-items: stretch; flex-direction: column; }
  .live-panel { display: flex; }
  .preview-browser iframe { height: 560px; }
  .dns-card { grid-template-columns: auto 1fr; }
  .pending-pill { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 540px) {
  .preview-panel, .launch-panel, .live-panel { margin-left: -0.25rem; margin-right: -0.25rem; }
  .preview-toolbar { align-items: stretch; flex-direction: column; }
  .preview-browser iframe { height: 500px; }
  .live-panel { padding: 1.2rem; background: var(--raised); border-radius: var(--radius); }
  .publish-row .button { width: 100%; }
}

/* Ownership --------------------------------------------------------------- */

.ownership-panel {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--fs-green-950);
}
.ownership-intro { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.ownership-intro h4 {
  margin: 0.2rem 0;
  font-family: var(--fs-font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.ownership-panel > p { max-width: 760px; color: var(--fs-text-secondary); }
.ownership-state {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--fs-font-mono);
  font-size: 0.7rem;
  text-transform: capitalize;
  white-space: nowrap;
}

.ownership-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.4rem 0; }
.ownership-assets > div { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--fs-green-900); }
.ownership-assets span, .ownership-assets strong, .ownership-assets small { display: block; }
.ownership-assets span {
  color: var(--muted);
  font-family: var(--fs-font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ownership-assets strong { margin: 0.35rem 0; color: var(--gold); font-weight: 600; }
.ownership-assets small { color: var(--muted); line-height: 1.4; }
.ownership-panel .confirmation a { color: var(--gold); font-weight: 600; }

.handoff-steps { display: grid; gap: 0.75rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.handoff-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fs-green-900);
}
.handoff-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--muted);
  font-family: var(--fs-font-mono);
  font-weight: 500;
}
.handoff-steps li.is-complete > span { background: var(--gold); color: var(--fs-midnight-950); }
.handoff-steps strong, .handoff-steps small { display: block; }
.handoff-steps small { margin-top: 0.2rem; color: var(--muted); }

.certificate-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--fs-midnight-950);
}
.certificate-card h4 { margin: 0.25rem 0; font-family: var(--fs-font-display); font-size: 1.4rem; font-weight: 400; }
.certificate-card p { color: var(--fs-text-secondary); }
.certificate-actions { display: flex; gap: 0.6rem; }
.certificate-card pre {
  grid-column: 1 / -1;
  max-height: 300px;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--fs-green-950);
  color: var(--fs-silver-300);
  font-family: var(--fs-font-mono);
  font-size: 0.72rem;
  white-space: pre-wrap;
}
.certificate-card[hidden] { display: none; }

@media (max-width: 900px) {
  .ownership-assets { grid-template-columns: 1fr 1fr; }
  .handoff-steps li { grid-template-columns: auto 1fr; }
  .handoff-steps .button { grid-column: 1 / -1; width: 100%; }
  .certificate-card { grid-template-columns: 1fr; }
  .certificate-actions { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .ownership-panel { padding: 1.2rem; }
  .ownership-intro { display: grid; }
  .ownership-assets { grid-template-columns: 1fr; }
  .certificate-actions .button { width: 100%; }
}
