:root {
  --embed-hero-bg:
    radial-gradient(circle at 14% 18%, rgba(184, 134, 11, 0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 69, 38, 0.14), transparent 24%),
    linear-gradient(180deg, #eef4ef 0%, #f7faf7 100%);
  --embed-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 246, 0.95));
  --embed-panel-bg: linear-gradient(180deg, rgba(251, 253, 250, 0.98), rgba(242, 247, 243, 0.96));
  --embed-border: rgba(0, 69, 38, 0.12);
  --embed-shadow: 0 24px 48px rgba(0, 69, 38, 0.09);
  --embed-soft-shadow: 0 16px 32px rgba(0, 69, 38, 0.06);
  --embed-ink: #0a2f1c;
  --embed-muted: #496255;
}

main {
  padding: 0 1.5rem 5rem;
}

.embed-hero,
.embed-studio,
.embed-faq {
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.embed-hero {
  padding: 3rem 0 1rem;
}

.embed-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  border: 1px solid var(--embed-border);
  border-radius: 2rem;
  background: var(--embed-hero-bg);
  box-shadow: var(--embed-shadow);
}

.embed-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(0, 69, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--embed-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.embed-hero__intro h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  color: #004526;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.embed-hero__intro p,
.embed-feature p,
.embed-panel p,
.embed-code__header p,
.section-heading p,
.faq-item__answer {
  margin: 0;
  color: var(--embed-muted);
  line-height: 1.8;
}

.embed-hero__features {
  display: grid;
  gap: 0.9rem;
}

.embed-feature,
.embed-panel,
.faq-item {
  border: 1px solid var(--embed-border);
  border-radius: 1.5rem;
  background: var(--embed-card-bg);
  box-shadow: var(--embed-soft-shadow);
}

.embed-feature,
.embed-panel {
  padding: 1.2rem 1.25rem;
}

.embed-feature h2,
.embed-panel h2,
.section-heading h2 {
  margin: 0 0 0.7rem;
  color: #004526;
  line-height: 1.15;
}

.embed-feature h2,
.embed-panel h2 {
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.embed-faq__intro {
  display: block;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 69, 38, 0.09);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 243, 0.96));
  box-shadow: 0 16px 30px rgba(0, 69, 38, 0.07);
  color: var(--embed-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
  white-space: normal;
}

.embed-studio {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.embed-studio__sidebar {
  display: grid;
  gap: 1rem;
}

.embed-studio__main {
  display: grid;
  gap: 1rem;
}

.embed-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.embed-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.embed-preset {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 69, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #375447;
  font: inherit;
  font-weight: 700;
}

.embed-preset.is-active {
  border-color: rgba(0, 69, 38, 0.22);
  background: rgba(0, 69, 38, 0.08);
  color: #004526;
}

.embed-field:last-child {
  margin-bottom: 0;
}

.embed-field label {
  color: var(--embed-ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.embed-field input,
.embed-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 69, 38, 0.14);
  border-radius: 1rem;
  background: rgba(248, 251, 248, 0.94);
  color: #123423;
  font: inherit;
}

.embed-preview__header,
.embed-code__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.embed-preview__frame {
  display: grid;
  gap: 1rem;
  min-height: 440px;
  padding: 1.5rem;
  border: 1px dashed rgba(0, 69, 38, 0.18);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(0, 69, 38, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 245, 0.96));
  overflow: hidden;
}

.embed-preview__placeholder {
  width: 100%;
  max-width: none;
  text-align: center;
}

.embed-preview__placeholder strong {
  display: block;
  margin-bottom: 0.7rem;
  color: #004526;
  font-size: 1.2rem;
}

.embed-preview__placeholder iframe {
  display: block;
  width: 100%;
  min-height: 960px;
  margin-top: 1rem;
  border: 0;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 69, 38, 0.08);
  overflow: hidden;
}

.embed-code pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1.15rem;
  border-radius: 1.1rem;
  background: #0d2418;
  color: #ebf4ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.embed-code code {
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 0.93rem;
  line-height: 1.7;
}

.embed-code__note {
  margin: 0 0 0.8rem;
  color: var(--embed-muted);
  line-height: 1.7;
}

.embed-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.55rem;
  margin-top: 0.4rem;
  border: 1px solid rgba(0, 69, 38, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #005b33 0%, #004526 52%, #0a6b3f 100%);
  box-shadow:
    0 20px 34px rgba(0, 69, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.embed-copy-button:hover,
.embed-copy-button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 24px 38px rgba(0, 69, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.embed-copy-button:active {
  transform: translateY(0);
  box-shadow:
    0 12px 24px rgba(0, 69, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.embed-copy-status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: #0a5a35;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.button--wide {
  width: 100%;
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem;
}

.faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(0, 69, 38, 0.08);
  color: #004526;
  font-size: 0.92rem;
  font-weight: 800;
}

.faq-item__question {
  color: var(--embed-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 69, 38, 0.12);
  border-radius: 999px;
  background: rgba(248, 251, 248, 0.92);
  color: #004526;
  font-size: 1rem;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item__answer {
  padding: 1rem 0 0;
  font-size: 0.97rem;
}

@media (max-width: 1024px) {
  .embed-hero__content,
  .embed-studio {
    grid-template-columns: 1fr;
  }

  .embed-studio__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 767px) {
  main {
    padding: 0 1rem 4rem;
  }

  .embed-hero {
    padding-top: 2rem;
  }

  .embed-hero__content,
  .embed-feature,
  .embed-panel,
  .faq-item {
    padding: 1.25rem;
    border-radius: 1.35rem;
  }

  .embed-hero__intro h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .embed-preview__frame {
    min-height: 320px;
    padding: 1rem;
  }

  .embed-preview__placeholder iframe {
    min-height: 640px;
  }

  .embed-studio__sidebar {
    grid-template-columns: 1fr;
  }

  .embed-preview__header,
  .embed-code__header {
    justify-content: flex-start;
  }

  .faq-item summary {
    grid-template-columns: auto 1fr;
  }

  .faq-item summary::after {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 0.85rem 3.5rem;
  }

  .embed-hero__content,
  .embed-feature,
  .embed-panel,
  .faq-item {
    padding: 1.05rem;
  }

  .embed-hero__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .embed-field input,
  .embed-field select {
    min-height: 3rem;
  }

  .embed-copy-button {
    min-height: 3.25rem;
  }

  .embed-preview__placeholder iframe {
    min-height: 560px;
  }

  .embed-faq__intro {
    max-width: 100%;
    padding: 0.9rem 0.95rem;
    border-radius: 1rem;
  }
}

@media (max-width: 300px) {
  main {
    padding-inline: 0.6rem;
  }

  .embed-hero__content,
  .embed-feature,
  .embed-panel,
  .faq-item {
    padding: 0.95rem;
    border-radius: 1.15rem;
  }

  .embed-hero__intro h1 {
    font-size: 1.8rem;
  }

  .embed-hero__intro p,
  .embed-feature p,
  .embed-panel p,
  .embed-code__header p,
  .section-heading p,
  .faq-item__answer {
    font-size: 0.92rem;
  }

  .embed-faq__intro {
    padding: 0.8rem 0.85rem;
    line-height: 1.65;
  }

  .faq-item summary {
    gap: 0.7rem;
  }

  .faq-item__question {
    font-size: 0.95rem;
  }

  .embed-code pre {
    padding: 0.95rem;
  }

  .embed-preset {
    width: 100%;
    justify-content: center;
  }

  .embed-preview__placeholder iframe {
    min-height: 520px;
  }
}
