/* YouTube thumbnail product page. Builds on landing.css tokens and components. */

.hero h1 span,
.tm-hero h1 span {
  color: var(--purple);
}

.tm-hero {
  min-height: 780px;
}
.tm-hero-content {
  width: min(660px, calc(100% - 2 * var(--gutter)));
}
.tm-hero-content > p:not(.tm-hero-note) {
  max-width: 480px;
}
.tm-hero-note {
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.tm-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: min(100%, 1440px);
  margin-inline: auto;
  pointer-events: none;
}
.tm-hero-art img {
  position: absolute;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 4px 9px #0000000f, 0 16px 16px #0000000d, 0 37px 22px #00000008;
}
.tm-art-a {
  width: 260px;
  left: calc(50% - 700px);
  top: 80px;
  rotate: -4deg;
}
.tm-art-b {
  width: 210px;
  left: calc(50% - 560px);
  top: 350px;
  rotate: 3deg;
}
.tm-art-c {
  width: 240px;
  left: calc(50% - 690px);
  top: 560px;
  rotate: -2deg;
}
.tm-art-d {
  width: 250px;
  left: calc(50% + 440px);
  top: 70px;
  rotate: 3deg;
}
.tm-art-e {
  width: 210px;
  left: calc(50% + 350px);
  top: 340px;
  rotate: -3deg;
}
.tm-art-f {
  width: 240px;
  left: calc(50% + 450px);
  top: 560px;
  rotate: 2deg;
}
@media (max-width: 1240px) {
  .tm-art-b,
  .tm-art-e {
    display: none;
  }
  .tm-art-a,
  .tm-art-c {
    left: 2%;
    width: 18vw;
  }
  .tm-art-d,
  .tm-art-f {
    left: auto;
    right: 2%;
    width: 18vw;
  }
}

.prompt.tm-prompt {
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
}
.prompt.tm-prompt button {
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.prompt.tm-prompt button:hover,
.prompt.tm-prompt:focus-within button {
  background: #4207ab;
}

.tm-section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.tm-section-head p,
.tm-example-copy p {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.tm-example {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(80px, 9vw, 130px);
}
.tm-example-copy {
  display: grid;
  gap: 20px;
}
.tm-example-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tm-brief {
  display: grid;
  gap: 10px;
  margin: 0;
}
.tm-brief div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 4px #0000000a;
}
.tm-brief dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.tm-brief dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.tm-example-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}
.tm-example-result {
  display: grid;
  gap: 10px;
}
.tm-example-result img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 12px #0000000f, 0 23px 23px #0000000a;
}
.tm-example-result figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.tm-layouts {
  padding-bottom: clamp(80px, 9vw, 130px);
}
.tm-starts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}
.tm-starts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.tm-starts svg {
  flex: none;
  box-sizing: content-box;
  padding: 10px;
  border-radius: 12px;
  background: #f1eaff;
  color: var(--purple);
}
.tm-starts h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tm-starts p {
  margin-top: 4px;
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}
.tm-layouts-label {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.tm-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-layout-grid a {
  display: block;
  border-radius: 20px;
}
.tm-layout-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 12px #00000008, 0 23px 23px #00000005;
  transition: transform 300ms ease;
}
.tm-layout-grid h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tm-layout-grid p {
  margin-top: 2px;
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tm-layout-grid a:hover img {
    transform: scale(1.02);
  }
}
.tm-layout-grid a:hover h3 {
  color: var(--purple);
}

.tm-steps {
  padding-block: clamp(80px, 9vw, 120px);
  background: radial-gradient(ellipse at 13% -12%, #e0585226, transparent 61%),
    radial-gradient(ellipse at 50% -25%, #550fd02b, transparent 72%),
    radial-gradient(ellipse at 88% -15%, #af4aea29, transparent 55%);
}
.tm-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-steps li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 12px #00000005, 0 23px 23px #00000005;
}
.tm-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f1eaff;
  color: var(--purple);
}
.tm-step-number {
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
}
.tm-steps h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.tm-steps li p {
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}
.tm-steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.tm-steps-cta .button {
  gap: 8px;
  min-height: 54px;
  padding-inline: 64px;
  font-size: 18px;
  font-weight: 600;
}

.tm-closing {
  padding-top: 40px;
}
.tm-closing .tm-prompt {
  width: min(600px, 100%);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .tm-section-head p,
  .tm-example-copy p {
    font-size: 18px;
  }
  .tm-steps-cta .button {
    padding-inline: 48px;
  }
  .tm-hero {
    padding-bottom: 210px;
  }
  .tm-hero-art img {
    top: auto;
    display: block;
    width: min(46vw, 240px);
    border-width: 3px;
    border-radius: 10px;
  }
  .tm-art-a {
    left: 3%;
    right: auto;
    bottom: 44px;
  }
  .tm-art-d {
    left: auto;
    right: 3%;
    bottom: 30px;
  }
  .tm-art-c {
    left: 28%;
    bottom: 104px;
    z-index: -1;
    width: min(40vw, 200px);
  }
  .tm-art-b,
  .tm-art-e,
  .tm-art-f {
    display: none !important;
  }
  .tm-example {
    grid-template-columns: minmax(0, 1fr);
  }
  .tm-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tm-starts {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 40px;
  }
  .tm-steps ol {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .prompt.tm-prompt {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
  }
  .prompt.tm-prompt input {
    padding: 10px 8px;
  }
  .prompt.tm-prompt button {
    justify-content: center;
  }
  .tm-example-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .tm-example-arrow {
    justify-self: center;
    rotate: 90deg;
  }
  .tm-layout-grid h3 {
    font-size: 16px;
  }
  .tm-layout-grid p {
    font-size: 14px;
  }
}
