:root {
  --ink: #14212b;
  --muted: #60707d;
  --line: #d6e2e8;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --cyan: #0f8fb3;
  --cyan-dark: #096f8d;
  --green: #0a9d4a;
  --yellow: #ffe450;
  --red: #d91e36;
  --shadow: 0 18px 44px rgba(20, 33, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand small,
.top-nav a,
.site-footer,
.site-footer a {
  color: var(--muted);
}

.top-nav,
.site-footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a,
.site-footer a {
  text-decoration: none;
  font-weight: 750;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--cyan-dark);
}

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 179, 0.94), rgba(19, 190, 190, 0.96)),
    var(--cyan);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  transform: rotate(-14deg);
}

.hero:before {
  width: 80px;
  height: 54px;
  left: 52px;
  top: 54px;
}

.hero:after {
  width: 86px;
  height: 64px;
  right: 76px;
  bottom: 70px;
  transform: rotate(14deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  width: min(760px, 100%);
  margin: 18px auto 0;
  font-size: 1.16rem;
}

.download-box {
  margin: 36px auto 0;
  padding: 8px;
  background: #ffffff;
  border: 4px solid #35c86c;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(20, 33, 43, 0.2);
  text-align: left;
}

.download-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 8px;
}

.input-row input {
  min-height: 64px;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  font-size: 1.05rem;
  outline: 0;
}

.input-row button {
  min-height: 64px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #08bd4e;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.input-row button:hover {
  background: var(--green);
}

.form-note {
  margin: 8px 10px 6px;
  color: #60707d;
  font-size: 0.92rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.panel,
.tool-card,
.seo-content article {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 33, 43, 0.06);
}

.panel {
  overflow: hidden;
  padding: 24px;
}

.panel-heading h2,
.tool-card h2,
.seo-content h2,
.policy-panel h2 {
  margin: 0 0 8px;
  line-height: 1.18;
}

.panel-heading p:last-child,
.panel-copy,
.tool-card p,
.seo-content p,
.fine-print {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 180px;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 24px;
  margin-top: 18px;
}

.video-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.video-summary img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef5f8;
}

.summary-list {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  min-width: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
}

.summary-list dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.button,
.thumb-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.primary,
.thumb-link {
  color: #fff;
  background: var(--cyan);
}

.button.primary:hover,
.thumb-link:hover {
  background: var(--cyan-dark);
}

.button.secondary {
  color: var(--cyan-dark);
  background: #e7f6fa;
  border-color: #b8dce8;
}

.button.subtle {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-row,
.link-actions,
.thumb-grid {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.link-actions {
  align-items: stretch;
}

.code-box,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
}

.code-box {
  max-width: 100%;
  padding: 12px;
  margin-top: 14px;
  white-space: pre-wrap;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.thumbnail-section,
.embed-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.thumbnail-section h3,
.embed-section h3 {
  margin: 0 0 10px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thumb-link {
  width: 100%;
}

.policy-panel {
  position: sticky;
  top: 12px;
}

.policy-panel ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.fine-print {
  margin-top: 14px;
  font-size: 0.92rem;
}

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

.tool-card,
.seo-content article {
  padding: 22px;
}

.workspace {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.form-grid label {
  color: #253441;
  font-weight: 760;
}

.form-grid input,
textarea {
  margin-top: 6px;
  padding: 11px 12px;
}

.form-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 32px 0 42px;
}

.site-footer p {
  margin: 0;
}

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

  .tool-layout,
  .tool-grid,
  .workspace,
  .seo-content,
  .video-summary {
    grid-template-columns: 1fr;
  }

  .policy-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 32px 0;
  }

  .hero:before,
  .hero:after {
    display: none;
  }

  .hero-text {
    font-size: 1rem;
  }

  .download-box {
    margin-top: 24px;
  }

  .input-row,
  .form-grid,
  .summary-list div,
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .input-row button,
  .input-row input {
    min-height: 54px;
  }

  .button,
  .thumb-link {
    width: 100%;
  }
}
