/* OG Image Studio — tool styles on top of assets/landing.css. */

.tool-hero { padding-bottom: 26px; }

/* Two-column working area: controls + live preview */
.og-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
  align-items: start;
}

/* Controls */
.og-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 18px;
}

.ctl { display: flex; flex-direction: column; gap: 6px; }
.ctl > span { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ctl > span em { font-style: normal; font-weight: 400; color: var(--text-muted); }

.og-controls input[type="text"],
.og-controls textarea,
.og-controls select {
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 13.5px;
  padding: 9px 11px;
  width: 100%;
  resize: vertical;
}

.og-controls input:focus,
.og-controls textarea:focus,
.og-controls select:focus { outline: 1px solid var(--accent-a); }

.ctl-row { display: flex; gap: 12px; }
.ctl-row .ctl { flex: 1; }

.ctl-color input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 2px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.ctl-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding-bottom: 9px;
}
.ctl-check input { width: 16px; height: 16px; accent-color: var(--accent-a); }
.ctl-check span { font-size: 13px; color: var(--text-dim); }

/* Pro status line (shared pattern with the Visual Lab) */
.pro-status { margin: 2px 0 0; font-size: 11.5px; color: var(--text-dim); }
.pro-status.locked { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.pro-status.locked:hover { color: var(--text); }

/* Preview */
.og-preview { display: flex; flex-direction: column; gap: 14px; }

.preview-frame {
  background:
    repeating-conic-gradient(#0e0e10 0% 25%, #121214 0% 50%) 0 / 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card {
  width: 100%;
  height: auto;
  max-height: 62vh;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: block;
}

.preview-actions { display: flex; gap: 10px; }
.preview-actions .btn { flex: 1; }

.preview-note { margin: 0; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.usage-help { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.usage-help summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 650; }
.usage-help p { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; margin: 11px 0; }
.usage-help label { display: block; margin: 15px 0 6px; font-size: 12px; font-weight: 650; }
.usage-help input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12.5px; }
.usage-help button { margin-top: 10px; }

/* Pro dialog (shared pattern) */
#pro-dialog {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  width: min(440px, 92vw);
}
#pro-dialog::backdrop { background: rgba(4, 4, 6, 0.7); }
#pro-dialog h3 { margin: 0 0 8px; font-size: 18px; }
.pro-pitch { margin: 0 0 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.pro-error { margin: -6px 0 10px; font-size: 12px; color: #f87171; }
#pro-dialog input[type="email"] {
  width: 100%;
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  padding: 9px 12px;
  margin-bottom: 12px;
}
#pro-dialog input[type="email"]:focus { outline: 1px solid var(--accent-a); }
.btn-row { display: flex; gap: 10px; }
.btn-row.right { justify-content: flex-end; }

/* CTA (shared pattern) */
.cta-card {
  margin: 36px 0 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.cta-card h3 { margin: 0 0 8px; font-size: 19px; }
.cta-card p { margin: 0 0 18px; font-size: 14px; color: var(--text-dim); max-width: 620px; }

@media (max-width: 820px) {
  .og-layout { grid-template-columns: 1fr; }
  #card { max-height: none; }
}
