:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #637179;
  --line: #d6e0df;
  --paper: #f8fbfa;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --warm: #f2b84b;
  --rose: #d95f59;
  --sky: #4b8cca;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
}

.brand,
nav a,
.pay-button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  padding: 8px clamp(16px, 4vw, 48px) 36px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 35px rgba(39, 58, 58, 0.08);
}

.input-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.section-head {
  display: grid;
  gap: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 11px 12px;
}

textarea {
  min-height: 210px;
  resize: vertical;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
}

button.secondary,
.tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.paid-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.paid-strip h2,
.paid-strip p {
  margin: 0;
}

.paid-strip div {
  display: grid;
  gap: 8px;
}

.output-panel {
  display: grid;
  grid-template-rows: 120px auto 1fr;
  min-height: 720px;
  overflow: hidden;
}

.video-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 8px;
  padding: 14px;
  background: #e8f1ef;
}

.video-strip span {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35)),
    var(--sky);
}

.video-strip span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25)),
    var(--warm);
}

.video-strip span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.28)),
    var(--rose);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
}

.tab.active {
  background: var(--accent-strong);
  color: #ffffff;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
  white-space: pre-wrap;
  color: #203036;
  font:
    14px/1.62 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.seo-grid article {
  border-top: 3px solid var(--accent);
  background: #ffffff;
  padding: 16px;
}

.seo-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.seo-grid p,
footer {
  color: var(--muted);
}

.seo-grid p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 940px) {
  .workspace,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .paid-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-panel {
    min-height: 600px;
  }

  h1 {
    max-width: 16ch;
  }
}

@media (max-width: 620px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .input-panel {
    padding: 16px;
  }
}
